Hey! > I see there is no documented GSignals for bearers addition/removal. > I understand I probably should get the bearers list and connect > object-{added,removed} GSignals to it. But I would like to see some code > snippets, to know the proper prototypes for the handlers. >
We have the "Bearers" property in the Modem interface: https://www.freedesktop.org/software/ModemManager/doc/latest/ModemManager/gdbus-org.freedesktop.ModemManager1.Modem.html#gdbus-property-org-freedesktop-ModemManager1-Modem.Bearers If you're using raw processing of DBus, you'll need to listen for org.freedesktop.DBus.Properties.PropertiesChanged signals emitted, and monitor for the "Bearers" property being updated: org.freedesktop.DBus.Properties.PropertiesChanged (STRING interface_name, DICT<STRING,VARIANT> changed_properties, ARRAY<STRING> invalidated_properties); But doing all this manually is a lot of work really; libmm-glib abstracts all this nicely and is much easier to use... -- Aleksander https://aleksander.es