1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

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 <rusty@rustcorp.com.au>


(This used to be ctdb commit cdc19dc73032470d57f38bf825d8113b3a0c8cd1)
This commit is contained in:
Rusty Russell 2010-06-04 20:22:03 +09:30
parent 3a569c14bc
commit c5b4768816

View File

@ -26,6 +26,7 @@
#include <stdarg.h>
#include <stdio.h>
#include <tdb.h>
#include <ctdb_protocol.h>
/* 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