2 functions were moved from signon-identity to signon-utils
authorAlexander Akimov <ext-alexander.akimov@nokia.com>
Thu, 29 Apr 2010 05:14:31 +0000 (08:14 +0300)
committerAlexander Akimov <ext-alexander.akimov@nokia.com>
Thu, 29 Apr 2010 05:14:31 +0000 (08:14 +0300)
libsignon-glib/signon-utils.c
libsignon-glib/signon-utils.h

index 74dedff..751f62f 100644 (file)
@@ -34,7 +34,7 @@ static void signon_copy_gvalue (gchar *key,
     g_hash_table_insert (dest, g_strdup(key), copy_value);
 }
 
-static void signon_free_gvalue (gpointer val)
+void signon_free_gvalue (gpointer val)
 {
     g_return_if_fail (G_IS_VALUE(val));
 
@@ -60,3 +60,9 @@ GHashTable *signon_copy_variant_map (const GHashTable *old_map)
    return new_map;
 }
 
+void signon_stringarray_to_value (gpointer key, gpointer value, gpointer user_data)
+{
+    GValue *gvalue = g_value_init(g_slice_new0 (GValue), G_TYPE_STRV);
+    g_value_set_boxed (gvalue, (gchar **)value);
+    g_hash_table_insert ((GHashTable *)user_data, g_strdup((gchar *)key), gvalue);
+}
index 7d9465f..9414166 100644 (file)
@@ -27,5 +27,7 @@
 #include <glib-object.h>
 
 GHashTable *signon_copy_variant_map (const GHashTable *old_map);
+void signon_stringarray_to_value (gpointer key, gpointer value, gpointer user_data);
+void signon_free_gvalue (gpointer val);
 
 #endif //_SIGNON_UTILS_H_