Skip to content

Commit

Permalink
list: Remove lib/list.h completely.
Browse files Browse the repository at this point in the history
All code is now in include/openvswitch/list.h.

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 9834a60 commit b19bab5
Show file tree
Hide file tree
Showing 54 changed files with 53 additions and 77 deletions.
1 change: 0 additions & 1 deletion lib/automake.mk
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ lib_libopenvswitch_la_SOURCES = \
lib/learn.h \
lib/learning-switch.c \
lib/learning-switch.h \
lib/list.h \
lib/lockfile.c \
lib/lockfile.h \
lib/mac-learning.c \
Expand Down
2 changes: 1 addition & 1 deletion lib/bfd.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#include "flow.h"
#include "hash.h"
#include "hmap.h"
#include "list.h"
#include "openvswitch/list.h"
#include "netdev.h"
#include "odp-util.h"
#include "ofpbuf.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/dp-packet.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

#include <stddef.h>
#include <stdint.h>
#include "list.h"
#include "openvswitch/list.h"
#include "packets.h"
#include "util.h"
#include "netdev-dpdk.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 @@ -44,7 +44,7 @@
#include "flow.h"
#include "hmapx.h"
#include "latch.h"
#include "list.h"
#include "openvswitch/list.h"
#include "match.h"
#include "netdev.h"
#include "netdev-dpdk.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/fat-rwlock.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include <errno.h>

#include "hmap.h"
#include "list.h"
#include "openvswitch/list.h"
#include "ovs-thread.h"
#include "random.h"

Expand Down
2 changes: 1 addition & 1 deletion lib/fat-rwlock.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#define FAT_RWLOCK_H 1

#include "compiler.h"
#include "list.h"
#include "openvswitch/list.h"
#include "ovs-thread.h"

/* "Fat rwlock".
Expand Down
2 changes: 1 addition & 1 deletion lib/guarded-list.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

#include <stddef.h>
#include "compiler.h"
#include "list.h"
#include "openvswitch/list.h"
#include "ovs-thread.h"

struct guarded_list {
Expand Down
2 changes: 1 addition & 1 deletion lib/jsonrpc.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include "openvswitch/dynamic-string.h"
#include "fatal-signal.h"
#include "json.h"
#include "list.h"
#include "openvswitch/list.h"
#include "ofpbuf.h"
#include "ovs-thread.h"
#include "poll-loop.h"
Expand Down
23 changes: 0 additions & 23 deletions lib/list.h

This file was deleted.

2 changes: 1 addition & 1 deletion lib/lldp/aa-structs.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#define AA_STRUCTS_H

#include <stdint.h>
#include "list.h"
#include "openvswitch/list.h"

struct lldp_aa_element_system_id {
struct eth_addr system_mac;
Expand Down
2 changes: 1 addition & 1 deletion lib/lldp/lldpd.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
#include <sys/utsname.h>
#endif
#include "compiler.h"
#include "list.h"
#include "openvswitch/list.h"
#include "packets.h"
#include "timeval.h"

Expand Down
2 changes: 1 addition & 1 deletion lib/lldp/lldpd.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include <string.h>
#include <sys/types.h>
#include "dp-packet.h"
#include "list.h"
#include "openvswitch/list.h"
#include "lldpd-structs.h"
#include "lldp-tlv.h"
#include "packets.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/mac-learning.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include "bitmap.h"
#include "coverage.h"
#include "hash.h"
#include "list.h"
#include "openvswitch/list.h"
#include "poll-loop.h"
#include "timeval.h"
#include "unaligned.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/mac-learning.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include <time.h>
#include "heap.h"
#include "hmap.h"
#include "list.h"
#include "openvswitch/list.h"
#include "ovs-atomic.h"
#include "ovs-thread.h"
#include "packets.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/mcast-snooping.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#include "byte-order.h"
#include "coverage.h"
#include "hash.h"
#include "list.h"
#include "openvswitch/list.h"
#include "poll-loop.h"
#include "timeval.h"
#include "entropy.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/mcast-snooping.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include <time.h>
#include "dp-packet.h"
#include "hmap.h"
#include "list.h"
#include "openvswitch/list.h"
#include "ovs-atomic.h"
#include "ovs-thread.h"
#include "packets.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/netdev-dpdk.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#include "dp-packet.h"
#include "dpif-netdev.h"
#include "fatal-signal.h"
#include "list.h"
#include "openvswitch/list.h"
#include "netdev-dpdk.h"
#include "netdev-provider.h"
#include "netdev-vport.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 @@ -24,7 +24,7 @@
#include "dpif-netdev.h"
#include "openvswitch/dynamic-string.h"
#include "flow.h"
#include "list.h"
#include "openvswitch/list.h"
#include "netdev-provider.h"
#include "netdev-vport.h"
#include "odp-util.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/netdev-provider.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

#include "connectivity.h"
#include "netdev.h"
#include "list.h"
#include "openvswitch/list.h"
#include "ovs-numa.h"
#include "packets.h"
#include "seq.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 @@ -36,7 +36,7 @@
#include "flow.h"
#include "hash.h"
#include "hmap.h"
#include "list.h"
#include "openvswitch/list.h"
#include "netdev-provider.h"
#include "odp-netlink.h"
#include "dp-packet.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/netdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
#include "openvswitch/dynamic-string.h"
#include "fatal-signal.h"
#include "hash.h"
#include "list.h"
#include "openvswitch/list.h"
#include "netdev-dpdk.h"
#include "netdev-provider.h"
#include "netdev-vport.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/netlink-notifier.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
/* These functions are Linux specific, so they should be used directly only by
* Linux-specific code. */

