2023-05-06 22:01:28 +02:00
|
|
|
#if USEXRESOURCES
|
2023-02-26 05:13:40 +01:00
|
|
|
enum resource_type {
|
2023-05-08 23:00:45 +02:00
|
|
|
STRING = 0,
|
|
|
|
INTEGER = 1,
|
|
|
|
FLOAT = 2
|
2023-02-26 05:13:40 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
typedef struct {
|
2023-05-08 23:00:45 +02:00
|
|
|
char *name;
|
|
|
|
enum resource_type type;
|
|
|
|
void *dst;
|
2023-02-26 05:13:40 +01:00
|
|
|
} ResourcePref;
|
|
|
|
|
2023-03-16 16:54:36 +01:00
|
|
|
// declare functions
|
2023-02-26 05:13:40 +01:00
|
|
|
static void load_xresources(void);
|
|
|
|
static void resource_load(XrmDatabase db, char *name, enum resource_type rtype, void *dst);
|
2023-05-06 22:01:28 +02:00
|
|
|
#endif
|