Needed help in Asynchronous DBus method call using low level APIs

Kuladeep kuladeep.chowdary at gmail.com
Wed Aug 31 01:24:15 PDT 2011


Thank you very much Thiago Macieira.. i will try it using dbus bindings..
hope it will work..:-)



Bugzilla from thiago at kde.org wrote:
> 
> On Monday, 29 de August de 2011 23:39:40 Kuladeep wrote:
>> Thanks for your valuable reply..  I modified my code such that
>> unreferring
>> of pending object is done in the function which
>> dbus_pending_call_set_notify( ) will notify i.e function() in the code.
>> but
>> still there is no luck..  
>> 
>> If you wish to receive the reply, you must wait for the reply to arrive
>> before 
>> you unref the "pending" object. I am no clear about this. waiting in what
>> sense.. if we are waiting it wouldn't be asynchronous right..!! correct
>> me
>> if i am wrong. can u share me some sample code if possible..!!? 
> 
> I meant wait in the sense of "wait in the main loop". Let the application
> run 
> and the main loop do its job. When the reply is received, your main loop
> code 
> should call D-Bus to process it.
> 
> Hint: please, please, please consider using a binding. Do not use the low-
> level API.
> 
> -- 
> Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
>    Software Architect - Intel Open Source Technology Center
>       PGP/GPG: 0x6EF45358; fingerprint:
>       E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
> 
>  
> _______________________________________________
> dbus mailing list
> dbus at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dbus
> 
> 

-- 
View this message in context: http://old.nabble.com/Needed-help-in-Asynchronous-DBus-method-call-using-low-level-APIs-tp32357305p32370295.html
Sent from the Free Desktop - dbus mailing list archive at Nabble.com.



More information about the dbus mailing list