How to create a new GType using dbus-Glib?


 
Thread Tools Search this Thread
Top Forums Programming How to create a new GType using dbus-Glib?
# 1  
Old 03-23-2012
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 Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

3 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

A Dbus signal can be lost?

Hello to everyone! I have a little and simple question. I'm developing a simple application that receives dbus signals . The application works great, but a question is around my head and that is : A dbus signal can be lost ? I read some dbus documentation but didn't clear me this doubt. Thanks! (2 Replies)
Discussion started by: Kovalevsky
2 Replies

2. UNIX for Advanced & Expert Users

dbus error

Hi all I have a tricky issue that i am not to sure on how to tackle We have certain users that we a dbus session is run it does not create a ~/.dbus directory with the relevent files in it i am not sure how to go about debugging it thanks Adam (10 Replies)
Discussion started by: ab52
10 Replies

3. UNIX for Dummies Questions & Answers

/var/run/dbus/system_bus_socket problem

Hello, i have a problem. i have a domain name hosted on a server and it goes very slow and sometimes down. I looked on the processes running and on the netstat status and i discovered that each time there is a slowness or a downtime is caused by: /var/run/dbus/system_bus_socket many of these... (9 Replies)
Discussion started by: dan8354544
9 Replies
Login or Register to Ask a Question
BLUEMON DBUS 
INTERFACES(7) Miscellaneous Information Manual BLUEMON DBUS INTERFACES(7) NAME
bluemon -- DBUS interface to bluemon(1) DESCRIPTION
This manual page documents briefly the DBUS interface to bluemon(1) INTERFACE
Bluemon exposes 2 signals and 1 method. The bluemon process is registered on the system bus as cx.ath.matthew.bluemon.server. The exposed object is /cx/ath/matthew/bluemon/Bluemon and the exposed interface is cx.ath.matthew.bluemon.Bluemon. The signal interface is cx.ath.matthew.bluemon.ProximitySignal and have the names Connect and Disconnect which both have 1 parameter, which is the string representation of the bluetooth device ID which has been connected or disconnected. The method has the signature Status(IN STRING address, OUT STRING address, OUT BOOLEAN status, OUT UINT32 level). The in parameter may be blank in which case the first connected device will be returned. If status is true (device is connected) then the address and level will correspond to the device address and the reported link quality. Otherwise they will set to the address asked for and -1 respectively. This information is also available as an XML protocol description in /usr/share/doc/bluemon/bluemon-dbus.xml SEE ALSO
bluemon (1), bluemon-client(1), bluemon-query(1). AUTHOR
This manual page was written by Matthew Johnson <debian@matthew.ath.cx> for the Debian system (but may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 any later version pub- lished by the Free Software Foundation. On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL. BLUEMON DBUS INTERFACES(7)