diff options
Diffstat (limited to 'src/config/config.h')
| -rw-r--r-- | src/config/config.h | 38 |
1 files changed, 30 insertions, 8 deletions
diff --git a/src/config/config.h b/src/config/config.h index 4f04459..9a8f058 100644 --- a/src/config/config.h +++ b/src/config/config.h @@ -3,17 +3,39 @@ #include "str/str.h" #include "log/log.h" +#include "list/list.h" +#include "mime/mime.h" +#include <errno.h> -typedef struct config { + +typedef struct config_m { + str file; + str name; int port; - int secure : 1; - int ipv4 : 1; - int ipv6 : 1; - int workers; + int backlog; +} config_m; + +typedef struct config_w { + str file; + str name; str root; - -} config; + str bundle; + str cert; + str key; + uint secure : 1; + uint ipv4 : 1; + uint ipv6 : 1; + str *files; +} config_w; + + +config_m master_config(char *filename); +config_w worker_config(char *filename); + +void free_master_config(config_m *conf); +void free_worker_config(config_w *conf); -config read_config(str cfg); +void print_master_config(config_m conf); +void print_worker_config(config_w conf); #endif |
