Make server a struct
This commit is contained in:
+8
-1
@@ -6,6 +6,13 @@
|
||||
#include <stdbool.h>
|
||||
#include <vb.h>
|
||||
|
||||
int handle_command(RdbResponse *res, CommandBuf *cmd, VB *sim, bool *running);
|
||||
typedef struct RdbServer {
|
||||
VB *sim;
|
||||
bool running;
|
||||
} RdbServer;
|
||||
|
||||
void rdb_server_init(RdbServer *srv, VB *sim);
|
||||
int rdb_server_handle_command(RdbServer *srv, CommandBuf *cmd, RdbResponse *res);
|
||||
int rdb_server_break(RdbServer *srv, RdbResponse *res);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user