diff options
Diffstat (limited to 'src/common.c')
-rw-r--r-- | src/common.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/common.c b/src/common.c index be2dd2bf..e54cee6c 100644 --- a/src/common.c +++ b/src/common.c @@ -64,7 +64,6 @@ p_utf8_substring(const gchar *str, glong start_pos, glong end_pos) return out; } -// backwards compatibility for GLib version < 2.28 void p_slist_free_full(GSList *items, GDestroyNotify free_func) { @@ -80,6 +79,12 @@ p_list_free_full(GList *items, GDestroyNotify free_func) } gboolean +p_hash_table_add(GHashTable *hash_table, gpointer key) +{ + return g_hash_table_replace(hash_table, key, key); +} + +gboolean create_dir(char *name) { struct stat sb; |