[gupnp] linux-cm: Pass on UDA version to GUPnP context
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gupnp] linux-cm: Pass on UDA version to GUPnP context
- Date: Sun, 13 Jan 2019 17:59:51 +0000 (UTC)
commit 065ad02780dfc4abce62ec8caf68edc055a6e5b8
Author: Jens Georg <mail jensge org>
Date: Sun Jan 13 18:41:08 2019 +0100
linux-cm: Pass on UDA version to GUPnP context
libgupnp/gupnp-linux-context-manager.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/libgupnp/gupnp-linux-context-manager.c b/libgupnp/gupnp-linux-context-manager.c
index 3387cee..2966087 100644
--- a/libgupnp/gupnp-linux-context-manager.c
+++ b/libgupnp/gupnp-linux-context-manager.c
@@ -279,6 +279,7 @@ network_device_create_context (NetworkInterface *device,
guint port;
GError *error = NULL;
GUPnPContext *context;
+ GSSDPUDAVersion *version;
if (g_hash_table_contains (device->contexts, address)) {
g_debug ("Context for address %s on %s already exists",
@@ -288,7 +289,10 @@ network_device_create_context (NetworkInterface *device,
return;
}
- g_object_get (device->manager, "port", &port, NULL);
+ g_object_get (device->manager,
+ "port", &port,
+ "uda-version", &version,
+ NULL);
network_device_update_essid (device);
@@ -296,6 +300,7 @@ network_device_create_context (NetworkInterface *device,
NULL,
&error,
"host-ip", address,
+ "uda-version", version,
"interface", label,
"network", device->essid ? device->essid
: mask,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]