diff options
author | Christophe Guiraud <christophe.guiraud@intel.com> | 2013-08-06 10:52:06 +0200 |
---|---|---|
committer | rmerlino <regis.merlino@intel.com> | 2013-12-12 14:51:39 +0100 |
commit | e1016524888d652aeb8470cdc54db35619cd6d6d (patch) | |
tree | 87f16ca5f9d44de036beaa3b559cc6074c84c1ab /libdleyna/server/props.c | |
parent | e0a29b4f4596f04831f0aa6b863b0c3d53c598ee (diff) | |
download | dleyna-server-e1016524888d652aeb8470cdc54db35619cd6d6d.tar.gz |
[Device] Retrieve sleeping state via GetInterfaceInfo action
Some devices may continue to send SSDP messages even if they are
asleep. Thus we cannot assume that a device is awake just because we
can discover it. If a device is dicovered we need to retrieve it's
sleeping state via the UPnP GetInterfaceInfo action.
Signed-off-by: Christophe Guiraud <christophe.guiraud@intel.com>
Diffstat (limited to 'libdleyna/server/props.c')
-rw-r--r-- | libdleyna/server/props.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/libdleyna/server/props.c b/libdleyna/server/props.c index 4196e68..fc26ec2 100644 --- a/libdleyna/server/props.c +++ b/libdleyna/server/props.c @@ -808,15 +808,10 @@ void dls_props_add_device(GUPnPDeviceInfo *root_proxy, g_variant_builder_add(vb, "{sv}", DLS_INTERFACE_PROP_SV_FEATURE_LIST, device->feature_list); - - if (ems_proxy != NULL) - prv_add_bool_prop(vb, DLS_INTERFACE_PROP_SLEEPING, - device->sleeping); } GVariant *dls_props_get_device_prop(GUPnPDeviceInfo *root_proxy, GUPnPDeviceInfo *proxy, - GUPnPServiceProxy *ems_proxy, const dls_device_t *device, const gchar *prop) { @@ -915,16 +910,6 @@ GVariant *dls_props_get_device_prop(GUPnPDeviceInfo *root_proxy, DLEYNA_LOG_DEBUG("Prop %s = %s", prop, copy); #endif } - } else if (!strcmp(DLS_INTERFACE_PROP_SLEEPING, prop)) { - if (ems_proxy != NULL) { - retval = g_variant_ref_sink( - g_variant_new_boolean(device->sleeping)); - } - -#if DLEYNA_LOG_LEVEL & DLEYNA_LOG_LEVEL_DEBUG - DLEYNA_LOG_DEBUG("Prop %s = %s", prop, - device->sleeping ? "TRUE":"FALSE"); -#endif } if (!retval) { |