[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freedesktop-dbus
Subject:    return parameter from a function called once with g_timeoutadd
From:       viklaus <j.viglione () amesys ! fr>
Date:       2007-12-04 15:45:06
Message-ID: 14152908.post () talk ! nabble ! com
[Download RAW message or body]


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.

_______________________________________________
dbus mailing list
dbus@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dbus


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic