From d4cae89a7aaf275110dddb205a1be7c3cac531c9 Mon Sep 17 00:00:00 2001 From: Martin Koch Date: Mon, 29 Jun 2020 14:53:21 +0200 Subject: AM: fix const handle in transferConnection family of functions Signed-off-by: Martin Koch --- AudioManagerCore/include/CAmRoutingSender.h | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'AudioManagerCore/include/CAmRoutingSender.h') diff --git a/AudioManagerCore/include/CAmRoutingSender.h b/AudioManagerCore/include/CAmRoutingSender.h index 7756ccc..cbaddae 100644 --- a/AudioManagerCore/include/CAmRoutingSender.h +++ b/AudioManagerCore/include/CAmRoutingSender.h @@ -62,7 +62,7 @@ public: am_Error_e startupInterfaces(CAmRoutingReceiver *iRoutingReceiver); void setRoutingReady(); void setRoutingRundown(); - am_Error_e asyncTransferConnection(const am_Handle_s handle, am_domainID_t domainID + am_Error_e asyncTransferConnection(am_Handle_s &handle, am_domainID_t domainID , const std::vector> &route, am_ConnectionState_e state); am_Error_e asyncAbort(const am_Handle_s &handle); am_Error_e asyncConnect(am_Handle_s &handle, am_connectionID_t &connectionID, const am_sourceID_t sourceID, const am_sinkID_t sinkID, const am_CustomConnectionFormat_t connectionFormat); @@ -264,6 +264,24 @@ public: CAmRoutingSender *mRoutingSender; }; + class handleTransfer : public handleDataBase + { + public: + handleTransfer(IAmRoutingSend *interface, const std::vector> &route + , am_ConnectionState_e state, IAmDatabaseHandler *databaseHandler) + : handleDataBase(interface, databaseHandler) + , mRoute(route) + , mState(state) + , mTransferPending(true) {} + ~handleTransfer() { }; + am_Error_e writeDataToDatabase() { return E_OK; }; + + private: + const std::vector> mRoute; + am_ConnectionState_e mState; + bool mTransferPending; + }; + class handleSetVolumes : public handleDataBase { public: -- cgit v1.2.1