passing NULL with Glib interface
Robert McQueen
robert.mcqueen at collabora.co.uk
Mon Nov 7 03:14:07 PST 2005
John (J5) Palmieri wrote:
> Hey, this is not a bug. You can't send NULL. This is because D-Bus is
> language neutral and NULL means different things. For instance NULL in
> C can only be applied to pointers where as the None in Python is just
> another type that can be assigned to any variable.
Sending a string containing NULL isn't going to work, but this looks
suspicious for the STRV though. In C a STRV needs to be NULL-terminated,
so a D-Bus array with type "as" containing "foo" and "bar" should be
sent as {"foo", "bar", NULL} and come out as {"foo", "bar", NULL} at the
other end. Is this the case?
Regards,
Rob
More information about the dbus
mailing list