summaryrefslogtreecommitdiff
path: root/archive/st/patch/xresources.h
blob: c18485248ccdd08c848b6a0edc22d3b86f04e59d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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(Display *dpy);