添加从 Xresources 中读取配置功能

This commit is contained in:
2025-12-20 22:47:58 +08:00
parent 364a00fb7c
commit 8eeeff5f3b
6 changed files with 100 additions and 6 deletions

8
src/xres.h Normal file
View File

@@ -0,0 +1,8 @@
#pragma once
#include <stdint.h>
void xres_init_xrm_db(void);
void xres_clean(void);
bool xres_get_uint32(const char *name, uint32_t *value);
void xres_get_string(const char *name, char **value, const char *fallback);