diff options
Diffstat (limited to 'ctdb/include')
| -rw-r--r-- | ctdb/include/ctdb.h | 6 | ||||
| -rw-r--r-- | ctdb/include/ctdb_private.h | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/ctdb/include/ctdb.h b/ctdb/include/ctdb.h index b3a65a36ab..a2245d220b 100644 --- a/ctdb/include/ctdb.h +++ b/ctdb/include/ctdb.h @@ -160,6 +160,12 @@ int ctdb_set_socketname(struct ctdb_context *ctdb, const char *socketname); int ctdb_set_nlist(struct ctdb_context *ctdb, const char *nlist); /* + Check that a specific ip address exists in the node list and returns + the id for the node or -1 +*/ +int ctdb_ip_to_nodeid(struct ctdb_context *ctdb, const char *nodeip); + +/* start the ctdb protocol */ int ctdb_start(struct ctdb_context *ctdb); diff --git a/ctdb/include/ctdb_private.h b/ctdb/include/ctdb_private.h index cb76bb0074..10abafa1d9 100644 --- a/ctdb/include/ctdb_private.h +++ b/ctdb/include/ctdb_private.h @@ -367,6 +367,7 @@ struct ctdb_context { const char *default_public_interface; pid_t recoverd_pid; bool done_startup; + const char *node_ip; }; struct ctdb_db_context { |
