config: 加载用户配置动态链接库
This commit is contained in:
12
src/config/loader.h
Normal file
12
src/config/loader.h
Normal 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);
|
||||
Reference in New Issue
Block a user