From 7f9c4d8732d37da5ac5d383def24c30ae2f787e1 Mon Sep 17 00:00:00 2001 From: Martin Koch Date: Thu, 25 Jun 2020 11:01:53 +0200 Subject: AM: add parameter domainID to asyncTransferConnection() Signed-off-by: Martin Koch --- AudioManagerCore/src/CAmRoutingSender.cpp | 2 +- include/IAmRouting.h | 11 ++++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/AudioManagerCore/src/CAmRoutingSender.cpp b/AudioManagerCore/src/CAmRoutingSender.cpp index 399de9a..b7da1c4 100644 --- a/AudioManagerCore/src/CAmRoutingSender.cpp +++ b/AudioManagerCore/src/CAmRoutingSender.cpp @@ -927,7 +927,7 @@ am_Error_e CAmRoutingSender::asyncTransferConnection(const am_Handle_s handle, a auto iter = mMapDomainInterface.find(domainID); if (iter != mMapDomainInterface.end() && iter->second) { - return iter->second->asyncTransferConnection(handle, route, state); + return iter->second->asyncTransferConnection(handle, domainID, route, state); } // given domain not found in map diff --git a/include/IAmRouting.h b/include/IAmRouting.h index 28e8ac9..c58c721 100644 --- a/include/IAmRouting.h +++ b/include/IAmRouting.h @@ -418,14 +418,15 @@ public: * Forward hand-over of a connection meant to survive AM shutdown * in routing-side application * - * @param handle: composite identifier used to map the response - * @param route: names of involved sources and sinks including intermediate gateways - * @param state: either stable CS_CONNECTED, CS_DISCONNECTED, CS_SUSPENDED - * or transient CS_CONNECTING, CS_DISCONNECTING + * @param handle: composite identifier used to map the response + * @param domainID: target domain for this offering + * @param route: names of involved sources and sinks including intermediate gateways + * @param state: either stable CS_CONNECTED, CS_DISCONNECTED, CS_SUSPENDED + * or transient CS_CONNECTING, CS_DISCONNECTING * * @return success indicator as obtained from the plugins, e.g E_OK or E_COMMUNICATION */ - virtual am_Error_e asyncTransferConnection(const am_Handle_s handle + virtual am_Error_e asyncTransferConnection(const am_Handle_s handle, am_domainID_t domainID , const std::vector> &route , am_ConnectionState_e state) { -- cgit v1.2.1