aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/util.h
blob: 2a00b8a1ef1aca285cd934a87c48b115a8eae1e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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);