Changeset 988 for vendor/current/source4/cluster/cluster.h
- Timestamp:
- Nov 24, 2016, 1:14:11 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/source4/cluster/cluster.h
r740 r988 23 23 #define __CLUSTER_H__ 24 24 25 #include "librpc/gen_ndr/server_id 4.h"25 #include "librpc/gen_ndr/server_id.h" 26 26 27 27 /* 28 28 test for same cluster id 29 29 */ 30 #define cluster_id_equal(id_1, id_2) ((id_1)-> id == (id_2)->id \31 && (id_1)-> id2 == (id_2)->id2\32 && (id_1)-> node == (id_2)->node)30 #define cluster_id_equal(id_1, id_2) ((id_1)->pid == (id_2)->pid \ 31 && (id_1)->task_id == (id_2)->task_id \ 32 && (id_1)->vnn == (id_2)->vnn) 33 33 34 34 /* 35 35 test for same cluster node 36 36 */ 37 #define cluster_node_equal(id1, id2) ((id1)-> node == (id2)->node)37 #define cluster_node_equal(id1, id2) ((id1)->vnn == (id2)->vnn) 38 38 39 struct messaging_context;40 typedef void (*cluster_message_fn_t)(struct messaging_context *, DATA_BLOB);39 struct imessaging_context; 40 typedef void (*cluster_message_fn_t)(struct imessaging_context *, DATA_BLOB); 41 41 42 42 /* prototypes */ 43 struct server_id cluster_id(uint64_t id, uint32_t id2); 44 const char *cluster_id_string(TALLOC_CTX *mem_ctx, struct server_id id); 45 struct tdb_wrap *cluster_tdb_tmp_open(TALLOC_CTX *mem_ctx, struct loadparm_context *lp_ctx, const char *dbname, int flags); 43 struct server_id cluster_id(uint64_t id, uint32_t task_id); 44 struct db_context *cluster_db_tmp_open(TALLOC_CTX *mem_ctx, struct loadparm_context *lp_ctx, const char *dbbase, int flags); 46 45 void *cluster_backend_handle(void); 47 46 48 NTSTATUS cluster_message_init(struct messaging_context *msg, struct server_id server,47 NTSTATUS cluster_message_init(struct imessaging_context *msg, struct server_id server, 49 48 cluster_message_fn_t handler); 50 49 NTSTATUS cluster_message_send(struct server_id server, DATA_BLOB *data);
Note:
See TracChangeset
for help on using the changeset viewer.