[Telepathy] [Bug 18220] New: Add tp_asv_set_… for types we generally permit in "a{sv}" s.

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat Oct 25 03:16:15 PDT 2008


http://bugs.freedesktop.org/show_bug.cgi?id=18220

           Summary: Add tp_asv_set_… for types we generally permit in
                    "a{sv}"s.
           Product: Telepathy
           Version: unspecified
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: telepathy-glib
        AssignedTo: telepathy at lists.freedesktop.org
        ReportedBy: will.thompson at collabora.co.uk


Currently, to pull values out of an a{sv} in C we can use tp_asv_get_string and
friends, but to populate one we need to say tp_g_value_slice_new (type);
g_value_set_...; g_hash_table_insert (asv, key, value); which is kind of
verbose.

I suspect we should also have tp_asv_new () which creates a GHashTable with
appropriate key and value destructors.

tp_asv_set_handle (cf. tp_message_set_handle) would be nice, but would involve
using a type other than GHashTable (or some incredible GValue trickery behind
the curtains) for a{sv}s which might end in tears.


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Telepathy mailing list