Needed help in Asynchronous DBus method call using low level APIs

wipphanp pruthvirajsp at gmail.com
Tue Sep 6 06:24:10 PDT 2011


Any sample examples?

wipphanp wrote:
> 
> Hi Macieira
> 
> This is Pruthvi here. 
> 
> Even I have the same requirement like implementing asynchronous callback
> over dbus. I read this mail chain and you were suggesting some binding
> instead of low level dbus API.  I am also novice to Dbus and would like to
> understand things in bit detail. Can u share me some information or links
> where I can understand things clearly. I was googling to get information
> and some sample code for the same. I did not get anything much useful.
> 
> It would be really helpful if you share some information on the same like
> how to implement binding and all.
> 
> Thanks
> 
> 
> Thiago Macieira 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-tp32357305p32407972.html
Sent from the Free Desktop - dbus mailing list archive at Nabble.com.



More information about the dbus mailing list