Correct connection sequence to maximize chances of e.g.: getting connected :)
Enrico Mioso
mrkiko.rs at gmail.com
Tue Apr 28 13:43:04 UTC 2020
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
More information about the ModemManager-devel
mailing list