diff options
author | Andrew Tridgell <tridge@samba.org> | 2007-02-09 01:52:13 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:44:55 -0500 |
commit | 8de4c33d8f089f2f47817278f8781f194da898d0 (patch) | |
tree | 9072b0efe72d2a17ec4b86cab9969c338419227a /source4/cluster/ctdb/include | |
parent | 728ff99fe3b06794937f5398bb2512f0b03e7186 (diff) | |
download | samba-8de4c33d8f089f2f47817278f8781f194da898d0.tar.gz samba-8de4c33d8f089f2f47817278f8781f194da898d0.tar.bz2 samba-8de4c33d8f089f2f47817278f8781f194da898d0.zip |
r21256: - msg_type is not needed in the cluster messaging API
- merge ctdb_get_num_nodes() from bzr tree
(This used to be commit 3df7527aedeba7ce2f4a6ca2d3b7167f58c6b68a)
Diffstat (limited to 'source4/cluster/ctdb/include')
-rw-r--r-- | source4/cluster/ctdb/include/ctdb.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source4/cluster/ctdb/include/ctdb.h b/source4/cluster/ctdb/include/ctdb.h index 335af83215..efb12c5daa 100644 --- a/source4/cluster/ctdb/include/ctdb.h +++ b/source4/cluster/ctdb/include/ctdb.h @@ -127,6 +127,11 @@ void ctdb_wait_loop(struct ctdb_context *ctdb); /* return vnn of this node */ uint32_t ctdb_get_vnn(struct ctdb_context *ctdb); +/* + return the number of nodes +*/ +uint32_t ctdb_get_num_nodes(struct ctdb_context *ctdb); + /* setup a handler for ctdb messages */ typedef void (*ctdb_message_fn_t)(struct ctdb_context *, uint32_t srvid, TDB_DATA data, void *); @@ -135,6 +140,6 @@ int ctdb_set_message_handler(struct ctdb_context *ctdb, ctdb_message_fn_t handle /* send a ctdb message */ int ctdb_send_message(struct ctdb_context *ctdb, uint32_t vnn, - uint32_t srvid, uint32_t msg_type, TDB_DATA data); + uint32_t srvid, TDB_DATA data); #endif |