Add files via upload

This commit is contained in:
2025-02-08 22:58:48 +01:00
committed by GitHub
parent f1aad4fce2
commit 0b3303a173
6 changed files with 390 additions and 0 deletions

17
server_config.h Normal file
View File

@@ -0,0 +1,17 @@
#ifndef SERVER_CONFIG_H
#define SERVER_CONFIG_H
#include <stdbool.h>
typedef struct {
int port;
bool use_https;
char log_file[256];
int max_threads;
bool running;
} ServerConfig;
int load_config(const char *filename, ServerConfig *config);
void init_config(ServerConfig *config);
#endif