broadband-modem-qmi: port messaging_load_supported_storages to use GTask
This commit is contained in:

committed by
Aleksander Morgado

parent
bf9e5cdfeb
commit
2aaac123ac
@@ -7389,7 +7389,7 @@ messaging_load_supported_storages (MMIfaceModemMessaging *_self,
|
|||||||
gpointer user_data)
|
gpointer user_data)
|
||||||
{
|
{
|
||||||
MMBroadbandModemQmi *self = MM_BROADBAND_MODEM_QMI (_self);
|
MMBroadbandModemQmi *self = MM_BROADBAND_MODEM_QMI (_self);
|
||||||
GSimpleAsyncResult *result;
|
GTask *task;
|
||||||
|
|
||||||
/* Handle fallback */
|
/* Handle fallback */
|
||||||
if (self->priv->messaging_fallback_at) {
|
if (self->priv->messaging_fallback_at) {
|
||||||
@@ -7397,13 +7397,9 @@ messaging_load_supported_storages (MMIfaceModemMessaging *_self,
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
result = g_simple_async_result_new (G_OBJECT (self),
|
task = g_task_new (self, NULL, callback, user_data);
|
||||||
callback,
|
g_task_return_boolean (task, TRUE);
|
||||||
user_data,
|
g_object_unref (task);
|
||||||
messaging_load_supported_storages);
|
|
||||||
g_simple_async_result_set_op_res_gboolean (result, TRUE);
|
|
||||||
g_simple_async_result_complete_in_idle (result);
|
|
||||||
g_object_unref (result);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
Reference in New Issue
Block a user