[gupnp] Revert "tests: Add a way to test cancelling introspection gets"
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gupnp] Revert "tests: Add a way to test cancelling introspection gets"
- Date: Sat, 7 Dec 2013 23:35:12 +0000 (UTC)
commit 684ec293ba87f68c10e1ee66fcca115bfa2067da
Author: Jens Georg <mail jensge org>
Date: Sun Dec 8 00:34:56 2013 +0100
Revert "tests: Add a way to test cancelling introspection gets"
This reverts commit c90f519475e3c710128454188f5c3e5c3ad62ee0.
tests/test-introspection.c | 19 ++++---------------
1 files changed, 4 insertions(+), 15 deletions(-)
---
diff --git a/tests/test-introspection.c b/tests/test-introspection.c
index 4ba97a8..0a6ca16 100644
--- a/tests/test-introspection.c
+++ b/tests/test-introspection.c
@@ -30,8 +30,6 @@
GMainLoop *main_loop;
-static GCancellable *cancellable;
-
static gboolean async = FALSE;
static GOptionEntry entries[] =
{
@@ -43,13 +41,7 @@ static GOptionEntry entries[] =
static void
interrupt_signal_handler (G_GNUC_UNUSED int signum)
{
- if (g_cancellable_is_cancelled (cancellable)) {
- g_main_loop_quit (main_loop);
- } else {
- g_print ("Canceling all introspection calls. "
- "Press ^C again to quit.\n");
- g_cancellable_cancel (cancellable);
- }
+ g_main_loop_quit (main_loop);
}
static void
@@ -210,10 +202,9 @@ service_proxy_available_cb (G_GNUC_UNUSED GUPnPControlPoint *cp,
info = GUPNP_SERVICE_INFO (proxy);
if (async) {
- gupnp_service_info_get_introspection_async_full (info,
- got_introspection,
- cancellable,
- NULL);
+ gupnp_service_info_get_introspection_async (info,
+ got_introspection,
+ NULL);
} else {
introspection =
gupnp_service_info_get_introspection (info, &error);
@@ -279,8 +270,6 @@ main (int argc, char **argv)
return EXIT_FAILURE;
}
- cancellable = g_cancellable_new ();
-
/* We're interested in everything */
cp = gupnp_control_point_new (context, "ssdp:all");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]