LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   How to create a new GType using dbus-Glib? (https://www.linuxquestions.org/questions/programming-9/how-to-create-a-new-gtype-using-dbus-glib-936007/)

wwba 03-23-2012 04:09 AM

How to create a new GType using dbus-Glib?
 
Hi,

I'm trying to use the DBUS connection to communicate with the Marxbot medulla. But when I want to use the interface to send a "SetSpeed" event using the method "SendEventName", I need to create a new GTYPE "DBUS_TYPE_G_INIT16_ARRAY" which is an array of int16.

I found this function
"#define DBUS_TYPE_G_INIT16_ARRAY (dbus_g_type_get_collection("GArray",Int16))"
but it doesn't know the type Int16.

Note that I'm writing this code with C and I'm using the library "dbus-glib.h"

Please help me :(


All times are GMT -5. The time now is 06:47 PM.