summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
author郑超 <[email protected]>2022-10-29 10:12:21 +0000
committer郑超 <[email protected]>2022-10-29 10:12:21 +0000
commit962e698ce531451fce5fce91f04b219736c7dbea (patch)
tree0eff3019592a32658cca0084408a0f10b4935b97 /include
parent9733e624688b277d5be2afc12fdda2579eb3f161 (diff)
Refactor colon seperated ip port
Diffstat (limited to 'include')
-rw-r--r--include/swarmkv/swarmkv.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/swarmkv/swarmkv.h b/include/swarmkv/swarmkv.h
index fb83732..01b9b6a 100644
--- a/include/swarmkv/swarmkv.h
+++ b/include/swarmkv/swarmkv.h
@@ -9,7 +9,7 @@
#pragma once
#include <stddef.h>
-
+#include <stdio.h>
#ifdef __cplusplus
extern "C"
{
@@ -36,7 +36,7 @@ struct swarmkv_reply
struct swarmkv_reply **elements;/* elements vector for SWARMKV_REPLY_ARRAY */
};
void swarmkv_reply_free(struct swarmkv_reply *reply);
-
+void swarmkv_reply_print(const struct swarmkv_reply *reply, FILE* stream);
struct swarmkv_options;
struct swarmkv_options* swarmkv_options_new(void);
@@ -48,7 +48,7 @@ int swarmkv_options_set_bind_address(struct swarmkv_options *opts, const char* i
int swarmkv_options_set_logger(struct swarmkv_options *opts, void *logger);
int swarmkv_options_set_consul_port(struct swarmkv_options *opts, unsigned int consul_port);
int swarmkv_options_set_dryrun(struct swarmkv_options *opts);
-int swarmkv_options_set_run_for_leader_flag(struct swarmkv_options *opts, int run_for_leader_flag);
+int swarmkv_options_set_disable_run_for_leader(struct swarmkv_options *opts);
int swarmkv_options_set_worker_thread_number(struct swarmkv_options *opts, size_t nr_worker_threads);