View Single Post
Posts: 64 | Thanked: 13 times | Joined on Apr 2010
#5
Originally Posted by qwerty12 View Post
Looking at the original it's ripped from (http://talk.maemo.org/showpost.php?p...7&postcount=14), it's using dbus_g_proxy_call_no_reply, whilst you're using dbus_g_proxy_call. Because the latter also allows you to specify pointers for storing the values returned by the call, you must add another G_TYPE_INVALID (like when you're finished speciying the "in" arguments) to specify when you're done.

P.S. dbus_g_proxy_call supports GError. Use it


I tried this
and i got this error from log on device
too many arguments in reply; expected 0 , got 2

what type of paramters i should specify

gboolean b = dbus_g_proxy_call(dbus_proxy,"Send",&error,myt,ptr array, G_TYPE_STRING,"",G_TYPE_INVALID,G_TYPE_INVALID);


if(!b)
{


logv( "Error sending:");
logv( error->message);

}
else
logv( "Success sending");