mirror of
https://github.com/mintycube/slock.git
synced 2024-10-22 14:05:51 +02:00
17 lines
259 B
C
17 lines
259 B
C
|
#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;
|