Adding xresources patch

This commit is contained in:
bakkeby 2019-09-16 14:21:09 +02:00
parent 7615c2f0aa
commit 4bd0ed3327
7 changed files with 131 additions and 0 deletions

17
patch/xresources.h Normal file
View file

@ -0,0 +1,17 @@
#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 *);
void config_init(void);