Skip to content

Commit

Permalink
Move ofp-parse.h to include/openvswitch directory
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Warren <[email protected]>
Signed-off-by: Ben Pfaff <[email protected]>
  • Loading branch information
Ben Warren authored and blp committed Mar 30, 2016
1 parent 417e7e6 commit 7888d2a
Show file tree
Hide file tree
Showing 12 changed files with 13 additions and 14 deletions.
1 change: 1 addition & 0 deletions include/openvswitch/automake.mk
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ openvswitchinclude_HEADERS = \
include/openvswitch/geneve.h \
include/openvswitch/list.h \
include/openvswitch/ofp-errors.h \
include/openvswitch/ofp-parse.h \
include/openvswitch/thread.h \
include/openvswitch/token-bucket.h \
include/openvswitch/types.h \
Expand Down
6 changes: 3 additions & 3 deletions lib/ofp-parse.h → include/openvswitch/ofp-parse.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@

/* OpenFlow protocol string to flow parser. */

#ifndef OFP_PARSE_H
#define OFP_PARSE_H 1
#ifndef OPENVSWITCH_OFP_PARSE_H
#define OPENVSWITCH_OFP_PARSE_H 1

#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include "compiler.h"
#include "openvswitch/compiler.h"
#include "openvswitch/types.h"

struct flow;
Expand Down
1 change: 0 additions & 1 deletion lib/automake.mk
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,6 @@ lib_libopenvswitch_la_SOURCES = \
lib/ofp-msgs.c \
lib/ofp-msgs.h \
lib/ofp-parse.c \
lib/ofp-parse.h \
lib/ofp-print.c \
lib/ofp-print.h \
lib/ofp-prop.c \
Expand Down
2 changes: 1 addition & 1 deletion lib/dpctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
#include "netdev-dpdk.h"
#include "netlink.h"
#include "odp-util.h"
#include "ofp-parse.h"
#include "ofpbuf.h"
#include "ovs-numa.h"
#include "packets.h"
Expand All @@ -50,6 +49,7 @@
#include "timeval.h"
#include "unixctl.h"
#include "util.h"
#include "openvswitch/ofp-parse.h"

typedef int dpctl_command_handler(int argc, const char *argv[],
struct dpctl_params *);
Expand Down
2 changes: 1 addition & 1 deletion lib/learning-switch.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
#include "ofpbuf.h"
#include "ofp-actions.h"
#include "ofp-msgs.h"
#include "ofp-parse.h"
#include "ofp-print.h"
#include "ofp-util.h"
#include "openflow/openflow.h"
Expand All @@ -42,6 +41,7 @@
#include "simap.h"
#include "timeval.h"
#include "openvswitch/ofp-errors.h"
#include "openvswitch/ofp-parse.h"
#include "openvswitch/vconn.h"
#include "openvswitch/vlog.h"

Expand Down
2 changes: 1 addition & 1 deletion lib/ofp-actions.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@
#include "multipath.h"
#include "nx-match.h"
#include "odp-netlink.h"
#include "ofp-parse.h"
#include "ofp-prop.h"
#include "ofp-util.h"
#include "ofpbuf.h"
#include "unaligned.h"
#include "util.h"
#include "openvswitch/ofp-parse.h"
#include "openvswitch/vlog.h"

VLOG_DEFINE_THIS_MODULE(ofp_actions);
Expand Down
3 changes: 1 addition & 2 deletions lib/ofp-parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@

#include <config.h>

#include "ofp-parse.h"

#include <ctype.h>
#include <errno.h>
#include <stdlib.h>
Expand All @@ -38,6 +36,7 @@
#include "packets.h"
#include "simap.h"
#include "socket-util.h"
#include "openvswitch/ofp-parse.h"
#include "openvswitch/vconn.h"

/* Parses 'str' as an 8-bit unsigned integer into '*valuep'.
Expand Down
2 changes: 1 addition & 1 deletion ofproto/ofproto-dpif.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@
#include "ofp-util.h"
#include "ofpbuf.h"
#include "ofp-actions.h"
#include "ofp-parse.h"
#include "ofp-print.h"
#include "ofproto-dpif-ipfix.h"
#include "ofproto-dpif-mirror.h"
Expand All @@ -70,6 +69,7 @@
#include "unaligned.h"
#include "unixctl.h"
#include "vlan-bitmap.h"
#include "openvswitch/ofp-parse.h"
#include "openvswitch/vlog.h"

VLOG_DEFINE_THIS_MODULE(ofproto_dpif);
Expand Down
2 changes: 1 addition & 1 deletion tests/test-odp.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
#include "openvswitch/dynamic-string.h"
#include "flow.h"
#include "match.h"
#include "ofp-parse.h"
#include "ofpbuf.h"
#include "ovstest.h"
#include "util.h"
#include "openvswitch/ofp-parse.h"
#include "openvswitch/vlog.h"

static int
Expand Down
2 changes: 1 addition & 1 deletion utilities/ovs-dpctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@
#include "dpctl.h"
#include "fatal-signal.h"
#include "odp-util.h"
#include "ofp-parse.h"
#include "packets.h"
#include "timeval.h"
#include "util.h"
#include "openvswitch/ofp-parse.h"
#include "openvswitch/vlog.h"

static struct dpctl_params dpctl_p;
Expand Down
2 changes: 1 addition & 1 deletion utilities/ovs-ofctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
#include "odp-util.h"
#include "ofp-actions.h"
#include "ofp-msgs.h"
#include "ofp-parse.h"
#include "ofp-print.h"
#include "ofp-util.h"
#include "ofp-version-opt.h"
Expand All @@ -61,6 +60,7 @@
#include "unixctl.h"
#include "util.h"
#include "openvswitch/ofp-errors.h"
#include "openvswitch/ofp-parse.h"
#include "openvswitch/vconn.h"
#include "openvswitch/vlog.h"
#include "meta-flow.h"
Expand Down
2 changes: 1 addition & 1 deletion utilities/ovs-testcontroller.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
#include "daemon.h"
#include "fatal-signal.h"
#include "learning-switch.h"
#include "ofp-parse.h"
#include "ofp-version-opt.h"
#include "ofpbuf.h"
#include "openflow/openflow.h"
Expand All @@ -40,6 +39,7 @@
#include "timeval.h"
#include "unixctl.h"
#include "util.h"
#include "openvswitch/ofp-parse.h"
#include "openvswitch/vconn.h"
#include "openvswitch/vlog.h"
#include "socket-util.h"
Expand Down

0 comments on commit 7888d2a

Please sign in to comment.