Files
Carbon/server_config.h
Azreyo 1ae4f070b5 Update server_config.h
Added server_name for HTTPS
2025-02-09 23:54:40 +01:00

22 lines
478 B
C

#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;
bool automatic_startup; //TODO func automatic startup on boot
char server_name[256]; // Add this field for server name
} ServerConfig;
int load_config(const char *filename, ServerConfig *config);
void init_config(ServerConfig *config);
void log_event(const char *message);
#endif