summaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/util.h b/src/util.h
index 825467de..14ee8c06 100644
--- a/src/util.h
+++ b/src/util.h
@@ -16,9 +16,10 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#ifndef UTIL_H
-#define UTIL_H
+#ifndef __DWB_UTIL_H__
+#define __DWB_UTIL_H__
+typedef gboolean (*KeyFileAction)(GKeyFile *, const void *data);
// strings
char * util_string_replace(const char *haystack, const char *needle, const char *replacemant);
@@ -28,7 +29,7 @@ gboolean util_is_hex(const char *string);
int util_test_connect(const char *uri);
char * util_get_temp_filename(const char *);
-void util_rmdir(const char *path, gboolean, gboolean recursive);
+gboolean util_rmdir(const char *path, gboolean, gboolean recursive);
// keys
char * dwb_modmask_to_string(guint );
@@ -103,6 +104,7 @@ Sanitize util_string_to_sanitize(const char *);
char *util_create_json(int, ...);
int util_modulo(int, int);
char *util_resolve_symlink(char *path);
+gboolean util_keyfile_do(char *path, KeyFileAction action, const void *data);
#endif