summaryrefslogtreecommitdiffstats
path: root/ctdb/include
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2007-04-26 19:27:07 +0200
committerAndrew Tridgell <tridge@samba.org>2007-04-26 19:27:07 +0200
commitafa08763355ba4bf79a72fb66e4a65d17d8a502e (patch)
treee1a737648f4c55220bcfb41e7a0c92e816f2f982 /ctdb/include
parentfc43701cbbc0f356dc70cba8233763e7c35d1b99 (diff)
added a ctdb_get_config call
added a ctdb ping control (This used to be ctdb commit 7d17378b6e6076a922cffe98239e20dfbbae3bf7)
Diffstat (limited to 'ctdb/include')
-rw-r--r--ctdb/include/ctdb.h4
-rw-r--r--ctdb/include/ctdb_private.h6
2 files changed, 9 insertions, 1 deletions
diff --git a/ctdb/include/ctdb.h b/ctdb/include/ctdb.h
index 2a96229549..3273d4c9fe 100644
--- a/ctdb/include/ctdb.h
+++ b/ctdb/include/ctdb.h
@@ -219,4 +219,8 @@ int ctdb_getdbpath(struct ctdb_db_context *ctdb_db, TDB_DATA *path);
int ctdb_process_exists(struct ctdb_context *ctdb, uint32_t destnode, pid_t pid);
+int ctdb_ping(struct ctdb_context *ctdb, uint32_t destnode);
+
+int ctdb_get_config(struct ctdb_context *ctdb);
+
#endif
diff --git a/ctdb/include/ctdb_private.h b/ctdb/include/ctdb_private.h
index 88aa209d9a..048b5d7dc2 100644
--- a/ctdb/include/ctdb_private.h
+++ b/ctdb/include/ctdb_private.h
@@ -31,6 +31,7 @@
#define CTDB_NULL_FUNC 0xf0000001
+#define CTDB_CURRENT_NODE 0xF0000001
/*
an installed ctdb remote call
@@ -228,7 +229,10 @@ struct ctdb_ltdb_header {
uint32_t lacount;
};
-enum {CTDB_CONTROL_PROCESS_EXISTS, CTDB_CONTROL_STATUS};
+enum ctdb_controls {CTDB_CONTROL_PROCESS_EXISTS,
+ CTDB_CONTROL_STATUS,
+ CTDB_CONTROL_CONFIG,
+ CTDB_CONTROL_PING};
enum call_state {CTDB_CALL_WAIT, CTDB_CALL_DONE, CTDB_CALL_ERROR};