[Documentation] Mention dbus-devel in the README.

Updated the README to reflect the fact that the development
version of d-Bus must be installed to compile media-service-upnp.

Signed-off-by: Mark Ryan <mark.d.ryan@intel.com>
[Documentation] Use public git url in README

Signed-off-by: Mark Ryan <mark.d.ryan@intel.com>
[Coding Style] Fix includes order

Rearrange includes order so it's easier to find them

Signed-off-by: Ludovic Ferrandis <ludovic.ferrandis@intel.com>
[Code] Fix declaration of struct in device.h

A context structure is defined in device.h with name msu_context_t.
This name is already used in media-service-upnp.c for the
general context.

Rename the device context struct to msu_device_context_t

Signed-off-by: Ludovic Ferrandis <ludovic.ferrandis@intel.com>
[Autotools] Move and rename m4 file

move and rename acinclude.m4 to m4 folder and rename it
compiler-flags.m4

Signed-off-by: Ludovic Ferrandis <ludovic.ferrandis@intel.com>
[Logging] Add logging feature - step 1

Add functions to log messages to syslog/glib/files
Only syslog is enabled for instance
Add a configure option to choose the logging level (--with-log)

Next step: Use a configuration file to choose logging system
           Use an option to dynamically change logging level

Signed-off-by: Ludovic Ferrandis <ludovic.ferrandis@intel.com>
Fix two typos

msu_log_finialize -> msu_log_finalize and user_daata -> user_data

Signed-off-by: Sébastien Bianti <sebastien.bianti@linux.intel.com>
Fix crash in log.c

When log_domain parameter is null

Signed-off-by: Sébastien Bianti <sebastien.bianti@linux.intel.com>
Fix cast-alignment compile error

Occures on arm compiler. However, using g_new0 should be reserved to structs,
and g_[try_]malloc[0][_n] functions are more appropriate for primitive types.

Signed-off-by: Sébastien Bianti <sebastien.bianti@linux.intel.com>
[Code] Fix typedef definition

Signed-off-by: Ludovic Ferrandis <ludovic.ferrandis@intel.com>
[Autotools] Cleanup compiler flags

Use AM_CFLAGS for media-service-upnp

Remove media_service_upnp_CPPFLAGS. Useless with AM_CFLAGS and
buggy as we are compiling in C, so we should have use _CFLAGS
instead.

Fix dms-info compiler flags. Use dms_info_CFLAGS instead of
dms_info_CPPFLAGS.

Signed-off-by: Ludovic Ferrandis <ludovic.ferrandis@intel.com>
[Autotools] Include config.h in Makefile.am

Remove include file config.h from source files

Signed-off-by: Ludovic Ferrandis <ludovic.ferrandis@intel.com>
[Compilation] Standard C99 compliant

Add compilation options to be more C99 compliant.
Add more warnings options.

Update code:
- Variadic macros: don't use named variadic parameter
- Variadic macros: use __VA_ARGS__
- Named union

Signed-off-by: Ludovic Ferrandis <ludovic.ferrandis@intel.com>
[Autotools] Move constants definition to config.h

Remove -DDEBUG and -DMSU_LOG_LEVEL from compilation options

Add MSU_DEBUG_ENABLED and MSU_LOG_LEVEL to config.h

Also rename LOG_LEVEL_XXX definition to MSU_LOG_LEVEL_XXX

Signed-off-by: Ludovic Ferrandis <ludovic.ferrandis@intel.com>
[Autotools] Move std c99 compilation options to Maintainer mode

Signed-off-by: Ludovic Ferrandis <ludovic.ferrandis@intel.com>
[Autotools] Rename makefile.am constants

Rename mediaconsole_xxx to media_service_upnp_xxx

Signed-off-by: Ludovic Ferrandis <ludovic.ferrandis@intel.com>
[Coding style] Fix checkpatch errors

Signed-off-by: Ludovic Ferrandis <ludovic.ferrandis@intel.com>
[Logging] Newer version

Factorize code
Allow call of log macro with single parameter

Signed-off-by: Ludovic Ferrandis <ludovic.ferrandis@intel.com>
[Autotools] Move -Wno-format-extra-args compiler option

Remove log.c warnings when using log macros, due to unused
parameter ",0"

Signed-off-by: Ludovic Ferrandis <ludovic.ferrandis@intel.com>
[LOG] Fix constant definition and missing include

Fix MSU_LOG_DEBUG macro. Remove double prefix MSU_MSU_

Include missing header for syslog log level definition

Signed-off-by: Ludovic Ferrandis <ludovic.ferrandis@intel.com>