Skip to content

Commit

Permalink
Move lib/ofpbuf.h to include/openvswitch directory
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Warren <[email protected]>
Acked-by: Ryan Moats <[email protected]>
Signed-off-by: Ben Pfaff <[email protected]>
  • Loading branch information
Ben Warren authored and blp committed Mar 30, 2016
1 parent 7888d2a commit 64c9677
Show file tree
Hide file tree
Showing 79 changed files with 84 additions and 83 deletions.
1 change: 1 addition & 0 deletions include/openvswitch/automake.mk
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ openvswitchinclude_HEADERS = \
include/openvswitch/dynamic-string.h \
include/openvswitch/geneve.h \
include/openvswitch/list.h \
include/openvswitch/ofpbuf.h \
include/openvswitch/ofp-errors.h \
include/openvswitch/ofp-parse.h \
include/openvswitch/thread.h \
Expand Down
11 changes: 6 additions & 5 deletions lib/ofpbuf.h → include/openvswitch/ofpbuf.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,16 @@
* limitations under the License.
*/

#ifndef OFPBUF_H
#define OFPBUF_H 1
#ifndef OPENVSWITCH_OFPBUF_H
#define OPENVSWITCH_OFPBUF_H 1

#include <stddef.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include "openvswitch/dynamic-string.h"
#include "openvswitch/list.h"
#include "util.h"

struct ds;
#include "openvswitch/util.h"

