diff options
author | asanoaozora <fifitaneki@hotmail.com> | 2017-06-20 15:59:11 +0200 |
---|---|---|
committer | asanoaozora <fifitaneki@hotmail.com> | 2017-06-20 15:59:11 +0200 |
commit | d68c24642e25fdc34bb001c1ddd5d2d680670883 (patch) | |
tree | 26e70625308539ad755f2cea314645afb62ad7ec /src/poi-service/poi-server/main.cpp | |
parent | c72289b6a9b82723f38d991629de8677a260f9fd (diff) | |
download | poi-service-d68c24642e25fdc34bb001c1ddd5d2d680670883.tar.gz |
Fix minor bugs, add DLT to poi-server
Diffstat (limited to 'src/poi-service/poi-server/main.cpp')
-rw-r--r-- | src/poi-service/poi-server/main.cpp | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/poi-service/poi-server/main.cpp b/src/poi-service/poi-server/main.cpp index b903359..0af5db8 100644 --- a/src/poi-service/poi-server/main.cpp +++ b/src/poi-service/poi-server/main.cpp @@ -38,6 +38,10 @@ #include <getopt.h> #include <dbus-c++/glib-integration.h> +#include "log.h" + +DLT_DECLARE_CONTEXT(gCtx); + #include "poi-common-database.h" #include "poi-server-class.h" @@ -116,6 +120,7 @@ void Routing::AlternativeRoutesAvailable (const std::vector<handleId_t>& routeHa contentAccessModule::contentAccessModule(DBus::Connection &connection, const std::string& service) : DBus::ObjectProxy(connection, contentAccessModule_OBJECT_PATH,service.c_str()) { + LOG_INFO_MSG(gCtx,"poi content access module client\n"); } contentAccessModule::~contentAccessModule() @@ -152,6 +157,8 @@ void contentAccessModule::SearchStatusChanged(const uint32_t& poiSearchHandle, c poiContentAccessServer::poiContentAccessServer(DBus::Connection &connection) : DBus::ObjectAdaptor(connection, poiContentAccess_OBJECT_PATH) { + LOG_INFO_MSG(gCtx,"poi content access server\n"); + //version is hard coded m_version._1 = 0; m_version._2 = 4; @@ -685,6 +692,8 @@ poiSearchServer::poiSearchServer(DBus::Connection &connection, const char* poiDa categoryId_t value; categoryId_t parent,child; + LOG_INFO_MSG(gCtx,"poi server\n"); + //version is hard coded DBus_version::version_t version; version.major = 1; @@ -2168,6 +2177,9 @@ void print_usage (FILE* stream, int exit_code) */ int main(int argc , char** argv ) { + DLT_REGISTER_APP("MPVS","MAP VIEWER CONTROL SERVER"); + DLT_REGISTER_CONTEXT(gCtx,"MPVS","Global Context"); + GMainLoop * mainloop ; // Set the global C and C++ locale to the user-configured locale, @@ -2238,9 +2250,6 @@ int main(int argc , char** argv ) // Create a new GMainLoop with default context and initial state of "not running " mainloop = g_main_loop_new (g_main_context_default() , FALSE ); - // Send a feedback to the user - cout << "poi server started" << endl; - // loop listening g_main_loop_run ( mainloop ); |