From: Rusty Russell Date: Fri, 4 Jun 2010 10:52:03 +0000 (+0930) Subject: libctdb: use values from ctdb_protocol.h, don't re-declare X-Git-Tag: ctdb-1.9.1~32 X-Git-Url: http://git.samba.org/?p=rusty%2Fctdb.git;a=commitdiff_plain;h=cdc19dc73032470d57f38bf825d8113b3a0c8cd1 libctdb: use values from ctdb_protocol.h, don't re-declare We're best off including ctdb_protocol.h to get these, even if we document the important ones in ctdb.h. Signed-off-by: Rusty Russell --- diff --git a/include/ctdb.h b/include/ctdb.h index 8aede087..73b7bd82 100644 --- a/include/ctdb.h +++ b/include/ctdb.h @@ -26,6 +26,7 @@ #include #include #include +#include /* The type of the first arg should match the arg given to ctdb_connect() */ typedef void (*ctdb_log_fn_t)(void *log_priv, @@ -65,18 +66,6 @@ void ctdb_request_free(struct ctdb_connection *ctdb, struct ctdb_request *req); typedef void (*ctdb_callback_t)(struct ctdb_connection *ctdb, struct ctdb_request *req, void *private); -/* - * Special node addresses : - */ -/* used on the domain socket, send a pdu to the local daemon */ -#define CTDB_CURRENT_NODE 0xF0000001 -/* send a broadcast to all nodes in the cluster, active or not */ -#define CTDB_BROADCAST_ALL 0xF0000002 -/* send a broadcast to all nodes in the current vnn map */ -#define CTDB_BROADCAST_VNNMAP 0xF0000003 -/* send a broadcast to all connected nodes */ -#define CTDB_BROADCAST_CONNECTED 0xF0000004 - /* * functions to attach to a database