Commit 92b2f9a9 authored by Willem Thiart's avatar Willem Thiart
Browse files

Added msg_entry_data_t

parent e4d9ceb5
...@@ -35,16 +35,18 @@ typedef struct ...@@ -35,16 +35,18 @@ typedef struct
int last_log_term; int last_log_term;
} msg_requestvote_t; } msg_requestvote_t;
typedef struct {
void *buf;
uint32_t len;
} msg_entry_data_t;
typedef struct typedef struct
{ {
/* the entry's unique ID */ /* the entry's unique ID */
unsigned int id; unsigned int id;
/* entry data */ msg_entry_data_t data;
unsigned char* data;
/* length of entry data */
unsigned int len;
} msg_entry_t; } msg_entry_t;
typedef struct typedef struct
......
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