diff -r 3887fd7e8bd7 -r 3e4f9cdd70b8 src/server/daemon/config.h --- a/src/server/daemon/config.h Fri Dec 05 17:37:48 2025 +0100 +++ b/src/server/daemon/config.h Sun Dec 07 16:31:21 2025 +0100 @@ -48,6 +48,7 @@ #include "../webdav/webdav.h" #include +#include #include #include #include @@ -63,10 +64,17 @@ ServerConfiguration *cfg; } CfgManager; +typedef struct ScfgDestr { + cx_destructor_func destr; + void *data; +} ScfgDestr; + struct ServerConfiguration { pool_handle_t *pool; CxAllocator *a; + CxList *destr; // list of ScfgDestr + ServerConfiguration *next; CxMap *host_vs; // map of all vservers. key is the host name @@ -135,6 +143,8 @@ pblock* config_obj2pblock(pool_handle_t *pool, ConfigNode *obj); +void server_config_destroy(ServerConfiguration *cfg); + #ifdef __cplusplus } #endif