config: 加载用户配置动态链接库

This commit is contained in:
2026-03-23 14:51:26 +08:00
parent fb3bb10eab
commit 32679b354a
2 changed files with 114 additions and 0 deletions

12
src/config/loader.h Normal file
View File

@@ -0,0 +1,12 @@
#pragma once
#include <zdwm/config.h>
typedef struct config_loader_t {
char *path;
void *handle;
zdwm_config_setup_fn *setup;
} config_loader_t;
bool config_loader_load(config_loader_t *loader, const char *override_path);
void config_loader_cleanup(config_loader_t *loader);