Hello!!

So, due to some issues I will have to rewrite my code from scratch anyway. And 
so this time I am doing it with a different use-case in mind.

I should monitor incoming and outgoing voice calls for a modem. How may I 
manage objects lifetime, assuming ModemManager and the modem may disappear from 
underneath at any time?

Answer I found:
GTasks: I may use them to construct piece by piece the needed context and 
proceed chaining async operations.

So, when I see MM appear in the bus I may start a GTask to construct all the 
needed context to start monitoring calls. but I want to do it for every modem 
in the system, maybe more than one.
Or, better, I would do it in general fashion.
How do I track MMModems and MMVoice objects in this case, since I need to keep 
them around to receive their GSignals?
GTasks should help me manage the destruction of objects I am using temporarily, 
but how about objects I need to keep until a given modem physically disconnects 
and/or MM is closed for some reason?

Thank you very very much,

enrico
_______________________________________________
ModemManager-devel mailing list
ModemManager-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/modemmanager-devel

Reply via email to