broadband-modem-mbim: port messaging_load_supported_storages to use GTask

This commit is contained in:
Ben Chan
2017-07-10 16:38:00 -07:00
parent 5bf0af7a83
commit ec14a26a7d

View File

@@ -2900,15 +2900,11 @@ messaging_load_supported_storages (MMIfaceModemMessaging *self,
GAsyncReadyCallback callback,
gpointer user_data)
{
GSimpleAsyncResult *result;
GTask *task;
result = g_simple_async_result_new (G_OBJECT (self),
callback,
user_data,
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);
task = g_task_new (self, NULL, callback, user_data);
g_task_return_boolean (task, TRUE);
g_object_unref (task);
}
/*****************************************************************************/