~didrocks/ubuntuone-client/dont-suffer-zg-crash

« back to all changes in this revision

Viewing changes to libsyncdaemon/utils.c

  • Committer: Bazaar Package Importer
  • Author(s): Rodrigo Moya
  • Date: 2010-06-23 23:08:15 UTC
  • mto: This revision was merged to the branch mainline in revision 34.
  • Revision ID: james.westby@ubuntu.com-20100623230815-4m3ugh10u9x9xzw5
Tags: upstream-1.3.2
ImportĀ upstreamĀ versionĀ 1.3.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 
22
22
#include "utils.h"
23
23
 
 
24
GHashTable *
 
25
copy_str_str_hash_table (GHashTable *source)
 
26
{
 
27
        GHashTableIter iter;
 
28
        gpointer key, value;
 
29
        GHashTable *target = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, g_free);
 
30
 
 
31
        g_hash_table_iter_init (&iter, source);
 
32
        while (g_hash_table_iter_next (&iter, &key, &value))
 
33
                g_hash_table_insert (target, g_strdup (key), g_strdup (value));
 
34
 
 
35
        return target;
 
36
}
 
37
 
24
38
void
25
39
no_output_dbus_call_ended_cb (DBusGProxy *proxy, DBusGProxyCall *call_id, gpointer user_data)
26
40
{