refactor: worker struct and remove pipe

This commit is contained in:
2025-10-17 21:18:13 +02:00
parent 81bdd2acda
commit 01d29ff9f3
14 changed files with 139 additions and 93 deletions

25
include/config/config.h Normal file
View File

@@ -0,0 +1,25 @@
#ifndef CWS_CONFIG_H
#define CWS_CONFIG_H
#include <stdbool.h>
typedef struct cws_vhost {
char *domain;
char *root;
bool ssl;
char *cert;
char *key;
} cws_vhost_s;
typedef struct cws_config {
char *hostname;
char *port;
cws_vhost_s *virtual_hosts;
unsigned virtual_hosts_count;
} cws_config_s;
cws_config_s *cws_config_init(void);
void cws_config_free(cws_config_s *config);
#endif