summaryrefslogtreecommitdiffstats
path: root/ctdb/include
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2006-11-28 14:15:46 +1100
committerAndrew Tridgell <tridge@samba.org>2006-11-28 14:15:46 +1100
commit5d0ba69e06d2f37788697c3b7c39287334d2fa22 (patch)
tree52f2309a327511535dfde9b7e130f731d51d09d9 /ctdb/include
parent5b06e73fb1051e9fe370a76ef4fc87e514a1f9e5 (diff)
- setup a convenience name field for nodes
- added basic IO handling for the tcp backend - added a ctdb_node_dead upcall - added packet queueing - adding incoming packet handling (This used to be ctdb commit 415497c952630e746e8cdcf8e1e2a7b2ac3e51fb)
Diffstat (limited to 'ctdb/include')
-rw-r--r--ctdb/include/ctdb_private.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/ctdb/include/ctdb_private.h b/ctdb/include/ctdb_private.h
index bc13c935c5..41d51a1773 100644
--- a/ctdb/include/ctdb_private.h
+++ b/ctdb/include/ctdb_private.h
@@ -44,6 +44,7 @@ struct ctdb_node {
struct ctdb_context *ctdb;
struct ctdb_node *next, *prev;
struct ctdb_address address;
+ const char *name; /* for debug messages */
void *private; /* private to transport */
};
@@ -60,7 +61,8 @@ struct ctdb_methods {
transport calls up to the ctdb layer
*/
struct ctdb_upcalls {
- void (*recv_pkt)(struct ctdb_node *, uint8_t *data, uint32_t length);
+ void (*recv_pkt)(struct ctdb_context *, uint8_t *data, uint32_t length);
+ void (*node_dead)(struct ctdb_node *);
};
/* main state of the ctdb daemon */