send a very complex stuct by dbus with dbus-glib

Rob Taylor rob.taylor at codethink.co.uk
Mon Apr 14 01:11:18 PDT 2008


Colin Walters wrote:
> On Wed, Apr 9, 2008 at 4:20 AM, ivan fernandez calvo
> <ivan.fernandez at sacnet.es> wrote:
>> Is a transcription problem the correct type is G_TYPE_UINT , The
>>  objetive of the the code was only show What i want to do and in the
>>  process i make a mistake.
>>
>> 
>>   <method name="methodExample">
>>   <arg type="(ua(bb))" name="stcElement" direction="in" />
>>   </method>
>>
> 
> Hi, looking at the current code (it's been a while), it looks like you
> need to use one of the dbus_g_type_get_struct* functions when sending
> DBus structures.

Yeah, you need to use the specialized gtype system:
http://dbus.freedesktop.org/doc/dbus-glib/dbus-glib-Specializable-GType-System.html

Rob

> _______________________________________________
> dbus mailing list
> dbus at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dbus



More information about the dbus mailing list