Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Willemt Raft
Commits
e595ff7e
Commit
e595ff7e
authored
Jan 19, 2014
by
willem
Browse files
Refining comments
parent
fb5c0b7a
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/raft.h
View file @
e595ff7e
...
...
@@ -159,17 +159,19 @@ typedef struct {
*
* Request timeout defaults to 200 milliseconds
* Election timeout defaults to 1000 milliseconds
*
* @return newly initialised raft server */
raft_server_t
*
raft_new
();
/**
* De-Initialise raft server */
* De-Initialise raft server
* Free all memory */
void
raft_free
(
raft_server_t
*
me_
);
/**
* Set callbacks
* @param funcs Callbacks
* @param cb_ctx The context that we include w
ith all
callback
s
*/
* @param cb_ctx The context that we include w
hen making a
callback */
void
raft_set_callbacks
(
raft_server_t
*
me
,
raft_cbs_t
*
funcs
,
void
*
cb_ctx
);
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment