Remove a pair of unnecessary dependencies on datapath-protocol.h.
authorBen Pfaff <blp@nicira.com>
Thu, 29 Sep 2011 22:18:58 +0000 (15:18 -0700)
committerBen Pfaff <blp@nicira.com>
Fri, 30 Sep 2011 15:58:10 +0000 (08:58 -0700)
These headers don't really need datapath-protocol.h.  connmgr.h indirectly
used "struct nlattr" from that header, so add a forward declaration.  (The
next commit will remove use of struct nlattr entirely from that header,
since it is not really appropriate.)

lib/flow.h
lib/netdev-linux.h
ofproto/connmgr.h

index 6212f84..a593516 100644 (file)
@@ -24,7 +24,6 @@
 #include "openflow/nicira-ext.h"
 #include "openflow/openflow.h"
 #include "hash.h"
-#include "openvswitch/datapath-protocol.h"
 #include "util.h"
 
 struct dpif_flow_stats;
index c00a846..c8caa4e 100644 (file)
@@ -19,7 +19,6 @@
 
 #include <stdint.h>
 #include <stdbool.h>
-#include "openvswitch/datapath-protocol.h"
 
 /* These functions are Linux specific, so they should be used directly only by
  * Linux-specific code. */
index ea39b72..0224352 100644 (file)
@@ -23,6 +23,7 @@
 #include "openflow/nicira-ext.h"
 #include "openvswitch/types.h"
 
+struct nlattr;
 struct ofconn;
 struct ofopgroup;
 struct ofputil_flow_removed;