Version 0.8

This commit is contained in:
2026-02-19 15:27:47 +01:00
commit 868312edf8
37 changed files with 12782 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
#ifndef LOG_INCLUDED
#define LOG_INCLUDED
#include <state_machine/state_machine.h>
#include "config.h"
typedef struct {
Operation oper;
uint32_t votes;
int view_number;
uint64_t client_id;
} LogEntry;
_Static_assert(NODE_LIMIT <= 32, "");
typedef struct {
int count;
int capacity;
LogEntry *entries;
} Log;
void log_init(Log *log);
void log_free(Log *log);
int log_append(Log *log, LogEntry entry);
#endif // LOG_INCLUDED