2019-09-16 12:21:09 +00:00
|
|
|
#include <X11/Xresource.h>
|
|
|
|
|
|
|
|
/* Xresources preferences */
|
|
|
|
enum resource_type {
|
|
|
|
STRING = 0,
|
|
|
|
INTEGER = 1,
|
|
|
|
FLOAT = 2
|
|
|
|
};
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
char *name;
|
|
|
|
enum resource_type type;
|
|
|
|
void *dst;
|
|
|
|
} ResourcePref;
|
|
|
|
|
|
|
|
int resource_load(XrmDatabase, char *, enum resource_type, void *);
|
2021-04-23 22:17:23 +00:00
|
|
|
#if XRESOURCES_RELOAD_PATCH
|
|
|
|
void config_init(Display *dpy);
|
|
|
|
#else
|
|
|
|
void config_init(void);
|
|
|
|
#endif // XRESOURCES_RELOAD_PATCH
|