DBUS_TYPE_VARIANT in dbus_message_append_args
Marcel Witte
wittemar at googlemail.com
Mon May 18 05:31:51 PDT 2009
Hi,
how could I add an argument for an method-call of the type DBUS_TYPE_VARIANT?
The following is not working:
DBusMessage* dbusmessage;
DBusMessage* dbusreply;
dbusmessage = dbus_message_new_method_call("org.bluez",
defaultAdapter,
"org.bluez.Adapter",
"SetProperty");
char* propertyname = "Name";
dbus_message_append_args(dbusmessage, DBUS_TYPE_STRING, &propertyname,
DBUS_TYPE_VARIANT, &name, DBUS_TYPE_INVALID);
dbusreply = dbus_connection_send_with_reply_and_block(dbuscon, dbusmessage,
reply_timeout, &dbuserror);
I hope you could help me.
Greets
More information about the dbus
mailing list