{
//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)
#include "PluginTemplate.h"
#include <utility>
#include <dirent.h>
+#include <dlfcn.h>
using namespace am;
//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>
//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();
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)
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)
*/
-#ifndef COMMANDSENDER_H_
-#define COMMANDSENDER_H_
+#ifndef DBUSCOMMANDSENDER_H_
+#define DBUSCOMMANDSENDER_H_
#include "DBusMessageHandler.h"
#include "CommandReceiverShadow.h"
};
-#endif /* COMMANDSENDER_H_ */
+#endif /* DBUSCOMMANDSENDER_H_ */
#include "CommandReceiverShadow.h"
-#include "CommandSender.h"
+#include "DBusCommandSender.h"
#include "DBusWrapper.h"
#include <audiomanagertypes.h>
* 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"
* 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>
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)
+{
+}