Files
Carbon/server_config.h
Azreyo b4fd544185 Update .gitignore, README.md, and server configuration handling
- Added 'log/*' and 'server' to .gitignore to exclude log files and server binary.
- Enhanced README.md with improved structure and additional features.
- Updated server configuration to provide a warning for default server_name and changed default to '127.0.0.1'.
2025-10-01 20:53:58 +00:00

23 lines
424 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;
char server_name[256];
int verbose;
} ServerConfig;
int load_config(const char *filename, ServerConfig *config);
void init_config(ServerConfig *config);
void log_event(const char *message);
#endif