git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lib: Adapt headers for use in C++.
[sliver-openvswitch.git]
/
lib
/
classifier.h
diff --git
a/lib/classifier.h
b/lib/classifier.h
index
b1162ae
..
2e6d8b9
100644
(file)
--- a/
lib/classifier.h
+++ b/
lib/classifier.h
@@
-32,6
+32,10
@@
#include "openflow/nicira-ext.h"
#include "openflow/openflow.h"
#include "openflow/nicira-ext.h"
#include "openflow/openflow.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* A flow classifier. */
struct classifier {
int n_rules; /* Total number of rules. */
/* A flow classifier. */
struct classifier {
int n_rules; /* Total number of rules. */
@@
-164,4
+168,8
@@
struct cls_rule *cls_cursor_next(struct cls_cursor *, struct cls_rule *);
: 0); \
(RULE) = (NEXT))
: 0); \
(RULE) = (NEXT))
+#ifdef __cplusplus
+}
+#endif
+
#endif /* classifier.h */
#endif /* classifier.h */