From 457642eb3fea682f06b3aee5d5b61cf88e5b2991 Mon Sep 17 00:00:00 2001 From: Brendan Taylor Date: Fri, 29 Oct 2010 12:16:20 -0600 Subject: split off some generic functions into util.c --- src/util.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/util.h (limited to 'src/util.h') diff --git a/src/util.h b/src/util.h new file mode 100644 index 0000000..2a00b8a --- /dev/null +++ b/src/util.h @@ -0,0 +1,15 @@ +#include + +typedef struct { + gchar* environmental; + gchar* default_value; +} XDG_Var; + +gchar* get_xdg_var (XDG_Var xdg); + +gchar* find_xdg_file (int xdg_type, const char* filename); + +gboolean file_exists(const char* filename); + +char * +str_replace (const char* search, const char* replace, const char* string); -- cgit v1.2.3