broadband-modem-mbim: port messaging_load_supported_storages to use GTask
This commit is contained in:
@@ -2900,15 +2900,11 @@ messaging_load_supported_storages (MMIfaceModemMessaging *self,
|
|||||||
GAsyncReadyCallback callback,
|
GAsyncReadyCallback callback,
|
||||||
gpointer user_data)
|
gpointer user_data)
|
||||||
{
|
{
|
||||||
GSimpleAsyncResult *result;
|
GTask *task;
|
||||||
|
|
||||||
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