[API] Return object paths in GetRenderers() as documented

GetRenderers() should return object paths instead of strings
(documentation already claims it does).

Fixes #110.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
[API] Use object paths in LostRenderer and FoundRenderer

LostRenderer and FoundRenderer signals should have object path
output parameters (instead of string). Documentations refers to
paths already.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
[Network Filtering] Add Network Filtering support

Add 2 new settings:
1 - netf_enabled (boolean): To activate or deactivate the network filtering
2 - netf_entries (str list): List of supported network

Add org.freedesktop.DBus.Properties DBUS Interface to
com.intel.dLeynaRenderer.Manager root object.

Add 4 new methodes to com.intel.dLeynaRenderer.Manager interface
1 - WhiteListEnable
2 - WhiteListAddEntries
3 - WhiteListRemoveEntries
4 - WhiteListClear

Signed-off-by: Ludovic Ferrandis <ludovic.ferrandis@intel.com>
[Release] Version 0.2.2

Signed-off-by: Regis Merlino <regis.merlino@intel.com>
[Configuration] Post-release version bump

Signed-off-by: Regis Merlino <regis.merlino@intel.com>
[Service] Provide service version info to core component.

Signed-off-by: Regis Merlino <regis.merlino@intel.com>
[Documentation] Fixed a small error in the README

Fixed a copy and paste error in the README.  It referred to
dleyna-server instead of dleyna-renderer.

Signed-off-by: Mark Ryan <mark.d.ryan@intel.com>
[Control Point] Get control point version

Signed-off-by: Regis Merlino <regis.merlino@intel.com>
[Tests] Fix 2 typos in rendererconsole.py

Fix for bug https://github.com/01org/dleyna-renderer/issues/118

Signed-off-by: Regis Merlino <regis.merlino@intel.com>
[PushHost] Use GUPnP Mime Type if available

when hosting a file, we now use the mime type reported by GUPnP-DLNA
when available, and we fallback to the g_content_type_guess one if it
is not available.

Fix issue #120
https://github.com/01org/dleyna-renderer/issues/120

Signed-off-by: Christophe Guiraud <christophe.guiraud@intel.com>
[Device] Fix dlr_device_set_position implementation

dlr_device_set_position is incorrectly implemented.
now we use the REL_TIME unit for Time based Seeking
instead of ABS_TIME unit and the X_DLNA_REL_BYTE unit for
Byte Seeking instead of ABS_COUNT unit.

Partial fix for issue:

https://github.com/01org/dleyna-renderer/issues/115

Signed-off-by: Christophe Guiraud <christophe.guiraud@intel.com>
[Device] Fix DLR_INTERFACE_PROP_BYTE_POSITION retrieval

DLR_INTERFACE_PROP_BYTE_POSITION is now assigned with
the result of a call to upnp action X_DLNA_GetBytePositionInfo[RelByte]
instead of upnp action GetPositionInfo[RelCount].

Partial fix for issue:

https://github.com/01org/dleyna-renderer/issues/115

Signed-off-by: Christophe Guiraud <christophe.guiraud@intel.com>
[Device] Fix dlr_device_seek implementation

dlr_device_seek was incorrectly implemented.
Modify the current implemention to retrieve the current position with
the right method depending on the unit (time or byte) and add it to
the delta specified in Seek request, and then call
dlr_device_set_position().

so now we have:

- TIME SEEK OPERATIONS

Seek(offset)
 -> current_position = UPNP GetPositionInfo["RelTime"]
 -> UPNP Seek["REL_TIME", current_position +  offset]

SetPosition(position)
 -> UPNP Seek["REL_TIME", position]

- BYTE SEEK OPERATIONS

ByteSeek(offset)
 -> current_position = UPNP X_DLNA_GetBytePositionInfo["RelByte"]
 -> UPNP Seek["X_DLNA_REL_BYTE", current_position + offset]

SetBytePosition(position)
 -> UPNP Seek["X_DLNA_REL_BYTE", position]

Partial fix for issue:

https://github.com/01org/dleyna-renderer/issues/115

Signed-off-by: Christophe Guiraud <christophe.guiraud@intel.com>
[Device] Check X_DLNA_GetBytePositionInfo action availability

Introspection is used to check if the UPnP X_DLNA_GetBytePositionInfo
action is supported. If it is not supported we skip its call when we
retrieve all the properties.
X_DLNA_GetBytePositionInfo doesn't seem to be widely supported by
renderer devices.

Partial fix for issue:
https://github.com/01org/dleyna-renderer/issues/115

Signed-off-by: Christophe Guiraud <christophe.guiraud@intel.com>
[Tasks] Fix a memory leak

Fixes https://github.com/01org/dleyna-collabora-android/issues/58

Signed-off-by: Regis Merlino <regis.merlino@intel.com>
[Memory Leak] Partial fix for bug 129

https://github.com/01org/dleyna-renderer/issues/129

This commit attempts to partially fix bug 129.  It cannot be
completely fixed at the moment due to a bug in GUPnP.

https://bugzilla.gnome.org/show_bug.cgi?id=708751

At least we're freeing the list now, if not the strings that it
contains.  Also, to reduce the effect of the memory leak, this
commit ensures that it only happens once per renderer rather than
once each time we receive an event from a renderer.  The assumption
is that a device will not dynamically change the DLNA classes that
it supports.

Signed-off-by: Mark Ryan <mark.d.ryan@intel.com>
[Network Filtering] New API and save

- Remove all WhiteListxxx API
- Add Set() to 'org.freedesktop.DBus.Properties' interface to
  'com.intel.dLeynaRenderer.Manager' root interface

Signed-off-by: Ludovic Ferrandis <ludovic.ferrandis@intel.com>
[Property] Add 'Never Quit' property to Manager

It is now possible to manage the 'Never Quit' option via
the Set() methode.

Signed-off-by: Ludovic Ferrandis <ludovic.ferrandis@intel.com>
[Release] Version 0.4.0

Signed-off-by: Regis Merlino <regis.merlino@intel.com>
[Configuration] Post-release version bump

Signed-off-by: Regis Merlino <regis.merlino@intel.com>