libctdb: use values from ctdb_protocol.h, don't re-declare
authorRusty Russell <rusty@rustcorp.com.au>
Fri, 4 Jun 2010 10:52:03 +0000 (20:22 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Fri, 4 Jun 2010 10:52:03 +0000 (20:22 +0930)
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>
include/ctdb.h

index 8aede08730bb4a76430d3e548575a8640fce2fde..73b7bd82663c934bceca4a5f1db9c1dfd59c3782 100644 (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