feat: add rack mode, colon commands, and client command parser

This commit is contained in:
Loic Coenen
2026-05-16 23:15:07 +00:00
committed by Loic Coenen (aider)
parent c7df02d37c
commit 9fda1b2669
10 changed files with 560 additions and 43 deletions

16
client/src/client_cmd.h Normal file
View File

@@ -0,0 +1,16 @@
#ifndef CLIENT_CMD_H
#define CLIENT_CMD_H
#include <stdbool.h>
/*
* Handle a client command (without the leading ':').
* Returns 0 on success, -1 on error.
* If the command loads/creates a new plugin, *out_id is set to the new ID.
* Otherwise *out_id is unchanged.
*/
int handle_client_command(const char *input, int *out_id);
const char* get_stored_from(void);
const char* get_stored_to(void);
#endif