summaryrefslogtreecommitdiff
path: root/AudioManagerCore/include/CAmRoutingSender.h
diff options
context:
space:
mode:
authorMartin Koch <martin.koch@ese.de>2020-06-29 14:53:21 +0200
committerMartin Koch <martin.koch@ese.de>2020-07-01 14:37:33 +0200
commitd4cae89a7aaf275110dddb205a1be7c3cac531c9 (patch)
treefb8e379e4a7a4c061014783d987f37449bf84513 /AudioManagerCore/include/CAmRoutingSender.h
parentefe1f88f36383ab1f1ad657e14e4fd4885eaf55f (diff)
downloadaudiomanager-d4cae89a7aaf275110dddb205a1be7c3cac531c9.tar.gz
AM: fix const handle in transferConnection family of functions
Signed-off-by: Martin Koch <martin.koch@ese.de>
Diffstat (limited to 'AudioManagerCore/include/CAmRoutingSender.h')
-rw-r--r--AudioManagerCore/include/CAmRoutingSender.h20
1 files changed, 19 insertions, 1 deletions
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<std::pair<std::string, std::string>> &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<std::pair<std::string, std::string>> &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<std::pair<std::string, std::string>> mRoute;
+ am_ConnectionState_e mState;
+ bool mTransferPending;
+ };
+
class handleSetVolumes : public handleDataBase
{
public: