aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/util.h
diff options
context:
space:
mode:
authorGravatar Brendan Taylor <whateley@gmail.com>2010-10-29 12:16:20 -0600
committerGravatar Brendan Taylor <whateley@gmail.com>2010-10-29 12:16:20 -0600
commit457642eb3fea682f06b3aee5d5b61cf88e5b2991 (patch)
treebe3face969fc7e4dc4219f3e6c2eb6331930e86f /src/util.h
parent5ed250ef5aafaaa578db68deae228f0af9cbda14 (diff)
split off some generic functions into util.c
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h15
1 files changed, 15 insertions, 0 deletions
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 <glib.h>
+
+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);