core: use G_SOURCE_REMOVE and G_SOURCE_CONTINUE in GSourceFuncs

This commit is contained in:
Aleksander Morgado
2015-12-02 17:07:11 +01:00
parent 2a99bdfa00
commit ffde429843
35 changed files with 73 additions and 73 deletions

View File

@@ -684,7 +684,7 @@ altair_sim_refresh_timer_expired (MMBroadbandModemAltairLte *self)
self);
self->priv->sim_refresh_timer_id = 0;
return FALSE;
return G_SOURCE_REMOVE;
}
static void

View File

@@ -553,7 +553,7 @@ power_off_timeout_cb (PowerOffContext *ctx)
"Power off operation timed out");
power_off_context_complete_and_free (ctx);
return FALSE;
return G_SOURCE_REMOVE;
}
static void
@@ -1588,7 +1588,7 @@ simstatus_timeout_cb (AfterSimUnlockContext *ctx)
{
ctx->timeout_id = 0;
after_sim_unlock_context_step (ctx);
return FALSE;
return G_SOURCE_REMOVE;
}
static void

View File

@@ -126,7 +126,7 @@ connect_retry_ndisstatqry_check_cb (MMBroadbandBearerHuawei *self)
/* Retry same step */
connect_3gpp_context_step (ctx);
return FALSE;
return G_SOURCE_REMOVE;
}
static void
@@ -505,7 +505,7 @@ disconnect_retry_ndisstatqry_check_cb (MMBroadbandBearerHuawei *self)
/* Retry same step */
disconnect_3gpp_context_step (ctx);
return FALSE;
return G_SOURCE_REMOVE;
}
static void
@@ -705,7 +705,7 @@ network_disconnect_3gpp_delayed (MMBroadbandBearerHuawei *self)
self->priv->network_disconnect_pending_id = 0;
mm_base_bearer_report_connection_status (MM_BASE_BEARER (self),
MM_BEARER_CONNECTION_STATUS_DISCONNECTED);
return FALSE;
return G_SOURCE_REMOVE;
}
static void

View File

@@ -712,7 +712,7 @@ after_sim_unlock_wait_cb (GSimpleAsyncResult *result)
{
g_simple_async_result_complete (result);
g_object_unref (result);
return FALSE;
return G_SOURCE_REMOVE;
}
static void

View File

@@ -328,7 +328,7 @@ first_interface_missing_timeout_cb (MMDevice *device)
/* Reload the timeout, just in case we end up not having the next interface to probe...
* which is anyway very unlikely as we got it by looking at the real probe list, but anyway... */
return TRUE;
return G_SOURCE_CONTINUE;
}
static void

View File

@@ -288,7 +288,7 @@ disconnect_3gpp_timed_out_cb (MMBroadbandBearerIcera *self)
"Disconnection attempt timed out");
disconnect_3gpp_context_complete_and_free (ctx);
return FALSE;
return G_SOURCE_REMOVE;
}
static void
@@ -547,7 +547,7 @@ connect_timed_out_cb (MMBroadbandBearerIcera *self)
/* It's probably pointless to try to reset this here, but anyway... */
connect_reset (ctx);
return FALSE;
return G_SOURCE_REMOVE;
}
static void
@@ -795,7 +795,7 @@ static gboolean
retry_authentication_cb (Dial3gppContext *ctx)
{
authenticate (ctx);
return FALSE;
return G_SOURCE_REMOVE;
}
static void

View File

@@ -272,7 +272,7 @@ poll_timeout_cb (MMBroadbandBearerMbm *self)
MM_MOBILE_EQUIPMENT_ERROR_NETWORK_TIMEOUT,
"Connection attempt timed out");
dial_3gpp_context_complete_and_free (ctx);
return FALSE;
return G_SOURCE_REMOVE;
}
ctx->poll_count++;
@@ -286,7 +286,7 @@ poll_timeout_cb (MMBroadbandBearerMbm *self)
(GAsyncReadyCallback)poll_ready,
g_object_ref (ctx->self)); /* we pass the bearer object! */
self->priv->connect_pending_id = 0;
return FALSE;
return G_SOURCE_REMOVE;
}
static void

