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:28:11 +0000 (14:28 +1000)
commit28673ee5551b487ee4519b8ed0774f8ce8b8d24d
tree56459f30b7568a62a2cd0e8ba078440d15ecf662
parenta2dbe30a8a01816d1aaec056cb83abe8cec02f4b
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