style: rename structs/enums

This commit is contained in:
2025-09-12 19:00:10 +02:00
parent b6041fdcb4
commit b0151ca885
9 changed files with 74 additions and 76 deletions

View File

@@ -3,24 +3,22 @@
#include <stdbool.h>
struct cws_virtual_host_t {
typedef struct cws_vhost {
char *domain;
char *root;
bool ssl;
char *cert;
char *key;
};
typedef struct cws_virtual_host_t cws_virtual_host;
} cws_vhost_s;
struct cws_config_t {
typedef struct cws_config {
char *hostname;
char *port;
cws_virtual_host *virtual_hosts;
cws_vhost_s *virtual_hosts;
unsigned virtual_hosts_count;
};
typedef struct cws_config_t cws_config;
} cws_config_s;
cws_config *cws_config_init(void);
void cws_config_free(cws_config *config);
cws_config_s *cws_config_init(void);
void cws_config_free(cws_config_s *config);
#endif