dbus glib structure
keith preston
keithpre at gmail.com
Thu Aug 24 09:20:01 PDT 2006
So I've been trying to send structure over dbus-glib for a while and haven't
had much success. Does anyone know an exist project that does this, or
could write a small example.
Here a bit of what I have tried
I define a type in the xml as "a(isb)" and array of structs that have an
interger string and boolean in them
then in my code, I make
GArray* array = g_array_sized_new(false,false,sizeof(mystruct),
number_of_structs)
for ...
array = g_array_append_vals(array,(gconstpointer) &mystruct ,1 )
dbus call passing array in
The error I get is the GValueArray can not be in a collection.
Does this mean I can't do arrays of structs? Or an am I just doing
everything wrong?
Keith
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freedesktop.org/archives/dbus/attachments/20060824/d18c26be/attachment.html
More information about the dbus
mailing list