Commit 0297c341 authored by Willem Thiart's avatar Willem Thiart
Browse files

Refactored enum out of raft.h

parent 4834b93f
......@@ -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 */
......
......@@ -15,6 +15,7 @@
#include "linked_list_queue.h"
#include "raft.h"
#include "mock_send_functions.h"
typedef struct
{
......
#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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment