예제 #1
0
static void
fetch_async_result (GObject *source, GAsyncResult *result, gpointer user_data)
{
	*((GAsyncResult**)user_data) = result;
	g_object_ref (result);
	egg_test_wait_stop ();
}
예제 #2
0
static void
on_test_service_vanished (GDBusConnection *connection,
                          const gchar *name,
                          gpointer user_data)
{
    TestService *test = user_data;
    if (test->available) {
        test->available = FALSE;
        egg_test_wait_stop ();
    }
}
예제 #3
0
static void
on_test_service_appeared (GDBusConnection *connection,
                          const gchar *name,
                          const gchar *name_owner,
                          gpointer user_data)
{
    TestService *test = user_data;
    if (!test->connection)
        test->connection = g_object_ref (connection);
    test->available = TRUE;
    egg_test_wait_stop ();
}