diff options
Diffstat (limited to 'PluginControlInterface')
-rw-r--r-- | PluginControlInterface/CMakeLists.txt | 10 | ||||
-rw-r--r-- | PluginControlInterface/include/ControlSender.h | 4 | ||||
-rw-r--r-- | PluginControlInterface/src/ControlSender.cpp | 15 |
3 files changed, 27 insertions, 2 deletions
diff --git a/PluginControlInterface/CMakeLists.txt b/PluginControlInterface/CMakeLists.txt index 4ccb6ac..46d818a 100644 --- a/PluginControlInterface/CMakeLists.txt +++ b/PluginControlInterface/CMakeLists.txt @@ -4,11 +4,15 @@ PROJECT(PluginControlInterface) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -DDLT_CONTEXT=ControlPluginDbus") - set(LIBRARY_OUTPUT_PATH ${PLUGINS_OUTPUT_PATH}/control) set(DOC_OUTPUT_PATH ${DOC_OUTPUT_PATH}/ControlPlugin) set(INCLUDES_FOLDER "include") +FILE(READ "${AUDIO_INCLUDES_FOLDER}/control/ControlSendInterface.h" VERSION_BUFFER LIMIT 6000) +STRING(REGEX MATCH "ControlSendVersion*.[^0-9]*[0-9]" LIB_INTERFACE_VERSION_STRING ${VERSION_BUFFER}) +STRING(REGEX REPLACE "[^0-9]" "" LIB_INTERFACE_VERSION ${LIB_INTERFACE_VERSION_STRING}) +MESSAGE(STATUS "Building against control interface version ${LIB_INTERFACE_VERSION}") + INCLUDE_DIRECTORIES( ${CMAKE_SOURCE_DIR} ${STD_INCLUDE_DIRS} @@ -22,6 +26,10 @@ file(GLOB PLUGIN_CONTROL_SRCS_CXX "src/*.cpp") add_library(PluginControlInterface SHARED ${PLUGIN_CONTROL_SRCS_CXX}) +SET_TARGET_PROPERTIES(PluginControlInterface PROPERTIES + SOVERSION "${LIB_INTERFACE_VERSION}" +) + TARGET_LINK_LIBRARIES(PluginControlInterface ${DLT_LIBRARIES}) diff --git a/PluginControlInterface/include/ControlSender.h b/PluginControlInterface/include/ControlSender.h index 8945d39..d0014a4 100644 --- a/PluginControlInterface/include/ControlSender.h +++ b/PluginControlInterface/include/ControlSender.h @@ -28,7 +28,6 @@ #define CONTROLSENDER_H_ #include <control/ControlSendInterface.h> -#include <control/ControlReceiveInterface.h> using namespace am; @@ -74,7 +73,10 @@ public: void cbAckSetSourceVolumeChange(const am_Handle_s handle, const am_volume_t voulme, const am_Error_e error) ; void cbAckSetSourceState(const am_Handle_s handle, const am_Error_e error) ; void cbAckSetSourceSoundProperty(const am_Handle_s handle, const am_Error_e error) ; + void cbAckSetSourceSoundProperties(const am_Handle_s handle, const am_Error_e error) ; void cbAckSetSinkSoundProperty(const am_Handle_s handle, const am_Error_e error) ; + void cbAckSetSinkSoundProperties(const am_Handle_s handle, const am_Error_e error) ; + uint16_t getInterfaceVersion() const; }; #endif /* CONTROLSENDER_H_ */ diff --git a/PluginControlInterface/src/ControlSender.cpp b/PluginControlInterface/src/ControlSender.cpp index f5d1720..fb54c8c 100644 --- a/PluginControlInterface/src/ControlSender.cpp +++ b/PluginControlInterface/src/ControlSender.cpp @@ -300,5 +300,20 @@ void ControlSenderPlugin::cbAckSetSinkSoundProperty(const am_Handle_s handle, co { } +void ControlSenderPlugin::cbAckSetSourceSoundProperties(const am_Handle_s handle, const am_Error_e error) +{ +} + +void ControlSenderPlugin::cbAckSetSinkSoundProperties(const am_Handle_s handle, const am_Error_e error) +{ +} + +uint16_t ControlSenderPlugin::getInterfaceVersion() const +{ + return (ControlSendVersion); +} + + + |