summaryrefslogtreecommitdiff
path: root/PluginRoutingInterfaceAsync
diff options
context:
space:
mode:
Diffstat (limited to 'PluginRoutingInterfaceAsync')
-rw-r--r--PluginRoutingInterfaceAsync/CMakeLists.txt2
-rw-r--r--PluginRoutingInterfaceAsync/src/CAmRoutingSenderAsync.cpp17
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);