This series exposes the vlog and vconn API plus all required dependencies. The vconn is only partially usable at this point because ofpbuf cannot be exposed in its current state. A next series will start refactoring of ofpbuf.
Thomas Graf (10): lib: Move compiler.h to <openvswitch/compiler.h> lib: Expose SOURCE_LOCATOR as OVS_SOURCE_LOACATOR lib: Expose ovs_mutex and ovsthread_once in <openvswitch/thread.h> lib: Move token-bucket.h to <openvswitch/token-bucket.h> lib: Expose SAT_MUT as OVS_SAT_MUL in <openvswitch/util.h> list: Rename struct list to struct ovs_list lib: Expose struct ovs_list definition in <openvswitch/list.h> lib: Move vlog.h to <openvswitch/vlog.h> lib: Move vconn.h to <openvswitch/vconn.h> lib: Add test for library usage CodingStyle.md | 2 +- include/openvswitch/automake.mk | 8 +- include/openvswitch/compiler.h | 224 ++++++++++++++++++++++++++++ include/openvswitch/list.h | 27 ++++ include/openvswitch/thread.h | 137 +++++++++++++++++ include/openvswitch/token-bucket.h | 42 ++++++ include/openvswitch/util.h | 14 ++ include/openvswitch/vconn.h | 113 ++++++++++++++ include/openvswitch/vlog.h | 296 +++++++++++++++++++++++++++++++++++++ lib/automake.mk | 3 - lib/backtrace.c | 2 +- lib/backtrace.h | 4 +- lib/bfd.c | 2 +- lib/bundle.c | 8 +- lib/bundle.h | 4 +- lib/cfm.c | 2 +- lib/classifier.c | 2 +- lib/command-line.c | 2 +- lib/command-line.h | 2 +- lib/compiler.h | 200 +------------------------ lib/coverage.c | 2 +- lib/daemon-unix.c | 2 +- lib/daemon-windows.c | 2 +- lib/daemon.c | 4 +- lib/dpif-netdev.c | 2 +- lib/dpif-netlink.c | 2 +- lib/dpif.c | 2 +- lib/dynamic-string.h | 4 +- lib/entropy.c | 4 +- lib/fat-rwlock.c | 2 +- lib/fat-rwlock.h | 2 +- lib/fatal-signal.c | 2 +- lib/getopt_long.c | 2 +- lib/getrusage-windows.c | 2 +- lib/guarded-list.c | 8 +- lib/guarded-list.h | 8 +- lib/hmap.c | 2 +- lib/hmap.h | 8 +- lib/json.c | 2 +- lib/jsonrpc.c | 4 +- lib/lacp.c | 8 +- lib/latch.h | 2 +- lib/learn.c | 8 +- lib/learn.h | 2 +- lib/learning-switch.c | 4 +- lib/list.h | 103 ++++++------- lib/lockfile.c | 2 +- lib/mac-learning.c | 2 +- lib/mac-learning.h | 4 +- lib/mcast-snooping.c | 10 +- lib/mcast-snooping.h | 16 +- lib/memory.c | 2 +- lib/meta-flow.c | 2 +- lib/multipath.c | 4 +- lib/multipath.h | 2 +- lib/netdev-bsd.c | 2 +- lib/netdev-dpdk.c | 14 +- lib/netdev-dummy.c | 14 +- lib/netdev-linux.c | 2 +- lib/netdev-provider.h | 2 +- lib/netdev-vport.c | 2 +- lib/netdev-windows.c | 2 +- lib/netdev.c | 4 +- lib/netlink-notifier.c | 6 +- lib/netlink-socket.c | 2 +- lib/netlink.c | 2 +- lib/nx-match.c | 14 +- lib/nx-match.h | 8 +- lib/odp-util.c | 2 +- lib/ofp-actions.c | 120 +++++++-------- lib/ofp-actions.h | 4 +- lib/ofp-errors.c | 2 +- lib/ofp-msgs.c | 14 +- lib/ofp-msgs.h | 16 +- lib/ofp-parse.c | 46 +++--- lib/ofp-parse.h | 32 ++-- lib/ofp-print.c | 4 +- lib/ofp-util.c | 54 +++---- lib/ofp-util.h | 45 +++--- lib/ofpbuf.c | 2 +- lib/ofpbuf.h | 8 +- lib/ovs-numa.c | 6 +- lib/ovs-rcu.c | 10 +- lib/ovs-thread.c | 13 +- lib/ovs-thread.h | 124 +--------------- lib/ovsdb-data.c | 4 +- lib/ovsdb-data.h | 16 +- lib/ovsdb-error.c | 2 +- lib/ovsdb-error.h | 20 +-- lib/ovsdb-idl-provider.h | 4 +- lib/ovsdb-idl.c | 6 +- lib/ovsdb-idl.h | 2 +- lib/ovsdb-parser.h | 6 +- lib/ovsdb-types.h | 4 +- lib/pcap-file.c | 2 +- lib/poll-loop.c | 2 +- lib/poll-loop.h | 10 +- lib/process.c | 6 +- lib/rconn.c | 6 +- lib/rculist.h | 7 +- lib/reconnect.c | 2 +- lib/route-table.c | 2 +- lib/rstp-common.h | 2 +- lib/rstp-state-machines.c | 2 +- lib/rstp.c | 6 +- lib/rtbsd.c | 4 +- lib/rtbsd.h | 2 +- lib/sat-math.h | 8 +- lib/seq.c | 6 +- lib/seq.h | 4 +- lib/signals.c | 2 +- lib/smap.h | 2 +- lib/socket-util-unix.c | 2 +- lib/socket-util.c | 2 +- lib/stp.c | 9 +- lib/stream-fd.c | 2 +- lib/stream-nossl.c | 4 +- lib/stream-ssl.c | 2 +- lib/stream-tcp.c | 2 +- lib/stream-unix.c | 2 +- lib/stream.c | 2 +- lib/svec.c | 2 +- lib/table.h | 2 +- lib/timer.h | 2 +- lib/timeval.c | 2 +- lib/tnl-arp-cache.c | 2 +- lib/token-bucket.c | 2 +- lib/token-bucket.h | 42 ------ lib/unicode.h | 2 +- lib/unixctl.c | 6 +- lib/util.c | 2 +- lib/util.h | 42 +++--- lib/vconn-provider.h | 28 +--- lib/vconn-stream.c | 4 +- lib/vconn.c | 4 +- lib/vconn.h | 91 ------------ lib/vlandev.c | 2 +- lib/vlog.c | 11 +- lib/vlog.h | 296 ------------------------------------- ofproto/bond.c | 24 +-- ofproto/bundles.c | 8 +- ofproto/collectors.c | 2 +- ofproto/connmgr.c | 24 +-- ofproto/connmgr.h | 6 +- ofproto/fail-open.c | 4 +- ofproto/in-band.c | 2 +- ofproto/netflow.c | 2 +- ofproto/ofproto-dpif-ipfix.c | 6 +- ofproto/ofproto-dpif-mirror.c | 2 +- ofproto/ofproto-dpif-monitor.c | 4 +- ofproto/ofproto-dpif-sflow.c | 2 +- ofproto/ofproto-dpif-upcall.c | 6 +- ofproto/ofproto-dpif-xlate.c | 16 +- ofproto/ofproto-dpif.c | 26 ++-- ofproto/ofproto-dpif.h | 2 +- ofproto/ofproto-provider.h | 8 +- ofproto/ofproto.c | 58 ++++---- ofproto/pinsched.c | 12 +- ofproto/pinsched.h | 6 +- ofproto/pktbuf.c | 4 +- ofproto/tunnel.c | 2 +- ovsdb/column.h | 2 +- ovsdb/condition.c | 2 +- ovsdb/condition.h | 4 +- ovsdb/execution.c | 2 +- ovsdb/file.c | 2 +- ovsdb/file.h | 8 +- ovsdb/jsonrpc-server.c | 8 +- ovsdb/log.h | 8 +- ovsdb/mutation.c | 4 +- ovsdb/mutation.h | 6 +- ovsdb/ovsdb-client.c | 4 +- ovsdb/ovsdb-server.c | 10 +- ovsdb/ovsdb-tool.c | 4 +- ovsdb/ovsdb.c | 2 +- ovsdb/ovsdb.h | 10 +- ovsdb/row.h | 10 +- ovsdb/server.h | 6 +- ovsdb/table.h | 2 +- ovsdb/transaction.c | 36 ++--- ovsdb/transaction.h | 2 +- ovsdb/trigger.h | 2 +- tests/.gitignore | 1 + tests/automake.mk | 6 + tests/lib.at | 9 ++ tests/library.at | 4 + tests/test-flows.c | 2 +- tests/test-jsonrpc.c | 4 +- tests/test-lib.c | 94 ++++++++++++ tests/test-list.c | 12 +- tests/test-lockfile.c | 2 +- tests/test-netflow.c | 4 +- tests/test-odp.c | 2 +- tests/test-ovsdb.c | 4 +- tests/test-reconnect.c | 2 +- tests/test-rstp.c | 8 +- tests/test-sflow.c | 4 +- tests/test-stp.c | 8 +- tests/test-util.c | 2 +- tests/test-vconn.c | 4 +- utilities/nlmon.c | 2 +- utilities/ovs-appctl.c | 2 +- utilities/ovs-benchmark.c | 2 +- utilities/ovs-dpctl.c | 4 +- utilities/ovs-ofctl.c | 16 +- utilities/ovs-testcontroller.c | 6 +- utilities/ovs-vsctl.c | 20 +-- vswitchd/bridge.c | 6 +- vswitchd/ovs-vswitchd.c | 6 +- vswitchd/system-stats.c | 4 +- vswitchd/xenserver.c | 3 +- vtep/vtep-ctl.c | 22 +-- 212 files changed, 1721 insertions(+), 1519 deletions(-) create mode 100644 include/openvswitch/compiler.h create mode 100644 include/openvswitch/list.h create mode 100644 include/openvswitch/thread.h create mode 100644 include/openvswitch/token-bucket.h create mode 100644 include/openvswitch/vconn.h create mode 100644 include/openvswitch/vlog.h delete mode 100644 lib/token-bucket.h delete mode 100644 lib/vconn.h delete mode 100644 lib/vlog.h create mode 100644 tests/lib.at create mode 100644 tests/test-lib.c -- 1.9.3 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev