summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--AudioManagerDaemon/src/DBusWrapper.cpp2
-rw-r--r--AudioManagerDaemon/src/RoutingSender.cpp1
-rw-r--r--AudioManagerDaemon/src/main.cpp3
-rw-r--r--PluginCommandInterfaceDbus/CMakeLists.txt7
-rw-r--r--PluginCommandInterfaceDbus/include/DBusCommandSender.h (renamed from PluginCommandInterfaceDbus/include/CommandSender.h)6
-rw-r--r--PluginCommandInterfaceDbus/src/CommandReceiverShadow.cpp2
-rw-r--r--PluginCommandInterfaceDbus/src/DBusCommandSender.cpp (renamed from PluginCommandInterfaceDbus/src/CommandSender.cpp)2
-rw-r--r--PluginCommandInterfaceDbus/src/DBusMessageHandler.cpp2
-rw-r--r--PluginControlInterface/src/ControlSender.cpp19
9 files changed, 25 insertions, 19 deletions
diff --git a/AudioManagerDaemon/src/DBusWrapper.cpp b/AudioManagerDaemon/src/DBusWrapper.cpp
index b15374d..8876855 100644
--- a/AudioManagerDaemon/src/DBusWrapper.cpp
+++ b/AudioManagerDaemon/src/DBusWrapper.cpp
@@ -81,7 +81,7 @@ DBusWrapper::~DBusWrapper()
{
//close the connection again
DLT_LOG(AudioManager,DLT_LOG_INFO, DLT_STRING("DBusWrapper::~DBusWrapper Closing DBus connection"));
- dbus_connection_close(mDbusConnection);
+ dbus_connection_unref(mDbusConnection);
}
void DBusWrapper::registerCallback(const DBusObjectPathVTable* vtable, const std::string& path, void* userdata)
diff --git a/AudioManagerDaemon/src/RoutingSender.cpp b/AudioManagerDaemon/src/RoutingSender.cpp
index cdef1ad..246920f 100644
--- a/AudioManagerDaemon/src/RoutingSender.cpp
+++ b/AudioManagerDaemon/src/RoutingSender.cpp
@@ -26,6 +26,7 @@
#include "PluginTemplate.h"
#include <utility>
#include <dirent.h>
+#include <dlfcn.h>
using namespace am;
diff --git a/AudioManagerDaemon/src/main.cpp b/AudioManagerDaemon/src/main.cpp
index 2e79696..dfb06ba 100644
--- a/AudioManagerDaemon/src/main.cpp
+++ b/AudioManagerDaemon/src/main.cpp
@@ -33,6 +33,7 @@
//todo: seperate documentation of test from normal project
//todo: check the startup sequence. Dbus shall be activated last...
//todo: there is a bug in the visible flags of sinks and sources. fix it.
+//todo: check namespace handling. no use.. in headers
#include <dbus/dbus.h>
#include <dlt/dlt.h>
@@ -80,6 +81,8 @@ int main(int argc, char *argv[])
//since the plugins have been loaded by the *Senders before, we can tell the Controller this:
iControlSender.hookAllPluginsLoaded();
+ iCommandSender.startupInterface(&iCommandReceiver);
+ iRoutingSender.startupRoutingInterface(&iRoutingReceiver);
iDBusWrapper.dbusMainLoop();
diff --git a/PluginCommandInterfaceDbus/CMakeLists.txt b/PluginCommandInterfaceDbus/CMakeLists.txt
index 5a2877d..8926b33 100644
--- a/PluginCommandInterfaceDbus/CMakeLists.txt
+++ b/PluginCommandInterfaceDbus/CMakeLists.txt
@@ -16,7 +16,6 @@ set(AUDIO_INCLUDES_FOLDER ${CMAKE_SOURCE_DIR}/../includes)
set(DBUS_INCLUDES_FOLDER ${CMAKE_SOURCE_DIR}/../dbusIncludes)
set(INCLUDES_FOLDER ${CMAKE_SOURCE_DIR}/include)
-find_package (Threads)
FIND_PACKAGE(DBUS REQUIRED)
FIND_PACKAGE(PkgConfig)
pkg_check_modules(DLT REQUIRED automotive-dlt)
@@ -43,11 +42,11 @@ file(GLOB PLUGINDBUS_SRCS_CXX "src/*.cpp")
add_library(PluginCommandInterfaceDbus SHARED ${PLUGINDBUS_SRCS_CXX})
TARGET_LINK_LIBRARIES(PluginCommandInterfaceDbus
- ${DLT_LIBRARIES}
- ${DBUS_LIBRARY}
- ${CMAKE_THREAD_LIBS_INIT}
+ ${DLT_LIBRARIES}
+ ${DBUS_LIBRARY}
)
+add_subdirectory (test)
#add a target to generate API documentation with Doxygen
find_package(Doxygen)
diff --git a/PluginCommandInterfaceDbus/include/CommandSender.h b/PluginCommandInterfaceDbus/include/DBusCommandSender.h
index 88fb47e..724f412 100644
--- a/PluginCommandInterfaceDbus/include/CommandSender.h
+++ b/PluginCommandInterfaceDbus/include/DBusCommandSender.h
@@ -24,8 +24,8 @@
*/
-#ifndef COMMANDSENDER_H_
-#define COMMANDSENDER_H_
+#ifndef DBUSCOMMANDSENDER_H_
+#define DBUSCOMMANDSENDER_H_
#include "DBusMessageHandler.h"
#include "CommandReceiverShadow.h"
@@ -105,4 +105,4 @@ private:
};
-#endif /* COMMANDSENDER_H_ */
+#endif /* DBUSCOMMANDSENDER_H_ */
diff --git a/PluginCommandInterfaceDbus/src/CommandReceiverShadow.cpp b/PluginCommandInterfaceDbus/src/CommandReceiverShadow.cpp
index 2e359fb..b53fb52 100644
--- a/PluginCommandInterfaceDbus/src/CommandReceiverShadow.cpp
+++ b/PluginCommandInterfaceDbus/src/CommandReceiverShadow.cpp
@@ -25,7 +25,7 @@
#include "CommandReceiverShadow.h"
-#include "CommandSender.h"
+#include "DBusCommandSender.h"
#include "DBusWrapper.h"
#include <audiomanagertypes.h>
diff --git a/PluginCommandInterfaceDbus/src/CommandSender.cpp b/PluginCommandInterfaceDbus/src/DBusCommandSender.cpp
index 7b7f8ae..462e794 100644
--- a/PluginCommandInterfaceDbus/src/CommandSender.cpp
+++ b/PluginCommandInterfaceDbus/src/DBusCommandSender.cpp
@@ -23,7 +23,7 @@
* THIS CODE HAS BEEN GENERATED BY ENTERPRISE ARCHITECT GENIVI MODEL. PLEASE CHANGE ONLY IN ENTERPRISE ARCHITECT AND GENERATE AGAIN
*/
-#include "CommandSender.h"
+#include "DBusCommandSender.h"
#include "DBusMessageHandler.h"
#include "DBusWrapper.h"
diff --git a/PluginCommandInterfaceDbus/src/DBusMessageHandler.cpp b/PluginCommandInterfaceDbus/src/DBusMessageHandler.cpp
index e6ee3f6..315a51e 100644
--- a/PluginCommandInterfaceDbus/src/DBusMessageHandler.cpp
+++ b/PluginCommandInterfaceDbus/src/DBusMessageHandler.cpp
@@ -23,7 +23,7 @@
* THIS CODE HAS BEEN GENERATED BY ENTERPRISE ARCHITECT GENIVI MODEL. PLEASE CHANGE ONLY IN ENTERPRISE ARCHITECT AND GENERATE AGAIN
*/
#include "DBusMessageHandler.h"
-#include "CommandSender.h"
+#include "DBusCommandSender.h"
#include "DBusConfiguration.h"
#include <stdlib.h>
diff --git a/PluginControlInterface/src/ControlSender.cpp b/PluginControlInterface/src/ControlSender.cpp
index 5043667..3ad886d 100644
--- a/PluginControlInterface/src/ControlSender.cpp
+++ b/PluginControlInterface/src/ControlSender.cpp
@@ -33,18 +33,21 @@ extern "C" void destroyControlPluginInterface(ControlSendInterface* controlSendI
delete controlSendInterface;
}
-ControlSenderPlugin::ControlSenderPlugin() {
- // TODO Auto-generated constructor stub
-
+ControlSenderPlugin::ControlSenderPlugin()
+{
}
-ControlSenderPlugin::~ControlSenderPlugin() {
- // TODO Auto-generated destructor stub
+
+
+ControlSenderPlugin::~ControlSenderPlugin()
+{
}
-//am_Error_e ControlSendInterface::startupController(ControlReceiveInterface* controlreceiveinterface)
-//{
-//}
+
+
+am_Error_e ControlSenderPlugin::startupController(ControlReceiveInterface *controlreceiveinterface)
+{
+}