[Architecture] Change directory structure to enable build from a master project

Signed-off-by: Regis Merlino <regis.merlino@intel.com>
[Build] Add missing distribution files

Signed-off-by: Regis Merlino <regis.merlino@intel.com>
[Release] dLeyna-server v0.0.1

Signed-off-by: Ludovic Ferrandis <ludovic.ferrandis@intel.com>
[Configuration] Post-release version bump

Signed-off-by: Ludovic Ferrandis <ludovic.ferrandis@intel.com>
Fixed two errors in the d-Bus API.txt doc

- 'item' was missing as a value for the Type parameters.
- The document incorrectly stated that dLeyna-server does not support
  the container ChildCount property.  It's ItemCount we do not support.

Signed-off-by: Mark Ryan <mark.d.ryan@intel.com>
[Copyright] Fix copyright headers

Signed-off-by: Ludovic Ferrandis <ludovic.ferrandis@intel.com>
[Doc] add with-ua-prefix doc to README

Add missing with-ua-prefix option doc to the README.
Fix issue https://github.com/01org/dleyna-server/issues/37

Signed-off-by: Christophe Guiraud <christophe.guiraud@intel.com>
[API] Add new GetMetaData Media Object API

- Add a new method GetMetaData to the org.gnome.UPnP.MediaObject2 interface to allow
the retrieval of the Meta data information of an object in DIDL-Lite XML format.
- MediaConsole python test app updated.
- Doc updated.
- Fix issue https://github.com/01org/dleyna-server/issues/25

Signed-off-by: Christophe Guiraud <christophe.guiraud@intel.com>
[Tests] Add print_metadata() method to MediaConsole

- Add a print_metadata() debug method to the MediaConsole Python
test application. This new method allows to retrieve and pretty
print Media objects Metadata information which are formatted in
DIDL Lite XML.

- Related to issue #25

Signed-off-by: Christophe Guiraud <christophe.guiraud@intel.com>
[Props] Handle wild cards for SortCaps & SearchCaps

Signed-off-by: Regis Merlino <regis.merlino@intel.com>
[Property] Code cleaning

Remove useless pointer check.

Update prv_add_strv_prop to behave as other functions.
Now it checks if 'value' parameter is not NULL.

Signed-off-by: Ludovic Ferrandis <ludovic.ferrandis@intel.com>
[Property] Display Resource property in Container

Fix https://github.com/01org/dleyna-server/issues/5

Add 'Resource' property
Add GetCompatibleResource API

Signed-off-by: Ludovic Ferrandis <ludovic.ferrandis@intel.com>
[Bug Fix] Fix a memory leak in dls_upnp_get_resource

Signed-off-by: Ludovic Ferrandis <ludovic.ferrandis@intel.com>
[Device] Update CreateContainer DLNAManaged flags

Signed-off-by: Regis Merlino <regis.merlino@intel.com>
[Property] Add MediaItem2 resource properties to Container. Fix UpdateCount.

Add URLs, Size, DLNAProfile & Mime/Types resources

We can now filter out URLs for Container, using SetProtocolInfo API

Second part for bug https://github.com/01org/dleyna-server/issues/5

In addition this commit fixes the UpdateCount property that wasn't
managed in the Get_Prop() method.

Signed-off-by: Ludovic Ferrandis <ludovic.ferrandis@intel.com>
[Documentation] Explain Container reources in more detail.

Added some extra text to explain in more detail what container
resources are.

Signed-off-by: Mark Ryan <mark.d.ryan@intel.com>
[Property] Don't display Tracking Option properties when Tracking is off.

Fix bug https://github.com/01org/dleyna-server/issues/27

This patch affects the properties below:
ObjectUpdateID, ContainerUpdateID, TotalDeletedChildCount, UpdateCount

Signed-off-by: Ludovic Ferrandis <ludovic.ferrandis@intel.com>
[Device] Fix nested gupnp service calls

Signed-off-by: Regis Merlino <regis.merlino@intel.com>
[Property] Fix a potential bug when setting Boolean gvariant

When setting a gboolean as the result of a bitfield operation,
the result could not be used directly in GVariant, using
g_variant_new_boolean or a call like
g_variant_builder_add(vb, "{sv}", key, g_variant_new_boolean(value));

gboolean is defined as gint
g_variant_new_boolean call internal function that only copy the first
byte of the gboolean.

ex:
gboolean x = 0x00000010 will work, and the GVariant = 0x10
gboolean x = 0x01000000 won't work. GVariant = 0;

We should not do: gboolean x = (x & y)
We must do: gboolean x = (x & y) != 0

Signed-off-by: Ludovic Ferrandis <ludovic.ferrandis@intel.com>
[Device] Fix device construction

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