Unwrapping the glib dbus lump: a(iii)
Robert McQueen
robert.mcqueen at collabora.co.uk
Sat Sep 23 08:12:59 PDT 2006
Rob Taylor wrote:
> Right, the error (as it suggests..) is the G_TYPE_BOXED. This should be:
>
> dbus_g_type_get_collection("GPtrArray",
> dbus_g_type_get_struct("GValueArray", G_TYPE_INT, G_TYPE_INT, G_TYPE_INT))
For less crashing you can terminate the varargs with G_TYPE_INVALID, so:
dbus_g_type_get_collection("GPtrArray",
dbus_g_type_get_struct("GValueArray",
G_TYPE_INT,
G_TYPE_INT,
G_TYPE_INT,
G_TYPE_INVALID))
Which makes me think, we could probably decorate that with
G_GNUC_NULL_TERMINATED so that it will tell you when you do that. :)
> Thanks,
> Rob Taylor
Regards,
Rob
--
Robert McQueen
Director, Collabora Ltd.
More information about the dbus
mailing list