Skip to content

Commit

Permalink
Move lib/dynamic-string.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 19, 2016
1 parent e03c096 commit 3e8a2ad
Show file tree
Hide file tree
Showing 109 changed files with 113 additions and 114 deletions.
1 change: 1 addition & 0 deletions include/openvswitch/automake.mk
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
openvswitchincludedir = $(includedir)/openvswitch
openvswitchinclude_HEADERS = \
include/openvswitch/compiler.h \
include/openvswitch/dynamic-string.h \
include/openvswitch/geneve.h \
include/openvswitch/list.h \
include/openvswitch/ofp-errors.h \
Expand Down
7 changes: 3 additions & 4 deletions lib/dynamic-string.h → include/openvswitch/dynamic-string.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,15 @@
* limitations under the License.
*/

#ifndef DYNAMIC_STRING_H
#define DYNAMIC_STRING_H 1
#ifndef OPENVSWITCH_DYNAMIC_STRING_H
#define OPENVSWITCH_DYNAMIC_STRING_H 1

#include <stdarg.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
#include <time.h>
#include "compiler.h"
#include "openvswitch/compiler.h"

/* A "dynamic string", that is, a buffer that can be used to construct a
* string across a series of operations that extend or modify it.
Expand Down
1 change: 0 additions & 1 deletion lib/automake.mk
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ lib_libopenvswitch_la_SOURCES = \
lib/heap.c \
lib/heap.h \
lib/dynamic-string.c \
lib/dynamic-string.h \
lib/entropy.c \
lib/entropy.h \
lib/fat-rwlock.c \
Expand Down
2 changes: 1 addition & 1 deletion lib/backtrace.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#define BACKTRACE_H 1

#include <stdint.h>
#include "dynamic-string.h"
#include "openvswitch/dynamic-string.h"

/* log_backtrace() will save the backtrace of a running program
* into the log at the DEBUG level.
Expand Down
2 changes: 1 addition & 1 deletion lib/bfd.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#include "csum.h"
#include "dp-packet.h"
#include "dpif.h"
#include "dynamic-string.h"
#include "openvswitch/dynamic-string.h"
#include "flow.h"
#include "hash.h"
#include "hmap.h"
Expand Down
4 changes: 2 additions & 2 deletions lib/bundle.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright (c) 2011, 2012, 2013, 2014, 2015 Nicira, Inc.
/* Copyright (c) 2011, 2012, 2013, 2014, 2015, 2016 Nicira, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -21,7 +21,7 @@
#include <inttypes.h>

#include "colors.h"
#include "dynamic-string.h"
#include "openvswitch/dynamic-string.h"
#include "multipath.h"
#include "meta-flow.h"
#include "nx-match.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/cfm.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include "byte-order.h"
#include "connectivity.h"
#include "dp-packet.h"
#include "dynamic-string.h"
#include "openvswitch/dynamic-string.h"
#include "flow.h"
#include "hash.h"
#include "hmap.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/classifier.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include <errno.h>
#include <netinet/in.h>
#include "byte-order.h"
#include "dynamic-string.h"
#include "openvswitch/dynamic-string.h"
#include "odp-util.h"
#include "ofp-util.h"
#include "packets.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/command-line.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include <getopt.h>
#include <limits.h>
#include <stdlib.h>
#include "dynamic-string.h"
#include "openvswitch/dynamic-string.h"
#include "ovs-thread.h"
#include "util.h"
#include "openvswitch/vlog.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/coverage.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include "coverage.h"
#include <inttypes.h>
#include <stdlib.h>
#include "dynamic-string.h"
#include "openvswitch/dynamic-string.h"
#include "hash.h"
#include "svec.h"
#include "timeval.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/db-ctl-base.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include "command-line.h"
#include "compiler.h"
#include "dirs.h"
#include "dynamic-string.h"
#include "openvswitch/dynamic-string.h"
#include "fatal-signal.h"
#include "hash.h"
#include "json.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/db-ctl-base.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#define DB_CTL_BASE_H 1

#include "compiler.h"
#include "dynamic-string.h"
#include "openvswitch/dynamic-string.h"
#include "shash.h"

struct ctl_context;
Expand Down
2 changes: 1 addition & 1 deletion lib/dp-packet.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include <config.h>
#include <stdlib.h>
#include <string.h>
#include "dynamic-string.h"
#include "openvswitch/dynamic-string.h"
#include "netdev-dpdk.h"
#include "dp-packet.h"
#include "util.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/dpctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#include "dirs.h"
#include "dpctl.h"
#include "dpif.h"
#include "dynamic-string.h"
#include "openvswitch/dynamic-string.h"
#include "flow.h"
#include "match.h"
#include "netdev.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 @@ -39,7 +39,7 @@
#include "dpif.h"
#include "dpif-provider.h"
#include "dummy.h"
#include "dynamic-string.h"
#include "openvswitch/dynamic-string.h"
#include "fat-rwlock.h"
#include "flow.h"
#include "hmapx.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 @@ -34,7 +34,7 @@

#include "bitmap.h"
#include "dpif-provider.h"
#include "dynamic-string.h"
#include "openvswitch/dynamic-string.h"
#include "flow.h"
#include "fat-rwlock.h"
#include "netdev.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/dpif.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include "dpctl.h"
#include "dp-packet.h"
#include "dpif-netdev.h"
#include "dynamic-string.h"
#include "openvswitch/dynamic-string.h"
#include "flow.h"
#include "netdev.h"
#include "netlink.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/dynamic-string.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

#include <config.h>
#include "dynamic-string.h"
#include "openvswitch/dynamic-string.h"
#include <inttypes.h>
#include <stdlib.h>
#include <string.h>
Expand Down
2 changes: 1 addition & 1 deletion lib/flow.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#include "colors.h"
#include "coverage.h"
#include "csum.h"
#include "dynamic-string.h"
#include "openvswitch/dynamic-string.h"
#include "hash.h"
#include "jhash.h"
#include "match.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/json.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include <limits.h>
#include <string.h>

#include "dynamic-string.h"
#include "openvswitch/dynamic-string.h"
#include "hash.h"
#include "shash.h"
#include "unicode.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/jsonrpc.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include <errno.h>

#include "byteq.h"
#include "dynamic-string.h"
#include "openvswitch/dynamic-string.h"
#include "fatal-signal.h"
#include "json.h"
#include "list.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/lacp.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include <stdlib.h>

#include "connectivity.h"
#include "dynamic-string.h"
#include "openvswitch/dynamic-string.h"
#include "hash.h"
#include "hmap.h"
#include "dp-packet.h"
Expand Down
4 changes: 2 additions & 2 deletions lib/learn.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2011, 2012, 2013, 2014, 2015 Nicira, Inc.
* Copyright (c) 2011, 2012, 2013, 2014, 2015, 2016 Nicira, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -20,7 +20,7 @@

#include "byte-order.h"
#include "colors.h"
#include "dynamic-string.h"
#include "openvswitch/dynamic-string.h"
#include "match.h"
#include "meta-flow.h"
#include "nx-match.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/match.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include <stdlib.h>
#include "byte-order.h"
#include "colors.h"
#include "dynamic-string.h"
#include "openvswitch/dynamic-string.h"
#include "ofp-util.h"
#include "packets.h"
#include "tun-metadata.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include <stdbool.h>
#include <sys/time.h>
#include <sys/resource.h>
#include "dynamic-string.h"
#include "openvswitch/dynamic-string.h"
#include "poll-loop.h"
#include "simap.h"
#include "timeval.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/meta-flow.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include <netinet/ip6.h>

#include "classifier.h"
#include "dynamic-string.h"
#include "openvswitch/dynamic-string.h"
#include "nx-match.h"
#include "ofp-util.h"
#include "ovs-thread.h"
Expand Down
4 changes: 2 additions & 2 deletions lib/multipath.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2010, 2011, 2012, 2013, 2014 Nicira, Inc.
* Copyright (c) 2010, 2011, 2012, 2013, 2014, 2016 Nicira, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -22,7 +22,7 @@
#include <sys/types.h>
#include <netinet/in.h>
#include "colors.h"
#include "dynamic-string.h"
#include "openvswitch/dynamic-string.h"
#include "nx-match.h"
#include "ofp-actions.h"
#include "ofp-util.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/netdev-bsd.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
#include "coverage.h"
#include "dp-packet.h"
#include "dpif-netdev.h"
#include "dynamic-string.h"
#include "openvswitch/dynamic-string.h"
#include "fatal-signal.h"
#include "openflow/openflow.h"
#include "ovs-thread.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 @@ -22,7 +22,7 @@

#include "dp-packet.h"
#include "dpif-netdev.h"
#include "dynamic-string.h"
#include "openvswitch/dynamic-string.h"
#include "flow.h"
#include "list.h"
#include "netdev-provider.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 @@ -52,7 +52,7 @@
#include "dp-packet.h"
#include "dpif-netlink.h"
#include "dpif-netdev.h"
#include "dynamic-string.h"
#include "openvswitch/dynamic-string.h"
#include "fatal-signal.h"
#include "hash.h"
#include "hmap.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/netdev-vport.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#include "dirs.h"
#include "dpif.h"
#include "dp-packet.h"
#include "dynamic-string.h"
#include "openvswitch/dynamic-string.h"
#include "flow.h"
#include "hash.h"
#include "hmap.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/netdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include "coverage.h"
#include "dpif.h"
#include "dp-packet.h"
#include "dynamic-string.h"
#include "openvswitch/dynamic-string.h"
#include "fatal-signal.h"
#include "hash.h"
#include "list.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 @@ -27,7 +27,7 @@

#include "byte-order.h"
#include "compiler.h"
#include "dynamic-string.h"
#include "openvswitch/dynamic-string.h"
#include "netlink.h"
#include "netlink-socket.h"
#include "ofpbuf.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 @@ -20,7 +20,7 @@
#include "byte-order.h"
#include "compiler.h"
#include "ct-dpif.h"
#include "dynamic-string.h"
#include "openvswitch/dynamic-string.h"
#include "hmap.h"
#include "ofpbuf.h"
#include "timeval.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/netlink-socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include <sys/uio.h>
#include <unistd.h>
#include "coverage.h"
#include "dynamic-string.h"
#include "openvswitch/dynamic-string.h"
#include "hash.h"
#include "hmap.h"
#include "netlink.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 @@ -22,7 +22,7 @@

#include "classifier.h"
#include "colors.h"
#include "dynamic-string.h"
#include "openvswitch/dynamic-string.h"
#include "hmap.h"
#include "meta-flow.h"
#include "ofp-actions.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 @@ -29,7 +29,7 @@
#include "byte-order.h"
#include "coverage.h"
#include "dpif.h"
#include "dynamic-string.h"
#include "openvswitch/dynamic-string.h"
#include "flow.h"
#include "netlink.h"
#include "ofpbuf.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 @@ -23,7 +23,7 @@
#include "colors.h"
#include "compiler.h"
#include "dummy.h"
#include "dynamic-string.h"
#include "openvswitch/dynamic-string.h"
#include "hmap.h"
#include "learn.h"
#include "meta-flow.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 @@ -17,7 +17,7 @@
#include <config.h>
#include <errno.h>
#include "byte-order.h"
#include "dynamic-string.h"
#include "openvswitch/dynamic-string.h"
#include "ofp-msgs.h"
#include "ofp-util.h"
#include "ofpbuf.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 @@ -17,7 +17,7 @@
#include <config.h>
#include "ofp-msgs.h"
#include "byte-order.h"
#include "dynamic-string.h"
#include "openvswitch/dynamic-string.h"
#include "hash.h"
#include "hmap.h"
#include "ofpbuf.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 @@ -24,7 +24,7 @@
#include <netinet/in.h>

#include "byte-order.h"
#include "dynamic-string.h"
#include "openvswitch/dynamic-string.h"
#include "learn.h"
#include "meta-flow.h"
#include "multipath.h"
Expand Down
Loading

0 comments on commit 3e8a2ad

Please sign in to comment.