summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorPhilip Withnall <philip.withnall@collabora.co.uk>2015-09-30 17:41:36 +0100
committerPhilip Withnall <philip.withnall@collabora.co.uk>2015-10-01 09:20:34 +0100
commitdac3e280d6f3fd792f1d79313debd03c0df282c4 (patch)
treec43b4d76620f3d1579cbb768a52e595f3bab8a4d /examples
parentfae0f9d37c6e34f34c92dee85384c29e565bdbce (diff)
downloadlibnice-dac3e280d6f3fd792f1d79313debd03c0df282c4.tar.gz
tests: Remove g_type_init() calls
We depend on GLib 2.36.0, which deprecated g_type_init() since GType initialisation is now done automatically. Reviewed-by: Olivier CrĂȘte <olivier.crete@collabora.com> Differential Revision: https://phabricator.freedesktop.org/D296
Diffstat (limited to 'examples')
-rw-r--r--examples/sdp-example.c4
-rw-r--r--examples/simple-example.c4
-rw-r--r--examples/threaded-example.c5
3 files changed, 0 insertions, 13 deletions
diff --git a/examples/sdp-example.c b/examples/sdp-example.c
index 246341e..bb95440 100644
--- a/examples/sdp-example.c
+++ b/examples/sdp-example.c
@@ -95,11 +95,7 @@ main(int argc, char *argv[])
g_debug("Using stun server '[%s]:%u'\n", stun_addr, stun_port);
}
-#if GLIB_CHECK_VERSION(2, 36, 0)
g_networking_init();
-#else
- g_type_init();
-#endif
gloop = g_main_loop_new(NULL, FALSE);
diff --git a/examples/simple-example.c b/examples/simple-example.c
index 6e13dc6..17702b1 100644
--- a/examples/simple-example.c
+++ b/examples/simple-example.c
@@ -105,11 +105,7 @@ main(int argc, char *argv[])
g_debug("Using stun server '[%s]:%u'\n", stun_addr, stun_port);
}
-#if GLIB_CHECK_VERSION(2, 36, 0)
g_networking_init();
-#else
- g_type_init();
-#endif
gloop = g_main_loop_new(NULL, FALSE);
#ifdef G_OS_WIN32
diff --git a/examples/threaded-example.c b/examples/threaded-example.c
index 79eda8d..d23d7f9 100644
--- a/examples/threaded-example.c
+++ b/examples/threaded-example.c
@@ -104,11 +104,6 @@ main(int argc, char *argv[])
g_debug("Using stun server '[%s]:%u'\n", stun_addr, stun_port);
}
-#if GLIB_CHECK_VERSION(2, 36, 0)
- g_networking_init();
-#else
- g_type_init();
-#endif
g_networking_init();
gloop = g_main_loop_new(NULL, FALSE);