[Bug 69466] Haze: fix connection interfaces we claim to support

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Sep 17 23:16:16 PDT 2013


https://bugs.freedesktop.org/show_bug.cgi?id=69466

--- Comment #17 from Guillaume Desmottes <guillaume.desmottes at collabora.co.uk> ---
(In reply to comment #15)
> (In reply to comment #13)
> > Humm actually "(transfer full) gchar **" is annoying because
> > TpBaseConnection->get_interfaces_always_present is supposed to return a
> > (transfer container) GPtrArray while TpBaseProtocol->get_connection_details
> > returns a (transfer full) gchar **.
> 
> g_i_a_p isn't meant to have the NULL at the end, though? So you'll have to
> have a conversion step either way, even if it's as simple as "copy each
> string, and append NULL".

You're right:
- TpBaseProtocolGetConnectionDetailsFunc returns a transfer full NULL
terminated gchar **.
- get_interfaces_always_present returns a transfer container not-NULL
terminated GPtrArray.

haze_connection_dup_implemented_interfaces now returns (transfer container) and
I dup the strings and append NULL afterward.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the telepathy-bugs mailing list