Skip to content

Commit

Permalink
vconn: Remove unnecessary forward declarations and #includes from hea…
Browse files Browse the repository at this point in the history
…der.

This required fix-ups in a few other files that accidentally depended upon
vconn.h including those other headers.
  • Loading branch information
blp committed Oct 4, 2011
1 parent b47e2a8 commit 3021ea6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 9 deletions.
10 changes: 1 addition & 9 deletions lib/vconn.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,15 @@
#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" {
#endif

struct list;
struct ofpbuf;
struct ofp_action_header;
struct ofp_header;
struct ofp_match;
struct ofp_stats_msg;
struct pvconn;
struct vconn;

Expand Down
1 change: 1 addition & 0 deletions ofproto/pinsched.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions tests/test-vconn.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions vswitchd/ovs-vswitchd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 3021ea6

Please sign in to comment.