static void
setup_ready (MMModemLocation *modem_location,
             GAsyncResult    *result)
{
    gboolean operation_result;
    GError *error = NULL;

    operation_result = mm_modem_location_setup_finish (modem_location, result, &error);
    setup_process_reply (operation_result, error);

    mmcli_async_operation_done ();
}
Exemple #2
0
static void
on_modem_location_setup (GObject      *source_object,
                         GAsyncResult *res,
                         gpointer      user_data)
{
        GClueModemSourcePrivate *priv = GCLUE_MODEM_SOURCE (user_data)->priv;
        GError *error = NULL;

        if (!mm_modem_location_setup_finish (priv->modem_location, res, &error)) {
                g_warning ("Failed to setup modem: %s", error->message);
                g_error_free (error);

                return;
        }

        on_location_changed (G_OBJECT (priv->modem_location), NULL, user_data);
}