GSignals for bearers addition/removal

Aleksander Morgado aleksander at aleksander.es
Mon Oct 4 10:57:07 UTC 2021


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