summaryrefslogtreecommitdiff
path: root/AudioManagerDaemon/src
diff options
context:
space:
mode:
authorchristian mueller <christian.ei.mueller@bmw.de>2012-01-15 12:37:58 +0100
committerchristian mueller <christian.ei.mueller@bmw.de>2012-01-15 13:53:53 +0100
commit23c90675c09d4e2947b5a827a5ebcd5516c0270e (patch)
tree796d95afdbc72201836719bb7774ddef5d02dc01 /AudioManagerDaemon/src
parenta4a4c50ff375d94fa90c13d293b145176f214bf4 (diff)
downloadaudiomanager-23c90675c09d4e2947b5a827a5ebcd5516c0270e.tar.gz
* added package creation based on cpack
* updated .gitignore
Diffstat (limited to 'AudioManagerDaemon/src')
-rw-r--r--AudioManagerDaemon/src/CommandSender.cpp1
-rw-r--r--AudioManagerDaemon/src/ControlSender.cpp10
2 files changed, 9 insertions, 2 deletions
diff --git a/AudioManagerDaemon/src/CommandSender.cpp b/AudioManagerDaemon/src/CommandSender.cpp
index 92734c4..a481317 100644
--- a/AudioManagerDaemon/src/CommandSender.cpp
+++ b/AudioManagerDaemon/src/CommandSender.cpp
@@ -61,6 +61,7 @@ CommandSender::CommandSender(const std::vector<std::string>& listOfPluginDirecto
if (!directory)
{
DLT_LOG(AudioManager,DLT_LOG_INFO, DLT_STRING("Error opening directory "),DLT_STRING(directoryName));
+ continue;
}
// iterate content of directory
diff --git a/AudioManagerDaemon/src/ControlSender.cpp b/AudioManagerDaemon/src/ControlSender.cpp
index a9e9220..3371fb2 100644
--- a/AudioManagerDaemon/src/ControlSender.cpp
+++ b/AudioManagerDaemon/src/ControlSender.cpp
@@ -25,6 +25,7 @@
#include "ControlSender.h"
#include <assert.h>
#include <dlt/dlt.h>
+#include <fstream>
#include "PluginTemplate.h"
DLT_IMPORT_CONTEXT(AudioManager)
@@ -37,7 +38,12 @@ ControlSender::ControlSender(std::string controlPluginFile)
:mlibHandle(NULL),
mController(NULL)
{
- if (!controlPluginFile.empty())
+ std::ifstream isfile(controlPluginFile.c_str());
+ if (!isfile)
+ {
+ DLT_LOG(AudioManager,DLT_LOG_ERROR, DLT_STRING("ControlSender::ControlSender: Controller plugin not found:"),DLT_STRING(controlPluginFile.c_str()));
+ }
+ else if (!controlPluginFile.empty())
{
ControlSendInterface* (*createFunc)();
createFunc = getCreateFunction<ControlSendInterface*()>(controlPluginFile,mlibHandle);
@@ -49,7 +55,7 @@ ControlSender::ControlSender(std::string controlPluginFile)
}
else
{
- DLT_LOG(AudioManager,DLT_LOG_ERROR, DLT_STRING("No controller loaded !"));
+ DLT_LOG(AudioManager,DLT_LOG_ERROR, DLT_STRING("ControlSender::ControlSender: No controller loaded !"));
}
}