#ifdef __cplusplus
extern "C" {
Expand Down
1 change: 0 additions & 1 deletion lib/automake.mk
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ lib_libopenvswitch_la_SOURCES = \
lib/ofp-version-opt.h \
lib/ofp-version-opt.c \
lib/ofpbuf.c \
lib/ofpbuf.h \
lib/ovs-atomic-c11.h \
lib/ovs-atomic-clang.h \
lib/ovs-atomic-flag-gcc4.7+.h \
Expand Down
2 changes: 1 addition & 1 deletion lib/bfd.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#include "openvswitch/list.h"
#include "netdev.h"
#include "odp-util.h"
#include "ofpbuf.h"
#include "openvswitch/ofpbuf.h"
#include "ovs-thread.h"
#include "openvswitch/types.h"
#include "packets.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/bundle.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include "multipath.h"
#include "meta-flow.h"
#include "nx-match.h"
#include "ofpbuf.h"
#include "openvswitch/ofpbuf.h"
#include "ofp-actions.h"
#include "ofp-util.h"
#include "openflow/nicira-ext.h"
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,7 @@
#include "netdev-dpdk.h"
#include "netlink.h"
#include "odp-util.h"
#include "ofpbuf.h"
#include "openvswitch/ofpbuf.h"
#include "ovs-numa.h"
#include "packets.h"
#include "shash.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/dpif-netdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
#include "odp-execute.h"
#include "odp-util.h"
#include "ofp-print.h"
#include "ofpbuf.h"
#include "openvswitch/ofpbuf.h"
#include "ovs-numa.h"
#include "ovs-rcu.h"
#include "packets.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/dpif-netlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
#include "netlink-socket.h"
#include "netlink.h"
#include "odp-util.h"
#include "ofpbuf.h"
#include "openvswitch/ofpbuf.h"
#include "packets.h"
#include "poll-loop.h"
#include "random.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/dpif.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
#include "odp-util.h"
#include "ofp-print.h"
#include "ofp-util.h"
#include "ofpbuf.h"
#include "openvswitch/ofpbuf.h"
#include "packets.h"
#include "poll-loop.h"
#include "route-table.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/jsonrpc.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include "fatal-signal.h"
#include "json.h"
#include "openvswitch/list.h"
#include "ofpbuf.h"
#include "openvswitch/ofpbuf.h"
#include "ovs-thread.h"
#include "poll-loop.h"
#include "reconnect.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/learn.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#include "nx-match.h"
#include "ofp-actions.h"
#include "ofp-util.h"
#include "ofpbuf.h"
#include "openvswitch/ofpbuf.h"
#include "openflow/openflow.h"
#include "openvswitch/ofp-errors.h"
#include "unaligned.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/learning-switch.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#include "flow.h"
#include "hmap.h"
#include "mac-learning.h"
#include "ofpbuf.h"
#include "openvswitch/ofpbuf.h"
#include "ofp-actions.h"
#include "ofp-msgs.h"
#include "ofp-print.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/netdev-dummy.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#include "netdev-vport.h"
#include "odp-util.h"
#include "ofp-print.h"
#include "ofpbuf.h"
#include "openvswitch/ofpbuf.h"
#include "ovs-atomic.h"
#include "packets.h"
#include "pcap-file.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/netdev-linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
#include "netlink-notifier.h"
#include "netlink-socket.h"
#include "netlink.h"
#include "ofpbuf.h"
#include "openvswitch/ofpbuf.h"
#include "openflow/openflow.h"
#include "ovs-atomic.h"
#include "packets.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/netdev-windows.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include "coverage.h"
#include "fatal-signal.h"
#include "netdev-provider.h"
#include "ofpbuf.h"
#include "openvswitch/ofpbuf.h"
#include "packets.h"
#include "poll-loop.h"
#include "shash.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/netlink-conntrack.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#include "openvswitch/dynamic-string.h"
#include "netlink.h"
#include "netlink-socket.h"
#include "ofpbuf.h"
#include "openvswitch/ofpbuf.h"
#include "openvswitch/vlog.h"
#include "poll-loop.h"
#include "timeval.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/netlink-conntrack.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include "ct-dpif.h"
#include "openvswitch/dynamic-string.h"
#include "hmap.h"
#include "ofpbuf.h"
#include "openvswitch/ofpbuf.h"
#include "timeval.h"
#include "unixctl.h"
#include "util.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/netlink-notifier.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include "coverage.h"
#include "netlink.h"
#include "netlink-socket.h"
#include "ofpbuf.h"
#include "openvswitch/ofpbuf.h"
#include "openvswitch/vlog.h"

VLOG_DEFINE_THIS_MODULE(netlink_notifier);
Expand Down
2 changes: 1 addition & 1 deletion lib/netlink-socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#include "netlink.h"
#include "netlink-protocol.h"
#include "odp-netlink.h"
#include "ofpbuf.h"
#include "openvswitch/ofpbuf.h"
#include "ovs-thread.h"
#include "poll-loop.h"
#include "seq.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/netlink-socket.h
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include "ofpbuf.h"
#include "openvswitch/ofpbuf.h"
#include "ovs-atomic.h"
#include "ovs-thread.h"

Expand Down
2 changes: 1 addition & 1 deletion lib/netlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include "coverage.h"
#include "flow.h"
#include "netlink-protocol.h"
#include "ofpbuf.h"
#include "openvswitch/ofpbuf.h"
#include "timeval.h"
#include "unaligned.h"
#include "openvswitch/vlog.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/nx-match.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include "meta-flow.h"
#include "ofp-actions.h"
#include "ofp-util.h"
#include "ofpbuf.h"
#include "openvswitch/ofpbuf.h"
#include "openflow/nicira-ext.h"
#include "packets.h"
#include "shash.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/odp-util.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#include "openvswitch/dynamic-string.h"
#include "flow.h"
#include "netlink.h"
#include "ofpbuf.h"
#include "openvswitch/ofpbuf.h"
#include "packets.h"
#include "simap.h"
#include "timeval.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 @@ -32,7 +32,7 @@
#include "odp-netlink.h"
#include "ofp-prop.h"
#include "ofp-util.h"
#include "ofpbuf.h"
#include "openvswitch/ofpbuf.h"
#include "unaligned.h"
#include "util.h"
#include "openvswitch/ofp-parse.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/ofp-errors.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include "openvswitch/dynamic-string.h"
#include "ofp-msgs.h"
#include "ofp-util.h"
#include "ofpbuf.h"
#include "openvswitch/ofpbuf.h"
#include "openflow/openflow.h"
#include "openvswitch/ofp-errors.h"
#include "openvswitch/vlog.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/ofp-msgs.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include "openvswitch/dynamic-string.h"
#include "hash.h"
#include "hmap.h"
#include "ofpbuf.h"
#include "openvswitch/ofpbuf.h"
#include "openflow/nicira-ext.h"
#include "openflow/openflow.h"
#include "ovs-thread.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/ofp-parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#include "nx-match.h"
#include "ofp-actions.h"
#include "ofp-util.h"
#include "ofpbuf.h"
#include "openvswitch/ofpbuf.h"
#include "openflow/openflow.h"
#include "ovs-thread.h"
#include "packets.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/ofp-print.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
#include "netdev.h"
#include "nx-match.h"
#include "ofp-actions.h"
#include "ofpbuf.h"
#include "openvswitch/ofpbuf.h"
#include "ofp-msgs.h"
#include "ofp-util.h"
#include "openflow/openflow.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/ofp-prop.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include "ofp-prop.h"

#include "byte-order.h"
#include "ofpbuf.h"
#include "openvswitch/ofpbuf.h"
#include "openvswitch/ofp-errors.h"
#include "openvswitch/vlog.h"
#include "util.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/ofp-util.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
#include "ofp-msgs.h"
#include "ofp-prop.h"
#include "ofp-util.h"
#include "ofpbuf.h"
#include "openvswitch/ofpbuf.h"
#include "openflow/netronome-ext.h"
#include "packets.h"
#include "pktbuf.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/ofpbuf.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

#include <config.h>
#include "ofpbuf.h"
#include "openvswitch/ofpbuf.h"
#include <stdlib.h>
#include <string.h>
#include "openvswitch/dynamic-string.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/rconn.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include "coverage.h"
#include "ofp-msgs.h"
#include "ofp-util.h"
#include "ofpbuf.h"
#include "openvswitch/ofpbuf.h"
#include "openflow/openflow.h"
#include "poll-loop.h"
#include "sat-math.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/route-table.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#include "netlink.h"
#include "netlink-notifier.h"
#include "netlink-socket.h"
#include "ofpbuf.h"
#include "openvswitch/ofpbuf.h"
#include "ovs-router.h"
#include "packets.h"
#include "rtnetlink.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/rstp-state-machines.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
#include <sys/types.h>
#include "byte-order.h"
#include "connectivity.h"
#include "ofpbuf.h"
#include "openvswitch/ofpbuf.h"
#include "dp-packet.h"
#include "packets.h"
#include "seq.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/rstp.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
#include <sys/types.h>
#include "byte-order.h"
#include "connectivity.h"
#include "ofpbuf.h"
#include "openvswitch/ofpbuf.h"
#include "ofproto/ofproto.h"
#include "dp-packet.h"
#include "packets.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/rtnetlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

#include "netlink.h"
#include "netlink-notifier.h"
#include "ofpbuf.h"
#include "openvswitch/ofpbuf.h"
#include "packets.h"

static struct nln *nln = NULL;
Expand Down
2 changes: 1 addition & 1 deletion lib/stp.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include <stdlib.h>
#include "byte-order.h"
#include "connectivity.h"
#include "ofpbuf.h"
#include "openvswitch/ofpbuf.h"
#include "ovs-atomic.h"
#include "dp-packet.h"
#include "packets.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/stream-ssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
#include "coverage.h"
#include "openvswitch/dynamic-string.h"
#include "entropy.h"
#include "ofpbuf.h"
#include "openvswitch/ofpbuf.h"
#include "openflow/openflow.h"
#include "packets.h"
#include "poll-loop.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/stream.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#include "flow.h"
#include "jsonrpc.h"
#include "ofp-print.h"
#include "ofpbuf.h"
#include "openvswitch/ofpbuf.h"
#include "openflow/nicira-ext.h"
#include "openflow/openflow.h"
#include "ovs-thread.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/tnl-ports.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include "hash.h"
#include "openvswitch/list.h"
#include "netdev.h"
#include "ofpbuf.h"
#include "openvswitch/ofpbuf.h"
#include "ovs-thread.h"
#include "odp-util.h"
#include "ovs-thread.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/tun-metadata.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

#include "openvswitch/dynamic-string.h"
#include "netlink.h"
#include "ofpbuf.h"
#include "openvswitch/ofpbuf.h"
#include "openflow/openflow.h"
#include "openvswitch/geneve.h"

Expand Down
2 changes: 1 addition & 1 deletion lib/vconn-stream.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include <sys/types.h>
#include <unistd.h>
#include "fatal-signal.h"
#include "ofpbuf.h"
#include "openvswitch/ofpbuf.h"
#include "openflow/openflow.h"
#include "poll-loop.h"
#include "socket-util.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/vconn.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#include "ofp-msgs.h"
#include "ofp-print.h"
#include "ofp-util.h"
#include "ofpbuf.h"
#include "openvswitch/ofpbuf.h"
#include "openflow/nicira-ext.h"
#include "openflow/openflow.h"
#include "packets.h"
Expand Down
Loading

0 comments on commit 64c9677

Please sign in to comment.