summaryrefslogtreecommitdiffstats
path: root/ctdb/libctdb/io_elem.c
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronniesahlberg@gmail.com>2010-09-13 14:28:11 +1000
committerRonnie Sahlberg <ronniesahlberg@gmail.com>2010-09-13 14:32:11 +1000
commita2c874bd61858fcd8002a0e9ab148eb350740b15 (patch)
treed16e8cfe380705cc720e8813cea56f922cabde31 /ctdb/libctdb/io_elem.c
parent19211f99c8b6b0c6ad562871b4e21091b951934c (diff)
downloadsamba-a2c874bd61858fcd8002a0e9ab148eb350740b15.tar.gz
samba-a2c874bd61858fcd8002a0e9ab148eb350740b15.tar.xz
samba-a2c874bd61858fcd8002a0e9ab148eb350740b15.zip
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 (This used to be ctdb commit 31c10eb2b337fd7d8a97a1f9e69b0e7570fec71d)
Diffstat (limited to 'ctdb/libctdb/io_elem.c')
-rw-r--r--ctdb/libctdb/io_elem.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ctdb/libctdb/io_elem.c b/ctdb/libctdb/io_elem.c
index e00ddda056..bff21cb313 100644
--- a/ctdb/libctdb/io_elem.c
+++ b/ctdb/libctdb/io_elem.c
@@ -25,6 +25,7 @@
#include <stdlib.h>
#include "io_elem.h"
#include <tdb.h>
+#include <netinet/in.h>
#include <ctdb_protocol.h> // For CTDB_DS_ALIGNMENT and ctdb_req_header
struct io_elem {