Add extern "C" to more header files.
authorJesse Gross <jesse@nicira.com>
Wed, 17 Feb 2010 15:36:57 +0000 (10:36 -0500)
committerJesse Gross <jesse@nicira.com>
Wed, 17 Feb 2010 15:38:54 +0000 (10:38 -0500)
From partner.

lib/dpif.h
lib/poll-loop.h
ofproto/ofproto.h

index bf3c648..41101e7 100644 (file)
 #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 */
index 341d063..47cf4c9 100644 (file)
 
 #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 */
index 6377e51..3a9617a 100644 (file)
 #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 */