bool DBUSCommunicator::start()
{
- LOG_INFO("DBUSCommunicator", "Starting up dbus connector");
+ LOG_DEBUG("DBUSCommunicator", "Starting up dbus connector");
g_pDbusMessage = new DBUSMessageHandler();
- LOG_INFO("DBUSCommunicator","registering for dbus path " << DBUS_SERVICE_OBJECT_PATH);
+ LOG_DEBUG("DBUSCommunicator","registering for dbus path " << DBUS_SERVICE_OBJECT_PATH);
bool registered = g_pDbusMessage->registerPathFunction(DBUSCommunicator::processMessageFunc,
DBUSCommunicator::unregisterMessageFunc,
this);
DBusHandlerResult DBUSCommunicator::delegateMessage(DBusConnection* conn, DBusMessage* msg)
{
DBusHandlerResult result = DBUS_HANDLER_RESULT_HANDLED;
- LOG_INFO("DBUSCommunicator","message received");
+ LOG_DEBUG("DBUSCommunicator","message received");
const char *n = dbus_message_get_member(msg);
bool found = false;
int i = 0;
if (n && strcmp(manager_methods[i].name, n) == 0)
{
MethodTable entry = manager_methods[i];
- LOG_INFO("DBUSCommunicator","got call for method:" << entry.name);
+ LOG_DEBUG("DBUSCommunicator","got call for method:" << entry.name);
CallBackMethod m = entry.function;
- LOG_INFO("DBUSCommunicator","enter method");
+ LOG_DEBUG("DBUSCommunicator","enter method");
(this->*m)(conn, msg);
found = true;
}
if (dbus_message_is_method_call(msg, DBUS_INTERFACE_INTROSPECTABLE, "Introspect"))
{
- LOG_INFO("DBUSCommunicator", "Introspection called");
+ LOG_DEBUG("DBUSCommunicator", "Introspection called");
DBUSIntrospection introspectionString(manager_methods);
introspectionString.process(conn, msg);
g_pDbusMessage->setConnection(conn);
debugmessage << " " << std::setw(4) << (*surfaceIter)->getID() << " " << std::setprecision(3) << (*surfaceIter)->opacity<< " " << std::setw(3) << src.x << " " << std::setw(3) << src.y << " " << std::setw(3) << src.width << " " << std::setw(3) << src.height << " " << std::setw(3) << dest.x << " " << std::setw(3) << dest.y << " " << std::setw(3) << dest.width << " " << std::setw(3) << dest.height << "\n";
}
}
- LOG_INFO("X11WindowSystem",debugmessage.str());
+ LOG_DEBUG("X11WindowSystem",debugmessage.str());
}
Window * getListOfAllTopLevelWindows (Display *disp, unsigned int *len)
#endif
}
this->cleanup();
- LOG_INFO("X11WindowSystem", "Renderer thread finished");
+ LOG_DEBUG("X11WindowSystem", "Renderer thread finished");
return NULL;
}
}
void X11WindowSystem::cleanup(){
- LOG_INFO("X11WindowSystem", "Cleanup");
+ LOG_DEBUG("X11WindowSystem", "Cleanup");
if (None != CompositorWindow)
{
Window root = RootWindow(x11Display, 0);
while (!m_initialized)
{
usleep(10000); // TODO
- LOG_INFO("X11WindowSystem","Waiting start complete " << m_initialized);
+ LOG_DEBUG("X11WindowSystem","Waiting start complete " << m_initialized);
}
LOG_INFO("X11WindowSystem","Start complete " << m_initialized << " success " << m_success);
return m_success;
bool X11WindowSystem::start()
{
bool result = true;
- LOG_INFO("X11WindowSystem", "Starting / Creating thread");
+ LOG_DEBUG("X11WindowSystem", "Starting / Creating thread");
// let thread actually run
if ( m_xerror == false )
{
uint gCommunicatorPluginDirectoriesCount = sizeof(gCommunicatorPluginDirectories) / sizeof(gCommunicatorPluginDirectories[0]);
-const char* gScenePluginDirectories[] = { "/" };
+const char* gScenePluginDirectories[] = { "" };
uint gScenePluginDirectoriesCount = sizeof(gScenePluginDirectories) / sizeof(gScenePluginDirectories[0]);
-
-
const char* USAGE_DESCRIPTION = "Usage:\t LayerManagerService [options]\n"
"options:\t\n\n"
"\t-w: Window Width\t\n"
"\t-v: show version info\t\n"
"\nexample: LayerManagerService -w800 -h480 -d:0\n";
-
template<class T>
T* getCreateFunction(string libname)
{
if (regularFile && sharedLibExtension)
{
- LOG_INFO("LayerManagerService", "adding file " << entryName);
+ LOG_DEBUG("LayerManagerService", "adding file " << entryName);
fileList.push_back(dirName + "/" + entryName);
}
else
{
- LOG_INFO("LayerManagerService", "ignoring file " << entryName);
+ LOG_DEBUG("LayerManagerService", "ignoring file " << entryName);
}
}
getSharedLibrariesFromDirectory(sharedLibraryNameList, directoryName);
}
- LOG_INFO("LayerManagerService", sharedLibraryNameList.size() << " SceneProvider plugins found");
+ LOG_DEBUG("LayerManagerService", sharedLibraryNameList.size() << " SceneProvider plugins found");
// iterate all communicator plugins and start them
tFileListIterator iter = sharedLibraryNameList.begin();
for (; iter != iterEnd; ++iter)
{
- LOG_DEBUG("LayerManagerService", "Loading SceneProvider library " << *iter);
+ LOG_INFO("LayerManagerService", "Loading SceneProvider plugin " << *iter);
ISceneProvider* (*createFunc)(ICommandExecutor*);
createFunc = getCreateFunction<ISceneProvider*(ICommandExecutor*)>(*iter);
getSharedLibrariesFromDirectory(sharedLibraryNameList, directoryName);
}
- LOG_INFO("LayerManagerService", sharedLibraryNameList.size() << " Communicator plugins found");
+ LOG_DEBUG("LayerManagerService", sharedLibraryNameList.size() << " Communicator plugins found");
// iterate all communicator plugins and start them
tFileListIterator iter = sharedLibraryNameList.begin();
for (; iter != iterEnd; ++iter)
{
- LOG_DEBUG("LayerManagerService", "Loading Communicator library " << *iter);
+ LOG_INFO("LayerManagerService", "Loading Communicator plugin " << *iter);
ICommunicator* (*createFunc)(ICommandExecutor*);
createFunc = getCreateFunction<ICommunicator*(ICommandExecutor*)>(*iter);
getSharedLibrariesFromDirectory(sharedLibraryNameList, directoryName);
}
- LOG_INFO("LayerManagerService", sharedLibraryNameList.size() << " Renderer plugins found");
+ LOG_DEBUG("LayerManagerService", sharedLibraryNameList.size() << " Renderer plugins found");
// currently the use of only one renderer is enforced
if (sharedLibraryNameList.size() > 1)
for (; iter != iterEnd; ++iter)
{
- LOG_DEBUG("LayerManagerService", "Loading Renderer library " << *iter);
+ LOG_INFO("LayerManagerService", "Loading Renderer plugin " << *iter);
IRenderer* (*createFunc)(IScene*);
createFunc = getCreateFunction<IRenderer*(IScene*)>(*iter);
if (!createFunc)
{
gPluginLookupPath = pluginLookupPath;
}
- LOG_INFO("LayerManagerService", "Used plugin Directory is " << gPluginLookupPath);
+ LOG_INFO("LayerManagerService", "Used plugin directory is " << gPluginLookupPath);
- LOG_INFO("LayerManagerService", "Creating Layermanager.");
+ LOG_DEBUG("LayerManagerService", "Creating Layermanager.");
ICommandExecutor* pManager = new Layermanager();
IScene* pScene = pManager->getScene();
// Create and load Renderer plugins
- LOG_INFO("LayerManagerService", "Loading renderer plugins.");
+ LOG_DEBUG("LayerManagerService", "Loading renderer plugins.");
RendererList rendererList;
loadRendererPlugins(rendererList, pScene);
// register renderer plugins at layermanager
- LOG_INFO("LayerManagerService", "Adding " << rendererList.size() << " Renderer plugins to Layermanager.");
+ LOG_DEBUG("LayerManagerService", "Using " << rendererList.size() << " Renderer plugins");
RendererListIterator rendererIter = rendererList.begin();
RendererListIterator rendererIterEnd = rendererList.end();
for (; rendererIter != rendererIterEnd; ++rendererIter)
}
// Create and load communicator plugins
- LOG_INFO("LayerManagerService", "Loading communicator plugins.");
+ LOG_DEBUG("LayerManagerService", "Loading communicator plugins.");
CommunicatorList communicatorList;
loadCommunicatorPlugins(communicatorList, pManager);
// register communicator plugins at layermanager
- LOG_INFO("LayerManagerService", "Adding " << communicatorList.size() << " Communicator plugin(s) to Layermanager.");
+ LOG_DEBUG("LayerManagerService", "Using " << communicatorList.size() << " Communicator plugins");
CommunicatorListIterator commIter = communicatorList.begin();
CommunicatorListIterator commIterEnd = communicatorList.end();
for (; commIter != commIterEnd; ++commIter)
{
pManager->addCommunicator(*commIter);
}
- LOG_INFO("LayerManagerService", "Loading scene provider plugins.");
+ LOG_DEBUG("LayerManagerService", "Loading scene provider plugins.");
SceneProviderList sceneProviderList;
loadScenePlugins(sceneProviderList, pManager);
// register communicator plugins at layermanager
- LOG_INFO("LayerManagerService", "Adding " << sceneProviderList.size() << " SceneProvider plugin(s) to Layermanager.");
+ LOG_DEBUG("LayerManagerService", "Using " << sceneProviderList.size() << " SceneProvider plugins");
SceneProviderListIterator sceneProviderIter = sceneProviderList.begin();
SceneProviderListIterator sceneProviderIterEnd = sceneProviderList.end();
for (; sceneProviderIter != sceneProviderIterEnd; ++sceneProviderIter)