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
0297c341
Commit
0297c341
authored
Jul 30, 2015
by
Willem Thiart
Browse files
Refactored enum out of raft.h
parent
4834b93f
Changes
3
Hide whitespace changes
Inline
Side-by-side
include/raft.h
View file @
0297c341
...
...
@@ -97,16 +97,6 @@ typedef struct
typedef
void
*
raft_server_t
;
typedef
void
*
raft_node_t
;
typedef
enum
{
RAFT_MSG_REQUESTVOTE
,
RAFT_MSG_REQUESTVOTE_RESPONSE
,
RAFT_MSG_APPENDENTRIES
,
RAFT_MSG_APPENDENTRIES_RESPONSE
,
RAFT_MSG_ENTRY
,
RAFT_MSG_ENTRY_RESPONSE
,
}
raft_message_type_e
;
typedef
struct
{
/* entry's term */
...
...
tests/mock_send_functions.c
View file @
0297c341
...
...
@@ -15,6 +15,7 @@
#include "linked_list_queue.h"
#include "raft.h"
#include "mock_send_functions.h"
typedef
struct
{
...
...
tests/mock_send_functions.h
View file @
0297c341
#ifndef MOCK_SEND_FUNCTIONS_H
#define MOCK_SEND_FUNCTIONS_H
typedef
enum
{
RAFT_MSG_REQUESTVOTE
,
RAFT_MSG_REQUESTVOTE_RESPONSE
,
RAFT_MSG_APPENDENTRIES
,
RAFT_MSG_APPENDENTRIES_RESPONSE
,
RAFT_MSG_ENTRY
,
RAFT_MSG_ENTRY_RESPONSE
,
}
raft_message_type_e
;
void
senders_new
();
void
*
sender_new
(
void
*
address
);
...
...
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