summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Gross <jesse@nicira.com>2010-02-17 10:36:57 -0500
committerJesse Gross <jesse@nicira.com>2010-02-17 10:38:54 -0500
commit03292c465464a1bb10b07ea5036ce64083984dd3 (patch)
treec7a43e1a8ae895f41120258f42880700098821d3
parentd42c4f8dc1d39dcc1f102b56f63e4c128a2d767b (diff)
downloadopenvswitch-03292c465464a1bb10b07ea5036ce64083984dd3.tar.gz
Add extern "C" to more header files.
From partner.
-rw-r--r--lib/dpif.h8
-rw-r--r--lib/poll-loop.h8
-rw-r--r--ofproto/ofproto.h8
3 files changed, 24 insertions, 0 deletions
diff --git a/lib/dpif.h b/lib/dpif.h
index bf3c64819..41101e7b1 100644
--- a/lib/dpif.h
+++ b/lib/dpif.h
@@ -27,6 +27,10 @@
#include <stddef.h>
#include <stdint.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
struct dpif;
struct ofpbuf;
struct svec;
@@ -93,4 +97,8 @@ void dpif_recv_wait(struct dpif *);
void dpif_get_netflow_ids(const struct dpif *,
uint8_t *engine_type, uint8_t *engine_id);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* dpif.h */
diff --git a/lib/poll-loop.h b/lib/poll-loop.h
index 341d063b5..47cf4c9ee 100644
--- a/lib/poll-loop.h
+++ b/lib/poll-loop.h
@@ -34,6 +34,10 @@
#include <poll.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
struct poll_waiter;
/* Schedule events to wake up the following poll_block(). */
@@ -52,4 +56,8 @@ struct poll_waiter *poll_fd_callback(int fd, short int events,
/* Cancel a file descriptor callback or event. */
void poll_cancel(struct poll_waiter *);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* poll-loop.h */
diff --git a/ofproto/ofproto.h b/ofproto/ofproto.h
index 6377e51e2..3a9617af5 100644
--- a/ofproto/ofproto.h
+++ b/ofproto/ofproto.h
@@ -24,6 +24,10 @@
#include "netflow.h"
#include "tag.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
struct odp_actions;
struct ofhooks;
struct ofproto;
@@ -123,4 +127,8 @@ struct ofhooks {
void ofproto_revalidate(struct ofproto *, tag_type);
struct tag_set *ofproto_get_revalidate_set(struct ofproto *);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* ofproto.h */