summaryrefslogtreecommitdiff
path: root/ovsdb/replication.h
diff options
context:
space:
mode:
Diffstat (limited to 'ovsdb/replication.h')
-rw-r--r--ovsdb/replication.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/ovsdb/replication.h b/ovsdb/replication.h
index d80afb2fa..cc791997e 100644
--- a/ovsdb/replication.h
+++ b/ovsdb/replication.h
@@ -18,6 +18,7 @@
#ifndef REPLICATION_H
#define REPLICATION_H 1
+#include <stdbool.h>
#include "openvswitch/shash.h"
struct db {
@@ -30,16 +31,20 @@ struct db {
struct ovsdb_txn *txn;
};
+/* Functions to be called from the main loop. */
void replication_init(void);
void replication_run(struct shash *dbs);
void replication_wait(void);
+void replication_destroy(void);
+void replication_usage(void);
+
+/* Unixctl APIs */
void set_active_ovsdb_server(const char *remote_server);
const char *get_active_ovsdb_server(void);
-void set_tables_blacklist(const char *blacklist);
-struct sset get_tables_blacklist(void);
+char *set_blacklist_tables(const char *blacklist, bool dryrun)
+ OVS_WARN_UNUSED_RESULT;
+char *get_blacklist_tables(void) OVS_WARN_UNUSED_RESULT;
void disconnect_active_server(void);
-void destroy_active_server(void);
const struct db *find_db(const struct shash *all_dbs, const char *db_name);
-void replication_usage(void);
#endif /* ovsdb/replication.h */