diff options
author | Jens Georg <mail@jensge.org> | 2016-10-16 21:53:40 +0200 |
---|---|---|
committer | Jens Georg <mail@jensge.org> | 2016-10-16 21:54:27 +0200 |
commit | 4518c946fd44a5d9412192036732eb4271664f5b (patch) | |
tree | 125a06dfc75d25f2dd36e4e1ef7eea85e6b8ae4f | |
parent | e9ec9634207e4c2eea6d268ee29b57e687c1f178 (diff) | |
download | gupnp-tools-4518c946fd44a5d9412192036732eb4271664f5b.tar.gz |
all: Remove deprecated API
Signed-off-by: Jens Georg <mail@jensge.org>
-rw-r--r-- | src/network-light/upnp.c | 10 | ||||
-rw-r--r-- | src/universal-cp/main.c | 2 | ||||
-rw-r--r-- | src/upload/transfer.c | 2 |
3 files changed, 7 insertions, 7 deletions
diff --git a/src/network-light/upnp.c b/src/network-light/upnp.c index 234aa83..e913028 100644 --- a/src/network-light/upnp.c +++ b/src/network-light/upnp.c @@ -623,7 +623,7 @@ init_server (GUPnPContext *context) gupnp_root_device_set_available (dev, TRUE); g_print ("Attaching to IP/Host %s on port %d\n", - gupnp_context_get_host_ip (context), + gssdp_client_get_host_ip (GSSDP_CLIENT (context)), gupnp_context_get_port (context)); return TRUE; @@ -717,7 +717,7 @@ on_context_unavailable (GUPnPContextManager *manager, gpointer user_data) { g_print ("Detaching from IP/Host %s and port %d\n", - gupnp_context_get_host_ip (context), + gssdp_client_get_host_ip (GSSDP_CLIENT (context)), gupnp_context_get_port (context)); g_hash_table_remove (nl_hash, context); @@ -726,8 +726,8 @@ on_context_unavailable (GUPnPContextManager *manager, static gboolean context_equal (GUPnPContext *context1, GUPnPContext *context2) { - return g_ascii_strcasecmp (gupnp_context_get_host_ip (context1), - gupnp_context_get_host_ip (context2)) == 0; + return g_ascii_strcasecmp (gssdp_client_get_host_ip (GSSDP_CLIENT (context1)), + gssdp_client_get_host_ip (GSSDP_CLIENT (context2))) == 0; } gboolean @@ -747,7 +747,7 @@ init_upnp (gchar **interfaces, guint port, gchar *name) return FALSE; } - context_manager = gupnp_context_manager_new (NULL, port); + context_manager = gupnp_context_manager_create (port); g_assert (context_manager != NULL); if (interfaces != NULL) { diff --git a/src/universal-cp/main.c b/src/universal-cp/main.c index de9175e..8e78b0b 100644 --- a/src/universal-cp/main.c +++ b/src/universal-cp/main.c @@ -100,7 +100,7 @@ init_upnp (void) g_type_init (); #endif - context_manager = gupnp_context_manager_new (NULL, upnp_port); + context_manager = gupnp_context_manager_create (upnp_port); g_assert (context_manager != NULL); if (interfaces != NULL) { diff --git a/src/upload/transfer.c b/src/upload/transfer.c index 5b56207..df1630b 100644 --- a/src/upload/transfer.c +++ b/src/upload/transfer.c @@ -190,7 +190,7 @@ start_transfer (const char *file_path, gupnp_context_host_path (context, file_path, file_path); source_uri = g_strdup_printf ("http://%s:%u%s", - gupnp_context_get_host_ip (context), + gssdp_client_get_host_ip (GSSDP_CLIENT (context)), gupnp_context_get_port (context), file_path); |