aboutsummaryrefslogtreecommitdiff
path: root/lib/vconn.h
diff options
context:
space:
mode:
authorCasey Barker <crbarker@google.com>2011-08-04 16:18:59 -0700
committerBen Pfaff <blp@nicira.com>2011-08-04 16:20:04 -0700
commit43d1478b1690ecd0ef6b63890bc13438c1914e47 (patch)
tree122b7ece40701cc950390e1a6dc3f56f83cb46f0 /lib/vconn.h
parentc71c6043a7617e6e6c2b8748550014f54476faa7 (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/vconn.h')
-rw-r--r--lib/vconn.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/vconn.h b/lib/vconn.h
index 3f8bc47b..3c1ffe9c 100644
--- a/lib/vconn.h
+++ b/lib/vconn.h
@@ -24,6 +24,10 @@
#include "flow.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
struct list;
struct ofpbuf;
struct ofp_action_header;
@@ -78,4 +82,8 @@ void pvconn_close(struct pvconn *);
int pvconn_accept(struct pvconn *, int min_version, struct vconn **);
void pvconn_wait(struct pvconn *);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* vconn.h */