From 0359d5033839a1f432c77fc5d5cbf1ad59ffb165 Mon Sep 17 00:00:00 2001 From: Daniel Carl Date: Thu, 15 Jan 2015 22:58:34 +0100 Subject: [PATCH] Added some docs. --- src/util.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/util.c b/src/util.c index 0ca874f..cb2361e 100644 --- a/src/util.c +++ b/src/util.c @@ -31,7 +31,10 @@ extern VbCore vb; static gboolean match(const char *pattern, int patlen, const char *subject); static gboolean match_list(const char *pattern, int patlen, const char *subject); - +/** + * Retrieves newly allocated string with vimb config directory. + * Retruned string must be freed. + */ char *util_get_config_dir(void) { char *path = g_build_filename(g_get_user_config_dir(), PROJECT, NULL); @@ -52,6 +55,9 @@ char *util_get_cache_dir(void) return path; } +/** + * Retrieves the users home directory. + */ const char *util_get_home_dir(void) { const char *dir = g_getenv("HOME"); -- 2.20.1