error when sending string and variant over DBus

sai koushik saikoushik539 at gmail.com
Tue Jun 29 06:08:04 PDT 2010


I want to call a method with parameters as  string and GValue over the
DBus , below is the piece of code


GValue val={0,};
g_value_init(&val,G_TYPE_STRING);
GError *error=NULL;
const gchar *str="\"enabled\"";
g_value_set_string(&val,str);
dbus_g_proxy_call (proxy, "SetProperty", &error, G_TYPE_STRING,
"<property_name>", G_TYPE_VALUE,&val, G_TYPE_INVALID, G_TYPE_INVALID);


but when i execute the above piece of code , i am getting following error

"Argument format is not recognized"


any help?

Thanks
ssk.


More information about the dbus mailing list