wmclockmon: fix global variables causing linkage failure
[dockapps.git] / wmclockmon / wmclockmon-config / tools.h
blob5f38be6388cb47cdc32b17876107855a3f2845af
1 /*
2 * Tools : memory management, file loading and saving
3 */
5 #ifndef TOOLS_H
6 #define TOOLS_H
8 #include "defines.h"
9 #include <stdio.h>
11 #define FREE(data) {if (data) free (data); data = NULL;}
13 int fexist(const char *filename);
14 void alrm_add(Alarm **list, const char *value);
15 void free_alrm(Alarm **list);
16 int nb_alrm(Alarm *list);
17 void *xmalloc(size_t size);
18 char *xstrdup(const char *string);
19 int getbool(char *value);
20 void load_cfgfile();
21 char *robust_home();
22 void save_cfgfile();
24 #endif