summaryrefslogtreecommitdiff
path: root/ctdb/include/ctdb_client.h
diff options
context:
space:
mode:
authorAmitay Isaacs <amitay@gmail.com>2015-04-08 14:38:26 +1000
committerAmitay Isaacs <amitay@samba.org>2015-10-07 14:53:28 +0200
commit62f1e2579a6e97e7e33f68be779694d5eceb36c0 (patch)
treecb6a21c347278782934651395dad61d81135a4cd /ctdb/include/ctdb_client.h
parent6272ef0d09930ffbff43c6223ea35858d13efffa (diff)
downloadsamba-62f1e2579a6e97e7e33f68be779694d5eceb36c0.tar.gz
ctdb-daemon: Replace ctdb_message with srvid abstraction
Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
Diffstat (limited to 'ctdb/include/ctdb_client.h')
-rw-r--r--ctdb/include/ctdb_client.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/ctdb/include/ctdb_client.h b/ctdb/include/ctdb_client.h
index 528ea46a6ba..2f03b14d407 100644
--- a/ctdb/include/ctdb_client.h
+++ b/ctdb/include/ctdb_client.h
@@ -19,6 +19,8 @@
#ifndef _CTDB_CLIENT_H
#define _CTDB_CLIENT_H
+
+#include "common/srvid.h"
#include "ctdb_protocol.h"
enum control_state {CTDB_CONTROL_WAIT, CTDB_CONTROL_DONE, CTDB_CONTROL_ERROR, CTDB_CONTROL_TIMEOUT};
@@ -127,8 +129,8 @@ uint32_t ctdb_get_pnn(struct ctdb_context *ctdb);
typedef void (*ctdb_msg_fn_t)(struct ctdb_context *, uint64_t srvid,
TDB_DATA data, void *);
int ctdb_client_set_message_handler(struct ctdb_context *ctdb, uint64_t srvid,
- ctdb_msg_fn_t handler,
- void *private_data);
+ srvid_handler_fn handler,
+ void *private_data);
int ctdb_client_remove_message_handler(struct ctdb_context *ctdb,
uint64_t srvid, void *private_data);
int ctdb_client_check_message_handlers(struct ctdb_context *ctdb,
@@ -159,12 +161,6 @@ int ctdb_record_store(struct ctdb_record_handle *h, TDB_DATA data);
int ctdb_fetch(struct ctdb_db_context *ctdb_db, TALLOC_CTX *mem_ctx,
TDB_DATA key, TDB_DATA *data);
-int ctdb_register_message_handler(struct ctdb_context *ctdb,
- TALLOC_CTX *mem_ctx,
- uint64_t srvid,
- ctdb_msg_fn_t handler,
- void *private_data);
-
struct ctdb_db_context *find_ctdb_db(struct ctdb_context *ctdb, uint32_t id);