return parameter from a function called once with g_timeoutadd

viklaus j.viglione at amesys.fr
Tue Dec 4 07:45:06 PST 2007


hello,

I call a function using Dbus Glib with 
g_timeout_add(0, callback_of_my_fonction, param);

typedef struct
{
int param_in;
int param_out; (return code)
} s_param;
s_param param;

param contains in and out values (I mean there are return parameters in this
structure)

my problem is that it is not synchronous and so the function containing the
g_timeout_add call terminates before my callback being called.
that 's why my param out is always wrong....

do you know how to do to avoid this ?

is there an other way to do it ?

Thanx




-- 
View this message in context: http://www.nabble.com/return-parameter-from-a-function-called-once-with-g_timeoutadd-tf4943803.html#a14152908
Sent from the Free Desktop - dbus mailing list archive at Nabble.com.



More information about the dbus mailing list