static void _tp_provider_prepared (GObject *source, GAsyncResult *result, gpointer user_data) { GError *error = NULL; if (!mailme_telepathy_prepare_finish (MAILME_TELEPATHY (source), result, &error)) { g_warning (G_STRLOC ": Failed to prepare e-mail provider: %s", error->message); return; } }
static void on_tp_provider_prepared (GObject *source, GAsyncResult *result, gpointer user_data) { GMainLoop *loop = user_data; GError *error = NULL; if (!mailme_telepathy_prepare_finish (MAILME_TELEPATHY (source), result, &error)) { g_warning ("Failed to prepare Telepathy provider: %s", error->message); g_main_loop_quit (loop); return; } }