From: Michael Schuldt Date: Wed, 3 Jul 2013 14:10:17 +0000 (+0200) Subject: DbusIpcModule: fixed introspection and configuration X-Git-Tag: 1_1~21 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=79f9ba1f86f584dde61a20517ef8d507f969efe9;p=profile%2Fivi%2Flayer-management.git DbusIpcModule: fixed introspection and configuration Signed-off-by: Michael Schuldt --- diff --git a/LayerManagerPlugins/IpcModules/DbusIpcModule/include/DBUSConfiguration.h b/LayerManagerPlugins/IpcModules/DbusIpcModule/include/DBUSConfiguration.h index 52c6ab0..6a17827 100644 --- a/LayerManagerPlugins/IpcModules/DbusIpcModule/include/DBUSConfiguration.h +++ b/LayerManagerPlugins/IpcModules/DbusIpcModule/include/DBUSConfiguration.h @@ -23,16 +23,13 @@ /* * DBUS configuration */ -#define DBUS_SERVICE_PREFIX "org.genivi.layermanagementservice\0" -/*#define DBUS_SERVICE_OBJECT_PATH "/org/genivi/layermanagementservice\0" */ +#define DBUS_SERVICE_PREFIX "org.genivi.layermanagementservice" #define DBUS_SERVICE_ERROR "org.genivi.layermanagementservice.error" #define DBUS_RECEIVE_TIMEOUT_IN_MS 500 #define ILM_SERVICE_NAME "org.genivi.layermanagementservice" -/*#define ILM_PATH_COMPOSITE_SERVICE "/org/genivi/layermanagementservice" */ -#define ILM_PATH_COMPOSITE_SERVICE "/" +#define ILM_PATH_COMPOSITE_SERVICE "/org/genivi/layermanagementservice" #define ILM_INTERFACE_COMPOSITE_SERVICE "org.genivi.layermanagementservice" #define ILM_INTERFACE_COMPOSITE_CLIENT "org.genivi.layermanagementclient" - #endif /* _DBUSCONFIGURATION_H_ */ diff --git a/LayerManagerPlugins/IpcModules/DbusIpcModule/src/introspection.c b/LayerManagerPlugins/IpcModules/DbusIpcModule/src/introspection.c index 96ed45e..2e7cc39 100644 --- a/LayerManagerPlugins/IpcModules/DbusIpcModule/src/introspection.c +++ b/LayerManagerPlugins/IpcModules/DbusIpcModule/src/introspection.c @@ -151,7 +151,7 @@ void generateIntrospectionString(char* msgBuffer) int i = 0; msgBuffer += addHeader(msgBuffer); - msgBuffer += openNode(msgBuffer, DBUS_SERVICE_PREFIX); + msgBuffer += openNode(msgBuffer, ILM_PATH_COMPOSITE_SERVICE); msgBuffer += openInterface(msgBuffer, "org.freedesktop.DBus.Introspectable"); msgBuffer += openMethod(msgBuffer, "Introspect"); msgBuffer += addArgument(msgBuffer, "data", "out", "s"); @@ -209,45 +209,51 @@ void generateIntrospectionString(char* msgBuffer) unsigned int addHeader(char* msgBuffer) { - return sprintf(msgBuffer, ""); + return sprintf(msgBuffer, "\n"); } unsigned int openNode(char* msgBuffer, const char* nodename) { - return sprintf(msgBuffer, "", nodename); + if (nodename == NULL) + { + return sprintf(msgBuffer, "\n"); + } else + { + return sprintf(msgBuffer, "\n", nodename); + } } unsigned int openInterface(char* msgBuffer, const char* interfacename) { - return sprintf(msgBuffer, "", interfacename); + return sprintf(msgBuffer, "\n", interfacename); } unsigned int openMethod(char* msgBuffer, const char* methodname) { - return sprintf(msgBuffer, "", methodname); + return sprintf(msgBuffer, "\n", methodname); } unsigned int addArgument(char* msgBuffer, const char* argname, const char* direction, const char* type) { - return sprintf(msgBuffer, "", argname, direction, type[0]); + return sprintf(msgBuffer, "\n", argname, direction, type[0]); } unsigned int addArrayArgument(char* msgBuffer, const char* argname, const char* direction, const char* type) { - return sprintf(msgBuffer, "", argname, direction, type[0]); + return sprintf(msgBuffer, "\n", argname, direction, type[0]); } unsigned int closeMethod(char* msgBuffer) { - return sprintf(msgBuffer, ""); + return sprintf(msgBuffer, "\n"); } unsigned int closeInterface(char* msgBuffer) { - return sprintf(msgBuffer, ""); + return sprintf(msgBuffer, "\n"); } unsigned int closeNode(char* msgBuffer) { - return sprintf(msgBuffer, ""); + return sprintf(msgBuffer, "\n"); } diff --git a/RELEASE_NOTES.txt b/RELEASE_NOTES.txt index 07a331d..8dea33c 100644 --- a/RELEASE_NOTES.txt +++ b/RELEASE_NOTES.txt @@ -1,3 +1,13 @@ +next version +---------------------- +This version includes the following enhancements. + +Bugfixes: +- Fixing minor memory leaks +- LayerManagerCommands: fixed array handling, memory leak removed +- X11EglImage: fixing a issue which causes memory leak in XServer +- dbusIpcModule: DBUS Interspection result corrected + Version 1.0 ------------------ This version includes the following enhancements.