diff options
author | Casey Barker <crbarker@google.com> | 2011-08-04 16:18:59 -0700 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2011-08-04 16:20:04 -0700 |
commit | 43d1478b1690ecd0ef6b63890bc13438c1914e47 (patch) | |
tree | 122b7ece40701cc950390e1a6dc3f56f83cb46f0 /lib/classifier.h | |
parent | c71c6043a7617e6e6c2b8748550014f54476faa7 (diff) |
lib: Adapt headers for use in C++.
This commit makes several library headers suitable for inclusion in C++.
It adds [extern "C"] guards and makes minor changes to fix casting and
keyword issues.
Diffstat (limited to 'lib/classifier.h')
-rw-r--r-- | lib/classifier.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/classifier.h b/lib/classifier.h index b1162aeb..2e6d8b9b 100644 --- a/lib/classifier.h +++ b/lib/classifier.h @@ -32,6 +32,10 @@ #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. */ @@ -164,4 +168,8 @@ struct cls_rule *cls_cursor_next(struct cls_cursor *, struct cls_rule *); : 0); \ (RULE) = (NEXT)) +#ifdef __cplusplus +} +#endif + #endif /* classifier.h */ |