#include "list.h"
#include "openvswitch/list.h"

struct nln;
struct nln_notifier;
Expand Down
2 changes: 1 addition & 1 deletion lib/ofp-util.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include "bitmap.h"
#include "compiler.h"
#include "flow.h"
#include "list.h"
#include "openvswitch/list.h"
#include "match.h"
#include "meta-flow.h"
#include "netdev.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/ofpbuf.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

#include <stddef.h>
#include <stdint.h>
#include "list.h"
#include "openvswitch/list.h"
#include "util.h"

struct ds;
Expand Down
2 changes: 1 addition & 1 deletion lib/ovs-lldp.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
#include <sys/types.h>
#include "openvswitch/dynamic-string.h"
#include "flow.h"
#include "list.h"
#include "openvswitch/list.h"
#include "lldp/lldpd.h"
#include "lldp/lldpd-structs.h"
#include "netdev.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/ovs-lldp.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include <stdint.h>
#include "dp-packet.h"
#include "hmap.h"
#include "list.h"
#include "openvswitch/list.h"
#include "lldp/lldpd.h"
#include "ovs-atomic.h"
#include "packets.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/ovs-numa.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

#include "hash.h"
#include "hmap.h"
#include "list.h"
#include "openvswitch/list.h"
#include "ovs-thread.h"
#include "openvswitch/vlog.h"

Expand Down
2 changes: 1 addition & 1 deletion lib/ovs-numa.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include <stdbool.h>

#include "compiler.h"
#include "list.h"
#include "openvswitch/list.h"

#define OVS_CORE_UNSPEC INT_MAX
#define OVS_NUMA_UNSPEC INT_MAX
Expand Down
2 changes: 1 addition & 1 deletion lib/ovs-rcu.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include "ovs-rcu.h"
#include "fatal-signal.h"
#include "guarded-list.h"
#include "list.h"
#include "openvswitch/list.h"
#include "ovs-thread.h"
#include "poll-loop.h"
#include "seq.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/ovs-thread.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#include "compiler.h"
#include "fatal-signal.h"
#include "hash.h"
#include "list.h"
#include "openvswitch/list.h"
#include "netdev-dpdk.h"
#include "ovs-rcu.h"
#include "poll-loop.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/ovsdb-idl-provider.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#define OVSDB_IDL_PROVIDER_H 1

#include "hmap.h"
#include "list.h"
#include "openvswitch/list.h"
#include "ovsdb-idl.h"
#include "ovsdb-types.h"
#include "shash.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/poll-loop.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include "coverage.h"
#include "openvswitch/dynamic-string.h"
#include "fatal-signal.h"
#include "list.h"
#include "openvswitch/list.h"
#include "ovs-thread.h"
#include "seq.h"
#include "socket-util.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#include "coverage.h"
#include "openvswitch/dynamic-string.h"
#include "fatal-signal.h"
#include "list.h"
#include "openvswitch/list.h"
#include "ovs-thread.h"
#include "poll-loop.h"
#include "signals.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/rstp-common.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#include <stdbool.h>
#include <stdint.h>
#include "hmap.h"
#include "list.h"
#include "openvswitch/list.h"
#include "ovs-atomic.h"
#include "packets.h"

Expand Down
2 changes: 1 addition & 1 deletion lib/rtbsd.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#define RTBSD_H 1

#include <net/if.h>
#include "list.h"
#include "openvswitch/list.h"

/*
* A digested version of a message received from a PF_ROUTE socket which
Expand Down
2 changes: 1 addition & 1 deletion lib/seq.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include "hash.h"
#include "hmap.h"
#include "latch.h"
#include "list.h"
#include "openvswitch/list.h"
#include "ovs-thread.h"
#include "poll-loop.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 @@ -25,7 +25,7 @@
#include "classifier.h"
#include "openvswitch/dynamic-string.h"
#include "hash.h"
#include "list.h"
#include "openvswitch/list.h"
#include "netdev.h"
#include "ofpbuf.h"
#include "ovs-thread.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/unixctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include "openvswitch/dynamic-string.h"
#include "json.h"
#include "jsonrpc.h"
#include "list.h"
#include "openvswitch/list.h"
#include "poll-loop.h"
#include "shash.h"
#include "stream.h"
Expand Down
2 changes: 1 addition & 1 deletion ofproto/bond.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
#include "flow.h"
#include "hmap.h"
#include "lacp.h"
#include "list.h"
#include "openvswitch/list.h"
#include "netdev.h"
#include "odp-util.h"
#include "ofpbuf.h"
Expand Down
2 changes: 1 addition & 1 deletion ofproto/connmgr.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

#include "classifier.h"
#include "hmap.h"
#include "list.h"
#include "openvswitch/list.h"
#include "match.h"
#include "ofp-util.h"
#include "ofproto.h"
Expand Down
2 changes: 1 addition & 1 deletion ofproto/ofproto-dpif-ipfix.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include "flow.h"
#include "hash.h"
#include "hmap.h"
#include "list.h"
#include "openvswitch/list.h"
#include "ofpbuf.h"
#include "ofproto.h"
#include "ofproto-dpif.h"
Expand Down
2 changes: 1 addition & 1 deletion ofproto/ofproto-dpif-rid.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include <stdint.h>

#include "cmap.h"
#include "list.h"
#include "openvswitch/list.h"
#include "ofp-actions.h"
#include "ofproto-dpif-mirror.h"
#include "ovs-thread.h"
Expand Down
Loading

0 comments on commit b19bab5

Please sign in to comment.