Hi all ,
In ofono call-forwarding use cases , i am trying to set
"VoiceNoReplyTimeout" property which is of type uint16 . below is the piece
of code
uint time_out=15;
GValue val=G_VALUE_INIT;
g_value_init(&val,G_TYPE_UINT);
GError *error=NULL;
g_value_set_uint(&val,time_out);
if(!dbus_g_proxy_call (proxy, "SetProperty", &error,
G_TYPE_STRING,"VoiceNoReplyTimeout", G_TYPE_VALUE,&val, G_TYPE_INVALID,
G_TYPE_INVALID))
{
g_print("failed\n %s ",error->message);
}
if i execute the above piece of code i am getting error ->"Invalid
arguments in method call"
i tried to look into the ofono soruce code , in that i tried to get the data
types what it is expecting , and i got with numbers 117 and 113
g_print("\n arg type %d %d \n"
,dbus_message_iter_get_arg_type(&var),DBUS_TYPE_UINT16)
when i checked the number references in DBus specification i found
UINT16 113 (ASCII 'q')
how to add an unint16 value to a GValue ?
Show replies by date