git://git.onelab.eu
/
sliver-openvswitch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b9e9ea
)
flow: Allow flow.h to be included from C++.
author
Tom Everman
<teverman@google.com>
Wed, 26 May 2010 20:16:14 +0000
(13:16 -0700)
committer
Ben Pfaff
<blp@nicira.com>
Wed, 26 May 2010 20:16:40 +0000
(13:16 -0700)
lib/flow.h
patch
|
blob
|
history
diff --git
a/lib/flow.h
b/lib/flow.h
index
0cfe9e3
..
443ce95
100644
(file)
--- a/
lib/flow.h
+++ b/
lib/flow.h
@@
-27,6
+27,10
@@
#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 */