Skip to content
This repository has been archived by the owner on Sep 16, 2021. It is now read-only.

Commit

Permalink
Port to gupnp-1.2
Browse files Browse the repository at this point in the history
gupnp_context_get_host_ip has been deprecated for a long time, as
the host-ip property moved to gssdp.

There is also a ton of new deprecations but I will address that separately.
  • Loading branch information
jtojnar committed Mar 16, 2019
1 parent 776950d commit 96c01c8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
8 changes: 4 additions & 4 deletions configure.ac
Expand Up @@ -36,10 +36,10 @@ LT_LANG([C])

# Checks for libraries.
PKG_PROG_PKG_CONFIG(0.16)
PKG_CHECK_MODULES([GLIB], [glib-2.0 >= 2.28])
PKG_CHECK_MODULES([GIO], [gio-2.0 >= 2.28])
PKG_CHECK_MODULES([GSSDP], [gssdp-1.0 >= 0.13.2])
PKG_CHECK_MODULES([GUPNP], [gupnp-1.0 >= 0.20.3])
PKG_CHECK_MODULES([GLIB], [glib-2.0 >= 2.36])
PKG_CHECK_MODULES([GIO], [gio-2.0 >= 2.36])
PKG_CHECK_MODULES([GSSDP], [gssdp-1.2 >= 0.13.2])
PKG_CHECK_MODULES([GUPNP], [gupnp-1.2 >= 0.20.3])
PKG_CHECK_MODULES([GUPNPAV], [gupnp-av-1.0 >= 0.11.5])
PKG_CHECK_MODULES([GUPNPDLNA], [gupnp-dlna-2.0 >= 0.9.4])
PKG_CHECK_MODULES([SOUP], [libsoup-2.4 >= 2.28.2])
Expand Down
4 changes: 2 additions & 2 deletions libdleyna/server/upnp.c 100755 → 100644
Expand Up @@ -351,8 +351,8 @@ static void prv_device_unavailable_cb(GUPnPControlPoint *cp,

udn = gupnp_device_info_get_udn((GUPnPDeviceInfo *)proxy);

ip_address = gupnp_context_get_host_ip(
gupnp_control_point_get_context(cp));
ip_address = gssdp_client_get_host_ip(
GSSDP_CLIENT(gupnp_control_point_get_context(cp)));

if (!udn || !ip_address)
goto on_error;
Expand Down
2 changes: 0 additions & 2 deletions test/dbus/dms-info.c 100755 → 100644
Expand Up @@ -360,8 +360,6 @@ int main(int argc, char *argv[])
if (sigprocmask(SIG_BLOCK, &mask, NULL) == -1)
goto on_error;

g_type_init();

/* Create proxy for com.intel.dLeynaServer.Manager. The Manager
object has no properties. We will create the proxy asynchronously
and use G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES to ensure that
Expand Down

0 comments on commit 96c01c8

Please sign in to comment.