[gupnp-tools] all: Remove deprecated API
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gupnp-tools] all: Remove deprecated API
- Date: Sun, 16 Oct 2016 20:02:58 +0000 (UTC)
commit 4518c946fd44a5d9412192036732eb4271664f5b
Author: Jens Georg <mail jensge org>
Date: Sun Oct 16 21:53:40 2016 +0200
all: Remove deprecated API
Signed-off-by: Jens Georg <mail jensge org>
src/network-light/upnp.c | 10 +++++-----
src/universal-cp/main.c | 2 +-
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]