~kris/suckless

slock

ref: 35fd53f6f2f5c911532572e889333c4b43927afa slock/patch/xresources.h -rw-r--r-- 259 bytes
35fd53f6 — bakkeby Adding secret password patch 5 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <X11/Xresource.h>

/* macros */
#define LEN(a) (sizeof(a) / sizeof(a)[0])

/* Xresources preferences */
enum resource_type {
	STRING = 0,
	INTEGER = 1,
	FLOAT = 2
};

typedef struct {
	char *name;
	enum resource_type type;
	void *dst;
} ResourcePref;