documentation server and /doc route

Signed-off-by: ngn <ngn@ngn.tf>
This commit is contained in:
ngn
2025-01-16 07:46:27 +03:00
parent 5fb3c03e40
commit e87764a4c2
40 changed files with 1313 additions and 301 deletions

View File

@ -3,10 +3,11 @@
#include <stdbool.h>
#include <stdint.h>
typedef struct option {
const char *name;
char *value;
bool required;
typedef struct {
#define OPT_NAME_MAX 20
char name[20]; // option name
char *value; // option value
bool required; // is the option required (does it need to have a value)
} option_t;
typedef struct config {
@ -14,5 +15,5 @@ typedef struct config {
int32_t count;
} config_t;
int32_t config_load(config_t *conf);
char *config_get(config_t *conf, const char *name);
bool config_load(config_t *conf);
char *config_get(config_t *conf, const char *name);