vconn: Remove unnecessary forward declarations and #includes from header.
authorBen Pfaff <blp@nicira.com>
Tue, 4 Oct 2011 04:52:39 +0000 (21:52 -0700)
committerBen Pfaff <blp@nicira.com>
Tue, 4 Oct 2011 16:09:03 +0000 (09:09 -0700)
This required fix-ups in a few other files that accidentally depended upon
vconn.h including those other headers.

lib/vconn.h
ofproto/pinsched.c
tests/test-vconn.c
vswitchd/ovs-vswitchd.c

index 3c1ffe9..74b6b49 100644 (file)
 #ifndef VCONN_H
 #define VCONN_H 1
 
-#include <assert.h>
 #include <stdbool.h>
-#include <stddef.h>
-#include <stdint.h>
-
-#include "flow.h"
+#include "openvswitch/types.h"
 
 #ifdef __cplusplus
 extern "C" {
@@ -30,10 +26,6 @@ extern "C" {
 
 struct list;
 struct ofpbuf;
-struct ofp_action_header;
-struct ofp_header;
-struct ofp_match;
-struct ofp_stats_msg;
 struct pvconn;
 struct vconn;
 
index 695d9b4..6d7eb13 100644 (file)
@@ -21,6 +21,7 @@
 #include <arpa/inet.h>
 #include <stdint.h>
 #include <stdlib.h>
+#include "hash.h"
 #include "hmap.h"
 #include "ofpbuf.h"
 #include "openflow/openflow.h"
index 2b14fa8..42940c3 100644 (file)
@@ -22,6 +22,7 @@
 #include <stdlib.h>
 #include <unistd.h>
 #include "command-line.h"
+#include "openflow/openflow.h"
 #include "poll-loop.h"
 #include "socket-util.h"
 #include "stream.h"
index 4910d69..359e3ab 100644 (file)
@@ -34,6 +34,7 @@
 #include "dummy.h"
 #include "leak-checker.h"
 #include "netdev.h"
+#include "openflow/openflow.h"
 #include "ovsdb-idl.h"
 #include "poll-loop.h"
 #include "process.h"