Implement a new function GETNODEMAP in libctdb.
authorRonnie Sahlberg <ronniesahlberg@gmail.com>
Mon, 13 Sep 2010 04:28:11 +0000 (14:28 +1000)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Mon, 13 Sep 2010 04:32:11 +0000 (14:32 +1000)
commit31c10eb2b337fd7d8a97a1f9e69b0e7570fec71d
treeeb24219007a10681525d46628b4d813ecc64897a
parente07fdbaf12bbe84370bc47a1979fe198a06a6cc8
Implement a new function GETNODEMAP in libctdb.
This function returns a pointer to a nodemap structure.

The returned structure must later be freed by calling ctdb_free_nodemap().

Move the definition of ctdb_sock_addr from ctdb_client.h to ctdb_protocol.h

Move the definition of the node flags, ctdb_node_and_flags and ctdb_node_map from ctdb_private.h to ctdb_protocol.h

Add both sync and async example for ctdb_getnodemap to the test application libctdb/tst.c
include/ctdb.h
include/ctdb_client.h
include/ctdb_private.h
include/ctdb_protocol.h
libctdb/control.c
libctdb/io_elem.c
libctdb/sync.c
libctdb/tst.c