[Vala] Getting results from an async callback



Hi, 

trying to write some PackageKit code I came across the issue to get
results from an async call like:

pk_task.get_updates_async (filter,
                           null,
                           on_progress,
                           on_ready
                          );

and the respective callback:

private void on_ready () {
    PackageKit.Results? result = null;
    result = pk_task.generic_finish (???);                              
}

However, the generic_finish method requires an AsyncResult which should
be passed to the callback but I have not found a way to get access to
it? Any suggestions?


Thanks



-- 
tomw <tomw ubilix com>




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]