glib signal marshaller

Colin Walters walters at verbum.org
Thu Jan 29 13:13:40 PST 2009


On Thu, Jan 29, 2009 at 5:50 AM, Roy Marples <roy at marples.name> wrote:
>
>        otype = dbus_g_type_get_collection("GPtrArray", otype);
>        dbus_g_object_register_marshaller(_dhcpcd_marshal_VOID__STRING_BOXED,
> G_TYPE_NONE,
>                                          otype, G_TYPE_INVALID);

It looks like you're missing a G_TYPE_STRING here at least, should be
something like:

dbus_g_object_register_marshaller(_dhcpcd_marshal_VOID__STRING_BOXED,
                                                     G_TYPE_NONE,
G_TYPE_STRING, otype, G_TYPE_INVALID);

Not entirely sure about passing the complete gtype to the
register_marshaller either.

We should really kill the whole register_marshaller insanity and just
depend on libffi.  I just filed a bug:
https://bugs.freedesktop.org/show_bug.cgi?id=19814


More information about the dbus mailing list