diff options
author | Aleksandar Donchev <aleksander.donchev@partner.bmw.de> | 2013-09-02 11:57:28 +0200 |
---|---|---|
committer | Christian Linke <Christian.Linke@bmw.de> | 2013-09-03 17:26:04 +0200 |
commit | a2edae5cee4254b933f42399edc0e092abd4f5cf (patch) | |
tree | ead58f525b947deed4b8c76ab9c89c80b5056227 /PluginRoutingInterfaceAsync | |
parent | 7aee1baeea1777318932cc49a8eac18f194233cd (diff) | |
download | audiomanager-a2edae5cee4254b933f42399edc0e092abd4f5cf.tar.gz |
*PluginCommandInterfaceCAPI, PluginRoutingInterfaceCAPI, NodeStateCommunicatorCAPI with unit tests first version.
Choosing between DBUS and Common-API via cmake.
CommonAPI - legacy support for DBus properties (Set 1)
Signed-off-by: Christian Linke <christian.linke@bmw.de>
(cherry picked from commit ea96ef59e29466667c90b506426e2a5a9cdb82d2)
Diffstat (limited to 'PluginRoutingInterfaceAsync')
-rw-r--r-- | PluginRoutingInterfaceAsync/CMakeLists.txt | 2 | ||||
-rw-r--r-- | PluginRoutingInterfaceAsync/src/CAmRoutingSenderAsync.cpp | 17 |
2 files changed, 10 insertions, 9 deletions
diff --git a/PluginRoutingInterfaceAsync/CMakeLists.txt b/PluginRoutingInterfaceAsync/CMakeLists.txt index b4cd576..773abe5 100644 --- a/PluginRoutingInterfaceAsync/CMakeLists.txt +++ b/PluginRoutingInterfaceAsync/CMakeLists.txt @@ -48,7 +48,7 @@ INCLUDE_DIRECTORIES( file(GLOB PLUGINDBUS_SRCS_CXX "src/*.cpp") -add_library(PluginRoutingInterfaceAsync SHARED ${PLUGINDBUS_SRCS_CXX}) +add_library(PluginRoutingInterfaceAsync MODULE ${PLUGINDBUS_SRCS_CXX}) SET_TARGET_PROPERTIES(PluginRoutingInterfaceAsync PROPERTIES SOVERSION "${LIB_INTERFACE_VERSION}" diff --git a/PluginRoutingInterfaceAsync/src/CAmRoutingSenderAsync.cpp b/PluginRoutingInterfaceAsync/src/CAmRoutingSenderAsync.cpp index fed21aa..d6680d5 100644 --- a/PluginRoutingInterfaceAsync/src/CAmRoutingSenderAsync.cpp +++ b/PluginRoutingInterfaceAsync/src/CAmRoutingSenderAsync.cpp @@ -694,20 +694,21 @@ std::vector<am_Source_s> CAmRoutingSenderAsync::createSourceTable() //create a bunch full of sources std::vector<am_Source_s> table; am_Source_s item; + item.listConnectionFormats.push_back(CF_GENIVI_ANALOG); + item.sourceClassID = 1; + item.volume = 0; + item.visible = true; + item.available.availability = A_AVAILABLE; + item.available.availabilityReason = AR_UNKNOWN; + item.sourceState = SS_OFF; + item.interruptState = am_InterruptState_e::IS_OFF; + item.domainID = 0; //we cannot know this when the table is created ! for (int16_t i = 0; i <= 10; i++) { std::stringstream temp; temp << i; - item.domainID = 0; //we cannot know this when the table is created ! item.name = "mySource" + temp.str(); - item.sourceState = SS_OFF; item.sourceID = i; //take fixed ids to make thins easy - item.sourceClassID = 1; - item.volume = 0; - item.visible = true; - item.available.availability = A_AVAILABLE; - item.available.availabilityReason = AR_UNKNOWN; - item.listConnectionFormats.push_back(CF_GENIVI_ANALOG); table.push_back(item); } return (table); |