View File

@@ -181,7 +181,7 @@ after_sim_unlock_wait_cb (GSimpleAsyncResult *result)
{
g_simple_async_result_complete (result);
g_object_unref (result);
return FALSE;
return G_SOURCE_REMOVE;
}
static void

View File

@@ -90,7 +90,7 @@ cpin_query_cb (SendPinPukContext *ctx)
FALSE,
(GAsyncReadyCallback)cpin_query_ready,
ctx);
return FALSE;
return G_SOURCE_REMOVE;
}
static void

View File

@@ -168,7 +168,7 @@ after_sim_unlock_wait_cb (GSimpleAsyncResult *result)
{
g_simple_async_result_complete (result);
g_object_unref (result);
return FALSE;
return G_SOURCE_REMOVE;
}
static void

View File

@@ -161,7 +161,7 @@ poll_connection (MMBroadbandBearerNovatelLte *bearer)
bearer);
g_object_unref (modem);
return TRUE;
return G_SOURCE_CONTINUE;
}
static void
@@ -248,7 +248,7 @@ connect_3gpp_qmistatus (DetailedConnectContext *ctx)
(GAsyncReadyCallback)connect_3gpp_qmistatus_ready, /* callback */
ctx); /* user_data */
return FALSE;
return G_SOURCE_REMOVE;
}
static void
@@ -463,7 +463,7 @@ disconnect_3gpp_qmistatus (DetailedDisconnectContext *ctx)
NULL, /* cancellable */
(GAsyncReadyCallback)disconnect_3gpp_status_ready,
ctx); /* user_data */
return FALSE;
return G_SOURCE_REMOVE;
}

View File

@@ -164,7 +164,7 @@ after_sim_unlock_wait_cb (GSimpleAsyncResult *result)
{
g_simple_async_result_complete (result);
g_object_unref (result);
return FALSE;
return G_SOURCE_REMOVE;
}
static void

View File

@@ -84,7 +84,7 @@ static gboolean
custom_init_wait_cb (CustomInitContext *ctx)
{
custom_init_step (ctx);
return FALSE;
return G_SOURCE_REMOVE;
}
static void

View File

@@ -438,7 +438,7 @@ connect_timed_out_cb (MMBroadbandBearerHso *self)
/* It's probably pointless to try to reset this here, but anyway... */
connect_reset (ctx);
return FALSE;
return G_SOURCE_REMOVE;
}
static void

View File

@@ -675,7 +675,7 @@ after_power_up_wait_cb (GSimpleAsyncResult *result)
option->priv->after_power_up_wait_id = 0;
g_object_unref (option);
return FALSE;
return G_SOURCE_REMOVE;
}
static void

View File

@@ -122,7 +122,7 @@ after_sim_unlock_wait_cb (GSimpleAsyncResult *result)
{
g_simple_async_result_complete (result);
g_object_unref (result);
return FALSE;
return G_SOURCE_REMOVE;
}
static void

View File

@@ -937,7 +937,7 @@ after_sim_unlock_wait_cb (GSimpleAsyncResult *result)
{
g_simple_async_result_complete (result);
g_object_unref (result);
return FALSE;
return G_SOURCE_REMOVE;
}
static void

View File

@@ -257,7 +257,7 @@ sierra_power_up_wait_cb (GSimpleAsyncResult *result)
g_simple_async_result_set_op_res_gboolean (result, TRUE);
g_simple_async_result_complete (result);
g_object_unref (result);
return FALSE;
return G_SOURCE_REMOVE;
}
static void

View File

@@ -1220,7 +1220,7 @@ after_sim_unlock_wait_cb (GSimpleAsyncResult *result)
{
g_simple_async_result_complete (result);
g_object_unref (result);
return FALSE;
return G_SOURCE_REMOVE;
}
static void

View File

@@ -150,7 +150,7 @@ cpms_timeout_cb (ModemAfterSimUnlockContext *ctx)
{
ctx->retries--;
modem_after_sim_unlock_context_step (ctx);
return FALSE;
return G_SOURCE_REMOVE;
}
static void