This makes "valgrind --leak-check=full --show-reachable=yes" output much
easier to read.
bond_init();
}
+void
+bridge_exit(void)
+{
+ struct bridge *br, *next_br;
+
+ LIST_FOR_EACH_SAFE (br, next_br, node, &all_bridges) {
+ bridge_destroy(br);
+ }
+ ovsdb_idl_destroy(idl);
+}
+
/* Performs configuration that is only necessary once at ovs-vswitchd startup,
* but for which the ovs-vswitchd configuration 'cfg' is required. */
static void
#ifndef VSWITCHD_BRIDGE_H
#define VSWITCHD_BRIDGE_H 1
-#include <stdbool.h>
-#include <stdint.h>
-
-struct svec;
-
void bridge_init(const char *remote);
+void bridge_exit(void);
+
void bridge_run(void);
void bridge_wait(void);
}
poll_block();
}
+ bridge_exit();
+ unixctl_server_destroy(unixctl);
return 0;
}