flow: Allow flow.h to be included from C++.
authorTom Everman <teverman@google.com>
Wed, 26 May 2010 20:16:14 +0000 (13:16 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 26 May 2010 20:16:40 +0000 (13:16 -0700)
lib/flow.h

index 0cfe9e3..443ce95 100644 (file)
 #include "openvswitch/xflow.h"
 #include "util.h"
 
+#ifdef  __cplusplus
+extern "C" {
+#endif
+
 struct ds;
 struct ofp_match;
 struct ofpbuf;
@@ -123,4 +127,8 @@ flow_wildcards_init(struct flow_wildcards *wc, uint32_t wildcards)
     wc->nw_dst_mask = flow_nw_bits_to_mask(wildcards, OFPFW_NW_DST_SHIFT);
 }
 
+#ifdef  __cplusplus
+}
+#endif
+
 #endif /* flow.h */