GSignals for bearers addition/removal

Enrico Mioso mrkiko.rs at gmail.com
Mon Oct 4 10:40:17 UTC 2021


Hi!!

Thanks a lot for your (as always) kind answer. I am using libmm-glib! :)
I am putting some code togeter but I haven't found the "proper" way to do so, at least not so far.

thanks.

Enrico


On Mon, 4 Oct 2021, Aleksander Morgado wrote:

> Date: Mon, 4 Oct 2021 12:31:14
> From: Aleksander Morgado <aleksander at aleksander.es>
> To: Enrico Mioso <mrkiko.rs at gmail.com>
> Cc: "ModemManager (development)" <modemmanager-devel at lists.freedesktop.org>
> Subject: Re: GSignals for bearers addition/removal
> 
> 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
>


More information about the ModemManager-devel mailing list