diff options
author | christian mueller <christian.ei.mueller@bmw.de> | 2012-02-08 15:42:31 +0100 |
---|---|---|
committer | christian mueller <christian.ei.mueller@bmw.de> | 2012-02-08 15:42:31 +0100 |
commit | e924eb3ec4717647d61e9ec4d5cc74f81ea749b9 (patch) | |
tree | f3cc53e5fb98d21bc55cbd44a229d7ca21e6f99a /PluginControlInterface | |
parent | 9f9f6fc7d283c60166431c5175b6bbaa53a23c9c (diff) | |
download | audiomanager-e924eb3ec4717647d61e9ec4d5cc74f81ea749b9.tar.gz |
* changed main to register observer (thanks TGO)
* changed command DBUSplugin to register Connection at 2nd DBUSMessageHandler Instance (thanks TGO)
* Expanded dummyController functionality
Diffstat (limited to 'PluginControlInterface')
-rw-r--r-- | PluginControlInterface/src/ControlSender.cpp | 45 |
1 files changed, 20 insertions, 25 deletions
diff --git a/PluginControlInterface/src/ControlSender.cpp b/PluginControlInterface/src/ControlSender.cpp index c92a4b6..2582f30 100644 --- a/PluginControlInterface/src/ControlSender.cpp +++ b/PluginControlInterface/src/ControlSender.cpp @@ -125,15 +125,14 @@ am_Error_e ControlSenderPlugin::hookUserSetSinkMuteState(const am_sinkID_t sinkI am_Error_e ControlSenderPlugin::hookSystemRegisterDomain(const am_Domain_s & domainData, am_domainID_t & domainID) { - (void) domainData; - (void) domainID; - return E_NOT_USED; + //this application does not do anything with it -> but some product might want to take influence here + return mControlReceiveInterface->enterDomainDB(domainData,domainID); } am_Error_e ControlSenderPlugin::hookSystemDeregisterDomain(const am_domainID_t domainID) { - (void) domainID; - return E_NOT_USED; + //this application does not do anything with it -> but some product might want to take influence here + return mControlReceiveInterface->removeDomainDB(domainID); } void ControlSenderPlugin::hookSystemDomainRegistrationComplete(const am_domainID_t domainID) @@ -143,54 +142,50 @@ void ControlSenderPlugin::hookSystemDomainRegistrationComplete(const am_domainID am_Error_e ControlSenderPlugin::hookSystemRegisterSink(const am_Sink_s & sinkData, am_sinkID_t & sinkID) { - (void) sinkID; - (void) sinkData; - return E_NOT_USED; + //this application does not do anything with it -> but some product might want to take influence here + return mControlReceiveInterface->enterSinkDB(sinkData,sinkID); } am_Error_e ControlSenderPlugin::hookSystemDeregisterSink(const am_sinkID_t sinkID) { - (void) sinkID; - return E_NOT_USED; + //this application does not do anything with it -> but some product might want to take influence here + return mControlReceiveInterface->removeSinkDB(sinkID); } am_Error_e ControlSenderPlugin::hookSystemRegisterSource(const am_Source_s & sourceData, am_sourceID_t & sourceID) { - (void) sourceData; - (void) sourceID; - return E_NOT_USED; + //this application does not do anything with it -> but some product might want to take influence here + return mControlReceiveInterface->enterSourceDB(sourceData,sourceID); } am_Error_e ControlSenderPlugin::hookSystemDeregisterSource(const am_sourceID_t sourceID) { - (void) sourceID; - return E_NOT_USED; + //this application does not do anything with it -> but some product might want to take influence here + return mControlReceiveInterface->removeSourceDB(sourceID); } am_Error_e ControlSenderPlugin::hookSystemRegisterGateway(const am_Gateway_s & gatewayData, am_gatewayID_t & gatewayID) { - (void) gatewayData; - (void) gatewayID; - return E_NOT_USED; + //this application does not do anything with it -> but some product might want to take influence here + return mControlReceiveInterface->enterGatewayDB(gatewayData,gatewayID); } am_Error_e ControlSenderPlugin::hookSystemDeregisterGateway(const am_gatewayID_t gatewayID) { - (void) gatewayID; - return E_NOT_USED; + //this application does not do anything with it -> but some product might want to take influence here + return mControlReceiveInterface->removeGatewayDB(gatewayID); } am_Error_e ControlSenderPlugin::hookSystemRegisterCrossfader(const am_Crossfader_s & crossfaderData, am_crossfaderID_t & crossfaderID) { - (void) crossfaderData; - (void) crossfaderID; - return E_NOT_USED; + //this application does not do anything with it -> but some product might want to take influence here + return mControlReceiveInterface->enterCrossfaderDB(crossfaderData,crossfaderID); } am_Error_e ControlSenderPlugin::hookSystemDeregisterCrossfader(const am_crossfaderID_t crossfaderID) { - (void) crossfaderID; - return E_NOT_USED; + //this application does not do anything with it -> but some product might want to take influence here + return mControlReceiveInterface->removeCrossfaderDB(crossfaderID); } void ControlSenderPlugin::hookSystemSinkVolumeTick(const am_Handle_s handle, const am_sinkID_t sinkID, const am_volume_t volume) |