sendeing an integer

Anas Alzouhbi anas.lbn at gmail.com
Tue May 5 04:51:08 PDT 2009


Hello
I followed the tutorial on this site
http://dbus.freedesktop.org/doc/dbus/libdbus-tutorial.html
to use the dbus.
I like to change it to send an integer instead of string, so while
appending the arguments onto signal,
I wrote:
(!dbus_message_iter_append_basic(&args, DBUS_TYPE_INT,sigvalue))
intead of   if (!dbus_message_iter_append_basic(&args,
DBUS_TYPE_STRING, &sigvalue))
but the compiler didn't know DBUS_TYPE_INT, showing this error
sender.c: In function 'sendsignal':
sender.c:63: error: 'DBUS_TYPE_INT' undeclared (first use in this function)


what I have to do?? to send an integer


More information about the dbus mailing list