GSignals for bearers addition/removal
Enrico Mioso
mrkiko.rs at gmail.com
Mon Oct 4 11:00:27 UTC 2021
Thanks a lot!
Really grateful...
I'll do this way ! :)
On Mon, 4 Oct 2021, Aleksander Morgado wrote:
> Date: Mon, 4 Oct 2021 12:57:07
> 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!
>
>>
>> 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.
>>
>
> static void
> bearers_updated (MMModem *modem,
> GParamSpec *pspec,
> gpointer user_data)
> {
> GList *list;
>
> // When this callback is called, the property in the MMModem
> already has the latest value
> list = mm_modem_list_bearers_sync (...)
> }
>
> g_signal_connect (modem, "notify::bearers", G_CALLBACK
> (bearers_updated), some_user_data);
>
> --
> Aleksander
> https://aleksander.es
>
More information about the ModemManager-devel
mailing list