/* * This file was generated by the CommonAPI Generators. * Used org.genivi.commonapi.core 2.1.5.201312121915. * Used org.franca.core 0.8.11.201401091023. * * This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. * If a copy of the MPL was not distributed with this file, You can obtain one at * http://mozilla.org/MPL/2.0/. */ #include "RoutingControlObserverDBusStubAdapter.h" #include namespace org { namespace genivi { namespace am { std::shared_ptr createRoutingControlObserverDBusStubAdapter( const std::shared_ptr& factory, const std::string& commonApiAddress, const std::string& interfaceName, const std::string& busName, const std::string& objectPath, const std::shared_ptr& dbusProxyConnection, const std::shared_ptr& stubBase) { return std::make_shared(factory, commonApiAddress, interfaceName, busName, objectPath, dbusProxyConnection, stubBase); } __attribute__((constructor)) void registerRoutingControlObserverDBusStubAdapter(void) { CommonAPI::DBus::DBusFactory::registerAdapterFactoryMethod(RoutingControlObserver::getInterfaceId(), &createRoutingControlObserverDBusStubAdapter); } RoutingControlObserverDBusStubAdapterInternal::~RoutingControlObserverDBusStubAdapterInternal() { deactivateManagedInstances(); RoutingControlObserverDBusStubAdapterHelper::deinit(); } void RoutingControlObserverDBusStubAdapterInternal::deactivateManagedInstances() { } const char* RoutingControlObserverDBusStubAdapterInternal::getMethodsDBusIntrospectionXmlData() const { static const std::string introspectionData = "\n" "" "\n" "\n" "" "\n" "\n" "\n" "\n" /** * acknowledges a asyncConnect */ "\n" "\n" "\n" "\n" "\n" /** * acknowledges a asyncDisconnect */ "\n" "\n" "\n" "\n" "\n" /** * acknowledges a asyncsetSinkVolume */ "\n" "\n" "\n" "\n" "\n" /** * acknowledges a asyncsetSourceVolume */ "\n" "\n" "\n" "\n" "\n" /** * acknowlegde for asyncSetSourceState */ "\n" "\n" "\n" "\n" /** * acknowledges asyncSetSinkSoundProperties */ "\n" "\n" "\n" "\n" /** * acknowledges asyncSetSinkSoundProperty */ "\n" "\n" "\n" "\n" /** * acknowledges asyncSetSourceSoundProperties */ "\n" "\n" "\n" "\n" /** * acknowledges asyncSetSourceSoundProperty */ "\n" "\n" "\n" "\n" /** * acknowledges asyncCrossFade */ "\n" "\n" "\n" "\n" "\n" /** * acknowledges a volume tick. This can be used to display volumechanges during * ramps */ "\n" "\n" "\n" "\n" "\n" /** * acknowledges a volume tick. This can be used to display volumechanges during * ramps */ "\n" "\n" "\n" "\n" "\n" /** * This function returns the ID to the given domainName. If already a domain is * registered with this name, it will return the corresponding ID, if not it will * reserve an ID but not register the domain. The other parameters of the domain * will be overwritten when the domain is registered. (at)return E_OK on * success, E_UNKNOWN on error */ "\n" "\n" "\n" "\n" "\n" /** * registers a domain (at)return E_OK on succes, E_ALREADY_EXISTENT if already * registered E_UNKOWN on error */ "\n" "\n" "\n" "\n" "\n" "\n" "\n" /** * deregisters a domain. All sources, sinks, gateways and crossfaders from that * domain will be removed as well. (at)return E_OK on succes, E_NON_EXISTENT if * not found E_UNKOWN on error */ "\n" "\n" "\n" "\n" /** * registers a gateway. (at)return E_OK on succes, E_ALREADY_EXISTENT if already * registered E_UNKOWN on error */ "\n" "\n" "\n" "\n" "\n" /** * deregisters a gateway. Also removes all sinks and sources of the controlling * domain. (at)return E_OK on succes, E_NON_EXISTENT if not found E_UNKOWN on * error */ "\n" "\n" "\n" "\n" /** * This function returns the ID to the given sinkName. If already a sink is * registered with this name, it will return the corresponding ID, if not it will * reserve an ID but not register the sink. The other parameters of the sink will * be overwritten when the sink is registered. (at)return E_OK on success, * E_UNKNOWN on error */ "\n" "\n" "\n" "\n" "\n" /** * Registers a sink. If the sink is part of a gateway, the listconnectionFormats * is copied to the gatewayInformation (at)return E_OK on succes, * E_ALREADY_EXISTENT if already registered E_UNKOWN on error */ "\n" "\n" "\n" "\n" "\n" /** * deregisters a sink. (at)return E_OK on succes, E_NON_EXISTENT if not found * E_UNKOWN on error */ "\n" "\n" "\n" "\n" /** * This function returns the ID to the given sourceName. If already a source is * registered with this name, it will return the corresponding ID, if not it will * reserve an ID but not register the source. The other parameters of the source * will be overwritten when the source is registered. (at)return E_OK on * success, E_UNKNOWN on error */ "\n" "\n" "\n" "\n" "\n" /** * registers a source. If the source is part of a gateway, the * listconnectionFormats is copied to the gatewayInformation (at)return E_OK on * success, E_UNKNOWN on error, E_ALREADY_EXIST if either name or sourceID * already exists */ "\n" "\n" "\n" "\n" "\n" /** * deregisters a source (at)return E_OK on succes, E_NON_EXISTENT if not found * E_UNKOWN on error */ "\n" "\n" "\n" "\n" /** * this function registers a crossfader. (at)return E_OK on succes, * E_ALREADY_EXISTENT if already registered E_UNKOWN on error */ "\n" "\n" "\n" "\n" "\n" /** * this function deregisters a crossfader. removes all sources and sinks assiated * as well. (at)return E_OK on succes, E_NON_EXISTENT if not found E_UNKOWN on * error */ "\n" "\n" "\n" "\n" /** * this function peeks a sourceclassID. It is used by the RoutingPlugins to * determine the SinkClassIDs of a sinkClass. (at)return E_OK on succes, * E_DATABASE_ERROR on error */ "\n" "\n" "\n" "\n" "\n" /** * this function peeks a sourceclassID. It is used by the RoutingPlugins to * determine the SinkClassIDs of a sinkClass. (at)return E_OK on succes, * E_DATABASE_ERROR on error */ "\n" "\n" "\n" "\n" "\n" /** * is called when a low level interrupt changes it status. */ "\n" "\n" "\n" "\n" /** * This hook is called when all elements from a domain are registered. Is used by * the Controller to know when all expected domains are finally registered */ "\n" "\n" "\n" /** * is called when a sink changes its availability */ "\n" "\n" "\n" "\n" /** * is called when a source changes its availability */ "\n" "\n" "\n" "\n" /** * is called when a domain changes its status. This used for early domains only */ "\n" "\n" "\n" "\n" /** * is called when the timinginformation (delay) changed for a connection. */ "\n" "\n" "\n" "\n" /** * this function is used to send out all data that has been changed in an early * state. (at)return E_OK on success, E_UNKNOWN on error */ "\n" "\n" "\n" /** * updates data of an gateway. (at)return E_OK on success, E_NON_EXISTENT if the * gatewayID is not valid. */ "\n" "\n" "\n" "\n" "\n" "\n" "\n" /** * updates data of an gateway. (at)return E_OK on success, E_NON_EXISTENT if the * sinkID is not valid. */ "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" /** * updates data of an source. (at)return E_OK on success, E_NON_EXISTENT if the * sourceID in the struct is not valid. Please note that only the following * data out of am_Source_s have effect when they are * changed: sourceClassID, listSoundProperties, listConnectionFormats, * listMainSoundProperties */ "\n" "\n" "\n" "\n" "\n" "\n" "\n" "\n" /** * acknowledges a asyncSetSinkVolumes */ "\n" "\n" "\n" "\n" "\n" /** * The acknowledge of the SinkNotificationConfiguration */ "\n" "\n" "\n" "\n" /** * The acknowledge of the SourceNotificationConfiguration */ "\n" "\n" "\n" "\n" /** * is called whenever a notified value needs to be send */ "\n" "\n" "\n" "\n" /** * is called whenever a notified value needs to be send */ "\n" "\n" "\n" "\n" "\n" "\n" "\n" ; return introspectionData.c_str(); } static CommonAPI::DBus::DBusGetAttributeStubDispatcher< RoutingControlObserverStub, CommonAPI::Version > getRoutingControlObserverInterfaceVersionStubDispatcher(&RoutingControlObserverStub::getInterfaceVersion, "uu"); /** * This attribute signals to the clients the current routing state. A client * should notify himself to this attribute in order to know the current state and * act accordingly. */ static CommonAPI::DBus::DBusGetAttributeStubDispatcher< RoutingControlObserverStub, am_RoutingReady_e > getRoutingReadyAttributeStubDispatcher(&RoutingControlObserverStub::getRoutingReadyAttribute, "i"); /** * acknowledges a asyncConnect */ static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< RoutingControlObserverStub, std::tuple, std::tuple<> > ackConnectStubDispatcher(&RoutingControlObserverStub::ackConnect, ""); /** * acknowledges a asyncDisconnect */ static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< RoutingControlObserverStub, std::tuple, std::tuple<> > ackDisconnectStubDispatcher(&RoutingControlObserverStub::ackDisconnect, ""); /** * acknowledges a asyncsetSinkVolume */ static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< RoutingControlObserverStub, std::tuple, std::tuple<> > ackSetSinkVolumeChangeStubDispatcher(&RoutingControlObserverStub::ackSetSinkVolumeChange, ""); /** * acknowledges a asyncsetSourceVolume */ static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< RoutingControlObserverStub, std::tuple, std::tuple<> > ackSetSourceVolumeChangeStubDispatcher(&RoutingControlObserverStub::ackSetSourceVolumeChange, ""); /** * acknowlegde for asyncSetSourceState */ static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< RoutingControlObserverStub, std::tuple, std::tuple<> > ackSetSourceStateStubDispatcher(&RoutingControlObserverStub::ackSetSourceState, ""); /** * acknowledges asyncSetSinkSoundProperties */ static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< RoutingControlObserverStub, std::tuple, std::tuple<> > ackSetSinkSoundPropertiesStubDispatcher(&RoutingControlObserverStub::ackSetSinkSoundProperties, ""); /** * acknowledges asyncSetSinkSoundProperty */ static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< RoutingControlObserverStub, std::tuple, std::tuple<> > ackSetSinkSoundPropertyStubDispatcher(&RoutingControlObserverStub::ackSetSinkSoundProperty, ""); /** * acknowledges asyncSetSourceSoundProperties */ static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< RoutingControlObserverStub, std::tuple, std::tuple<> > ackSetSourceSoundPropertiesStubDispatcher(&RoutingControlObserverStub::ackSetSourceSoundProperties, ""); /** * acknowledges asyncSetSourceSoundProperty */ static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< RoutingControlObserverStub, std::tuple, std::tuple<> > ackSetSourceSoundPropertyStubDispatcher(&RoutingControlObserverStub::ackSetSourceSoundProperty, ""); /** * acknowledges asyncCrossFade */ static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< RoutingControlObserverStub, std::tuple, std::tuple<> > ackCrossFadingStubDispatcher(&RoutingControlObserverStub::ackCrossFading, ""); /** * acknowledges a volume tick. This can be used to display volumechanges during * ramps */ static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< RoutingControlObserverStub, std::tuple, std::tuple<> > ackSourceVolumeTickStubDispatcher(&RoutingControlObserverStub::ackSourceVolumeTick, ""); /** * acknowledges a volume tick. This can be used to display volumechanges during * ramps */ static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< RoutingControlObserverStub, std::tuple, std::tuple<> > ackSinkVolumeTickStubDispatcher(&RoutingControlObserverStub::ackSinkVolumeTick, ""); /** * This function returns the ID to the given domainName. If already a domain is * registered with this name, it will return the corresponding ID, if not it will * reserve an ID but not register the domain. The other parameters of the domain * will be overwritten when the domain is registered. (at)return E_OK on * success, E_UNKNOWN on error */ static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< RoutingControlObserverStub, std::tuple, std::tuple > peekDomainStubDispatcher(&RoutingControlObserverStub::peekDomain, "qi"); /** * registers a domain (at)return E_OK on succes, E_ALREADY_EXISTENT if already * registered E_UNKOWN on error */ static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< RoutingControlObserverStub, std::tuple, std::tuple > registerDomainStubDispatcher(&RoutingControlObserverStub::registerDomain, "qi"); /** * deregisters a domain. All sources, sinks, gateways and crossfaders from that * domain will be removed as well. (at)return E_OK on succes, E_NON_EXISTENT if * not found E_UNKOWN on error */ static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< RoutingControlObserverStub, std::tuple, std::tuple > deregisterDomainStubDispatcher(&RoutingControlObserverStub::deregisterDomain, "i"); /** * registers a gateway. (at)return E_OK on succes, E_ALREADY_EXISTENT if already * registered E_UNKOWN on error */ static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< RoutingControlObserverStub, std::tuple, std::tuple > registerGatewayStubDispatcher(&RoutingControlObserverStub::registerGateway, "qi"); /** * deregisters a gateway. Also removes all sinks and sources of the controlling * domain. (at)return E_OK on succes, E_NON_EXISTENT if not found E_UNKOWN on * error */ static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< RoutingControlObserverStub, std::tuple, std::tuple > deregisterGatewayStubDispatcher(&RoutingControlObserverStub::deregisterGateway, "i"); /** * This function returns the ID to the given sinkName. If already a sink is * registered with this name, it will return the corresponding ID, if not it will * reserve an ID but not register the sink. The other parameters of the sink will * be overwritten when the sink is registered. (at)return E_OK on success, * E_UNKNOWN on error */ static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< RoutingControlObserverStub, std::tuple, std::tuple > peekSinkStubDispatcher(&RoutingControlObserverStub::peekSink, "qi"); /** * Registers a sink. If the sink is part of a gateway, the listconnectionFormats * is copied to the gatewayInformation (at)return E_OK on succes, * E_ALREADY_EXISTENT if already registered E_UNKOWN on error */ static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< RoutingControlObserverStub, std::tuple, std::tuple > registerSinkStubDispatcher(&RoutingControlObserverStub::registerSink, "qi"); /** * deregisters a sink. (at)return E_OK on succes, E_NON_EXISTENT if not found * E_UNKOWN on error */ static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< RoutingControlObserverStub, std::tuple, std::tuple > deregisterSinkStubDispatcher(&RoutingControlObserverStub::deregisterSink, "i"); /** * This function returns the ID to the given sourceName. If already a source is * registered with this name, it will return the corresponding ID, if not it will * reserve an ID but not register the source. The other parameters of the source * will be overwritten when the source is registered. (at)return E_OK on * success, E_UNKNOWN on error */ static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< RoutingControlObserverStub, std::tuple, std::tuple > peekSourceStubDispatcher(&RoutingControlObserverStub::peekSource, "qi"); /** * registers a source. If the source is part of a gateway, the * listconnectionFormats is copied to the gatewayInformation (at)return E_OK on * success, E_UNKNOWN on error, E_ALREADY_EXIST if either name or sourceID * already exists */ static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< RoutingControlObserverStub, std::tuple, std::tuple > registerSourceStubDispatcher(&RoutingControlObserverStub::registerSource, "qi"); /** * deregisters a source (at)return E_OK on succes, E_NON_EXISTENT if not found * E_UNKOWN on error */ static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< RoutingControlObserverStub, std::tuple, std::tuple > deregisterSourceStubDispatcher(&RoutingControlObserverStub::deregisterSource, "i"); /** * this function registers a crossfader. (at)return E_OK on succes, * E_ALREADY_EXISTENT if already registered E_UNKOWN on error */ static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< RoutingControlObserverStub, std::tuple, std::tuple > registerCrossfaderStubDispatcher(&RoutingControlObserverStub::registerCrossfader, "qi"); /** * this function deregisters a crossfader. removes all sources and sinks assiated * as well. (at)return E_OK on succes, E_NON_EXISTENT if not found E_UNKOWN on * error */ static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< RoutingControlObserverStub, std::tuple, std::tuple > deregisterCrossfaderStubDispatcher(&RoutingControlObserverStub::deregisterCrossfader, "i"); /** * this function peeks a sourceclassID. It is used by the RoutingPlugins to * determine the SinkClassIDs of a sinkClass. (at)return E_OK on succes, * E_DATABASE_ERROR on error */ static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< RoutingControlObserverStub, std::tuple, std::tuple > peekSourceClassIDStubDispatcher(&RoutingControlObserverStub::peekSourceClassID, "qi"); /** * this function peeks a sourceclassID. It is used by the RoutingPlugins to * determine the SinkClassIDs of a sinkClass. (at)return E_OK on succes, * E_DATABASE_ERROR on error */ static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< RoutingControlObserverStub, std::tuple, std::tuple > peekSinkClassIDStubDispatcher(&RoutingControlObserverStub::peekSinkClassID, "qi"); /** * is called when a low level interrupt changes it status. */ static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< RoutingControlObserverStub, std::tuple, std::tuple<> > hookInterruptStatusChangeStubDispatcher(&RoutingControlObserverStub::hookInterruptStatusChange, ""); /** * This hook is called when all elements from a domain are registered. Is used by * the Controller to know when all expected domains are finally registered */ static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< RoutingControlObserverStub, std::tuple, std::tuple<> > hookDomainRegistrationCompleteStubDispatcher(&RoutingControlObserverStub::hookDomainRegistrationComplete, ""); /** * is called when a sink changes its availability */ static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< RoutingControlObserverStub, std::tuple, std::tuple<> > hookSinkAvailablityStatusChangeStubDispatcher(&RoutingControlObserverStub::hookSinkAvailablityStatusChange, ""); /** * is called when a source changes its availability */ static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< RoutingControlObserverStub, std::tuple, std::tuple<> > hookSourceAvailablityStatusChangeStubDispatcher(&RoutingControlObserverStub::hookSourceAvailablityStatusChange, ""); /** * is called when a domain changes its status. This used for early domains only */ static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< RoutingControlObserverStub, std::tuple, std::tuple<> > hookDomainStateChangeStubDispatcher(&RoutingControlObserverStub::hookDomainStateChange, ""); /** * is called when the timinginformation (delay) changed for a connection. */ static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< RoutingControlObserverStub, std::tuple, std::tuple<> > hookTimingInformationChangedStubDispatcher(&RoutingControlObserverStub::hookTimingInformationChanged, ""); /** * this function is used to send out all data that has been changed in an early * state. (at)return E_OK on success, E_UNKNOWN on error */ static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< RoutingControlObserverStub, std::tuple, std::tuple<> > sendChangedDataStubDispatcher(&RoutingControlObserverStub::sendChangedData, ""); /** * updates data of an gateway. (at)return E_OK on success, E_NON_EXISTENT if the * gatewayID is not valid. */ static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< RoutingControlObserverStub, std::tuple, std::tuple > updateGatewayStubDispatcher(&RoutingControlObserverStub::updateGateway, "i"); /** * updates data of an gateway. (at)return E_OK on success, E_NON_EXISTENT if the * sinkID is not valid. */ static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< RoutingControlObserverStub, std::tuple, std::tuple > updateSinkStubDispatcher(&RoutingControlObserverStub::updateSink, "i"); /** * updates data of an source. (at)return E_OK on success, E_NON_EXISTENT if the * sourceID in the struct is not valid. Please note that only the following * data out of am_Source_s have effect when they are * changed: sourceClassID, listSoundProperties, listConnectionFormats, * listMainSoundProperties */ static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< RoutingControlObserverStub, std::tuple, std::tuple > updateSourceStubDispatcher(&RoutingControlObserverStub::updateSource, "i"); /** * acknowledges a asyncSetSinkVolumes */ static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< RoutingControlObserverStub, std::tuple, std::tuple<> > ackSetVolumesStubDispatcher(&RoutingControlObserverStub::ackSetVolumes, ""); /** * The acknowledge of the SinkNotificationConfiguration */ static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< RoutingControlObserverStub, std::tuple, std::tuple<> > ackSinkNotificationConfigurationStubDispatcher(&RoutingControlObserverStub::ackSinkNotificationConfiguration, ""); /** * The acknowledge of the SourceNotificationConfiguration */ static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< RoutingControlObserverStub, std::tuple, std::tuple<> > ackSourceNotificationConfigurationStubDispatcher(&RoutingControlObserverStub::ackSourceNotificationConfiguration, ""); /** * is called whenever a notified value needs to be send */ static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< RoutingControlObserverStub, std::tuple, std::tuple<> > hookSinkNotificationDataChangeStubDispatcher(&RoutingControlObserverStub::hookSinkNotificationDataChange, ""); /** * is called whenever a notified value needs to be send */ static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< RoutingControlObserverStub, std::tuple, std::tuple<> > hookSourceNotificationDataChangeStubDispatcher(&RoutingControlObserverStub::hookSourceNotificationDataChange, ""); static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher< RoutingControlObserverStub, std::tuple, std::tuple<> > confirmRoutingRundownStubDispatcher(&RoutingControlObserverStub::confirmRoutingRundown, ""); /** * This attribute signals to the clients the current routing state. A client * should notify himself to this attribute in order to know the current state and * act accordingly. */ void RoutingControlObserverDBusStubAdapterInternal::fireRoutingReadyAttributeChanged(const am_RoutingReady_e& value) { CommonAPI::DBus::DBusStubSignalHelper> ::sendSignal( *this, "onRoutingReadyAttributeChanged", "i", value ); } const RoutingControlObserverDBusStubAdapterHelper::StubDispatcherTable& RoutingControlObserverDBusStubAdapterInternal::getStubDispatcherTable() { return stubDispatcherTable_; } RoutingControlObserverDBusStubAdapterInternal::RoutingControlObserverDBusStubAdapterInternal( const std::shared_ptr& factory, const std::string& commonApiAddress, const std::string& dbusInterfaceName, const std::string& dbusBusName, const std::string& dbusObjectPath, const std::shared_ptr& dbusConnection, const std::shared_ptr& stub): CommonAPI::DBus::DBusStubAdapter( factory, commonApiAddress, dbusInterfaceName, dbusBusName, dbusObjectPath, dbusConnection, false), RoutingControlObserverDBusStubAdapterHelper( factory, commonApiAddress, dbusInterfaceName, dbusBusName, dbusObjectPath, dbusConnection, std::dynamic_pointer_cast(stub), false), stubDispatcherTable_({ /** * This attribute signals to the clients the current routing state. A client * should notify himself to this attribute in order to know the current state and * act accordingly. */ { { "getRoutingReadyAttribute", "" }, &org::genivi::am::getRoutingReadyAttributeStubDispatcher } , /** * acknowledges a asyncConnect */ { { "ackConnect", "(iq)qi" }, &org::genivi::am::ackConnectStubDispatcher }, /** * acknowledges a asyncDisconnect */ { { "ackDisconnect", "(iq)qi" }, &org::genivi::am::ackDisconnectStubDispatcher }, /** * acknowledges a asyncsetSinkVolume */ { { "ackSetSinkVolumeChange", "(iq)ni" }, &org::genivi::am::ackSetSinkVolumeChangeStubDispatcher }, /** * acknowledges a asyncsetSourceVolume */ { { "ackSetSourceVolumeChange", "(iq)ni" }, &org::genivi::am::ackSetSourceVolumeChangeStubDispatcher }, /** * acknowlegde for asyncSetSourceState */ { { "ackSetSourceState", "(iq)i" }, &org::genivi::am::ackSetSourceStateStubDispatcher }, /** * acknowledges asyncSetSinkSoundProperties */ { { "ackSetSinkSoundProperties", "(iq)i" }, &org::genivi::am::ackSetSinkSoundPropertiesStubDispatcher }, /** * acknowledges asyncSetSinkSoundProperty */ { { "ackSetSinkSoundProperty", "(iq)i" }, &org::genivi::am::ackSetSinkSoundPropertyStubDispatcher }, /** * acknowledges asyncSetSourceSoundProperties */ { { "ackSetSourceSoundProperties", "(iq)i" }, &org::genivi::am::ackSetSourceSoundPropertiesStubDispatcher }, /** * acknowledges asyncSetSourceSoundProperty */ { { "ackSetSourceSoundProperty", "(iq)i" }, &org::genivi::am::ackSetSourceSoundPropertyStubDispatcher }, /** * acknowledges asyncCrossFade */ { { "ackCrossFading", "(iq)ii" }, &org::genivi::am::ackCrossFadingStubDispatcher }, /** * acknowledges a volume tick. This can be used to display volumechanges during * ramps */ { { "ackSourceVolumeTick", "(iq)qn" }, &org::genivi::am::ackSourceVolumeTickStubDispatcher }, /** * acknowledges a volume tick. This can be used to display volumechanges during * ramps */ { { "ackSinkVolumeTick", "(iq)qn" }, &org::genivi::am::ackSinkVolumeTickStubDispatcher }, /** * This function returns the ID to the given domainName. If already a domain is * registered with this name, it will return the corresponding ID, if not it will * reserve an ID but not register the domain. The other parameters of the domain * will be overwritten when the domain is registered. (at)return E_OK on * success, E_UNKNOWN on error */ { { "peekDomain", "s" }, &org::genivi::am::peekDomainStubDispatcher }, /** * registers a domain (at)return E_OK on succes, E_ALREADY_EXISTENT if already * registered E_UNKOWN on error */ { { "registerDomain", "(qsssbbi)ss" }, &org::genivi::am::registerDomainStubDispatcher }, /** * deregisters a domain. All sources, sinks, gateways and crossfaders from that * domain will be removed as well. (at)return E_OK on succes, E_NON_EXISTENT if * not found E_UNKOWN on error */ { { "deregisterDomain", "q" }, &org::genivi::am::deregisterDomainStubDispatcher }, /** * registers a gateway. (at)return E_OK on succes, E_ALREADY_EXISTENT if already * registered E_UNKOWN on error */ { { "registerGateway", "(qsqqqqqaqaqab)" }, &org::genivi::am::registerGatewayStubDispatcher }, /** * deregisters a gateway. Also removes all sinks and sources of the controlling * domain. (at)return E_OK on succes, E_NON_EXISTENT if not found E_UNKOWN on * error */ { { "deregisterGateway", "q" }, &org::genivi::am::deregisterGatewayStubDispatcher }, /** * This function returns the ID to the given sinkName. If already a sink is * registered with this name, it will return the corresponding ID, if not it will * reserve an ID but not register the sink. The other parameters of the sink will * be overwritten when the sink is registered. (at)return E_OK on success, * E_UNKNOWN on error */ { { "peekSink", "s" }, &org::genivi::am::peekSinkStubDispatcher }, /** * Registers a sink. If the sink is part of a gateway, the listconnectionFormats * is copied to the gatewayInformation (at)return E_OK on succes, * E_ALREADY_EXISTENT if already registered E_UNKOWN on error */ { { "registerSink", "(qsqqnb(iq)ina(qn)aqa(qn)a(qin)a(qin))" }, &org::genivi::am::registerSinkStubDispatcher }, /** * deregisters a sink. (at)return E_OK on succes, E_NON_EXISTENT if not found * E_UNKOWN on error */ { { "deregisterSink", "q" }, &org::genivi::am::deregisterSinkStubDispatcher }, /** * This function returns the ID to the given sourceName. If already a source is * registered with this name, it will return the corresponding ID, if not it will * reserve an ID but not register the source. The other parameters of the source * will be overwritten when the source is registered. (at)return E_OK on * success, E_UNKNOWN on error */ { { "peekSource", "s" }, &org::genivi::am::peekSourceStubDispatcher }, /** * registers a source. If the source is part of a gateway, the * listconnectionFormats is copied to the gatewayInformation (at)return E_OK on * success, E_UNKNOWN on error, E_ALREADY_EXIST if either name or sourceID * already exists */ { { "registerSource", "(qqsqinb(iq)ia(qn)aqa(qn)a(qin)a(qin))" }, &org::genivi::am::registerSourceStubDispatcher }, /** * deregisters a source (at)return E_OK on succes, E_NON_EXISTENT if not found * E_UNKOWN on error */ { { "deregisterSource", "q" }, &org::genivi::am::deregisterSourceStubDispatcher }, /** * this function registers a crossfader. (at)return E_OK on succes, * E_ALREADY_EXISTENT if already registered E_UNKOWN on error */ { { "registerCrossfader", "(qsqqqi)" }, &org::genivi::am::registerCrossfaderStubDispatcher }, /** * this function deregisters a crossfader. removes all sources and sinks assiated * as well. (at)return E_OK on succes, E_NON_EXISTENT if not found E_UNKOWN on * error */ { { "deregisterCrossfader", "q" }, &org::genivi::am::deregisterCrossfaderStubDispatcher }, /** * this function peeks a sourceclassID. It is used by the RoutingPlugins to * determine the SinkClassIDs of a sinkClass. (at)return E_OK on succes, * E_DATABASE_ERROR on error */ { { "peekSourceClassID", "s" }, &org::genivi::am::peekSourceClassIDStubDispatcher }, /** * this function peeks a sourceclassID. It is used by the RoutingPlugins to * determine the SinkClassIDs of a sinkClass. (at)return E_OK on succes, * E_DATABASE_ERROR on error */ { { "peekSinkClassID", "s" }, &org::genivi::am::peekSinkClassIDStubDispatcher }, /** * is called when a low level interrupt changes it status. */ { { "hookInterruptStatusChange", "qi" }, &org::genivi::am::hookInterruptStatusChangeStubDispatcher }, /** * This hook is called when all elements from a domain are registered. Is used by * the Controller to know when all expected domains are finally registered */ { { "hookDomainRegistrationComplete", "q" }, &org::genivi::am::hookDomainRegistrationCompleteStubDispatcher }, /** * is called when a sink changes its availability */ { { "hookSinkAvailablityStatusChange", "q(iq)" }, &org::genivi::am::hookSinkAvailablityStatusChangeStubDispatcher }, /** * is called when a source changes its availability */ { { "hookSourceAvailablityStatusChange", "q(iq)" }, &org::genivi::am::hookSourceAvailablityStatusChangeStubDispatcher }, /** * is called when a domain changes its status. This used for early domains only */ { { "hookDomainStateChange", "qi" }, &org::genivi::am::hookDomainStateChangeStubDispatcher }, /** * is called when the timinginformation (delay) changed for a connection. */ { { "hookTimingInformationChanged", "qn" }, &org::genivi::am::hookTimingInformationChangedStubDispatcher }, /** * this function is used to send out all data that has been changed in an early * state. (at)return E_OK on success, E_UNKNOWN on error */ { { "sendChangedData", "a(i(yv)(yv))" }, &org::genivi::am::sendChangedDataStubDispatcher }, /** * updates data of an gateway. (at)return E_OK on success, E_NON_EXISTENT if the * gatewayID is not valid. */ { { "updateGateway", "qaqaqab" }, &org::genivi::am::updateGatewayStubDispatcher }, /** * updates data of an gateway. (at)return E_OK on success, E_NON_EXISTENT if the * sinkID is not valid. */ { { "updateSink", "qqa(qn)aqa(qn)" }, &org::genivi::am::updateSinkStubDispatcher }, /** * updates data of an source. (at)return E_OK on success, E_NON_EXISTENT if the * sourceID in the struct is not valid. Please note that only the following * data out of am_Source_s have effect when they are * changed: sourceClassID, listSoundProperties, listConnectionFormats, * listMainSoundProperties */ { { "updateSource", "qqa(qn)aqa(qn)" }, &org::genivi::am::updateSourceStubDispatcher }, /** * acknowledges a asyncSetSinkVolumes */ { { "ackSetVolumes", "(iq)a(i(yv)nqn)i" }, &org::genivi::am::ackSetVolumesStubDispatcher }, /** * The acknowledge of the SinkNotificationConfiguration */ { { "ackSinkNotificationConfiguration", "(iq)i" }, &org::genivi::am::ackSinkNotificationConfigurationStubDispatcher }, /** * The acknowledge of the SourceNotificationConfiguration */ { { "ackSourceNotificationConfiguration", "(iq)i" }, &org::genivi::am::ackSourceNotificationConfigurationStubDispatcher }, /** * is called whenever a notified value needs to be send */ { { "hookSinkNotificationDataChange", "q(qn)" }, &org::genivi::am::hookSinkNotificationDataChangeStubDispatcher }, /** * is called whenever a notified value needs to be send */ { { "hookSourceNotificationDataChange", "q(qn)" }, &org::genivi::am::hookSourceNotificationDataChangeStubDispatcher }, { { "confirmRoutingRundown", "s" }, &org::genivi::am::confirmRoutingRundownStubDispatcher } }) { stubDispatcherTable_.insert({ { "getInterfaceVersion", "" }, &org::genivi::am::getRoutingControlObserverInterfaceVersionStubDispatcher }); } } // namespace am } // namespace genivi } // namespace org