Skip to content

Commit 064e546

Browse files
Issue (#1): Initial Commit.
1 parent 5131666 commit 064e546

19 files changed

Lines changed: 1210 additions & 1057 deletions

pgraft/include/pgraft.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,7 @@ extern void pgraft_validate_configuration(void);
224224

225225
/* Communication functions */
226226
extern int pgraft_comm_init(const char *address, int port);
227+
extern int pgraft_comm_start(void);
227228
extern int pgraft_comm_shutdown(void);
228229
extern bool pgraft_comm_initialized(void);
229230
extern int pgraft_comm_get_active_connections(void);
@@ -236,6 +237,8 @@ extern int pgraft_remove_node_comm(uint64_t node_id);
236237
extern bool pgraft_is_node_connected(uint64_t node_id);
237238
extern int pgraft_get_connected_nodes_count(void);
238239
extern int pgraft_get_healthy_nodes_count(void);
240+
extern int pgraft_serialize_message(const pgraft_message_t *msg, char **buffer, size_t *buffer_size);
241+
extern int pgraft_get_connection_to_node(uint64_t node_id);
239242

240243
/* Monitoring functions */
241244
extern void pgraft_monitor_init(void);

0 commit comments

Comments
 (0)