summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--AudioManagerDaemon/fidls/AudioManagerTypes.fidl1234
-rw-r--r--AudioManagerDaemon/fidls/NodeStateAccessStub_model_org.genivi.NodeStateManager.Consumer.fdepl6
-rwxr-xr-xAudioManagerDaemon/fidls/NodeStateAccessStub_model_org.genivi.NodeStateManager.Consumer.fidl127
-rwxr-xr-xAudioManagerDaemon/fidls/NodeStateAccessStub_model_org.genivi.NodeStateManager.LifecycleConsumer.fidl16
-rw-r--r--AudioManagerDaemon/fidls/NodeStateManager.fdepl (renamed from PluginCommandInterfaceCAPI/fidl/CommandInterface.fdepl)12
-rw-r--r--AudioManagerDaemon/fidls/NodeStateManager.fidl152
-rwxr-xr-xAudioManagerDaemon/fidls/amTypes.fidl330
-rw-r--r--AudioManagerDaemon/include/CAmNodeStateCommunicatorCAPI.h7
-rw-r--r--AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/Consumer.h55
-rw-r--r--AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/Consumer/Consumer.h70
-rw-r--r--AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/Consumer/ConsumerDBusStubAdapter.cpp374
-rw-r--r--AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/Consumer/ConsumerDBusStubAdapter.h68
-rw-r--r--AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/ConsumerDBusProxy.cpp (renamed from AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/Consumer/ConsumerDBusProxy.cpp)245
-rw-r--r--AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/ConsumerDBusProxy.h (renamed from AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/Consumer/ConsumerDBusProxy.h)81
-rw-r--r--AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/ConsumerProxy.h (renamed from AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/Consumer/ConsumerProxy.h)263
-rw-r--r--AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/ConsumerProxyBase.h (renamed from AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/Consumer/ConsumerProxyBase.h)97
-rw-r--r--AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/ConsumerStub.h (renamed from AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/Consumer/ConsumerStub.h)97
-rw-r--r--AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/ConsumerStubDefault.cpp (renamed from AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/Consumer/ConsumerStubDefault.cpp)127
-rw-r--r--AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/ConsumerStubDefault.h (renamed from AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/Consumer/ConsumerStubDefault.h)71
-rw-r--r--AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/LifeCycleConsumer.h55
-rw-r--r--AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/LifeCycleConsumer/LifeCycleConsumer.h70
-rw-r--r--AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/LifeCycleConsumerDBusProxy.cpp (renamed from AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/LifeCycleConsumer/LifeCycleConsumerDBusProxy.cpp)23
-rw-r--r--AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/LifeCycleConsumerDBusProxy.h (renamed from AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/LifeCycleConsumer/LifeCycleConsumerDBusProxy.h)27
-rw-r--r--AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/LifeCycleConsumerDBusStubAdapter.cpp (renamed from AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/LifeCycleConsumer/LifeCycleConsumerDBusStubAdapter.cpp)25
-rw-r--r--AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/LifeCycleConsumerDBusStubAdapter.h (renamed from AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/LifeCycleConsumer/LifeCycleConsumerDBusStubAdapter.h)27
-rw-r--r--AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/LifeCycleConsumerProxy.h (renamed from AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/LifeCycleConsumer/LifeCycleConsumerProxy.h)25
-rw-r--r--AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/LifeCycleConsumerProxyBase.h (renamed from AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/LifeCycleConsumer/LifeCycleConsumerProxyBase.h)25
-rw-r--r--AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/LifeCycleConsumerStub.h (renamed from AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/LifeCycleConsumer/LifeCycleConsumerStub.h)25
-rw-r--r--AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/LifeCycleConsumerStubDefault.cpp (renamed from AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/LifeCycleConsumer/LifeCycleConsumerStubDefault.cpp)21
-rw-r--r--AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/LifeCycleConsumerStubDefault.h (renamed from AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/LifeCycleConsumer/LifeCycleConsumerStubDefault.h)27
-rw-r--r--AudioManagerDaemon/src/CAmNodeStateCommunicatorCAPI.cpp28
-rw-r--r--[-rwxr-xr-x]PluginCommandInterfaceCAPI/fidl/CommandInterface.fidl1328
-rwxr-xr-xPluginCommandInterfaceCAPI/fidl/amTypes.fidl329
-rw-r--r--PluginCommandInterfaceCAPI/include/CAmCommandSenderCAPI.h1
-rw-r--r--PluginCommandInterfaceCAPI/include/CAmCommandSenderCommon.h42
-rw-r--r--PluginCommandInterfaceCAPI/include/CAmCommandSenderService.h40
-rw-r--r--PluginCommandInterfaceCAPI/src-gen/org/genivi/am.cpp910
-rw-r--r--PluginCommandInterfaceCAPI/src-gen/org/genivi/am.h1532
-rw-r--r--PluginCommandInterfaceCAPI/src-gen/org/genivi/am/CommandControl.h55
-rw-r--r--PluginCommandInterfaceCAPI/src-gen/org/genivi/am/CommandControlDBusProxy.cpp527
-rw-r--r--PluginCommandInterfaceCAPI/src-gen/org/genivi/am/CommandControlDBusProxy.h160
-rw-r--r--PluginCommandInterfaceCAPI/src-gen/org/genivi/am/CommandControlDBusStubAdapter.cpp568
-rw-r--r--PluginCommandInterfaceCAPI/src-gen/org/genivi/am/CommandControlDBusStubAdapter.h69
-rw-r--r--PluginCommandInterfaceCAPI/src-gen/org/genivi/am/CommandControlProxy.h920
-rw-r--r--PluginCommandInterfaceCAPI/src-gen/org/genivi/am/CommandControlProxyBase.h177
-rw-r--r--PluginCommandInterfaceCAPI/src-gen/org/genivi/am/CommandControlStub.h286
-rw-r--r--PluginCommandInterfaceCAPI/src-gen/org/genivi/am/CommandControlStubDefault.cpp185
-rw-r--r--PluginCommandInterfaceCAPI/src-gen/org/genivi/am/CommandControlStubDefault.h122
-rw-r--r--PluginCommandInterfaceCAPI/src-gen/org/genivi/audiomanager/CommandInterface.cpp332
-rw-r--r--PluginCommandInterfaceCAPI/src-gen/org/genivi/audiomanager/CommandInterface.h820
-rw-r--r--PluginCommandInterfaceCAPI/src-gen/org/genivi/audiomanager/CommandInterfaceDBusProxy.cpp458
-rw-r--r--PluginCommandInterfaceCAPI/src-gen/org/genivi/audiomanager/CommandInterfaceDBusProxy.h157
-rw-r--r--PluginCommandInterfaceCAPI/src-gen/org/genivi/audiomanager/CommandInterfaceDBusStubAdapter.cpp521
-rw-r--r--PluginCommandInterfaceCAPI/src-gen/org/genivi/audiomanager/CommandInterfaceDBusStubAdapter.h79
-rw-r--r--PluginCommandInterfaceCAPI/src-gen/org/genivi/audiomanager/CommandInterfaceProxy.h794
-rw-r--r--PluginCommandInterfaceCAPI/src-gen/org/genivi/audiomanager/CommandInterfaceProxyBase.h170
-rw-r--r--PluginCommandInterfaceCAPI/src-gen/org/genivi/audiomanager/CommandInterfaceStub.h282
-rw-r--r--PluginCommandInterfaceCAPI/src-gen/org/genivi/audiomanager/CommandInterfaceStubDefault.cpp177
-rw-r--r--PluginCommandInterfaceCAPI/src-gen/org/genivi/audiomanager/CommandInterfaceStubDefault.h124
-rw-r--r--PluginCommandInterfaceCAPI/src-gen/org/genivi/audiomanager/am.cpp477
-rw-r--r--PluginCommandInterfaceCAPI/src-gen/org/genivi/audiomanager/am.h1515
-rw-r--r--PluginCommandInterfaceCAPI/src/CAmCommandSenderCAPI.cpp60
-rw-r--r--PluginCommandInterfaceCAPI/src/CAmCommandSenderCommon.cpp105
-rw-r--r--PluginCommandInterfaceCAPI/src/CAmCommandSenderService.cpp76
-rw-r--r--PluginCommandInterfaceCAPI/test/CAmCommandSenderCAPITest.cpp279
-rw-r--r--PluginCommandInterfaceCAPI/test/CAmCommandSenderCAPITest.h4
-rw-r--r--PluginCommandInterfaceCAPI/test/MockNotificationsClient.h148
-rw-r--r--PluginRoutingInterfaceCAPI/fidl/RoutingInterface.fidl1305
-rwxr-xr-xPluginRoutingInterfaceCAPI/fidl/RoutingSender.fidl158
-rwxr-xr-xPluginRoutingInterfaceCAPI/fidl/amTypes.fidl399
-rw-r--r--PluginRoutingInterfaceCAPI/fidl/deployment.fdepl9
-rw-r--r--PluginRoutingInterfaceCAPI/include/CAmLookupData.h73
-rw-r--r--PluginRoutingInterfaceCAPI/include/CAmRoutingSenderCAPI.h2
-rw-r--r--PluginRoutingInterfaceCAPI/include/CAmRoutingSenderCommon.h56
-rw-r--r--PluginRoutingInterfaceCAPI/include/CAmRoutingService.h97
-rw-r--r--PluginRoutingInterfaceCAPI/src-gen/org/genivi/am.cpp910
-rw-r--r--PluginRoutingInterfaceCAPI/src-gen/org/genivi/am.h1532
-rw-r--r--PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControl.h55
-rw-r--r--PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlDBusProxy.cpp333
-rw-r--r--PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlDBusProxy.h95
-rw-r--r--PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlDBusStubAdapter.cpp225
-rw-r--r--PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlDBusStubAdapter.h46
-rw-r--r--PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlObserver.h55
-rw-r--r--PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlObserverDBusProxy.cpp869
-rw-r--r--PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlObserverDBusProxy.h182
-rw-r--r--PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlObserverDBusStubAdapter.cpp551
-rw-r--r--PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlObserverDBusStubAdapter.h47
-rw-r--r--PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlObserverProxy.h (renamed from PluginRoutingInterfaceCAPI/src-gen/org/genivi/audiomanager/RoutingInterfaceProxy.h)581
-rw-r--r--PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlObserverProxyBase.h221
-rw-r--r--PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlObserverStub.h178
-rw-r--r--PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlObserverStubDefault.cpp239
-rw-r--r--PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlObserverStubDefault.h154
-rw-r--r--PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlProxy.h (renamed from PluginRoutingInterfaceCAPI/src-gen/org/genivi/audiomanager/RoutingSenderProxy.h)262
-rw-r--r--PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlProxyBase.h105
-rw-r--r--PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlStub.h112
-rw-r--r--PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlStubDefault.cpp92
-rw-r--r--PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlStubDefault.h87
-rw-r--r--PluginRoutingInterfaceCAPI/src-gen/org/genivi/audiomanager/RoutingInterface.h66
-rw-r--r--PluginRoutingInterfaceCAPI/src-gen/org/genivi/audiomanager/RoutingInterfaceDBusProxy.cpp920
-rw-r--r--PluginRoutingInterfaceCAPI/src-gen/org/genivi/audiomanager/RoutingInterfaceDBusProxy.h201
-rw-r--r--PluginRoutingInterfaceCAPI/src-gen/org/genivi/audiomanager/RoutingInterfaceDBusStubAdapter.cpp562
-rw-r--r--PluginRoutingInterfaceCAPI/src-gen/org/genivi/audiomanager/RoutingInterfaceDBusStubAdapter.h59
-rw-r--r--PluginRoutingInterfaceCAPI/src-gen/org/genivi/audiomanager/RoutingInterfaceProxyBase.h242
-rw-r--r--PluginRoutingInterfaceCAPI/src-gen/org/genivi/audiomanager/RoutingInterfaceStub.h198
-rw-r--r--PluginRoutingInterfaceCAPI/src-gen/org/genivi/audiomanager/RoutingInterfaceStubDefault.cpp229
-rw-r--r--PluginRoutingInterfaceCAPI/src-gen/org/genivi/audiomanager/RoutingInterfaceStubDefault.h160
-rw-r--r--PluginRoutingInterfaceCAPI/src-gen/org/genivi/audiomanager/RoutingSender.h66
-rw-r--r--PluginRoutingInterfaceCAPI/src-gen/org/genivi/audiomanager/RoutingSenderDBusProxy.cpp344
-rw-r--r--PluginRoutingInterfaceCAPI/src-gen/org/genivi/audiomanager/RoutingSenderDBusProxy.h106
-rw-r--r--PluginRoutingInterfaceCAPI/src-gen/org/genivi/audiomanager/RoutingSenderDBusStubAdapter.cpp237
-rw-r--r--PluginRoutingInterfaceCAPI/src-gen/org/genivi/audiomanager/RoutingSenderDBusStubAdapter.h57
-rw-r--r--PluginRoutingInterfaceCAPI/src-gen/org/genivi/audiomanager/RoutingSenderProxyBase.h116
-rw-r--r--PluginRoutingInterfaceCAPI/src-gen/org/genivi/audiomanager/RoutingSenderStub.h123
-rw-r--r--PluginRoutingInterfaceCAPI/src-gen/org/genivi/audiomanager/RoutingSenderStubDefault.cpp103
-rw-r--r--PluginRoutingInterfaceCAPI/src-gen/org/genivi/audiomanager/RoutingSenderStubDefault.h98
-rw-r--r--PluginRoutingInterfaceCAPI/src-gen/org/genivi/audiomanager/am_gen.cpp587
-rw-r--r--PluginRoutingInterfaceCAPI/src-gen/org/genivi/audiomanager/am_gen.h1764
-rw-r--r--PluginRoutingInterfaceCAPI/src/CAmLookupData.cpp274
-rw-r--r--PluginRoutingInterfaceCAPI/src/CAmRoutingSenderCAPI.cpp43
-rw-r--r--PluginRoutingInterfaceCAPI/src/CAmRoutingSenderCommon.cpp134
-rw-r--r--PluginRoutingInterfaceCAPI/src/CAmRoutingService.cpp264
-rw-r--r--PluginRoutingInterfaceCAPI/test/CAmRoutingInterfaceCAPITests.cpp706
-rw-r--r--PluginRoutingInterfaceCAPI/test/CAmRoutingInterfaceCAPITests.h6
-rw-r--r--PluginRoutingInterfaceCAPI/test/CAmRoutingSenderService.cpp90
-rw-r--r--PluginRoutingInterfaceCAPI/test/CAmRoutingSenderService.h49
-rw-r--r--PluginRoutingInterfaceCAPI/test/cmake/CAmRoutingSenderService.h.in49
-rw-r--r--src-gen/org/genivi/NodeStateManager/Consumer.h55
-rw-r--r--src-gen/org/genivi/NodeStateManager/ConsumerDBusProxy.cpp277
-rw-r--r--src-gen/org/genivi/NodeStateManager/ConsumerDBusProxy.h99
-rw-r--r--src-gen/org/genivi/NodeStateManager/ConsumerProxy.h604
-rw-r--r--src-gen/org/genivi/NodeStateManager/ConsumerProxyBase.h99
-rw-r--r--src-gen/org/genivi/NodeStateManager/ConsumerStub.h147
-rw-r--r--src-gen/org/genivi/NodeStateManager/ConsumerStubDefault.cpp217
-rw-r--r--src-gen/org/genivi/NodeStateManager/ConsumerStubDefault.h126
-rw-r--r--src-gen/org/genivi/NodeStateManager/LifeCycleConsumer.h55
-rw-r--r--src-gen/org/genivi/NodeStateManager/LifeCycleConsumerDBusProxy.cpp67
-rw-r--r--src-gen/org/genivi/NodeStateManager/LifeCycleConsumerDBusProxy.h53
-rw-r--r--src-gen/org/genivi/NodeStateManager/LifeCycleConsumerDBusStubAdapter.cpp67
-rw-r--r--src-gen/org/genivi/NodeStateManager/LifeCycleConsumerDBusStubAdapter.h46
-rw-r--r--src-gen/org/genivi/NodeStateManager/LifeCycleConsumerProxy.h151
-rw-r--r--src-gen/org/genivi/NodeStateManager/LifeCycleConsumerProxyBase.h43
-rw-r--r--src-gen/org/genivi/NodeStateManager/LifeCycleConsumerStub.h78
-rw-r--r--src-gen/org/genivi/NodeStateManager/LifeCycleConsumerStubDefault.cpp36
-rw-r--r--src-gen/org/genivi/NodeStateManager/LifeCycleConsumerStubDefault.h59
144 files changed, 18993 insertions, 17808 deletions
diff --git a/AudioManagerDaemon/fidls/AudioManagerTypes.fidl b/AudioManagerDaemon/fidls/AudioManagerTypes.fidl
new file mode 100644
index 0000000..0850d33
--- /dev/null
+++ b/AudioManagerDaemon/fidls/AudioManagerTypes.fidl
@@ -0,0 +1,1234 @@
+package org.genivi
+
+<**
+ @author : Christian Linke
+**>
+typeCollection am {
+ version {
+ major 1
+ minor 0
+ }
+ array am_MainConnection_L of am_MainConnectionType_s
+
+ array am_SinkClass_L of am_SinkClass_s
+
+ array am_SinkType_L of am_SinkType_s
+
+ array am_SourceClass_L of am_SourceClass_s
+
+ array am_SourceType_L of am_SourceType_s
+
+ array am_SystemProperty_L of am_SystemProperty_s
+
+ array am_ClassProperty_L of am_ClassProperty_s
+
+ array am_ConnectionID_L of am_connectionID_t
+
+ array am_EarlyData_L of am_EarlyData_s
+
+ array am_MainSoundProperty_L of am_MainSoundProperty_s
+
+ array am_NotificationConfiguration_L of am_NotificationConfiguration_s
+
+ array am_RoutingElement_L of am_RoutingElement_s
+
+ array am_SoundProperty_L of am_SoundProperty_s
+
+ array am_Volumes_L of am_Volumes_s
+
+ array am_ConnectionFormat_L of am_ConnectionFormat_pe
+
+ array am_Convertion_L of am_bool_t
+
+ <**
+ @description : a source ID
+ **>
+ typedef am_sourceID_t is UInt16
+ typedef am_bool_t is Boolean
+
+ <**
+ @description : a domain ID
+ **>
+ typedef am_domainID_t is UInt16
+
+ <**
+ @description : a gateway ID
+ **>
+ typedef am_gatewayID_t is UInt16
+
+ <**
+ @description : a connection ID
+ **>
+ typedef am_connectionID_t is UInt16
+
+ <**
+ @description : a crossfader ID
+ **>
+ typedef am_crossfaderID_t is UInt16
+
+ <**
+ @description : a mainConnection ID
+ **>
+ typedef am_mainConnectionID_t is UInt16
+
+ <**
+ @description : This is the volume presented on the command interface. It is in the duty of the Controller to change the volumes given here into meaningful values on the routing interface.
+The range of this type is customer specific.
+ **>
+ typedef am_mainVolume_t is Int16
+
+ <**
+ @description : The unit is 0.1 db steps,The smallest value -3000 (=AM_MUTE). The minimum and maximum can be limited by actual project.
+ **>
+ typedef am_volume_t is Int16
+
+ <**
+ @description : time in ms!
+ **>
+ typedef am_time_t is Int16
+
+ <**
+ @description : offset time that is introduced in milli seconds.
+ **>
+ typedef am_timeSync_t is Int16
+ typedef am_sourceClass_t is UInt16
+
+ <**
+ @description : speed
+ **>
+ typedef am_speed_t is UInt16
+ typedef am_sinkClass_t is UInt16
+
+ <**
+ @description : a sink ID
+ **>
+ typedef am_sinkID_t is UInt16
+
+ <**
+ @description : This project specific value classifies the format in which data is exchanged within a connection.
+ **>
+ typedef am_ConnectionFormat_pe is UInt16
+
+ <**
+ @description : This project specific value gives the information about reason for reason for Source/Sink change
+ **>
+ typedef am_AvailabilityReason_pe is UInt16
+
+ <**
+ @description : product specific identifier of property
+ **>
+ typedef am_ClassProperty_pe is UInt16
+
+ <**
+ @description : For products, different ramp types can be defined here.
+It is in the responsibility of the product to make sure that the routing plugins are aware of the ramp types used.
+ **>
+ typedef am_RampType_pe is UInt16
+
+ <**
+ @description : Project specific sound properties.
+ **>
+ typedef am_SoundPropertyType_pe is UInt16
+
+ <**
+ @description : Here are all SoundProperties that can be set via the CommandInterface. Product specific
+ **>
+ typedef am_MainSoundPropertyType_pe is UInt16
+
+ <**
+ @description : describes the different system properties. Project specific
+ **>
+ typedef am_SystemPropertyType_pe is UInt16
+
+ <**
+ @description : gives the type of the Notification.
+ **>
+ typedef am_NotificationType_pe is UInt16
+
+ <**
+ @description : with the help of this enum, sinks and sources can report their availability state
+ **>
+ enumeration am_Availability_e {
+
+ <**
+ @description : default
+ **>
+ A_UNKNOWN = "0"
+
+ <**
+ @description : The source / sink is available
+ **>
+ A_AVAILABLE = "1"
+
+ <**
+ @description : the source / sink is not available
+ **>
+ A_UNAVAILABLE = "2"
+ A_MAX
+ }
+
+ <**
+ @description : describes the active sink of a crossfader.
+ **>
+ enumeration am_HotSink_e {
+
+ <**
+ @description : default
+ **>
+ HS_UNKNOWN = "0"
+
+ <**
+ @description : sinkA is active
+ **>
+ HS_SINKA = "1"
+
+ <**
+ @description : sinkB is active
+ **>
+ HS_SINKB = "2"
+
+ <**
+ @description : the crossfader is in the transition state
+ **>
+ HS_INTERMEDIATE = "3"
+ HS_MAX
+ }
+
+ <**
+ @description : represents the connection state
+ **>
+ enumeration am_ConnectionState_e {
+ CS_UNKNOWN = "0"
+
+ <**
+ @description : This means the connection is just building up
+ **>
+ CS_CONNECTING = "1"
+
+ <**
+ @description : the connection is ready to be used
+ **>
+ CS_CONNECTED = "2"
+
+ <**
+ @description : the connection is in the course to be knocked down
+ **>
+ CS_DISCONNECTING = "3"
+
+ <**
+ @description : only relevant for connectionStatechanged. Is send after the connection was removed
+ **>
+ CS_DISCONNECTED = "4"
+
+ <**
+ @description : this means the connection is still build up but unused at the moment
+ **>
+ CS_SUSPENDED = "5"
+ CS_MAX
+ }
+
+ enumeration am_DomainState_e {
+
+ <**
+ @description : default
+ **>
+ DS_UNKNOWN = "0"
+
+ <**
+ @description : the domain is controlled by the daemon
+ **>
+ DS_CONTROLLED = "1"
+
+ <**
+ @description : the domain is independent starting up
+ **>
+ DS_INDEPENDENT_STARTUP = "1"
+
+ <**
+ @description : the domain is independent running down
+ **>
+ DS_INDEPENDENT_RUNDOWN = "2"
+ DS_MAX
+ }
+
+ <**
+ @description : This enum characterizes the data of the EarlyData_t
+ **>
+ enumeration am_EarlyDataType_e {
+
+ <**
+ @description : default
+ **>
+ ES_UNKNOWN = "0"
+
+ <**
+ @description : the source volume
+ **>
+ ED_SOURCE_VOLUME = "1"
+
+ <**
+ @description : the sink volume
+ **>
+ ED_SINK_VOLUME = "2"
+
+ <**
+ @description : a source property
+ **>
+ ED_SOURCE_PROPERTY = "3"
+
+ <**
+ @description : a sink property
+ **>
+ ED_SINK_PROPERTY = "4"
+ ED_MAX
+ }
+
+ <**
+ @description : the errors of the audiomanager. All possible errors are in here. This enum is used widely as return parameter.
+ **>
+ enumeration am_Error_e {
+
+ <**
+ @description : no error - positive reply
+ **>
+ E_OK = "0"
+
+ <**
+ @description : default
+ **>
+ E_UNKNOWN = "1"
+
+ <**
+ @description : value out of range
+ **>
+ E_OUT_OF_RANGE = "2"
+
+ <**
+ @description : not used
+ **>
+ E_NOT_USED = "3"
+
+ <**
+ @description : a database error occurred
+ **>
+ E_DATABASE_ERROR = "4"
+
+ <**
+ @description : the desired object already exists
+ **>
+ E_ALREADY_EXISTS = "5"
+
+ <**
+ @description : there is no change
+ **>
+ E_NO_CHANGE = "6"
+
+ <**
+ @description : the desired action is not possible
+ **>
+ E_NOT_POSSIBLE = "7"
+
+ <**
+ @description : the desired object is non existent
+ **>
+ E_NON_EXISTENT = "8"
+
+ <**
+ @description : the asynchronous action was aborted
+ **>
+ E_ABORTED = "9"
+
+ <**
+ @description : This error is returned in case a connect is issued with a connectionFormat that cannot be selected for the connection. This could be either due to the capabilities of a source or a sink or gateway compatibilities for example
+ **>
+ E_WRONG_FORMAT = "10"
+ E_MAX
+ }
+
+ enumeration am_MuteState_e {
+
+ <**
+ @description : default
+ **>
+ MS_UNKNOWN = "0"
+
+ <**
+ @description : the source / sink is muted
+ **>
+ MS_MUTED = "1"
+
+ <**
+ @description : the source / sink is unmuted
+ **>
+ MS_UNMUTED = "2"
+ MS_MAX
+ }
+
+ enumeration am_InterruptState_e {
+
+ <**
+ @description : default
+ **>
+ IS_UNKNOWN = "0"
+
+ <**
+ @description : the interrupt state is off - no interrupt
+ **>
+ IS_OFF = "1"
+
+ <**
+ @description : the interrupt state is interrupted - the interrupt is active
+ **>
+ IS_INTERRUPTED = "2"
+ IS_MAX
+ }
+
+ <**
+ @description : This datatype determines if a sourceID or a sinkID is used in the union following
+ **>
+ enumeration am_VolumeType_e {
+ VT_UNKNOWN = "0"
+
+ <**
+ @description : the following type is a sink
+ **>
+ VT_SINK = "1"
+
+ <**
+ @description : the following type is a source
+ **>
+ VT_SOURCE = "2"
+ VT_MAX
+ }
+
+ enumeration am_NotificationStatus_e {
+ NS_UNKNOWN = "0"
+
+ <**
+ @description : No notification, the function is turned off
+ **>
+ NS_OFF = "1"
+
+ <**
+ @description : Periodic notifications are sent out. The period in ms is given by am_NotificationParameter
+ **>
+ NS_PERIODIC = "2"
+
+ <**
+ @description : The notification is sent out when the minimum given by am_NotificationParameter is reached.
+ **>
+ NS_MINIMUM = "3"
+
+ <**
+ @description : The notification is sent out when the maximum given by am_NotificationParameter is reached.
+ **>
+ NS_MAXIMUM = "4"
+
+ <**
+ @description : The notification is sent out when a change happened. The Resolution of the change is defined by am_NotificationParameter.
+ **>
+ NS_CHANGE_ = "5"
+ NS_MAX
+ }
+
+ <**
+ @description : This enumeration is used to define the type of the action that is correlated to a handle.
+ **>
+ enumeration am_Handle_e {
+ H_UNKNOWN = "0"
+ H_CONNECT = "1"
+ H_DISCONNECT = "2"
+ H_SETSOURCESTATE = "3"
+ H_SETSINKVOLUME = "4"
+ H_SETSOURCEVOLUME = "5"
+ H_SETSINKSOUNDPROPERTY = "6"
+ H_SETSOURCESOUNDPROPERTY = "7"
+ H_SETSINKSOUNDPROPERTIES = "8"
+ H_SETSOURCESOUNDPROPERTIES = "9"
+ H_CROSSFADE = "10"
+ H_SETVOLUMES = "11"
+ H_SETSINKNOTIFICATION = "12"
+ H_SETSOURCENOTIFICATION = "13"
+ H_MAX
+ }
+
+ <**
+ @description : The source state reflects the state of the source
+ **>
+ enumeration am_SourceState_e {
+ SS_UNKNNOWN = "0"
+
+ <**
+ @description : The source can be activly heared
+ **>
+ SS_ON = "1"
+
+ <**
+ @description : The source cannot be heared
+ **>
+ SS_OFF = "2"
+
+ <**
+ @description : The source is paused. Meaning it cannot be heared but should be prepared to play again soon.
+ **>
+ SS_PAUSED = "3"
+ SS_MAX
+ }
+
+ <**
+ @description : This enum describes the ready state of the routing part
+ **>
+ enumeration am_RoutingReady_e {
+ RR_UNKNOWN = "0"
+ RR_READY = "1"
+ RR_RUNDOWN = "2"
+ }
+
+ <**
+ @description : a list of routing elements that lead from source to sink
+ **>
+ struct am_Route_s {
+
+ <**
+ @description : the sourceID where the route starts
+ **>
+ am_sourceID_t sourceID
+
+ <**
+ @description : the sinkID where the route ends
+ **>
+ am_sinkID_t sinkID
+
+ <**
+ @description : the actual route as list of routing elements
+ **>
+ am_RoutingElement_L route
+ }
+
+ <**
+ @description : this describes the availability of a sink or a source together with the latest change
+ **>
+ struct am_Availability_s {
+
+ <**
+ @description : the current availability state
+ **>
+ am_Availability_e availability
+
+ <**
+ @description : the reason for the last change. This can be used to trigger events that deal with state changes.
+ **>
+ am_AvailabilityReason_pe availabilityReason
+ }
+
+ <**
+ @description : describes class properties
+ **>
+ struct am_ClassProperty_s {
+
+ <**
+ @description : the property as enum
+ **>
+ am_ClassProperty_pe classProperty
+
+ <**
+ @description : the value of the property
+ **>
+ Int16 value
+ }
+
+ <**
+ @description : This struct describes the attribiutes of a crossfader.
+ **>
+ struct am_Crossfader_s {
+
+ <**
+ @description : This is the ID of the crossfader, it is unique in the system. There are 2 ways, ID can be created: either it is assigned during the registration process (in a dynamic context, uniqueness will be ensured by the AudioManager daemon), or it is a fixed (the project has to ensure the uniqueness of the ID).
+ **>
+ am_crossfaderID_t crossfaderID
+
+ <**
+ @description : The name of the crossfader. Must be unique in the whole system.
+ **>
+ String name
+
+ <**
+ @description : The sinkID of the SinkA. Sinks shall be registered before registering the crossfader.
+ **>
+ am_sinkID_t sinkID_A
+
+ <**
+ @description : The sinkID of the SinkB. Sinks shall be registered before registering the crossfader.
+ **>
+ am_sinkID_t sinkID_B
+
+ <**
+ @description : The sourceID of the crossfader source. The source shall be registered before the crossfader.
+ **>
+ am_sourceID_t sourceID
+
+ <**
+ @description : This enum can have 3 states:
+
+ HS_SINKA sinkA is the current hot one, sinkB is not audible
+ HS_SINKB sinkB is the current hot one, sinkB is not audible
+ HS_INTERMEDIATE the fader is stuck in between a cross-fading action. This could be due to an abort or an error. Before using the crossfader, it must be set to either HS_SINKA or HS_SINKB.
+ **>
+ am_HotSink_e hotSink
+ }
+
+ <**
+ @description : This struct describes the attributes of a gateway.
+ **>
+ struct am_Gateway_s {
+
+ <**
+ @description : This is the ID of the gateway, it is unique in the system. There are 2 ways, ID can be created: either it is assigned during the registration process (in a dynamic context, uniqueness will be ensured by the AudioManagerDaemon), or it is a fixed (the project has to ensure the uniqueness of the ID).
+ **>
+ am_gatewayID_t gatewayID
+
+ <**
+ @description : The name of the gateway. Must be unique in the whole system.
+ **>
+ String name
+
+ <**
+ @description : The sinkID of the gateway sink-end. The sink is a full blown sink with connectionFormats, sinkClassIDs etc... It makes sense to register the sinks of a gateway as non-visible. Care needs to be taken that the connectionsFormats match with the ones in the conversionMatrix. If the sink is located in the controllingDomain, the ID needs to be retrieved by registering the sink before registering the gateway. In case the sink is in a different domain, the ID needs to be retrieved via peeking.
+ **>
+ am_sinkID_t sinkID
+
+ <**
+ @description : The sourceID of the gateway sink-end. The sink is a full blown source with connectionFormats, sinkClassIDs etc... It makes sense to register the sources of a gateway as non-visible. Care needs to be taken that the connectionsFormats match with the ones in the conversionMatrix. If the source is located in the controllingDomain, the ID needs to be retrieved by registering the source before registering the gateway. In case the source is in a different domain, the ID needs to be retrieved via peeking.
+ **>
+ am_sourceID_t sourceID
+
+ <**
+ @description : The ID of the sink. If the domain is the same like the controlling domain, the ID is known due to registration. If the domain is different, the ID needs to be retrieved via peeking.
+ **>
+ am_domainID_t domainSinkID
+
+ <**
+ @description : The ID of the source. If the domain is the same like the controlling domain, the ID is known due to registration. If the domain is different, the ID needs to be retrieved via peeking.
+ **>
+ am_domainID_t domainSourceID
+
+ <**
+ @description : This is the ID of the domain that registers the gateway.
+ **>
+ am_domainID_t controlDomainID
+
+ <**
+ @description : This is the list of available formats on the source side of the gateway. It is not defined during the gateway registration but copied from the source registration.
+ **>
+ am_ConnectionFormat_L listSourceFormats
+
+ <**
+ @description : This is the list of available formats on the sink side of the gateway. It is not defined during the gateway registration but copied from the sink registration.
+ **>
+ am_ConnectionFormat_L listSinkFormats
+
+ <**
+ @description : This is matrix holding information about the conversion capability of the gateway, it's length is defined by the length(listSinkFormats) x length(listSourceFormats).
+If a SinkFormat can be converted into a SourceFormat, the vector will hold a 1, if no conversion is possible, a 0.
+The data is stored row orientated, where the rows are related to the sinksFormats and the columns to the sourceFormats. The first value will hold the conversion information from the first sourceFormat to the first sinkFormat for example and the seventh value the information about the 3rd sinkFormat to the 1st sourceFormat in case we would have 3 sourceFormats.
+ **>
+ am_Convertion_L convertionMatrix
+ }
+
+ <**
+ @description : This represents one "hopp" in a route
+ **>
+ struct am_RoutingElement_s {
+
+ <**
+ @description : the source ID
+ **>
+ am_sourceID_t sourceID
+
+ <**
+ @description : the sinkID
+ **>
+ am_sinkID_t sinkID
+
+ <**
+ @description : the domainID the routeElement is in
+ **>
+ am_domainID_t domainID
+
+ <**
+ @description : the connectionformat that is used for the route
+ **>
+ am_ConnectionFormat_pe connectionFormat
+ }
+
+ <**
+ @description : struct describing the sound property
+ **>
+ struct am_SoundProperty_s {
+
+ <**
+ @description : the type of the property - a project specific enum
+ **>
+ am_SoundPropertyType_pe type
+
+ <**
+ @description : the actual value of the property
+ **>
+ Int16 value
+ }
+
+ <**
+ @description : struct describing system properties
+ **>
+ struct am_SystemProperty_s {
+
+ <**
+ @description : the type that is set
+ **>
+ am_SystemPropertyType_pe type
+
+ <**
+ @description : the value
+ **>
+ Int16 value
+ }
+
+ <**
+ @description : struct describing sinkclasses
+ **>
+ struct am_SinkClass_s {
+
+ <**
+ @description : the ID of the sinkClass
+ **>
+ am_sinkClass_t sinkClassID
+
+ <**
+ @description : the name of the sinkClass - must be unique in the system
+ **>
+ String name
+
+ <**
+ @description : the list of the class properties. These are pairs of a project specific enum describing the type of the value and an integer holding the real value.
+ **>
+ am_ClassProperty_L listClassProperties
+ }
+
+ <**
+ @description : struct describing source classes
+ **>
+ struct am_SourceClass_s {
+
+ <**
+ @description : the source ID
+ **>
+ am_sourceClass_t sourceClassID
+
+ <**
+ @description : the name of the sourceClass - must be unique in the system
+ **>
+ String name
+
+ <**
+ @description : the list of the class properties. These are pairs of a project specific enum describing the type of the value and an integer holding the real value.
+ **>
+ am_ClassProperty_L listClassProperties
+ }
+
+ <**
+ @description : this type holds all information of sources relevant to the HMI
+ **>
+ struct am_SourceType_s {
+
+ <**
+ @description : This is the ID of the source, it is unique in the system. There are 2 ways, ID can be created: either it is assigned during the registration process (in a dynamic context, uniqueness will be ensured by the AudioManagerDaemon), or it is a fixed (the project has to ensure the uniqueness of the ID).
+ **>
+ am_sourceID_t sourceID
+
+ <**
+ @description : The name of the source. Must be unique in the whole system.
+ **>
+ String name
+
+ <**
+ @description : the availability of the source
+ **>
+ am_Availability_s availability
+
+ <**
+ @description : the sourceClassID, indicates the class the source is in. This information can be used by the Controller to implement different behaviour for different classes.
+ **>
+ am_sourceClass_t sourceClassID
+ }
+
+ <**
+ @description : this type holds all information of sinks relevant to the HMI
+ **>
+ struct am_SinkType_s {
+
+ <**
+ @description : This is the ID of the sink, it is unique in the system. There are 2 ways, ID can be created: either it is assigned during the registration process (in a dynamic context, uniqueness will be ensured by the AudioManagerDaemon), or it is a fixed (the project has to ensure the uniqueness of the ID).
+ **>
+ am_sinkID_t sinkID
+
+ <**
+ @description : The name of the sink. Must be unique in the whole system.
+ **>
+ String name
+
+ <**
+ @description : This attribute reflects the availability of the sink. There are several reasons why a sink could be not available for the moment: for example the shutdown of a sink because of overtemperature or over- &amp; undervoltage. The availability consists of two pieces of information:
+
+ Availablility: the status itself, can be A_AVAILABLE, A_UNAVAILABLE or A_UNKNOWN
+ AvailabilityReason: this informs about the last reason for a change in availability. The reasons itself are product specific.
+ **>
+ am_Availability_s availability
+
+ <**
+ @description : This is the representation of the Volume for the commandInterface. It is used by the HMI to set the volume of a sink, the AudioManagerController has to transform this into real source and sink volumes.
+ **>
+ am_mainVolume_t volume
+ am_MuteState_e muteState
+
+ <**
+ @description : The sinkClassID references to a sinkClass. With the help of classification, rules can be setup to define the system behaviour.
+ **>
+ am_sinkClass_t sinkClassID
+ }
+
+ <**
+ @description : a handle is used for asynchronous operations and is uniquely assigned for each of this operations
+ **>
+ struct am_Handle_s {
+
+ <**
+ @description : the handletype
+ **>
+ am_Handle_e handleType
+
+ <**
+ @description : the handle as value
+ **>
+ UInt16 handle
+ }
+
+ <**
+ @description : struct describung mainsound property
+ **>
+ struct am_MainSoundProperty_s {
+
+ <**
+ @description : the type of the property
+ **>
+ am_MainSoundPropertyType_pe type
+
+ <**
+ @description : the actual value
+ **>
+ Int16 value
+ }
+
+ <**
+ @description : this type holds all information of connections relevant to the HMI
+ **>
+ struct am_MainConnectionType_s {
+
+ <**
+ @description : the ID of the mainconnection
+ **>
+ am_mainConnectionID_t mainConnectionID
+
+ <**
+ @description : the sourceID where the connection starts
+ **>
+ am_sourceID_t sourceID
+
+ <**
+ @description : the sinkID where the connection ends
+ **>
+ am_sinkID_t sinkID
+
+ <**
+ @description : the delay of the mainconnection
+ **>
+ am_timeSync_t delay
+
+ <**
+ @description : the current connection state
+ **>
+ am_ConnectionState_e connectionState
+ }
+
+ <**
+ @description : struct that holds attribiutes of a mainconnection
+ **>
+ struct am_MainConnection_s {
+
+ <**
+ @description : the assigned ID
+ **>
+ am_mainConnectionID_t mainConnectionID
+
+ <**
+ @description : the current connection state
+ **>
+ am_ConnectionState_e connectionState
+
+ <**
+ @description : the sinkID
+ **>
+ am_sinkID_t sinkID
+
+ <**
+ @description : the sourceID
+ **>
+ am_sourceID_t sourceID
+
+ <**
+ @description : the delay of the connection
+ **>
+ am_timeSync_t delay
+
+ <**
+ @description : the list of sub connection IDs the mainconnection consists of
+ **>
+ am_ConnectionID_L listConnectionID
+ }
+
+ <**
+ @description : This struct holds the payload of a notification.
+ **>
+ struct am_NotificationPayload_s {
+
+ <**
+ @description : This defines the notification type
+ **>
+ am_NotificationType_pe type
+
+ <**
+ @description : This is finally the value of the notification. It's meaning depends on the notificationType
+ **>
+ Int16 value
+ }
+
+ <**
+ @description : This struct holds information about the configuration for notifications
+ **>
+ struct am_NotificationConfiguration_s {
+
+ <**
+ @description : The notification type of the notification
+ **>
+ am_NotificationType_pe type
+
+ <**
+ @description : The Notification status. This can be periodic, min/max value based or even off for example
+ **>
+ am_NotificationStatus_e status
+
+ <**
+ @description : This gives additional information to the notification status.
+Relation between notification status and the value:
+NS_PERIODIC - the period in ms
+NS_MINIMUM - the minimum value that triggers the notification
+NS_MAXIMUM - the maximum value that triggers the notifcation
+NS_CHANGE - the resolution of the change value
+ **>
+ Int16 parameter
+ }
+
+ <**
+ @description : This struct describes the attribiutes of a sink
+ **>
+ struct am_Sink_s {
+
+ <**
+ @description : This is the ID of the sink, it is unique in the system. There are 2 ways, ID can be created: either it is assigned during the registration process (in a dynamic context, uniqueness will be ensured by the AudioManagerDaemon), or it is a fixed (the project has to ensure the uniqueness of the ID).
+ **>
+ am_sinkID_t sinkID
+
+ <**
+ @description : The name of the sink. Must be unique in the whole system.
+ **>
+ String name
+
+ <**
+ @description : The domainID is the domain the sink belongs to. A sink can only be in one domain.
+ **>
+ am_domainID_t domainID
+
+ <**
+ @description : The sinkClassID references to a sinkClass. With the help of classification, rules can be setup to define the system behaviour.
+ **>
+ am_sinkClass_t sinkClassID
+
+ <**
+ @description : This is the volume of the sink. It is set by the AudioManagerController.
+ **>
+ am_volume_t volume
+
+ <**
+ @description : This Boolean flag indicates whether a sink is visible to the commandInterface or not. If the User must have the possibility to choose the source in the HMI, it must be visible. But there are also good reasons for invisible sinks, for example if the sink is part of a crossfader or gateway. HMI relevant changes in visible sinks will be automatically reported by the daemon to the commandInterface.
+ **>
+ Boolean visible
+
+ <**
+ @description : This attribute reflects the availability of the sink. There are several reasons why a sink could be not available for the moment: for example the shutdown of a sink because of overtemperature or over- &amp; undervoltage. The availability consists of two pieces of information:
+
+ Availablility: the status itself, can be A_AVAILABLE, A_UNAVAILABLE or A_UNKNOWN
+ AvailabilityReason: this informs about the last reason for a change in availability. The reasons itself are product specific.
+ **>
+ am_Availability_s available
+
+ <**
+ @description : This attribute reflects the muteState of the sink. The information is not the "real" state of the sink, but the HMI representation for he commandInterface controlled by the AudioManagerController.
+ **>
+ am_MuteState_e muteState
+
+ <**
+ @description : This is the representation of the Volume for the commandInterface. It is used by the HMI to set the volume of a sink, the AudioManagerController has to transform this into real source and sink volumes.
+ **>
+ am_mainVolume_t mainVolume
+
+ <**
+ @description : This is the list of soundProperties, that the sink is capable of. The soundProperties itself are project specific. For sinks, a possible soundProperty could be for example settings.
+ **>
+ am_SoundProperty_L listSoundProperties
+
+ <**
+ @description : This list holds information about the formats that the Source is capable of supporting when delivering audio.
+ **>
+ am_ConnectionFormat_L listConnectionFormats
+
+ <**
+ @description : This is the list of the available mainSoundProperties. The principle is the same than with soundProperties, but they are only visible to the CommandInterface.
+ **>
+ am_MainSoundProperty_L listMainSoundProperties
+
+ <**
+ @description : This is the list of the MainNotificationConfigurations. These notifications work on the level of command interface.
+ **>
+ am_NotificationConfiguration_L listMainNotificationConfigurations
+
+ <**
+ @description : This is the list of the NotificationConfigurations. These notifications work on the level of RoutingPlugins.
+ **>
+ am_NotificationConfiguration_L listNotificationConfigurations
+ }
+
+ <**
+ @description : This struct describes the attribiutes of a source
+ **>
+ struct am_Source_s {
+
+ <**
+ @description : This is the ID of the source, it is unique in the system. There are 2 ways, ID can be created: either it is assigned during the registration process (in a dynamic context, uniqueness will be ensured by the AudioManagerDaemon), or it is a fixed (the project has to ensure the uniqueness of the ID).
+ **>
+ am_sourceID_t sourceID
+
+ <**
+ @description : The domainID is the domain the source belongs to. A source can only be in one domain.
+ **>
+ am_domainID_t domainID
+
+ <**
+ @description : The name of the source. Must be unique in the whole system.
+ **>
+ String name
+
+ <**
+ @description : the sourceClassID, indicates the class the source is in. This information can be used by the Controller to implement different behaviour for different classes.
+ **>
+ am_sourceClass_t sourceClassID
+
+ <**
+ @description : The source state is an indication towards the source if it is actively heard or not. The source can use this information to implement features like automatic spin down of CD's in case the CD is not the active source or AF following of a tuner that is not actively heard. The source state is set by the AudioManagerController.There are 3 possible states:
+
+ SS_ON: the source is active
+ SS_OFF: the source is off
+ SS_PAUSED: the source is paused and not active.
+ **>
+ am_SourceState_e sourceState
+
+ <**
+ @description : This is the volume of the source. It is set by the AudioManagerController. It is used to adopt different audiolevels in a system and mixing of sources (e.g. navigation hints &amp; music).
+ **>
+ am_volume_t volume
+
+ <**
+ @description : This Boolean flag indicates whether a source is visible to the commandInterface or not. If the User must have the possibility to choose the source in the HMI, it must be visible. But there are also good reasons for invisible sources, for example if the source is part of a crossfader or gateway. HMI relevant changes in visible sources will be automatically reported by the daemon to the commandInterface.
+ **>
+ Boolean visible
+
+ <**
+ @description : This attribute reflects the availability of the source. There are several reasons why a source could be not available for the moment. For example a CD player which has no CD entered in the slot can be unavailable, or a USB player with no or unreadable stick attached. Other scenarios involve the shutdown of a source because of overtemperature or over- &amp; undervoltage. The availability consists of two informations:
+
+ Availablility: the status itself, can be A_AVAILABLE, A_UNAVAILABLE or A_UNKNOWN
+ AvailabilityReason: this informs about the last reason for a change in availability. The reasons itself are product specific.
+ **>
+ am_Availability_s available
+
+ <**
+ @description : Some special sources can have special behaviors, the are so called "Low Level Interrupts". Here the current status is documented. The information can be used by the AudioManagerController to react to the changes by for example lowering the volume of the mainSources. The two states are
+
+ IS_OFF: the interrupt is not active at the moment
+ IS_INTERRUPTED: the interrupt is playing at the moment.
+ **>
+ am_InterruptState_e interruptState
+
+ <**
+ @description : This is the list of soundProperties, that the source is capable of. The soundProperties itself are project specific. For sources, a possible soundProperty could be navigation volume offset, for example.
+ **>
+ am_SoundProperty_L listSoundProperties
+
+ <**
+ @description : This list holds information about the formats that the Source is capable of supporting when delivering audio.
+ **>
+ am_ConnectionFormat_L listConnectionFormats
+
+ <**
+ @description : This is the list of the available mainSoundProperties. The principle is the same than with soundProperties, but they are only visible to the CommandInterface.
+ **>
+ am_MainSoundProperty_L listMainSoundProperties
+
+ <**
+ @description : The list of MainNotificationConfigurations. These notifications work on the level of CommandInterface.
+ **>
+ am_NotificationConfiguration_L listMainNotificationConfigurations
+
+ <**
+ @description : The list of MainNotificationConfigurations. These notifications work on the level of RoutingInterface.
+ **>
+ am_NotificationConfiguration_L listNotificationConfigurations
+ }
+
+ <**
+ @description : This struct describes the attribiutes of a domain
+ **>
+ struct am_Domain_s {
+
+ <**
+ @description : the domain ID
+ **>
+ am_domainID_t domainID
+
+ <**
+ @description : the name of the domain
+ **>
+ String name
+
+ <**
+ @description : the busname. This is equal to a plugin name and is used to dispatch messages to the elements of a plugin
+ **>
+ String busname
+
+ <**
+ @description : the name of the node
+ **>
+ String nodename
+
+ <**
+ @description : indicated if the domain is independent at startup or not
+ **>
+ Boolean early
+
+ <**
+ @description : indicates if the domain registration is complete or not
+ **>
+ Boolean complete
+
+ <**
+ @description : the current domain state
+ **>
+ am_DomainState_e ^state
+ }
+
+ struct am_EarlyData_s {
+ am_EarlyDataType_e type
+ am_DataType_u sinksource
+ am_EarlyData_u data
+ }
+
+ <**
+ @description : a connection
+ **>
+ struct am_Connection_s {
+
+ <**
+ @description : the assigned ID
+ **>
+ am_connectionID_t connectionID
+
+ <**
+ @description : the source the audio flows from
+ **>
+ am_sourceID_t sourceID
+
+ <**
+ @description : the sink the audio flows to
+ **>
+ am_sinkID_t sinkID
+
+ <**
+ @description : the delay of the conneciton
+ **>
+ am_timeSync_t delay
+
+ <**
+ @description : the used connectionformat
+ **>
+ am_ConnectionFormat_pe connectionFormat
+ }
+
+ <**
+ @description : This types describe a mixed description for source and sinks volumes.
+ **>
+ struct am_Volumes_s {
+
+ <**
+ @description : describes the type of the volume: source or sink.
+ **>
+ am_VolumeType_e volumeType
+
+ <**
+ @description : either sourceID or sinkID
+ **>
+ am_DataType_u volumeID
+
+ <**
+ @description : The volume
+ **>
+ am_volume_t volume
+
+ <**
+ @description : the ramp that shall be driven
+ **>
+ am_RampType_pe ramp
+
+ <**
+ @description : the time for the ramp
+ **>
+ am_time_t time
+ }
+
+ <**
+ @description : data type depends of am_EarlyDataType_e:
+volume_t in case of ED_SOURCE_VOLUME, ED_SINK_VOLUME
+soundProperty_t in case of ED_SOURCE_PROPERTY, ED_SINK_PROPERTY
+ **>
+ union am_EarlyData_u {
+ am_volume_t volume
+ am_SoundProperty_s soundProperty
+ }
+
+ <**
+ @description : data type depends of am_EarlyDataType_e:
+sourceID in case of ED_SOURCE_VOLUME, ED_SOURCE_PROPERTY
+sinkID in case of ED_SINK_VOLUME, ED_SINK_PROPERTY
+ **>
+ union am_DataType_u {
+ am_sinkID_t sink
+ am_sourceID_t source
+ }
+
+} \ No newline at end of file
diff --git a/AudioManagerDaemon/fidls/NodeStateAccessStub_model_org.genivi.NodeStateManager.Consumer.fdepl b/AudioManagerDaemon/fidls/NodeStateAccessStub_model_org.genivi.NodeStateManager.Consumer.fdepl
deleted file mode 100644
index b92bb71..0000000
--- a/AudioManagerDaemon/fidls/NodeStateAccessStub_model_org.genivi.NodeStateManager.Consumer.fdepl
+++ /dev/null
@@ -1,6 +0,0 @@
-import "platform:/plugin/org.genivi.commonapi.dbus/deployment/deployment.fdepl"
-import "NodeStateAccessStub_model_org.genivi.NodeStateManager.Consumer.fidl"
-
-define org.genivi.commonapi.dbus.deployment.deployment for interface org.genivi.NodeStateManager.Consumer.Consumer {
- PropertiesType=freedesktop
-}
diff --git a/AudioManagerDaemon/fidls/NodeStateAccessStub_model_org.genivi.NodeStateManager.Consumer.fidl b/AudioManagerDaemon/fidls/NodeStateAccessStub_model_org.genivi.NodeStateManager.Consumer.fidl
deleted file mode 100755
index 6e6f224..0000000
--- a/AudioManagerDaemon/fidls/NodeStateAccessStub_model_org.genivi.NodeStateManager.Consumer.fidl
+++ /dev/null
@@ -1,127 +0,0 @@
-package org.genivi.NodeStateManager.Consumer
-
-//interface org.genivi.NodeStateManager.Consumer {
-interface Consumer {
-
- version { major 0 minor 1 }
-
- attribute Int32 RestartReason
-
- attribute Int32 ShutdownReason
-
- attribute Int32 WakeUpReason
-
- attribute Int32 BootMode
-
- method GetNodeState {
- out {
- Int32 NodeStateId
- Int32 ErrorCode
- }
- }
- method SetSessionState {
- in {
- String SessionName
- String SessionOwner
- Int32 SeatID
- Int32 SessionState
- }
- out {
- Int32 ErrorCode
- }
- }
- method GetSessionState {
- in {
- String SessionName
- Int32 SeatID
- }
- out {
- Int32 SessionState
- Int32 ErrorCode
- }
- }
- method GetApplicationMode {
- out {
- Int32 ApplicationModeId
- Int32 ErrorCode
- }
- }
- method RegisterShutdownClient {
- in {
- String BusName
- String ObjName
- UInt32 ShutdownMode
- UInt32 TimeoutMs
- }
- out {
- Int32 ErrorCode
- }
- }
- method UnRegisterShutdownClient {
- in {
- String BusName
- String ObjName
- UInt32 ShutdownMode
- }
- out {
- Int32 ErrorCode
- }
- }
- method RegisterSession {
- in {
- String SessionName
- String SessionOwner
- Int32 SeatID
- Int32 SessionState
- }
- out {
- Int32 ErrorCode
- }
- }
- method UnRegisterSession {
- in {
- String SessionName
- String SessionOwner
- Int32 SeatID
- }
- out {
- Int32 ErrorCode
- }
- }
- method GetAppHealthCount {
- out {
- UInt32 Count
- }
- }
- method GetInterfaceVersion {
- out {
- UInt32 Version
- }
- }
- method LifecycleRequestComplete {
- in {
- UInt32 RequestId
- Int32 Status
- }
- out {
- Int32 ErrorCode
- }
- }
- broadcast NodeState {
- out {
- Int32 NodeState
- }
- }
- broadcast NodeApplicationMode {
- out {
- Int32 ApplicationModeId
- }
- }
- broadcast SessionStateChanged {
- out {
- String SessionStateName
- Int32 SeatID
- Int32 SessionState
- }
- }
-} \ No newline at end of file
diff --git a/AudioManagerDaemon/fidls/NodeStateAccessStub_model_org.genivi.NodeStateManager.LifecycleConsumer.fidl b/AudioManagerDaemon/fidls/NodeStateAccessStub_model_org.genivi.NodeStateManager.LifecycleConsumer.fidl
deleted file mode 100755
index e32c1c6..0000000
--- a/AudioManagerDaemon/fidls/NodeStateAccessStub_model_org.genivi.NodeStateManager.LifecycleConsumer.fidl
+++ /dev/null
@@ -1,16 +0,0 @@
-package org.genivi.NodeStateManager.LifeCycleConsumer
-
-//interface org.genivi.NodeStateManager.LifeCycleConsumer {
-interface LifeCycleConsumer {
-
- version { major 0 minor 1 }
- method LifecycleRequest {
- in {
- UInt32 Request
- UInt32 RequestId
- }
- out {
- Int32 ErrorCode
- }
- }
-} \ No newline at end of file
diff --git a/PluginCommandInterfaceCAPI/fidl/CommandInterface.fdepl b/AudioManagerDaemon/fidls/NodeStateManager.fdepl
index b500f07..624175f 100644
--- a/PluginCommandInterfaceCAPI/fidl/CommandInterface.fdepl
+++ b/AudioManagerDaemon/fidls/NodeStateManager.fdepl
@@ -1,6 +1,6 @@
-import "CommandInterface.fidl"
-import "platform:/plugin/org.genivi.commonapi.dbus/deployment/deployment.fdepl"
-
-define org.genivi.commonapi.dbus.deployment.deployment for interface org.genivi.am.CommandInterface {
- DefaultEnumBackingType=Int16
-} \ No newline at end of file
+import "platform:/plugin/org.genivi.commonapi.dbus/deployment/deployment.fdepl"
+import "NodeStateManager.fidl"
+
+define org.genivi.commonapi.dbus.deployment.deployment for interface org.genivi.NodeStateManager.Consumer {
+ PropertiesType=freedesktop
+}
diff --git a/AudioManagerDaemon/fidls/NodeStateManager.fidl b/AudioManagerDaemon/fidls/NodeStateManager.fidl
new file mode 100644
index 0000000..84d8d26
--- /dev/null
+++ b/AudioManagerDaemon/fidls/NodeStateManager.fidl
@@ -0,0 +1,152 @@
+package org.genivi.NodeStateManager
+
+<**
+ @author : Christian Linke
+**>
+
+interface Consumer {
+ version {
+ major 1
+ minor 0
+ }
+
+ attribute Int32 BootMode readonly noSubscriptions
+
+ attribute Int32 RestartReason readonly noSubscriptions
+
+ attribute Int32 ShutdownReason readonly noSubscriptions
+
+ attribute Int32 WakeUpReason readonly noSubscriptions
+
+ method GetAppHealthCount {
+ out {
+ UInt32 Count
+ }
+ }
+ method LifecycleRequestComplete {
+ in {
+ UInt32 RequestId
+ Int32 Status
+ }
+ out {
+ Int32 ErrorCode
+ }
+ }
+ method GetInterfaceVersion {
+ out {
+ UInt32 Version
+ }
+ }
+ method GetApplicationMode {
+ out {
+ Int32 ErrorCode
+ Int32 ApplicationModeId
+ }
+ }
+ method UnRegisterSession {
+ in {
+ String SessionName
+ String SessionOwner
+ Int32 SeatID
+ }
+ out {
+ Int32 ErrorCode
+ }
+ }
+ method RegisterSession {
+ in {
+ String SessionName
+ String SessionOwner
+ Int32 SeatID
+ Int32 SessionState
+ }
+ out {
+ Int32 ErrorCode
+ }
+ }
+ method UnRegisterShutdownClient {
+ in {
+ String BusName
+ String ObjName
+ UInt32 ShutdownMode
+ }
+ out {
+ Int32 ErrorCode
+ }
+ }
+ method RegisterShutdownClient {
+ in {
+ String BusName
+ String ObjName
+ UInt32 ShutdownMode
+ UInt32 TimeoutMs
+ }
+ out {
+ Int32 ErrorCode
+ }
+ }
+ method GetNodeState {
+ out {
+ Int32 ErrorCode
+ Int32 NodeStateId
+ }
+ }
+ method GetSessionState {
+ in {
+ String SessionName
+ Int32 SeatID
+ }
+ out {
+ Int32 SessionState
+ Int32 ErrorCode
+ }
+ }
+ method SetSessionState {
+ in {
+ String SessionName
+ String SessionOwner
+ Int32 SessionState
+ Int32 SeatID
+ }
+ out {
+ Int32 ErrorCode
+ }
+ }
+ broadcast NodeApplicationMode {
+ out {
+ Int32 ApplicationModeId
+ }
+ }
+ broadcast SessionStateChanged {
+ out {
+ String SessionStateName
+ Int32 SeatID
+ Int32 SessionState
+ }
+ }
+ broadcast NodeState {
+ out {
+ Int32 NodeState
+ }
+ }
+}
+
+<**
+ @author : Christian Linke
+**>
+
+interface LifeCycleConsumer {
+ version {
+ major 1
+ minor 0
+ }
+ method LifecycleRequest {
+ in {
+ UInt32 Request
+ UInt32 RequestId
+ }
+ out {
+ Int32 ErrorCode
+ }
+ }
+} \ No newline at end of file
diff --git a/AudioManagerDaemon/fidls/amTypes.fidl b/AudioManagerDaemon/fidls/amTypes.fidl
deleted file mode 100755
index 9798dd7..0000000
--- a/AudioManagerDaemon/fidls/amTypes.fidl
+++ /dev/null
@@ -1,330 +0,0 @@
-package org.genivi
-
-typeCollection am
-{
- typedef am_sourceID_t is UInt16
- typedef am_sinkID_t is UInt16
- typedef am_gatewayID_t is UInt16
- typedef gongHandle is Int16
- typedef am_sourceClass_t is UInt16
- typedef am_sinkClass_t is UInt16
- typedef am_volume_t is Int16
- typedef am_mainVolume_t is Int16
- typedef am_handle_t is UInt16
- typedef am_time_t is UInt16
- typedef am_connectionID_t is UInt16
-
- enumeration gp_indicatorDirection_e
- {
- INDICATOR_RIGHT ="0x00"
- INDICATOR_LEFT="0x01"
- INDICATOR_WARNING="0x02"
- }
-
- enumeration am_RampType_e
- {
- RAMP_UNKNOWN = "0x00"
- RAMP_GENIVI_DIRECT = "0x01"
- RAMP_GENIVI_NO_PLOP = "0x02"
- RAMP_GENIVI_EXP_INV = "0x03"
- RAMP_GENIVI_LINEAR = "0x04"
- RAMP_GENIVI_EXP = "0x05"
- RAMP_MAX
- }
-
- enumeration am_MuteState_e
- {
- MS_UNKNOWN = "0x00"
- MS_MUTED = "0x01"
- MS_UNMUTED = "0x02"
- MS_MAX
- }
-
- enumeration am_SourceState_e
- {
- SS_UNKNNOWN = "0x00"
- SS_ON = "0x01"
- SS_OFF = "0x02"
- SS_PAUSED = "0x03"
- SS_MAX
- }
- enumeration am_Error_e
- {
- E_OK = "0x00"
- E_UNKNOWN = "0x01"
- E_OUT_OF_RANGE = "0x02"
- E_NOT_USED = "0x03"
- E_DATABASE_ERROR = "0x04"
- E_ALREADY_EXISTS = "0x05"
- E_NO_CHANGE = "0x06"
- E_NOT_POSSIBLE = "0x07"
- E_NON_EXISTENT = "0x08"
- E_ABORTED = "0x09"
- E_WRONG_FORMAT = "0xA"
- E_MAX
- }
-
- enumeration am_DomainState_e
- {
-
- DS_UNKNOWN = "0"
- DS_CONTROLLED = "1"
- DS_INDEPENDENT_STARTUP = "2"
- DS_INDEPENDENT_RUNDOWN = "3"
- DS_MAX
- }
-
- enumeration gongType_e
- {
- AT_NUN = "0x01"
- AT_POC = "0x02"
- AT_QUE = "0x03"
- AT_IWA = "0x04"
- AT_WA = "0x05"
- AT_ETC_F = "0x06"
- AT_ETC_F2 = "0x07"
- AT_ETC_ST = "0x08"
- AT_ETC_S = "0x09"
- AT_REV = "0x0A"
- AT_ESU = "0x0B"
- AT_ESD = "0x0C"
- AT_DG = "0x0D"
- AT_SG = "0x0E"
- AT_IDG = "0x0F"
- AT_ION = "0x10"
- AT_IOFF = "0x11"
- AT_FBS = "0x12"
- AT_VFS = "0x13"
- AT_GES = "0x14"
- AT_UEE = "0x15"
- }
-
- enumeration gp_indicatorStatus_e
- {
- IS_ON = "0x00"
- IS_OFF = "0x01"
- }
-
- enumeration gongStatus_e
- {
- NOT_PLAYING = "0x00"
- PLAYING = "0x01"
- INTERRUPTED = "0x02"
- }
-
- enumeration gongError_e
- {
- SUCCESS = "0x00"
- ERROR = "0x01"
- LOW_PRIORITY = "0x02"
- }
-
- enumeration gongClass_e
- {
- GONGCLASS_1 = "0x01"
- GONGCLASS_2 = "0x02"
- GONGCLASS_PDC = "0x03"
- GONGCLASS_TURN = "0x04"
- GONGCLASS_OBSTACLE = "0x05"
- }
-
- enumeration sampleSet_e
- {
- setBMW = "0x00"
- setMini = "0x01"
- setRR = "0x02"
- }
-
- enumeration am_Availability_e
- {
- A_UNKNOWN = "0x00"
- A_AVAILABLE = "0x01"
- A_UNAVAILABLE = "0x02"
- A_MAX
- }
- enumeration am_AvailabilityReason_e
- {
- AR_UNKNOWN = "0x00"
- AR_GENIVI_NEWMEDIA = "0x01"
- AR_GENIVI_SAMEMEDIA = "0x02"
- AR_GENIVI_NOMEDIA = "0x03"
- AR_GENIVI_TEMPERATURE = "0x04"
- AR_GENIVI_VOLTAGE = "0x05"
- AR_GENIVI_ERRORMEDIA = "0x06"
- AR_MAX
- }
-
- enumeration am_InterruptState_e
- {
- IS_UNKNOWN = "0x00"
- IS_OFF = "0x01"
- IS_INTERRUPTED = "0x02"
- IS_MAX
- }
-
- enumeration am_SoundPropertyType_e
- {
- SP_UNKNOWN = "0x00"
- SP_EXAMPLE_TREBLE = "0x01"
- SP_EXAMPLE_MID = "0x02"
- SP_EXAMPLE_BASS = "0x03"
- SP_ENTER_SINKID = "0x04"
- SP_INTERR_SUPERSEEDINGID = "0x05"
- SP_INTERR_OVERLAYID = "0x06"
- SP_PRIORITY = "0x07"
- SP_MAX
- }
-
- enumeration am_ConnectionFormat_e
- {
- CF_UNKNOWN = "0x00"
- CF_GENIVI_MONO = "0x01"
- CF_GENIVI_STEREO = "0x02"
- CF_GENIVI_ANALOG = "0x03"
- CF_GENIVI_AUTO = "0x04"
- CF_MAX
- }
- array am_ConnectionFormat_L of am_ConnectionFormat_e
-
- enumeration am_MainSoundPropertyType_e
- {
- MSP_UNKNOWN = "0x00"
- MSP_EXAMPLE_TREBLE = "0x01"
- MSP_EXAMPLE_MID = "0x02"
- MSP_EXAMPLE_BASS = "0x03"
- MSP_SOURCE_TYPE = "0x04"
- MSP_MAX
- }
-
- enumeration am_NotificationType_e
- {
- NT_UNKNOWN = "0x00"
- NT_LOUDNESS = "0x01"
- NT_MAX
- }
-
- enumeration am_NotificationStatus_e
- {
- NS_UNKNOWN = "0x00"
- NS_OFF = "0x01"
- NS_PERIODIC = "0x02"
- NS_MINIMUM = "0x03"
- NS_MAXIMUM = "0x04"
- NS_CHANGE = "0x05"
- NS_MAX
- }
-
- struct distanceInformation_s
- {
- Int32 FrontLeft
- Int32 FrontRight
- Int32 RearLeft
- Int32 RearRight
- }
-
- struct sampleNames_s
- {
- sampleSet_e sample
- String sampleName
- } array listSampleNamesL of sampleNames_s
-
- typedef am_domainID_t is UInt16
-
- struct am_Domain_s
- {
- am_domainID_t domainID
- String name
- String busname
- String nodename
- Boolean early
- Boolean complete
- am_DomainState_e ^state
- }
-
- struct notificationPayload_s
- {
- Int16 type
- Int16 payload
- }
-
- struct am_Availability_s
- {
- am_Availability_e availability
- am_AvailabilityReason_e availabilityReason
- }
-
- struct am_SoundProperty_s
- {
- am_SoundPropertyType_e type
- Int16 value
- }
- array am_SoundProperty_L of am_SoundProperty_s
-
- struct am_MainSoundProperty_s
- {
- am_MainSoundPropertyType_e type
- Int16 value
- }
- array am_MainSoundProperty_L of am_MainSoundProperty_s
-
- struct am_NotificationConfiguration_s
- {
- am_NotificationType_e type
- am_NotificationStatus_e status
- Int16 parameter
- }
- array am_NotificationConfiguration_L of am_NotificationConfiguration_s
-
-
- array bool_L of Boolean
-
- struct sourceData_s
- {
- am_sourceID_t sourceID
- am_domainID_t domainID
- String name
- am_sourceClass_t sourceClassID
- am_SourceState_e sourceState
- am_volume_t volume
- Boolean visible
- am_Availability_s available
- am_InterruptState_e interruptState
- am_SoundProperty_L listSoundProperties
- am_ConnectionFormat_L listConnectionFormats
- am_MainSoundProperty_L listMainSoundProperties
- am_NotificationConfiguration_L listMainNotificationConfigurations
- am_NotificationConfiguration_L listNotificationConfigurations
- }
-
- struct sinkData_s
- {
- am_sinkID_t sinkID
- String name
- am_domainID_t domainID
- am_sinkClass_t sinkClassID
- am_volume_t volume
- Boolean visible
- am_Availability_s available
- am_MuteState_e muteState
- am_mainVolume_t mainVolume
- am_SoundProperty_L listSoundProperties
- am_ConnectionFormat_L listConnectionFormats
- am_MainSoundProperty_L listMainSoundProperties
- am_NotificationConfiguration_L listMainNotificationConfigurations
- am_NotificationConfiguration_L listNotificationConfigurations
- }
-
- struct am_Gateway_s
- {
- am_gatewayID_t gatewayID
- String name
- am_sinkID_t sinkID
- am_sourceID_t sourceID
- am_domainID_t domainSinkID
- am_domainID_t domainSourceID
- am_domainID_t controlDomainID
- am_ConnectionFormat_L listSourceFormats
- am_ConnectionFormat_L listSinkFormats
- bool_L convertionMatrix
- }
-} \ No newline at end of file
diff --git a/AudioManagerDaemon/include/CAmNodeStateCommunicatorCAPI.h b/AudioManagerDaemon/include/CAmNodeStateCommunicatorCAPI.h
index 6c063e5..0c3ae71 100644
--- a/AudioManagerDaemon/include/CAmNodeStateCommunicatorCAPI.h
+++ b/AudioManagerDaemon/include/CAmNodeStateCommunicatorCAPI.h
@@ -21,15 +21,14 @@
#ifndef CAMNODESTATECOMMUNICATORCAPI_H_
#define CAMNODESTATECOMMUNICATORCAPI_H_
-#include <org/genivi/NodeStateManager/Consumer/ConsumerProxy.h>
+#include <org/genivi/NodeStateManager/ConsumerProxy.h>
#include "CAmNodeStateCommunicator.h"
-#include "LifeCycleConsumerStubDefault.h"
+#include <org/genivi/NodeStateManager/LifeCycleConsumerStubDefault.h>
namespace am
{
using namespace CommonAPI;
-using namespace org::genivi::NodeStateManager::Consumer;
-using namespace org::genivi::NodeStateManager::LifeCycleConsumer;
+using namespace org::genivi::NodeStateManager;
class CAmCommonAPIWrapper;
diff --git a/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/Consumer.h b/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/Consumer.h
new file mode 100644
index 0000000..026f431
--- /dev/null
+++ b/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/Consumer.h
@@ -0,0 +1,55 @@
+/*
+* This file was generated by the CommonAPI Generators.
+*
+ * Copyright (C) 2013, BMW AG
+ *
+ * \author Christian Linke, christian.linke@bmw.de BMW 2012,2013
+*/
+#ifndef ORG_GENIVI_NODESTATEMANAGER_Consumer_H_
+#define ORG_GENIVI_NODESTATEMANAGER_Consumer_H_
+
+
+
+#define COMMONAPI_INTERNAL_COMPILATION
+
+#include <CommonAPI/types.h>
+
+#undef COMMONAPI_INTERNAL_COMPILATION
+
+namespace org {
+namespace genivi {
+namespace NodeStateManager {
+
+class Consumer {
+ public:
+ virtual ~Consumer() { }
+
+ static inline const char* getInterfaceId();
+ static inline CommonAPI::Version getInterfaceVersion();
+};
+
+const char* Consumer::getInterfaceId() {
+ return "org.genivi.NodeStateManager.Consumer";
+}
+
+CommonAPI::Version Consumer::getInterfaceVersion() {
+ return CommonAPI::Version(1, 0);
+}
+
+
+} // namespace NodeStateManager
+} // namespace genivi
+} // namespace org
+
+namespace CommonAPI {
+
+}
+
+
+namespace std {
+ //hashes for types
+
+ //hashes for error types
+}
+
+#endif // ORG_GENIVI_NODESTATEMANAGER_Consumer_H_
diff --git a/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/Consumer/Consumer.h b/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/Consumer/Consumer.h
deleted file mode 100644
index 345bd3b..0000000
--- a/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/Consumer/Consumer.h
+++ /dev/null
@@ -1,70 +0,0 @@
-/*
-* This file was generated by the CommonAPI Generators.
-*
- * Copyright (C) 2012, BMW AG
- *
- * This file is part of GENIVI Project AudioManager.
- *
- * Contributions are licensed to the GENIVI Alliance under one or more
- * Contribution License Agreements.
- *
- * \copyright
- * 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/.
- *
- *
- * \author Aleksandar Donchev, aleksander.donchev@partner.bmw.de BMW 2013
- *
- * For further information see http://www.genivi.org/.
-*/
-#ifndef ORG_GENIVI_NODESTATEMANAGER_CONSUMER_Consumer_H_
-#define ORG_GENIVI_NODESTATEMANAGER_CONSUMER_Consumer_H_
-
-
-
-#define COMMONAPI_INTERNAL_COMPILATION
-
-#include <CommonAPI/types.h>
-
-#undef COMMONAPI_INTERNAL_COMPILATION
-
-namespace org {
-namespace genivi {
-namespace NodeStateManager {
-namespace Consumer {
-
-class Consumer {
- public:
- virtual ~Consumer() { }
-
- static inline const char* getInterfaceId();
- static inline CommonAPI::Version getInterfaceVersion();
-};
-
-const char* Consumer::getInterfaceId() {
- return "org.genivi.NodeStateManager.Consumer.Consumer";
-}
-
-CommonAPI::Version Consumer::getInterfaceVersion() {
- return CommonAPI::Version(0, 1);
-}
-
-
-} // namespace Consumer
-} // namespace NodeStateManager
-} // namespace genivi
-} // namespace org
-
-namespace CommonAPI {
-
-}
-
-
-namespace std {
- //hashes for types
-
- //hashes for error types
-}
-
-#endif // ORG_GENIVI_NODESTATEMANAGER_CONSUMER_Consumer_H_
diff --git a/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/Consumer/ConsumerDBusStubAdapter.cpp b/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/Consumer/ConsumerDBusStubAdapter.cpp
deleted file mode 100644
index a72ba16..0000000
--- a/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/Consumer/ConsumerDBusStubAdapter.cpp
+++ /dev/null
@@ -1,374 +0,0 @@
-/*
-* This file was generated by the CommonAPI Generators.
-*
- * Copyright (C) 2012, BMW AG
- *
- * This file is part of GENIVI Project AudioManager.
- *
- * Contributions are licensed to the GENIVI Alliance under one or more
- * Contribution License Agreements.
- *
- * \copyright
- * 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/.
- *
- *
- * \author Aleksandar Donchev, aleksander.donchev@partner.bmw.de BMW 2013
- *
- * For further information see http://www.genivi.org/.
-*/
-#include "ConsumerDBusStubAdapter.h"
-#include <org/genivi/NodeStateManager/Consumer/Consumer.h>
-
-namespace org {
-namespace genivi {
-namespace NodeStateManager {
-namespace Consumer {
-
-std::shared_ptr<CommonAPI::DBus::DBusStubAdapter> createConsumerDBusStubAdapter(
- const std::string& commonApiAddress,
- const std::string& interfaceName,
- const std::string& busName,
- const std::string& objectPath,
- const std::shared_ptr<CommonAPI::DBus::DBusProxyConnection>& dbusProxyConnection,
- const std::shared_ptr<CommonAPI::StubBase>& stubBase) {
- return std::make_shared<ConsumerDBusStubAdapter>(commonApiAddress, interfaceName, busName, objectPath, dbusProxyConnection, stubBase);
-}
-
-__attribute__((constructor)) void registerConsumerDBusStubAdapter(void) {
- CommonAPI::DBus::DBusFactory::registerAdapterFactoryMethod(Consumer::getInterfaceId(),
- &createConsumerDBusStubAdapter);
-}
-
-ConsumerDBusStubAdapter::ConsumerDBusStubAdapter(
- const std::string& commonApiAddress,
- const std::string& dbusInterfaceName,
- const std::string& dbusBusName,
- const std::string& dbusObjectPath,
- const std::shared_ptr<CommonAPI::DBus::DBusProxyConnection>& dbusConnection,
- const std::shared_ptr<CommonAPI::StubBase>& stub):
- ConsumerDBusStubAdapterHelper(commonApiAddress, dbusInterfaceName, dbusBusName, dbusObjectPath, dbusConnection, std::dynamic_pointer_cast<ConsumerStub>(stub)) {
-}
-
-const char* ConsumerDBusStubAdapter::getMethodsDBusIntrospectionXmlData() const {
- return
- "<method name=\"getRestartReasonAttribute\">\n"
- "<arg name=\"value\" type=\"i\" direction=\"out\" />"
- "</method>\n"
- "<method name=\"setRestartReasonAttribute\">\n"
- "<arg name=\"requestedValue\" type=\"i\" direction=\"in\" />\n"
- "<arg name=\"setValue\" type=\"i\" direction=\"out\" />\n"
- "</method>\n"
- "<signal name=\"onRestartReasonAttributeChanged\">\n"
- "<arg name=\"changedValue\" type=\"i\" />\n"
- "</signal>\n"
- "<method name=\"getShutdownReasonAttribute\">\n"
- "<arg name=\"value\" type=\"i\" direction=\"out\" />"
- "</method>\n"
- "<method name=\"setShutdownReasonAttribute\">\n"
- "<arg name=\"requestedValue\" type=\"i\" direction=\"in\" />\n"
- "<arg name=\"setValue\" type=\"i\" direction=\"out\" />\n"
- "</method>\n"
- "<signal name=\"onShutdownReasonAttributeChanged\">\n"
- "<arg name=\"changedValue\" type=\"i\" />\n"
- "</signal>\n"
- "<method name=\"getWakeUpReasonAttribute\">\n"
- "<arg name=\"value\" type=\"i\" direction=\"out\" />"
- "</method>\n"
- "<method name=\"setWakeUpReasonAttribute\">\n"
- "<arg name=\"requestedValue\" type=\"i\" direction=\"in\" />\n"
- "<arg name=\"setValue\" type=\"i\" direction=\"out\" />\n"
- "</method>\n"
- "<signal name=\"onWakeUpReasonAttributeChanged\">\n"
- "<arg name=\"changedValue\" type=\"i\" />\n"
- "</signal>\n"
- "<method name=\"getBootModeAttribute\">\n"
- "<arg name=\"value\" type=\"i\" direction=\"out\" />"
- "</method>\n"
- "<method name=\"setBootModeAttribute\">\n"
- "<arg name=\"requestedValue\" type=\"i\" direction=\"in\" />\n"
- "<arg name=\"setValue\" type=\"i\" direction=\"out\" />\n"
- "</method>\n"
- "<signal name=\"onBootModeAttributeChanged\">\n"
- "<arg name=\"changedValue\" type=\"i\" />\n"
- "</signal>\n"
- "<signal name=\"NodeState\">\n"
- "<arg name=\"NodeState\" type=\"i\" />\n"
- "</signal>\n"
- "<signal name=\"NodeApplicationMode\">\n"
- "<arg name=\"ApplicationModeId\" type=\"i\" />\n"
- "</signal>\n"
- "<signal name=\"SessionStateChanged\">\n"
- "<arg name=\"SessionStateName\" type=\"s\" />\n"
- "<arg name=\"SeatID\" type=\"i\" />\n"
- "<arg name=\"SessionState\" type=\"i\" />\n"
- "</signal>\n"
- "<method name=\"GetNodeState\">\n"
- "<arg name=\"NodeStateId\" type=\"i\" direction=\"out\" />\n"
- "<arg name=\"ErrorCode\" type=\"i\" direction=\"out\" />\n"
- "</method>\n"
- "<method name=\"SetSessionState\">\n"
- "<arg name=\"SessionName\" type=\"s\" direction=\"in\" />\n"
- "<arg name=\"SessionOwner\" type=\"s\" direction=\"in\" />\n"
- "<arg name=\"SeatID\" type=\"i\" direction=\"in\" />\n"
- "<arg name=\"SessionState\" type=\"i\" direction=\"in\" />\n"
- "<arg name=\"ErrorCode\" type=\"i\" direction=\"out\" />\n"
- "</method>\n"
- "<method name=\"GetSessionState\">\n"
- "<arg name=\"SessionName\" type=\"s\" direction=\"in\" />\n"
- "<arg name=\"SeatID\" type=\"i\" direction=\"in\" />\n"
- "<arg name=\"SessionState\" type=\"i\" direction=\"out\" />\n"
- "<arg name=\"ErrorCode\" type=\"i\" direction=\"out\" />\n"
- "</method>\n"
- "<method name=\"GetApplicationMode\">\n"
- "<arg name=\"ApplicationModeId\" type=\"i\" direction=\"out\" />\n"
- "<arg name=\"ErrorCode\" type=\"i\" direction=\"out\" />\n"
- "</method>\n"
- "<method name=\"RegisterShutdownClient\">\n"
- "<arg name=\"BusName\" type=\"s\" direction=\"in\" />\n"
- "<arg name=\"ObjName\" type=\"s\" direction=\"in\" />\n"
- "<arg name=\"ShutdownMode\" type=\"u\" direction=\"in\" />\n"
- "<arg name=\"TimeoutMs\" type=\"u\" direction=\"in\" />\n"
- "<arg name=\"ErrorCode\" type=\"i\" direction=\"out\" />\n"
- "</method>\n"
- "<method name=\"UnRegisterShutdownClient\">\n"
- "<arg name=\"BusName\" type=\"s\" direction=\"in\" />\n"
- "<arg name=\"ObjName\" type=\"s\" direction=\"in\" />\n"
- "<arg name=\"ShutdownMode\" type=\"u\" direction=\"in\" />\n"
- "<arg name=\"ErrorCode\" type=\"i\" direction=\"out\" />\n"
- "</method>\n"
- "<method name=\"RegisterSession\">\n"
- "<arg name=\"SessionName\" type=\"s\" direction=\"in\" />\n"
- "<arg name=\"SessionOwner\" type=\"s\" direction=\"in\" />\n"
- "<arg name=\"SeatID\" type=\"i\" direction=\"in\" />\n"
- "<arg name=\"SessionState\" type=\"i\" direction=\"in\" />\n"
- "<arg name=\"ErrorCode\" type=\"i\" direction=\"out\" />\n"
- "</method>\n"
- "<method name=\"UnRegisterSession\">\n"
- "<arg name=\"SessionName\" type=\"s\" direction=\"in\" />\n"
- "<arg name=\"SessionOwner\" type=\"s\" direction=\"in\" />\n"
- "<arg name=\"SeatID\" type=\"i\" direction=\"in\" />\n"
- "<arg name=\"ErrorCode\" type=\"i\" direction=\"out\" />\n"
- "</method>\n"
- "<method name=\"GetAppHealthCount\">\n"
- "<arg name=\"Count\" type=\"u\" direction=\"out\" />\n"
- "</method>\n"
- "<method name=\"GetInterfaceVersion\">\n"
- "<arg name=\"Version\" type=\"u\" direction=\"out\" />\n"
- "</method>\n"
- "<method name=\"LifecycleRequestComplete\">\n"
- "<arg name=\"RequestId\" type=\"u\" direction=\"in\" />\n"
- "<arg name=\"Status\" type=\"i\" direction=\"in\" />\n"
- "<arg name=\"ErrorCode\" type=\"i\" direction=\"out\" />\n"
- "</method>\n"
- ;
-}
-
-
-static CommonAPI::DBus::DBusGetAttributeStubDispatcher<
- ConsumerStub,
- int32_t
- > getRestartReasonAttributeStubDispatcher(&ConsumerStub::getRestartReasonAttribute, "i");
-static CommonAPI::DBus::DBusSetObservableAttributeStubDispatcher<
- ConsumerStub,
- int32_t
- > setRestartReasonAttributeStubDispatcher(
- &ConsumerStub::getRestartReasonAttribute,
- &ConsumerStubRemoteEvent::onRemoteSetRestartReasonAttribute,
- &ConsumerStubRemoteEvent::onRemoteRestartReasonAttributeChanged,
- &ConsumerStubAdapter::fireRestartReasonAttributeChanged,
- "i");
-
-static CommonAPI::DBus::DBusGetAttributeStubDispatcher<
- ConsumerStub,
- int32_t
- > getShutdownReasonAttributeStubDispatcher(&ConsumerStub::getShutdownReasonAttribute, "i");
-static CommonAPI::DBus::DBusSetObservableAttributeStubDispatcher<
- ConsumerStub,
- int32_t
- > setShutdownReasonAttributeStubDispatcher(
- &ConsumerStub::getShutdownReasonAttribute,
- &ConsumerStubRemoteEvent::onRemoteSetShutdownReasonAttribute,
- &ConsumerStubRemoteEvent::onRemoteShutdownReasonAttributeChanged,
- &ConsumerStubAdapter::fireShutdownReasonAttributeChanged,
- "i");
-
-static CommonAPI::DBus::DBusGetAttributeStubDispatcher<
- ConsumerStub,
- int32_t
- > getWakeUpReasonAttributeStubDispatcher(&ConsumerStub::getWakeUpReasonAttribute, "i");
-static CommonAPI::DBus::DBusSetObservableAttributeStubDispatcher<
- ConsumerStub,
- int32_t
- > setWakeUpReasonAttributeStubDispatcher(
- &ConsumerStub::getWakeUpReasonAttribute,
- &ConsumerStubRemoteEvent::onRemoteSetWakeUpReasonAttribute,
- &ConsumerStubRemoteEvent::onRemoteWakeUpReasonAttributeChanged,
- &ConsumerStubAdapter::fireWakeUpReasonAttributeChanged,
- "i");
-
-static CommonAPI::DBus::DBusGetAttributeStubDispatcher<
- ConsumerStub,
- int32_t
- > getBootModeAttributeStubDispatcher(&ConsumerStub::getBootModeAttribute, "i");
-static CommonAPI::DBus::DBusSetObservableAttributeStubDispatcher<
- ConsumerStub,
- int32_t
- > setBootModeAttributeStubDispatcher(
- &ConsumerStub::getBootModeAttribute,
- &ConsumerStubRemoteEvent::onRemoteSetBootModeAttribute,
- &ConsumerStubRemoteEvent::onRemoteBootModeAttributeChanged,
- &ConsumerStubAdapter::fireBootModeAttributeChanged,
- "i");
-
-
-static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
- ConsumerStub,
- std::tuple<>,
- std::tuple<int32_t, int32_t>
- > getNodeStateStubDispatcher(&ConsumerStub::GetNodeState, "ii");
-static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
- ConsumerStub,
- std::tuple<std::string, std::string, int32_t, int32_t>,
- std::tuple<int32_t>
- > setSessionStateStubDispatcher(&ConsumerStub::SetSessionState, "i");
-static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
- ConsumerStub,
- std::tuple<std::string, int32_t>,
- std::tuple<int32_t, int32_t>
- > getSessionStateStubDispatcher(&ConsumerStub::GetSessionState, "ii");
-static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
- ConsumerStub,
- std::tuple<>,
- std::tuple<int32_t, int32_t>
- > getApplicationModeStubDispatcher(&ConsumerStub::GetApplicationMode, "ii");
-static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
- ConsumerStub,
- std::tuple<std::string, std::string, uint32_t, uint32_t>,
- std::tuple<int32_t>
- > registerShutdownClientStubDispatcher(&ConsumerStub::RegisterShutdownClient, "i");
-static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
- ConsumerStub,
- std::tuple<std::string, std::string, uint32_t>,
- std::tuple<int32_t>
- > unRegisterShutdownClientStubDispatcher(&ConsumerStub::UnRegisterShutdownClient, "i");
-static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
- ConsumerStub,
- std::tuple<std::string, std::string, int32_t, int32_t>,
- std::tuple<int32_t>
- > registerSessionStubDispatcher(&ConsumerStub::RegisterSession, "i");
-static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
- ConsumerStub,
- std::tuple<std::string, std::string, int32_t>,
- std::tuple<int32_t>
- > unRegisterSessionStubDispatcher(&ConsumerStub::UnRegisterSession, "i");
-static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
- ConsumerStub,
- std::tuple<>,
- std::tuple<uint32_t>
- > getAppHealthCountStubDispatcher(&ConsumerStub::GetAppHealthCount, "u");
-static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
- ConsumerStub,
- std::tuple<>,
- std::tuple<uint32_t>
- > getInterfaceVersionStubDispatcher(&ConsumerStub::GetInterfaceVersion, "u");
-static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
- ConsumerStub,
- std::tuple<uint32_t, int32_t>,
- std::tuple<int32_t>
- > lifecycleRequestCompleteStubDispatcher(&ConsumerStub::LifecycleRequestComplete, "i");
-
-void ConsumerDBusStubAdapter::fireRestartReasonAttributeChanged(const int32_t& value) {
- CommonAPI::DBus::DBusStubSignalHelper<CommonAPI::DBus::DBusSerializableArguments<int32_t>>
- ::sendSignal(
- *this,
- "onRestartReasonAttributeChanged",
- "i",
- value
- );
-}
-void ConsumerDBusStubAdapter::fireShutdownReasonAttributeChanged(const int32_t& value) {
- CommonAPI::DBus::DBusStubSignalHelper<CommonAPI::DBus::DBusSerializableArguments<int32_t>>
- ::sendSignal(
- *this,
- "onShutdownReasonAttributeChanged",
- "i",
- value
- );
-}
-void ConsumerDBusStubAdapter::fireWakeUpReasonAttributeChanged(const int32_t& value) {
- CommonAPI::DBus::DBusStubSignalHelper<CommonAPI::DBus::DBusSerializableArguments<int32_t>>
- ::sendSignal(
- *this,
- "onWakeUpReasonAttributeChanged",
- "i",
- value
- );
-}
-void ConsumerDBusStubAdapter::fireBootModeAttributeChanged(const int32_t& value) {
- CommonAPI::DBus::DBusStubSignalHelper<CommonAPI::DBus::DBusSerializableArguments<int32_t>>
- ::sendSignal(
- *this,
- "onBootModeAttributeChanged",
- "i",
- value
- );
-}
-
-void ConsumerDBusStubAdapter::fireNodeStateEvent(const int32_t& NodeState) {
- CommonAPI::DBus::DBusStubSignalHelper<CommonAPI::DBus::DBusSerializableArguments<int32_t>>
- ::sendSignal(
- *this,
- "NodeState",
- "i",
- NodeState
- );
-}
-void ConsumerDBusStubAdapter::fireNodeApplicationModeEvent(const int32_t& ApplicationModeId) {
- CommonAPI::DBus::DBusStubSignalHelper<CommonAPI::DBus::DBusSerializableArguments<int32_t>>
- ::sendSignal(
- *this,
- "NodeApplicationMode",
- "i",
- ApplicationModeId
- );
-}
-void ConsumerDBusStubAdapter::fireSessionStateChangedEvent(const std::string& SessionStateName, const int32_t& SeatID, const int32_t& SessionState) {
- CommonAPI::DBus::DBusStubSignalHelper<CommonAPI::DBus::DBusSerializableArguments<std::string, int32_t, int32_t>>
- ::sendSignal(
- *this,
- "SessionStateChanged",
- "sii",
- SessionStateName, SeatID, SessionState
- );
-}
-
-} // namespace Consumer
-} // namespace NodeStateManager
-} // namespace genivi
-} // namespace org
-
-template<>
-const org::genivi::NodeStateManager::Consumer::ConsumerDBusStubAdapterHelper::StubDispatcherTable org::genivi::NodeStateManager::Consumer::ConsumerDBusStubAdapterHelper::stubDispatcherTable_ = {
- { { "getRestartReasonAttribute", "" }, &org::genivi::NodeStateManager::Consumer::getRestartReasonAttributeStubDispatcher }
- , { { "setRestartReasonAttribute", "i" }, &org::genivi::NodeStateManager::Consumer::setRestartReasonAttributeStubDispatcher },
- { { "getShutdownReasonAttribute", "" }, &org::genivi::NodeStateManager::Consumer::getShutdownReasonAttributeStubDispatcher }
- , { { "setShutdownReasonAttribute", "i" }, &org::genivi::NodeStateManager::Consumer::setShutdownReasonAttributeStubDispatcher },
- { { "getWakeUpReasonAttribute", "" }, &org::genivi::NodeStateManager::Consumer::getWakeUpReasonAttributeStubDispatcher }
- , { { "setWakeUpReasonAttribute", "i" }, &org::genivi::NodeStateManager::Consumer::setWakeUpReasonAttributeStubDispatcher },
- { { "getBootModeAttribute", "" }, &org::genivi::NodeStateManager::Consumer::getBootModeAttributeStubDispatcher }
- , { { "setBootModeAttribute", "i" }, &org::genivi::NodeStateManager::Consumer::setBootModeAttributeStubDispatcher }
- ,
- { { "GetNodeState", "" }, &org::genivi::NodeStateManager::Consumer::getNodeStateStubDispatcher },
- { { "SetSessionState", "ssii" }, &org::genivi::NodeStateManager::Consumer::setSessionStateStubDispatcher },
- { { "GetSessionState", "si" }, &org::genivi::NodeStateManager::Consumer::getSessionStateStubDispatcher },
- { { "GetApplicationMode", "" }, &org::genivi::NodeStateManager::Consumer::getApplicationModeStubDispatcher },
- { { "RegisterShutdownClient", "ssuu" }, &org::genivi::NodeStateManager::Consumer::registerShutdownClientStubDispatcher },
- { { "UnRegisterShutdownClient", "ssu" }, &org::genivi::NodeStateManager::Consumer::unRegisterShutdownClientStubDispatcher },
- { { "RegisterSession", "ssii" }, &org::genivi::NodeStateManager::Consumer::registerSessionStubDispatcher },
- { { "UnRegisterSession", "ssi" }, &org::genivi::NodeStateManager::Consumer::unRegisterSessionStubDispatcher },
- { { "GetAppHealthCount", "" }, &org::genivi::NodeStateManager::Consumer::getAppHealthCountStubDispatcher },
- { { "GetInterfaceVersion", "" }, &org::genivi::NodeStateManager::Consumer::getInterfaceVersionStubDispatcher },
- { { "LifecycleRequestComplete", "ui" }, &org::genivi::NodeStateManager::Consumer::lifecycleRequestCompleteStubDispatcher }
-};
diff --git a/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/Consumer/ConsumerDBusStubAdapter.h b/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/Consumer/ConsumerDBusStubAdapter.h
deleted file mode 100644
index 8b43c21..0000000
--- a/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/Consumer/ConsumerDBusStubAdapter.h
+++ /dev/null
@@ -1,68 +0,0 @@
-/*
-* This file was generated by the CommonAPI Generators.
-*
- * Copyright (C) 2012, BMW AG
- *
- * This file is part of GENIVI Project AudioManager.
- *
- * Contributions are licensed to the GENIVI Alliance under one or more
- * Contribution License Agreements.
- *
- * \copyright
- * 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/.
- *
- *
- * \author Aleksandar Donchev, aleksander.donchev@partner.bmw.de BMW 2013
- *
- * For further information see http://www.genivi.org/.
-*/
-#ifndef ORG_GENIVI_NODESTATEMANAGER_CONSUMER_Consumer_DBUS_STUB_ADAPTER_H_
-#define ORG_GENIVI_NODESTATEMANAGER_CONSUMER_Consumer_DBUS_STUB_ADAPTER_H_
-
-#include <org/genivi/NodeStateManager/Consumer/ConsumerStub.h>
-
-#define COMMONAPI_INTERNAL_COMPILATION
-
-#include <CommonAPI/DBus/DBusStubAdapterHelper.h>
-#include <CommonAPI/DBus/DBusFactory.h>
-
-#undef COMMONAPI_INTERNAL_COMPILATION
-
-namespace org {
-namespace genivi {
-namespace NodeStateManager {
-namespace Consumer {
-
-typedef CommonAPI::DBus::DBusStubAdapterHelper<ConsumerStub> ConsumerDBusStubAdapterHelper;
-
-class ConsumerDBusStubAdapter: public ConsumerStubAdapter, public ConsumerDBusStubAdapterHelper {
- public:
- ConsumerDBusStubAdapter(
- const std::string& commonApiAddress,
- const std::string& dbusInterfaceName,
- const std::string& dbusBusName,
- const std::string& dbusObjectPath,
- const std::shared_ptr<CommonAPI::DBus::DBusProxyConnection>& dbusConnection,
- const std::shared_ptr<CommonAPI::StubBase>& stub);
-
- void fireRestartReasonAttributeChanged(const int32_t& value);
- void fireShutdownReasonAttributeChanged(const int32_t& value);
- void fireWakeUpReasonAttributeChanged(const int32_t& value);
- void fireBootModeAttributeChanged(const int32_t& value);
-
- void fireNodeStateEvent(const int32_t& NodeState);
- void fireNodeApplicationModeEvent(const int32_t& ApplicationModeId);
- void fireSessionStateChangedEvent(const std::string& SessionStateName, const int32_t& SeatID, const int32_t& SessionState);
-
- protected:
- virtual const char* getMethodsDBusIntrospectionXmlData() const;
-};
-
-} // namespace Consumer
-} // namespace NodeStateManager
-} // namespace genivi
-} // namespace org
-
-#endif // ORG_GENIVI_NODESTATEMANAGER_CONSUMER_Consumer_DBUS_STUB_ADAPTER_H_
diff --git a/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/Consumer/ConsumerDBusProxy.cpp b/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/ConsumerDBusProxy.cpp
index e920d51..202680d 100644
--- a/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/Consumer/ConsumerDBusProxy.cpp
+++ b/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/ConsumerDBusProxy.cpp
@@ -1,29 +1,15 @@
/*
* This file was generated by the CommonAPI Generators.
*
- * Copyright (C) 2012, BMW AG
+ * Copyright (C) 2013, BMW AG
*
- * This file is part of GENIVI Project AudioManager.
- *
- * Contributions are licensed to the GENIVI Alliance under one or more
- * Contribution License Agreements.
- *
- * \copyright
- * 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/.
- *
- *
- * \author Aleksandar Donchev, aleksander.donchev@partner.bmw.de BMW 2013
- *
- * For further information see http://www.genivi.org/.
+ * \author Christian Linke, christian.linke@bmw.de BMW 2012,2013
*/
#include "ConsumerDBusProxy.h"
namespace org {
namespace genivi {
namespace NodeStateManager {
-namespace Consumer {
std::shared_ptr<CommonAPI::DBus::DBusProxy> createConsumerDBusProxy(
const std::string& commonApiAddress,
@@ -46,16 +32,19 @@ ConsumerDBusProxy::ConsumerDBusProxy(
const std::string& objectPath,
const std::shared_ptr<CommonAPI::DBus::DBusProxyConnection>& dbusProxyconnection):
CommonAPI::DBus::DBusProxy(commonApiAddress, interfaceName, busName, objectPath, dbusProxyconnection)
-, restartReason_(*this, interfaceName.c_str(), "RestartReason"),
+, bootMode_(*this, interfaceName.c_str(), "BootMode"),
+ restartReason_(*this, interfaceName.c_str(), "RestartReason"),
shutdownReason_(*this, interfaceName.c_str(), "ShutdownReason"),
- wakeUpReason_(*this, interfaceName.c_str(), "WakeUpReason"),
- bootMode_(*this, interfaceName.c_str(), "BootMode")
-, nodeState_(*this, "NodeState", "i"),
- nodeApplicationMode_(*this, "NodeApplicationMode", "i"),
- sessionStateChanged_(*this, "SessionStateChanged", "sii")
+ wakeUpReason_(*this, interfaceName.c_str(), "WakeUpReason")
+, nodeApplicationMode_(*this, "NodeApplicationMode", "i"),
+ sessionStateChanged_(*this, "SessionStateChanged", "sii"),
+ nodeState_(*this, "NodeState", "i")
{
}
+ConsumerDBusProxy::BootModeAttribute& ConsumerDBusProxy::getBootModeAttribute() {
+ return bootMode_;
+}
ConsumerDBusProxy::RestartReasonAttribute& ConsumerDBusProxy::getRestartReasonAttribute() {
return restartReason_;
}
@@ -65,83 +54,78 @@ ConsumerDBusProxy::ShutdownReasonAttribute& ConsumerDBusProxy::getShutdownReason
ConsumerDBusProxy::WakeUpReasonAttribute& ConsumerDBusProxy::getWakeUpReasonAttribute() {
return wakeUpReason_;
}
-ConsumerDBusProxy::BootModeAttribute& ConsumerDBusProxy::getBootModeAttribute() {
- return bootMode_;
-}
-ConsumerDBusProxy::NodeStateEvent& ConsumerDBusProxy::getNodeStateEvent() {
- return nodeState_;
-}
ConsumerDBusProxy::NodeApplicationModeEvent& ConsumerDBusProxy::getNodeApplicationModeEvent() {
return nodeApplicationMode_;
}
ConsumerDBusProxy::SessionStateChangedEvent& ConsumerDBusProxy::getSessionStateChangedEvent() {
return sessionStateChanged_;
}
+ConsumerDBusProxy::NodeStateEvent& ConsumerDBusProxy::getNodeStateEvent() {
+ return nodeState_;
+}
-void ConsumerDBusProxy::GetNodeState(CommonAPI::CallStatus& callStatus, int32_t& NodeStateId, int32_t& ErrorCode) {
+void ConsumerDBusProxy::GetAppHealthCount(CommonAPI::CallStatus& callStatus, uint32_t& Count) {
CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<>,
- CommonAPI::DBus::DBusSerializableArguments<int32_t, int32_t> >::callMethodWithReply(
+ CommonAPI::DBus::DBusSerializableArguments<uint32_t> >::callMethodWithReply(
*this,
- "GetNodeState",
+ "GetAppHealthCount",
"",
callStatus
- , NodeStateId, ErrorCode);
+ , Count);
}
-std::future<CommonAPI::CallStatus> ConsumerDBusProxy::GetNodeStateAsync(GetNodeStateAsyncCallback callback) {
+std::future<CommonAPI::CallStatus> ConsumerDBusProxy::GetAppHealthCountAsync(GetAppHealthCountAsyncCallback callback) {
return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<>,
- CommonAPI::DBus::DBusSerializableArguments<int32_t, int32_t> >::callMethodAsync(
+ CommonAPI::DBus::DBusSerializableArguments<uint32_t> >::callMethodAsync(
*this,
- "GetNodeState",
+ "GetAppHealthCount",
"",
std::move(callback));
}
-void ConsumerDBusProxy::SetSessionState(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SeatID, const int32_t& SessionState, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode) {
- CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<std::string, std::string, int32_t, int32_t>,
+void ConsumerDBusProxy::LifecycleRequestComplete(const uint32_t& RequestId, const int32_t& Status, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<uint32_t, int32_t>,
CommonAPI::DBus::DBusSerializableArguments<int32_t> >::callMethodWithReply(
*this,
- "SetSessionState",
- "ssii",
- SessionName, SessionOwner, SeatID, SessionState,
+ "LifecycleRequestComplete",
+ "ui",
+ RequestId, Status,
callStatus
, ErrorCode);
}
-std::future<CommonAPI::CallStatus> ConsumerDBusProxy::SetSessionStateAsync(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SeatID, const int32_t& SessionState, SetSessionStateAsyncCallback callback) {
- return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<std::string, std::string, int32_t, int32_t>,
+std::future<CommonAPI::CallStatus> ConsumerDBusProxy::LifecycleRequestCompleteAsync(const uint32_t& RequestId, const int32_t& Status, LifecycleRequestCompleteAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<uint32_t, int32_t>,
CommonAPI::DBus::DBusSerializableArguments<int32_t> >::callMethodAsync(
*this,
- "SetSessionState",
- "ssii",
- SessionName, SessionOwner, SeatID, SessionState,
+ "LifecycleRequestComplete",
+ "ui",
+ RequestId, Status,
std::move(callback));
}
-void ConsumerDBusProxy::GetSessionState(const std::string& SessionName, const int32_t& SeatID, CommonAPI::CallStatus& callStatus, int32_t& SessionState, int32_t& ErrorCode) {
- CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<std::string, int32_t>,
- CommonAPI::DBus::DBusSerializableArguments<int32_t, int32_t> >::callMethodWithReply(
+void ConsumerDBusProxy::GetInterfaceVersion(CommonAPI::CallStatus& callStatus, uint32_t& Version) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<>,
+ CommonAPI::DBus::DBusSerializableArguments<uint32_t> >::callMethodWithReply(
*this,
- "GetSessionState",
- "si",
- SessionName, SeatID,
+ "GetInterfaceVersion",
+ "",
callStatus
- , SessionState, ErrorCode);
+ , Version);
}
-std::future<CommonAPI::CallStatus> ConsumerDBusProxy::GetSessionStateAsync(const std::string& SessionName, const int32_t& SeatID, GetSessionStateAsyncCallback callback) {
- return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<std::string, int32_t>,
- CommonAPI::DBus::DBusSerializableArguments<int32_t, int32_t> >::callMethodAsync(
+std::future<CommonAPI::CallStatus> ConsumerDBusProxy::GetInterfaceVersionAsync(GetInterfaceVersionAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<>,
+ CommonAPI::DBus::DBusSerializableArguments<uint32_t> >::callMethodAsync(
*this,
- "GetSessionState",
- "si",
- SessionName, SeatID,
+ "GetInterfaceVersion",
+ "",
std::move(callback));
}
-void ConsumerDBusProxy::GetApplicationMode(CommonAPI::CallStatus& callStatus, int32_t& ApplicationModeId, int32_t& ErrorCode) {
+void ConsumerDBusProxy::GetApplicationMode(CommonAPI::CallStatus& callStatus, int32_t& ErrorCode, int32_t& ApplicationModeId) {
CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<>,
CommonAPI::DBus::DBusSerializableArguments<int32_t, int32_t> >::callMethodWithReply(
*this,
"GetApplicationMode",
"",
callStatus
- , ApplicationModeId, ErrorCode);
+ , ErrorCode, ApplicationModeId);
}
std::future<CommonAPI::CallStatus> ConsumerDBusProxy::GetApplicationModeAsync(GetApplicationModeAsyncCallback callback) {
return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<>,
@@ -151,42 +135,23 @@ std::future<CommonAPI::CallStatus> ConsumerDBusProxy::GetApplicationModeAsync(Ge
"",
std::move(callback));
}
-void ConsumerDBusProxy::RegisterShutdownClient(const std::string& BusName, const std::string& ObjName, const uint32_t& ShutdownMode, const uint32_t& TimeoutMs, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode) {
- CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<std::string, std::string, uint32_t, uint32_t>,
- CommonAPI::DBus::DBusSerializableArguments<int32_t> >::callMethodWithReply(
- *this,
- "RegisterShutdownClient",
- "ssuu",
- BusName, ObjName, ShutdownMode, TimeoutMs,
- callStatus
- , ErrorCode);
-}
-std::future<CommonAPI::CallStatus> ConsumerDBusProxy::RegisterShutdownClientAsync(const std::string& BusName, const std::string& ObjName, const uint32_t& ShutdownMode, const uint32_t& TimeoutMs, RegisterShutdownClientAsyncCallback callback) {
- return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<std::string, std::string, uint32_t, uint32_t>,
- CommonAPI::DBus::DBusSerializableArguments<int32_t> >::callMethodAsync(
- *this,
- "RegisterShutdownClient",
- "ssuu",
- BusName, ObjName, ShutdownMode, TimeoutMs,
- std::move(callback));
-}
-void ConsumerDBusProxy::UnRegisterShutdownClient(const std::string& BusName, const std::string& ObjName, const uint32_t& ShutdownMode, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode) {
- CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<std::string, std::string, uint32_t>,
+void ConsumerDBusProxy::UnRegisterSession(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SeatID, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<std::string, std::string, int32_t>,
CommonAPI::DBus::DBusSerializableArguments<int32_t> >::callMethodWithReply(
*this,
- "UnRegisterShutdownClient",
- "ssu",
- BusName, ObjName, ShutdownMode,
+ "UnRegisterSession",
+ "ssi",
+ SessionName, SessionOwner, SeatID,
callStatus
, ErrorCode);
}
-std::future<CommonAPI::CallStatus> ConsumerDBusProxy::UnRegisterShutdownClientAsync(const std::string& BusName, const std::string& ObjName, const uint32_t& ShutdownMode, UnRegisterShutdownClientAsyncCallback callback) {
- return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<std::string, std::string, uint32_t>,
+std::future<CommonAPI::CallStatus> ConsumerDBusProxy::UnRegisterSessionAsync(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SeatID, UnRegisterSessionAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<std::string, std::string, int32_t>,
CommonAPI::DBus::DBusSerializableArguments<int32_t> >::callMethodAsync(
*this,
- "UnRegisterShutdownClient",
- "ssu",
- BusName, ObjName, ShutdownMode,
+ "UnRegisterSession",
+ "ssi",
+ SessionName, SessionOwner, SeatID,
std::move(callback));
}
void ConsumerDBusProxy::RegisterSession(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SeatID, const int32_t& SessionState, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode) {
@@ -208,85 +173,105 @@ std::future<CommonAPI::CallStatus> ConsumerDBusProxy::RegisterSessionAsync(const
SessionName, SessionOwner, SeatID, SessionState,
std::move(callback));
}
-void ConsumerDBusProxy::UnRegisterSession(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SeatID, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode) {
- CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<std::string, std::string, int32_t>,
+void ConsumerDBusProxy::UnRegisterShutdownClient(const std::string& BusName, const std::string& ObjName, const uint32_t& ShutdownMode, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<std::string, std::string, uint32_t>,
CommonAPI::DBus::DBusSerializableArguments<int32_t> >::callMethodWithReply(
*this,
- "UnRegisterSession",
- "ssi",
- SessionName, SessionOwner, SeatID,
+ "UnRegisterShutdownClient",
+ "ssu",
+ BusName, ObjName, ShutdownMode,
callStatus
, ErrorCode);
}
-std::future<CommonAPI::CallStatus> ConsumerDBusProxy::UnRegisterSessionAsync(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SeatID, UnRegisterSessionAsyncCallback callback) {
- return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<std::string, std::string, int32_t>,
+std::future<CommonAPI::CallStatus> ConsumerDBusProxy::UnRegisterShutdownClientAsync(const std::string& BusName, const std::string& ObjName, const uint32_t& ShutdownMode, UnRegisterShutdownClientAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<std::string, std::string, uint32_t>,
CommonAPI::DBus::DBusSerializableArguments<int32_t> >::callMethodAsync(
*this,
- "UnRegisterSession",
- "ssi",
- SessionName, SessionOwner, SeatID,
+ "UnRegisterShutdownClient",
+ "ssu",
+ BusName, ObjName, ShutdownMode,
std::move(callback));
}
-void ConsumerDBusProxy::GetAppHealthCount(CommonAPI::CallStatus& callStatus, uint32_t& Count) {
- CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<>,
- CommonAPI::DBus::DBusSerializableArguments<uint32_t> >::callMethodWithReply(
+void ConsumerDBusProxy::RegisterShutdownClient(const std::string& BusName, const std::string& ObjName, const uint32_t& ShutdownMode, const uint32_t& TimeoutMs, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<std::string, std::string, uint32_t, uint32_t>,
+ CommonAPI::DBus::DBusSerializableArguments<int32_t> >::callMethodWithReply(
*this,
- "GetAppHealthCount",
- "",
+ "RegisterShutdownClient",
+ "ssuu",
+ BusName, ObjName, ShutdownMode, TimeoutMs,
callStatus
- , Count);
+ , ErrorCode);
}
-std::future<CommonAPI::CallStatus> ConsumerDBusProxy::GetAppHealthCountAsync(GetAppHealthCountAsyncCallback callback) {
- return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<>,
- CommonAPI::DBus::DBusSerializableArguments<uint32_t> >::callMethodAsync(
+std::future<CommonAPI::CallStatus> ConsumerDBusProxy::RegisterShutdownClientAsync(const std::string& BusName, const std::string& ObjName, const uint32_t& ShutdownMode, const uint32_t& TimeoutMs, RegisterShutdownClientAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<std::string, std::string, uint32_t, uint32_t>,
+ CommonAPI::DBus::DBusSerializableArguments<int32_t> >::callMethodAsync(
*this,
- "GetAppHealthCount",
- "",
+ "RegisterShutdownClient",
+ "ssuu",
+ BusName, ObjName, ShutdownMode, TimeoutMs,
std::move(callback));
}
-void ConsumerDBusProxy::GetInterfaceVersion(CommonAPI::CallStatus& callStatus, uint32_t& Version) {
+void ConsumerDBusProxy::GetNodeState(CommonAPI::CallStatus& callStatus, int32_t& ErrorCode, int32_t& NodeStateId) {
CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<>,
- CommonAPI::DBus::DBusSerializableArguments<uint32_t> >::callMethodWithReply(
+ CommonAPI::DBus::DBusSerializableArguments<int32_t, int32_t> >::callMethodWithReply(
*this,
- "GetInterfaceVersion",
+ "GetNodeState",
"",
callStatus
- , Version);
+ , ErrorCode, NodeStateId);
}
-std::future<CommonAPI::CallStatus> ConsumerDBusProxy::GetInterfaceVersionAsync(GetInterfaceVersionAsyncCallback callback) {
+std::future<CommonAPI::CallStatus> ConsumerDBusProxy::GetNodeStateAsync(GetNodeStateAsyncCallback callback) {
return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<>,
- CommonAPI::DBus::DBusSerializableArguments<uint32_t> >::callMethodAsync(
+ CommonAPI::DBus::DBusSerializableArguments<int32_t, int32_t> >::callMethodAsync(
*this,
- "GetInterfaceVersion",
+ "GetNodeState",
"",
std::move(callback));
}
-void ConsumerDBusProxy::LifecycleRequestComplete(const uint32_t& RequestId, const int32_t& Status, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode) {
- CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<uint32_t, int32_t>,
+void ConsumerDBusProxy::GetSessionState(const std::string& SessionName, const int32_t& SeatID, CommonAPI::CallStatus& callStatus, int32_t& SessionState, int32_t& ErrorCode) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<std::string, int32_t>,
+ CommonAPI::DBus::DBusSerializableArguments<int32_t, int32_t> >::callMethodWithReply(
+ *this,
+ "GetSessionState",
+ "si",
+ SessionName, SeatID,
+ callStatus
+ , SessionState, ErrorCode);
+}
+std::future<CommonAPI::CallStatus> ConsumerDBusProxy::GetSessionStateAsync(const std::string& SessionName, const int32_t& SeatID, GetSessionStateAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<std::string, int32_t>,
+ CommonAPI::DBus::DBusSerializableArguments<int32_t, int32_t> >::callMethodAsync(
+ *this,
+ "GetSessionState",
+ "si",
+ SessionName, SeatID,
+ std::move(callback));
+}
+void ConsumerDBusProxy::SetSessionState(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SessionState, const int32_t& SeatID, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<std::string, std::string, int32_t, int32_t>,
CommonAPI::DBus::DBusSerializableArguments<int32_t> >::callMethodWithReply(
*this,
- "LifecycleRequestComplete",
- "ui",
- RequestId, Status,
+ "SetSessionState",
+ "ssii",
+ SessionName, SessionOwner, SessionState, SeatID,
callStatus
, ErrorCode);
}
-std::future<CommonAPI::CallStatus> ConsumerDBusProxy::LifecycleRequestCompleteAsync(const uint32_t& RequestId, const int32_t& Status, LifecycleRequestCompleteAsyncCallback callback) {
- return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<uint32_t, int32_t>,
+std::future<CommonAPI::CallStatus> ConsumerDBusProxy::SetSessionStateAsync(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SessionState, const int32_t& SeatID, SetSessionStateAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<std::string, std::string, int32_t, int32_t>,
CommonAPI::DBus::DBusSerializableArguments<int32_t> >::callMethodAsync(
*this,
- "LifecycleRequestComplete",
- "ui",
- RequestId, Status,
+ "SetSessionState",
+ "ssii",
+ SessionName, SessionOwner, SessionState, SeatID,
std::move(callback));
}
void ConsumerDBusProxy::getOwnVersion(uint16_t& ownVersionMajor, uint16_t& ownVersionMinor) const {
- ownVersionMajor = 0;
- ownVersionMinor = 1;
+ ownVersionMajor = 1;
+ ownVersionMinor = 0;
}
-} // namespace Consumer
} // namespace NodeStateManager
} // namespace genivi
} // namespace org
diff --git a/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/Consumer/ConsumerDBusProxy.h b/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/ConsumerDBusProxy.h
index c3db1df..fe17687 100644
--- a/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/Consumer/ConsumerDBusProxy.h
+++ b/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/ConsumerDBusProxy.h
@@ -1,27 +1,14 @@
/*
* This file was generated by the CommonAPI Generators.
*
- * Copyright (C) 2012, BMW AG
+ * Copyright (C) 2013, BMW AG
*
- * This file is part of GENIVI Project AudioManager.
- *
- * Contributions are licensed to the GENIVI Alliance under one or more
- * Contribution License Agreements.
- *
- * \copyright
- * 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/.
- *
- *
- * \author Aleksandar Donchev, aleksander.donchev@partner.bmw.de BMW 2013
- *
- * For further information see http://www.genivi.org/.
+ * \author Christian Linke, christian.linke@bmw.de BMW 2012,2013
*/
-#ifndef ORG_GENIVI_NODESTATEMANAGER_CONSUMER_Consumer_DBUS_PROXY_H_
-#define ORG_GENIVI_NODESTATEMANAGER_CONSUMER_Consumer_DBUS_PROXY_H_
+#ifndef ORG_GENIVI_NODESTATEMANAGER_Consumer_DBUS_PROXY_H_
+#define ORG_GENIVI_NODESTATEMANAGER_Consumer_DBUS_PROXY_H_
-#include <org/genivi/NodeStateManager/Consumer/ConsumerProxyBase.h>
+#include <org/genivi/NodeStateManager/ConsumerProxyBase.h>
#define COMMONAPI_INTERNAL_COMPILATION
@@ -37,7 +24,6 @@
namespace org {
namespace genivi {
namespace NodeStateManager {
-namespace Consumer {
class ConsumerDBusProxy: virtual public ConsumerProxyBase, virtual public CommonAPI::DBus::DBusProxy {
public:
@@ -50,65 +36,64 @@ class ConsumerDBusProxy: virtual public ConsumerProxyBase, virtual public Common
virtual ~ConsumerDBusProxy() { }
+ virtual BootModeAttribute& getBootModeAttribute();
virtual RestartReasonAttribute& getRestartReasonAttribute();
virtual ShutdownReasonAttribute& getShutdownReasonAttribute();
virtual WakeUpReasonAttribute& getWakeUpReasonAttribute();
- virtual BootModeAttribute& getBootModeAttribute();
- virtual NodeStateEvent& getNodeStateEvent();
virtual NodeApplicationModeEvent& getNodeApplicationModeEvent();
virtual SessionStateChangedEvent& getSessionStateChangedEvent();
+ virtual NodeStateEvent& getNodeStateEvent();
- virtual void GetNodeState(CommonAPI::CallStatus& callStatus, int32_t& NodeStateId, int32_t& ErrorCode);
- virtual std::future<CommonAPI::CallStatus> GetNodeStateAsync(GetNodeStateAsyncCallback callback);
+ virtual void GetAppHealthCount(CommonAPI::CallStatus& callStatus, uint32_t& Count);
+ virtual std::future<CommonAPI::CallStatus> GetAppHealthCountAsync(GetAppHealthCountAsyncCallback callback);
- virtual void SetSessionState(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SeatID, const int32_t& SessionState, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode);
- virtual std::future<CommonAPI::CallStatus> SetSessionStateAsync(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SeatID, const int32_t& SessionState, SetSessionStateAsyncCallback callback);
+ virtual void LifecycleRequestComplete(const uint32_t& RequestId, const int32_t& Status, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode);
+ virtual std::future<CommonAPI::CallStatus> LifecycleRequestCompleteAsync(const uint32_t& RequestId, const int32_t& Status, LifecycleRequestCompleteAsyncCallback callback);
- virtual void GetSessionState(const std::string& SessionName, const int32_t& SeatID, CommonAPI::CallStatus& callStatus, int32_t& SessionState, int32_t& ErrorCode);
- virtual std::future<CommonAPI::CallStatus> GetSessionStateAsync(const std::string& SessionName, const int32_t& SeatID, GetSessionStateAsyncCallback callback);
+ virtual void GetInterfaceVersion(CommonAPI::CallStatus& callStatus, uint32_t& Version);
+ virtual std::future<CommonAPI::CallStatus> GetInterfaceVersionAsync(GetInterfaceVersionAsyncCallback callback);
- virtual void GetApplicationMode(CommonAPI::CallStatus& callStatus, int32_t& ApplicationModeId, int32_t& ErrorCode);
+ virtual void GetApplicationMode(CommonAPI::CallStatus& callStatus, int32_t& ErrorCode, int32_t& ApplicationModeId);
virtual std::future<CommonAPI::CallStatus> GetApplicationModeAsync(GetApplicationModeAsyncCallback callback);
- virtual void RegisterShutdownClient(const std::string& BusName, const std::string& ObjName, const uint32_t& ShutdownMode, const uint32_t& TimeoutMs, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode);
- virtual std::future<CommonAPI::CallStatus> RegisterShutdownClientAsync(const std::string& BusName, const std::string& ObjName, const uint32_t& ShutdownMode, const uint32_t& TimeoutMs, RegisterShutdownClientAsyncCallback callback);
-
- virtual void UnRegisterShutdownClient(const std::string& BusName, const std::string& ObjName, const uint32_t& ShutdownMode, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode);
- virtual std::future<CommonAPI::CallStatus> UnRegisterShutdownClientAsync(const std::string& BusName, const std::string& ObjName, const uint32_t& ShutdownMode, UnRegisterShutdownClientAsyncCallback callback);
+ virtual void UnRegisterSession(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SeatID, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode);
+ virtual std::future<CommonAPI::CallStatus> UnRegisterSessionAsync(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SeatID, UnRegisterSessionAsyncCallback callback);
virtual void RegisterSession(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SeatID, const int32_t& SessionState, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode);
virtual std::future<CommonAPI::CallStatus> RegisterSessionAsync(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SeatID, const int32_t& SessionState, RegisterSessionAsyncCallback callback);
- virtual void UnRegisterSession(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SeatID, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode);
- virtual std::future<CommonAPI::CallStatus> UnRegisterSessionAsync(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SeatID, UnRegisterSessionAsyncCallback callback);
+ virtual void UnRegisterShutdownClient(const std::string& BusName, const std::string& ObjName, const uint32_t& ShutdownMode, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode);
+ virtual std::future<CommonAPI::CallStatus> UnRegisterShutdownClientAsync(const std::string& BusName, const std::string& ObjName, const uint32_t& ShutdownMode, UnRegisterShutdownClientAsyncCallback callback);
- virtual void GetAppHealthCount(CommonAPI::CallStatus& callStatus, uint32_t& Count);
- virtual std::future<CommonAPI::CallStatus> GetAppHealthCountAsync(GetAppHealthCountAsyncCallback callback);
+ virtual void RegisterShutdownClient(const std::string& BusName, const std::string& ObjName, const uint32_t& ShutdownMode, const uint32_t& TimeoutMs, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode);
+ virtual std::future<CommonAPI::CallStatus> RegisterShutdownClientAsync(const std::string& BusName, const std::string& ObjName, const uint32_t& ShutdownMode, const uint32_t& TimeoutMs, RegisterShutdownClientAsyncCallback callback);
- virtual void GetInterfaceVersion(CommonAPI::CallStatus& callStatus, uint32_t& Version);
- virtual std::future<CommonAPI::CallStatus> GetInterfaceVersionAsync(GetInterfaceVersionAsyncCallback callback);
+ virtual void GetNodeState(CommonAPI::CallStatus& callStatus, int32_t& ErrorCode, int32_t& NodeStateId);
+ virtual std::future<CommonAPI::CallStatus> GetNodeStateAsync(GetNodeStateAsyncCallback callback);
- virtual void LifecycleRequestComplete(const uint32_t& RequestId, const int32_t& Status, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode);
- virtual std::future<CommonAPI::CallStatus> LifecycleRequestCompleteAsync(const uint32_t& RequestId, const int32_t& Status, LifecycleRequestCompleteAsyncCallback callback);
+ virtual void GetSessionState(const std::string& SessionName, const int32_t& SeatID, CommonAPI::CallStatus& callStatus, int32_t& SessionState, int32_t& ErrorCode);
+ virtual std::future<CommonAPI::CallStatus> GetSessionStateAsync(const std::string& SessionName, const int32_t& SeatID, GetSessionStateAsyncCallback callback);
+
+ virtual void SetSessionState(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SessionState, const int32_t& SeatID, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode);
+ virtual std::future<CommonAPI::CallStatus> SetSessionStateAsync(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SessionState, const int32_t& SeatID, SetSessionStateAsyncCallback callback);
virtual void getOwnVersion(uint16_t& ownVersionMajor, uint16_t& ownVersionMinor) const;
private:
- CommonAPI::DBus::DBusFreedesktopObservableAttribute<CommonAPI::DBus::DBusFreedesktopAttribute<RestartReasonAttribute>> restartReason_;
- CommonAPI::DBus::DBusFreedesktopObservableAttribute<CommonAPI::DBus::DBusFreedesktopAttribute<ShutdownReasonAttribute>> shutdownReason_;
- CommonAPI::DBus::DBusFreedesktopObservableAttribute<CommonAPI::DBus::DBusFreedesktopAttribute<WakeUpReasonAttribute>> wakeUpReason_;
- CommonAPI::DBus::DBusFreedesktopObservableAttribute<CommonAPI::DBus::DBusFreedesktopAttribute<BootModeAttribute>> bootMode_;
+ CommonAPI::DBus::DBusFreedesktopReadonlyAttribute<BootModeAttribute> bootMode_;
+ CommonAPI::DBus::DBusFreedesktopReadonlyAttribute<RestartReasonAttribute> restartReason_;
+ CommonAPI::DBus::DBusFreedesktopReadonlyAttribute<ShutdownReasonAttribute> shutdownReason_;
+ CommonAPI::DBus::DBusFreedesktopReadonlyAttribute<WakeUpReasonAttribute> wakeUpReason_;
- CommonAPI::DBus::DBusEvent<NodeStateEvent> nodeState_;
CommonAPI::DBus::DBusEvent<NodeApplicationModeEvent> nodeApplicationMode_;
CommonAPI::DBus::DBusEvent<SessionStateChangedEvent> sessionStateChanged_;
+ CommonAPI::DBus::DBusEvent<NodeStateEvent> nodeState_;
};
-} // namespace Consumer
} // namespace NodeStateManager
} // namespace genivi
} // namespace org
-#endif // ORG_GENIVI_NODESTATEMANAGER_CONSUMER_Consumer_DBUS_PROXY_H_
+#endif // ORG_GENIVI_NODESTATEMANAGER_Consumer_DBUS_PROXY_H_
diff --git a/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/Consumer/ConsumerProxy.h b/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/ConsumerProxy.h
index 273fa8b..e0aab4d 100644
--- a/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/Consumer/ConsumerProxy.h
+++ b/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/ConsumerProxy.h
@@ -1,25 +1,12 @@
/*
* This file was generated by the CommonAPI Generators.
*
- * Copyright (C) 2012, BMW AG
+ * Copyright (C) 2013, BMW AG
*
- * This file is part of GENIVI Project AudioManager.
- *
- * Contributions are licensed to the GENIVI Alliance under one or more
- * Contribution License Agreements.
- *
- * \copyright
- * 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/.
- *
- *
- * \author Aleksandar Donchev, aleksander.donchev@partner.bmw.de BMW 2013
- *
- * For further information see http://www.genivi.org/.
+ * \author Christian Linke, christian.linke@bmw.de BMW 2012,2013
*/
-#ifndef ORG_GENIVI_NODESTATEMANAGER_CONSUMER_Consumer_PROXY_H_
-#define ORG_GENIVI_NODESTATEMANAGER_CONSUMER_Consumer_PROXY_H_
+#ifndef ORG_GENIVI_NODESTATEMANAGER_Consumer_PROXY_H_
+#define ORG_GENIVI_NODESTATEMANAGER_Consumer_PROXY_H_
#include "ConsumerProxyBase.h"
@@ -33,7 +20,6 @@
namespace org {
namespace genivi {
namespace NodeStateManager {
-namespace Consumer {
template <typename ... _AttributeExtensions>
class ConsumerProxy: virtual public Consumer, virtual public ConsumerProxyBase, public _AttributeExtensions... {
@@ -41,6 +27,11 @@ class ConsumerProxy: virtual public Consumer, virtual public ConsumerProxyBase,
ConsumerProxy(std::shared_ptr<CommonAPI::Proxy> delegate);
~ConsumerProxy();
+ /// Returns the wrapper class that provides access to the attribute BootMode.
+ virtual BootModeAttribute& getBootModeAttribute() {
+ return delegate_->getBootModeAttribute();
+ }
+
/// Returns the wrapper class that provides access to the attribute RestartReason.
virtual RestartReasonAttribute& getRestartReasonAttribute() {
return delegate_->getRestartReasonAttribute();
@@ -56,16 +47,6 @@ class ConsumerProxy: virtual public Consumer, virtual public ConsumerProxyBase,
return delegate_->getWakeUpReasonAttribute();
}
- /// Returns the wrapper class that provides access to the attribute BootMode.
- virtual BootModeAttribute& getBootModeAttribute() {
- return delegate_->getBootModeAttribute();
- }
-
-
- /// Returns the wrapper class that provides access to the broadcast NodeState.
- virtual NodeStateEvent& getNodeStateEvent() {
- return delegate_->getNodeStateEvent();
- }
/// Returns the wrapper class that provides access to the broadcast NodeApplicationMode.
virtual NodeApplicationModeEvent& getNodeApplicationModeEvent() {
@@ -77,10 +58,15 @@ class ConsumerProxy: virtual public Consumer, virtual public ConsumerProxyBase,
return delegate_->getSessionStateChangedEvent();
}
+ /// Returns the wrapper class that provides access to the broadcast NodeState.
+ virtual NodeStateEvent& getNodeStateEvent() {
+ return delegate_->getNodeStateEvent();
+ }
+
/**
- * Calls GetNodeState with synchronous semantics.
+ * Calls GetAppHealthCount with synchronous semantics.
*
* All non-const parameters will be filled with the returned values.
* The CallStatus will be filled when the method returns and indicate either
@@ -88,9 +74,9 @@ class ConsumerProxy: virtual public Consumer, virtual public ConsumerProxyBase,
* will be set.
* Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
*/
- virtual void GetNodeState(CommonAPI::CallStatus& callStatus, int32_t& NodeStateId, int32_t& ErrorCode);
+ virtual void GetAppHealthCount(CommonAPI::CallStatus& callStatus, uint32_t& Count);
/**
- * Calls GetNodeState with asynchronous semantics.
+ * Calls GetAppHealthCount with asynchronous semantics.
*
* The provided callback will be called when the reply to this call arrives or
* an error occurs during the call. The CallStatus will indicate either "SUCCESS"
@@ -99,10 +85,10 @@ class ConsumerProxy: virtual public Consumer, virtual public ConsumerProxyBase,
* The std::future returned by this method will be fulfilled at arrival of the reply.
* It will provide the same value for CallStatus as will be handed to the callback.
*/
- virtual std::future<CommonAPI::CallStatus> GetNodeStateAsync(GetNodeStateAsyncCallback callback);
+ virtual std::future<CommonAPI::CallStatus> GetAppHealthCountAsync(GetAppHealthCountAsyncCallback callback);
/**
- * Calls SetSessionState with synchronous semantics.
+ * Calls LifecycleRequestComplete with synchronous semantics.
*
* All const parameters are input parameters to this method.
* All non-const parameters will be filled with the returned values.
@@ -111,9 +97,9 @@ class ConsumerProxy: virtual public Consumer, virtual public ConsumerProxyBase,
* will be set.
* Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
*/
- virtual void SetSessionState(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SeatID, const int32_t& SessionState, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode);
+ virtual void LifecycleRequestComplete(const uint32_t& RequestId, const int32_t& Status, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode);
/**
- * Calls SetSessionState with asynchronous semantics.
+ * Calls LifecycleRequestComplete with asynchronous semantics.
*
* The provided callback will be called when the reply to this call arrives or
* an error occurs during the call. The CallStatus will indicate either "SUCCESS"
@@ -122,21 +108,20 @@ class ConsumerProxy: virtual public Consumer, virtual public ConsumerProxyBase,
* The std::future returned by this method will be fulfilled at arrival of the reply.
* It will provide the same value for CallStatus as will be handed to the callback.
*/
- virtual std::future<CommonAPI::CallStatus> SetSessionStateAsync(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SeatID, const int32_t& SessionState, SetSessionStateAsyncCallback callback);
+ virtual std::future<CommonAPI::CallStatus> LifecycleRequestCompleteAsync(const uint32_t& RequestId, const int32_t& Status, LifecycleRequestCompleteAsyncCallback callback);
/**
- * Calls GetSessionState with synchronous semantics.
+ * Calls GetInterfaceVersion with synchronous semantics.
*
- * All const parameters are input parameters to this method.
* All non-const parameters will be filled with the returned values.
* The CallStatus will be filled when the method returns and indicate either
* "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus
* will be set.
* Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
*/
- virtual void GetSessionState(const std::string& SessionName, const int32_t& SeatID, CommonAPI::CallStatus& callStatus, int32_t& SessionState, int32_t& ErrorCode);
+ virtual void GetInterfaceVersion(CommonAPI::CallStatus& callStatus, uint32_t& Version);
/**
- * Calls GetSessionState with asynchronous semantics.
+ * Calls GetInterfaceVersion with asynchronous semantics.
*
* The provided callback will be called when the reply to this call arrives or
* an error occurs during the call. The CallStatus will indicate either "SUCCESS"
@@ -145,7 +130,7 @@ class ConsumerProxy: virtual public Consumer, virtual public ConsumerProxyBase,
* The std::future returned by this method will be fulfilled at arrival of the reply.
* It will provide the same value for CallStatus as will be handed to the callback.
*/
- virtual std::future<CommonAPI::CallStatus> GetSessionStateAsync(const std::string& SessionName, const int32_t& SeatID, GetSessionStateAsyncCallback callback);
+ virtual std::future<CommonAPI::CallStatus> GetInterfaceVersionAsync(GetInterfaceVersionAsyncCallback callback);
/**
* Calls GetApplicationMode with synchronous semantics.
@@ -156,7 +141,7 @@ class ConsumerProxy: virtual public Consumer, virtual public ConsumerProxyBase,
* will be set.
* Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
*/
- virtual void GetApplicationMode(CommonAPI::CallStatus& callStatus, int32_t& ApplicationModeId, int32_t& ErrorCode);
+ virtual void GetApplicationMode(CommonAPI::CallStatus& callStatus, int32_t& ErrorCode, int32_t& ApplicationModeId);
/**
* Calls GetApplicationMode with asynchronous semantics.
*
@@ -170,7 +155,7 @@ class ConsumerProxy: virtual public Consumer, virtual public ConsumerProxyBase,
virtual std::future<CommonAPI::CallStatus> GetApplicationModeAsync(GetApplicationModeAsyncCallback callback);
/**
- * Calls RegisterShutdownClient with synchronous semantics.
+ * Calls UnRegisterSession with synchronous semantics.
*
* All const parameters are input parameters to this method.
* All non-const parameters will be filled with the returned values.
@@ -179,9 +164,9 @@ class ConsumerProxy: virtual public Consumer, virtual public ConsumerProxyBase,
* will be set.
* Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
*/
- virtual void RegisterShutdownClient(const std::string& BusName, const std::string& ObjName, const uint32_t& ShutdownMode, const uint32_t& TimeoutMs, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode);
+ virtual void UnRegisterSession(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SeatID, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode);
/**
- * Calls RegisterShutdownClient with asynchronous semantics.
+ * Calls UnRegisterSession with asynchronous semantics.
*
* The provided callback will be called when the reply to this call arrives or
* an error occurs during the call. The CallStatus will indicate either "SUCCESS"
@@ -190,10 +175,10 @@ class ConsumerProxy: virtual public Consumer, virtual public ConsumerProxyBase,
* The std::future returned by this method will be fulfilled at arrival of the reply.
* It will provide the same value for CallStatus as will be handed to the callback.
*/
- virtual std::future<CommonAPI::CallStatus> RegisterShutdownClientAsync(const std::string& BusName, const std::string& ObjName, const uint32_t& ShutdownMode, const uint32_t& TimeoutMs, RegisterShutdownClientAsyncCallback callback);
+ virtual std::future<CommonAPI::CallStatus> UnRegisterSessionAsync(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SeatID, UnRegisterSessionAsyncCallback callback);
/**
- * Calls UnRegisterShutdownClient with synchronous semantics.
+ * Calls RegisterSession with synchronous semantics.
*
* All const parameters are input parameters to this method.
* All non-const parameters will be filled with the returned values.
@@ -202,9 +187,9 @@ class ConsumerProxy: virtual public Consumer, virtual public ConsumerProxyBase,
* will be set.
* Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
*/
- virtual void UnRegisterShutdownClient(const std::string& BusName, const std::string& ObjName, const uint32_t& ShutdownMode, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode);
+ virtual void RegisterSession(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SeatID, const int32_t& SessionState, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode);
/**
- * Calls UnRegisterShutdownClient with asynchronous semantics.
+ * Calls RegisterSession with asynchronous semantics.
*
* The provided callback will be called when the reply to this call arrives or
* an error occurs during the call. The CallStatus will indicate either "SUCCESS"
@@ -213,10 +198,10 @@ class ConsumerProxy: virtual public Consumer, virtual public ConsumerProxyBase,
* The std::future returned by this method will be fulfilled at arrival of the reply.
* It will provide the same value for CallStatus as will be handed to the callback.
*/
- virtual std::future<CommonAPI::CallStatus> UnRegisterShutdownClientAsync(const std::string& BusName, const std::string& ObjName, const uint32_t& ShutdownMode, UnRegisterShutdownClientAsyncCallback callback);
+ virtual std::future<CommonAPI::CallStatus> RegisterSessionAsync(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SeatID, const int32_t& SessionState, RegisterSessionAsyncCallback callback);
/**
- * Calls RegisterSession with synchronous semantics.
+ * Calls UnRegisterShutdownClient with synchronous semantics.
*
* All const parameters are input parameters to this method.
* All non-const parameters will be filled with the returned values.
@@ -225,9 +210,9 @@ class ConsumerProxy: virtual public Consumer, virtual public ConsumerProxyBase,
* will be set.
* Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
*/
- virtual void RegisterSession(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SeatID, const int32_t& SessionState, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode);
+ virtual void UnRegisterShutdownClient(const std::string& BusName, const std::string& ObjName, const uint32_t& ShutdownMode, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode);
/**
- * Calls RegisterSession with asynchronous semantics.
+ * Calls UnRegisterShutdownClient with asynchronous semantics.
*
* The provided callback will be called when the reply to this call arrives or
* an error occurs during the call. The CallStatus will indicate either "SUCCESS"
@@ -236,10 +221,10 @@ class ConsumerProxy: virtual public Consumer, virtual public ConsumerProxyBase,
* The std::future returned by this method will be fulfilled at arrival of the reply.
* It will provide the same value for CallStatus as will be handed to the callback.
*/
- virtual std::future<CommonAPI::CallStatus> RegisterSessionAsync(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SeatID, const int32_t& SessionState, RegisterSessionAsyncCallback callback);
+ virtual std::future<CommonAPI::CallStatus> UnRegisterShutdownClientAsync(const std::string& BusName, const std::string& ObjName, const uint32_t& ShutdownMode, UnRegisterShutdownClientAsyncCallback callback);
/**
- * Calls UnRegisterSession with synchronous semantics.
+ * Calls RegisterShutdownClient with synchronous semantics.
*
* All const parameters are input parameters to this method.
* All non-const parameters will be filled with the returned values.
@@ -248,9 +233,9 @@ class ConsumerProxy: virtual public Consumer, virtual public ConsumerProxyBase,
* will be set.
* Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
*/
- virtual void UnRegisterSession(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SeatID, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode);
+ virtual void RegisterShutdownClient(const std::string& BusName, const std::string& ObjName, const uint32_t& ShutdownMode, const uint32_t& TimeoutMs, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode);
/**
- * Calls UnRegisterSession with asynchronous semantics.
+ * Calls RegisterShutdownClient with asynchronous semantics.
*
* The provided callback will be called when the reply to this call arrives or
* an error occurs during the call. The CallStatus will indicate either "SUCCESS"
@@ -259,10 +244,10 @@ class ConsumerProxy: virtual public Consumer, virtual public ConsumerProxyBase,
* The std::future returned by this method will be fulfilled at arrival of the reply.
* It will provide the same value for CallStatus as will be handed to the callback.
*/
- virtual std::future<CommonAPI::CallStatus> UnRegisterSessionAsync(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SeatID, UnRegisterSessionAsyncCallback callback);
+ virtual std::future<CommonAPI::CallStatus> RegisterShutdownClientAsync(const std::string& BusName, const std::string& ObjName, const uint32_t& ShutdownMode, const uint32_t& TimeoutMs, RegisterShutdownClientAsyncCallback callback);
/**
- * Calls GetAppHealthCount with synchronous semantics.
+ * Calls GetNodeState with synchronous semantics.
*
* All non-const parameters will be filled with the returned values.
* The CallStatus will be filled when the method returns and indicate either
@@ -270,9 +255,9 @@ class ConsumerProxy: virtual public Consumer, virtual public ConsumerProxyBase,
* will be set.
* Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
*/
- virtual void GetAppHealthCount(CommonAPI::CallStatus& callStatus, uint32_t& Count);
+ virtual void GetNodeState(CommonAPI::CallStatus& callStatus, int32_t& ErrorCode, int32_t& NodeStateId);
/**
- * Calls GetAppHealthCount with asynchronous semantics.
+ * Calls GetNodeState with asynchronous semantics.
*
* The provided callback will be called when the reply to this call arrives or
* an error occurs during the call. The CallStatus will indicate either "SUCCESS"
@@ -281,20 +266,21 @@ class ConsumerProxy: virtual public Consumer, virtual public ConsumerProxyBase,
* The std::future returned by this method will be fulfilled at arrival of the reply.
* It will provide the same value for CallStatus as will be handed to the callback.
*/
- virtual std::future<CommonAPI::CallStatus> GetAppHealthCountAsync(GetAppHealthCountAsyncCallback callback);
+ virtual std::future<CommonAPI::CallStatus> GetNodeStateAsync(GetNodeStateAsyncCallback callback);
/**
- * Calls GetInterfaceVersion with synchronous semantics.
+ * Calls GetSessionState with synchronous semantics.
*
+ * All const parameters are input parameters to this method.
* All non-const parameters will be filled with the returned values.
* The CallStatus will be filled when the method returns and indicate either
* "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus
* will be set.
* Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
*/
- virtual void GetInterfaceVersion(CommonAPI::CallStatus& callStatus, uint32_t& Version);
+ virtual void GetSessionState(const std::string& SessionName, const int32_t& SeatID, CommonAPI::CallStatus& callStatus, int32_t& SessionState, int32_t& ErrorCode);
/**
- * Calls GetInterfaceVersion with asynchronous semantics.
+ * Calls GetSessionState with asynchronous semantics.
*
* The provided callback will be called when the reply to this call arrives or
* an error occurs during the call. The CallStatus will indicate either "SUCCESS"
@@ -303,10 +289,10 @@ class ConsumerProxy: virtual public Consumer, virtual public ConsumerProxyBase,
* The std::future returned by this method will be fulfilled at arrival of the reply.
* It will provide the same value for CallStatus as will be handed to the callback.
*/
- virtual std::future<CommonAPI::CallStatus> GetInterfaceVersionAsync(GetInterfaceVersionAsyncCallback callback);
+ virtual std::future<CommonAPI::CallStatus> GetSessionStateAsync(const std::string& SessionName, const int32_t& SeatID, GetSessionStateAsyncCallback callback);
/**
- * Calls LifecycleRequestComplete with synchronous semantics.
+ * Calls SetSessionState with synchronous semantics.
*
* All const parameters are input parameters to this method.
* All non-const parameters will be filled with the returned values.
@@ -315,9 +301,9 @@ class ConsumerProxy: virtual public Consumer, virtual public ConsumerProxyBase,
* will be set.
* Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
*/
- virtual void LifecycleRequestComplete(const uint32_t& RequestId, const int32_t& Status, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode);
+ virtual void SetSessionState(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SessionState, const int32_t& SeatID, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode);
/**
- * Calls LifecycleRequestComplete with asynchronous semantics.
+ * Calls SetSessionState with asynchronous semantics.
*
* The provided callback will be called when the reply to this call arrives or
* an error occurs during the call. The CallStatus will indicate either "SUCCESS"
@@ -326,7 +312,7 @@ class ConsumerProxy: virtual public Consumer, virtual public ConsumerProxyBase,
* The std::future returned by this method will be fulfilled at arrival of the reply.
* It will provide the same value for CallStatus as will be handed to the callback.
*/
- virtual std::future<CommonAPI::CallStatus> LifecycleRequestCompleteAsync(const uint32_t& RequestId, const int32_t& Status, LifecycleRequestCompleteAsyncCallback callback);
+ virtual std::future<CommonAPI::CallStatus> SetSessionStateAsync(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SessionState, const int32_t& SeatID, SetSessionStateAsyncCallback callback);
/// Returns the CommonAPI address of the remote partner this proxy communicates with.
virtual std::string getAddress() const;
@@ -361,6 +347,25 @@ class ConsumerProxy: virtual public Consumer, virtual public ConsumerProxyBase,
namespace ConsumerExtensions {
template <template <typename > class _ExtensionType>
+ class BootModeAttributeExtension {
+ public:
+ typedef _ExtensionType<ConsumerProxyBase::BootModeAttribute> extension_type;
+
+ static_assert(std::is_base_of<typename CommonAPI::AttributeExtension<ConsumerProxyBase::BootModeAttribute>, extension_type>::value,
+ "Not CommonAPI Attribute Extension!");
+
+ BootModeAttributeExtension(ConsumerProxyBase& proxy): attributeExtension_(proxy.getBootModeAttribute()) {
+ }
+
+ inline extension_type& getBootModeAttributeExtension() {
+ return attributeExtension_;
+ }
+
+ private:
+ extension_type attributeExtension_;
+ };
+
+ template <template <typename > class _ExtensionType>
class RestartReasonAttributeExtension {
public:
typedef _ExtensionType<ConsumerProxyBase::RestartReasonAttribute> extension_type;
@@ -417,25 +422,6 @@ namespace ConsumerExtensions {
extension_type attributeExtension_;
};
- template <template <typename > class _ExtensionType>
- class BootModeAttributeExtension {
- public:
- typedef _ExtensionType<ConsumerProxyBase::BootModeAttribute> extension_type;
-
- static_assert(std::is_base_of<typename CommonAPI::AttributeExtension<ConsumerProxyBase::BootModeAttribute>, extension_type>::value,
- "Not CommonAPI Attribute Extension!");
-
- BootModeAttributeExtension(ConsumerProxyBase& proxy): attributeExtension_(proxy.getBootModeAttribute()) {
- }
-
- inline extension_type& getBootModeAttributeExtension() {
- return attributeExtension_;
- }
-
- private:
- extension_type attributeExtension_;
- };
-
} // namespace ConsumerExtensions
//
@@ -452,38 +438,38 @@ ConsumerProxy<_AttributeExtensions...>::~ConsumerProxy() {
}
template <typename ... _AttributeExtensions>
-void ConsumerProxy<_AttributeExtensions...>::GetNodeState(CommonAPI::CallStatus& callStatus, int32_t& NodeStateId, int32_t& ErrorCode) {
- delegate_->GetNodeState(callStatus, NodeStateId, ErrorCode);
+void ConsumerProxy<_AttributeExtensions...>::GetAppHealthCount(CommonAPI::CallStatus& callStatus, uint32_t& Count) {
+ delegate_->GetAppHealthCount(callStatus, Count);
}
template <typename ... _AttributeExtensions>
-std::future<CommonAPI::CallStatus> ConsumerProxy<_AttributeExtensions...>::GetNodeStateAsync(GetNodeStateAsyncCallback callback) {
- return delegate_->GetNodeStateAsync(callback);
+std::future<CommonAPI::CallStatus> ConsumerProxy<_AttributeExtensions...>::GetAppHealthCountAsync(GetAppHealthCountAsyncCallback callback) {
+ return delegate_->GetAppHealthCountAsync(callback);
}
template <typename ... _AttributeExtensions>
-void ConsumerProxy<_AttributeExtensions...>::SetSessionState(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SeatID, const int32_t& SessionState, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode) {
- delegate_->SetSessionState(SessionName, SessionOwner, SeatID, SessionState, callStatus, ErrorCode);
+void ConsumerProxy<_AttributeExtensions...>::LifecycleRequestComplete(const uint32_t& RequestId, const int32_t& Status, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode) {
+ delegate_->LifecycleRequestComplete(RequestId, Status, callStatus, ErrorCode);
}
template <typename ... _AttributeExtensions>
-std::future<CommonAPI::CallStatus> ConsumerProxy<_AttributeExtensions...>::SetSessionStateAsync(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SeatID, const int32_t& SessionState, SetSessionStateAsyncCallback callback) {
- return delegate_->SetSessionStateAsync(SessionName, SessionOwner, SeatID, SessionState, callback);
+std::future<CommonAPI::CallStatus> ConsumerProxy<_AttributeExtensions...>::LifecycleRequestCompleteAsync(const uint32_t& RequestId, const int32_t& Status, LifecycleRequestCompleteAsyncCallback callback) {
+ return delegate_->LifecycleRequestCompleteAsync(RequestId, Status, callback);
}
template <typename ... _AttributeExtensions>
-void ConsumerProxy<_AttributeExtensions...>::GetSessionState(const std::string& SessionName, const int32_t& SeatID, CommonAPI::CallStatus& callStatus, int32_t& SessionState, int32_t& ErrorCode) {
- delegate_->GetSessionState(SessionName, SeatID, callStatus, SessionState, ErrorCode);
+void ConsumerProxy<_AttributeExtensions...>::GetInterfaceVersion(CommonAPI::CallStatus& callStatus, uint32_t& Version) {
+ delegate_->GetInterfaceVersion(callStatus, Version);
}
template <typename ... _AttributeExtensions>
-std::future<CommonAPI::CallStatus> ConsumerProxy<_AttributeExtensions...>::GetSessionStateAsync(const std::string& SessionName, const int32_t& SeatID, GetSessionStateAsyncCallback callback) {
- return delegate_->GetSessionStateAsync(SessionName, SeatID, callback);
+std::future<CommonAPI::CallStatus> ConsumerProxy<_AttributeExtensions...>::GetInterfaceVersionAsync(GetInterfaceVersionAsyncCallback callback) {
+ return delegate_->GetInterfaceVersionAsync(callback);
}
template <typename ... _AttributeExtensions>
-void ConsumerProxy<_AttributeExtensions...>::GetApplicationMode(CommonAPI::CallStatus& callStatus, int32_t& ApplicationModeId, int32_t& ErrorCode) {
- delegate_->GetApplicationMode(callStatus, ApplicationModeId, ErrorCode);
+void ConsumerProxy<_AttributeExtensions...>::GetApplicationMode(CommonAPI::CallStatus& callStatus, int32_t& ErrorCode, int32_t& ApplicationModeId) {
+ delegate_->GetApplicationMode(callStatus, ErrorCode, ApplicationModeId);
}
template <typename ... _AttributeExtensions>
@@ -492,73 +478,73 @@ std::future<CommonAPI::CallStatus> ConsumerProxy<_AttributeExtensions...>::GetAp
}
template <typename ... _AttributeExtensions>
-void ConsumerProxy<_AttributeExtensions...>::RegisterShutdownClient(const std::string& BusName, const std::string& ObjName, const uint32_t& ShutdownMode, const uint32_t& TimeoutMs, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode) {
- delegate_->RegisterShutdownClient(BusName, ObjName, ShutdownMode, TimeoutMs, callStatus, ErrorCode);
+void ConsumerProxy<_AttributeExtensions...>::UnRegisterSession(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SeatID, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode) {
+ delegate_->UnRegisterSession(SessionName, SessionOwner, SeatID, callStatus, ErrorCode);
}
template <typename ... _AttributeExtensions>
-std::future<CommonAPI::CallStatus> ConsumerProxy<_AttributeExtensions...>::RegisterShutdownClientAsync(const std::string& BusName, const std::string& ObjName, const uint32_t& ShutdownMode, const uint32_t& TimeoutMs, RegisterShutdownClientAsyncCallback callback) {
- return delegate_->RegisterShutdownClientAsync(BusName, ObjName, ShutdownMode, TimeoutMs, callback);
+std::future<CommonAPI::CallStatus> ConsumerProxy<_AttributeExtensions...>::UnRegisterSessionAsync(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SeatID, UnRegisterSessionAsyncCallback callback) {
+ return delegate_->UnRegisterSessionAsync(SessionName, SessionOwner, SeatID, callback);
}
template <typename ... _AttributeExtensions>
-void ConsumerProxy<_AttributeExtensions...>::UnRegisterShutdownClient(const std::string& BusName, const std::string& ObjName, const uint32_t& ShutdownMode, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode) {
- delegate_->UnRegisterShutdownClient(BusName, ObjName, ShutdownMode, callStatus, ErrorCode);
+void ConsumerProxy<_AttributeExtensions...>::RegisterSession(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SeatID, const int32_t& SessionState, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode) {
+ delegate_->RegisterSession(SessionName, SessionOwner, SeatID, SessionState, callStatus, ErrorCode);
}
template <typename ... _AttributeExtensions>
-std::future<CommonAPI::CallStatus> ConsumerProxy<_AttributeExtensions...>::UnRegisterShutdownClientAsync(const std::string& BusName, const std::string& ObjName, const uint32_t& ShutdownMode, UnRegisterShutdownClientAsyncCallback callback) {
- return delegate_->UnRegisterShutdownClientAsync(BusName, ObjName, ShutdownMode, callback);
+std::future<CommonAPI::CallStatus> ConsumerProxy<_AttributeExtensions...>::RegisterSessionAsync(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SeatID, const int32_t& SessionState, RegisterSessionAsyncCallback callback) {
+ return delegate_->RegisterSessionAsync(SessionName, SessionOwner, SeatID, SessionState, callback);
}
template <typename ... _AttributeExtensions>
-void ConsumerProxy<_AttributeExtensions...>::RegisterSession(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SeatID, const int32_t& SessionState, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode) {
- delegate_->RegisterSession(SessionName, SessionOwner, SeatID, SessionState, callStatus, ErrorCode);
+void ConsumerProxy<_AttributeExtensions...>::UnRegisterShutdownClient(const std::string& BusName, const std::string& ObjName, const uint32_t& ShutdownMode, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode) {
+ delegate_->UnRegisterShutdownClient(BusName, ObjName, ShutdownMode, callStatus, ErrorCode);
}
template <typename ... _AttributeExtensions>
-std::future<CommonAPI::CallStatus> ConsumerProxy<_AttributeExtensions...>::RegisterSessionAsync(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SeatID, const int32_t& SessionState, RegisterSessionAsyncCallback callback) {
- return delegate_->RegisterSessionAsync(SessionName, SessionOwner, SeatID, SessionState, callback);
+std::future<CommonAPI::CallStatus> ConsumerProxy<_AttributeExtensions...>::UnRegisterShutdownClientAsync(const std::string& BusName, const std::string& ObjName, const uint32_t& ShutdownMode, UnRegisterShutdownClientAsyncCallback callback) {
+ return delegate_->UnRegisterShutdownClientAsync(BusName, ObjName, ShutdownMode, callback);
}
template <typename ... _AttributeExtensions>
-void ConsumerProxy<_AttributeExtensions...>::UnRegisterSession(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SeatID, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode) {
- delegate_->UnRegisterSession(SessionName, SessionOwner, SeatID, callStatus, ErrorCode);
+void ConsumerProxy<_AttributeExtensions...>::RegisterShutdownClient(const std::string& BusName, const std::string& ObjName, const uint32_t& ShutdownMode, const uint32_t& TimeoutMs, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode) {
+ delegate_->RegisterShutdownClient(BusName, ObjName, ShutdownMode, TimeoutMs, callStatus, ErrorCode);
}
template <typename ... _AttributeExtensions>
-std::future<CommonAPI::CallStatus> ConsumerProxy<_AttributeExtensions...>::UnRegisterSessionAsync(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SeatID, UnRegisterSessionAsyncCallback callback) {
- return delegate_->UnRegisterSessionAsync(SessionName, SessionOwner, SeatID, callback);
+std::future<CommonAPI::CallStatus> ConsumerProxy<_AttributeExtensions...>::RegisterShutdownClientAsync(const std::string& BusName, const std::string& ObjName, const uint32_t& ShutdownMode, const uint32_t& TimeoutMs, RegisterShutdownClientAsyncCallback callback) {
+ return delegate_->RegisterShutdownClientAsync(BusName, ObjName, ShutdownMode, TimeoutMs, callback);
}
template <typename ... _AttributeExtensions>
-void ConsumerProxy<_AttributeExtensions...>::GetAppHealthCount(CommonAPI::CallStatus& callStatus, uint32_t& Count) {
- delegate_->GetAppHealthCount(callStatus, Count);
+void ConsumerProxy<_AttributeExtensions...>::GetNodeState(CommonAPI::CallStatus& callStatus, int32_t& ErrorCode, int32_t& NodeStateId) {
+ delegate_->GetNodeState(callStatus, ErrorCode, NodeStateId);
}
template <typename ... _AttributeExtensions>
-std::future<CommonAPI::CallStatus> ConsumerProxy<_AttributeExtensions...>::GetAppHealthCountAsync(GetAppHealthCountAsyncCallback callback) {
- return delegate_->GetAppHealthCountAsync(callback);
+std::future<CommonAPI::CallStatus> ConsumerProxy<_AttributeExtensions...>::GetNodeStateAsync(GetNodeStateAsyncCallback callback) {
+ return delegate_->GetNodeStateAsync(callback);
}
template <typename ... _AttributeExtensions>
-void ConsumerProxy<_AttributeExtensions...>::GetInterfaceVersion(CommonAPI::CallStatus& callStatus, uint32_t& Version) {
- delegate_->GetInterfaceVersion(callStatus, Version);
+void ConsumerProxy<_AttributeExtensions...>::GetSessionState(const std::string& SessionName, const int32_t& SeatID, CommonAPI::CallStatus& callStatus, int32_t& SessionState, int32_t& ErrorCode) {
+ delegate_->GetSessionState(SessionName, SeatID, callStatus, SessionState, ErrorCode);
}
template <typename ... _AttributeExtensions>
-std::future<CommonAPI::CallStatus> ConsumerProxy<_AttributeExtensions...>::GetInterfaceVersionAsync(GetInterfaceVersionAsyncCallback callback) {
- return delegate_->GetInterfaceVersionAsync(callback);
+std::future<CommonAPI::CallStatus> ConsumerProxy<_AttributeExtensions...>::GetSessionStateAsync(const std::string& SessionName, const int32_t& SeatID, GetSessionStateAsyncCallback callback) {
+ return delegate_->GetSessionStateAsync(SessionName, SeatID, callback);
}
template <typename ... _AttributeExtensions>
-void ConsumerProxy<_AttributeExtensions...>::LifecycleRequestComplete(const uint32_t& RequestId, const int32_t& Status, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode) {
- delegate_->LifecycleRequestComplete(RequestId, Status, callStatus, ErrorCode);
+void ConsumerProxy<_AttributeExtensions...>::SetSessionState(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SessionState, const int32_t& SeatID, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode) {
+ delegate_->SetSessionState(SessionName, SessionOwner, SessionState, SeatID, callStatus, ErrorCode);
}
template <typename ... _AttributeExtensions>
-std::future<CommonAPI::CallStatus> ConsumerProxy<_AttributeExtensions...>::LifecycleRequestCompleteAsync(const uint32_t& RequestId, const int32_t& Status, LifecycleRequestCompleteAsyncCallback callback) {
- return delegate_->LifecycleRequestCompleteAsync(RequestId, Status, callback);
+std::future<CommonAPI::CallStatus> ConsumerProxy<_AttributeExtensions...>::SetSessionStateAsync(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SessionState, const int32_t& SeatID, SetSessionStateAsyncCallback callback) {
+ return delegate_->SetSessionStateAsync(SessionName, SessionOwner, SessionState, SeatID, callback);
}
@@ -597,23 +583,22 @@ CommonAPI::InterfaceVersionAttribute& ConsumerProxy<_AttributeExtensions...>::ge
return delegate_->getInterfaceVersionAttribute();
}
-} // namespace Consumer
} // namespace NodeStateManager
} // namespace genivi
} // namespace org
namespace CommonAPI {
template<template<typename > class _AttributeExtension>
-struct DefaultAttributeProxyFactoryHelper<org::genivi::NodeStateManager::Consumer::ConsumerProxy,
+struct DefaultAttributeProxyFactoryHelper<org::genivi::NodeStateManager::ConsumerProxy,
_AttributeExtension> {
- typedef typename org::genivi::NodeStateManager::Consumer::ConsumerProxy<
- org::genivi::NodeStateManager::Consumer::ConsumerExtensions::RestartReasonAttributeExtension<_AttributeExtension>,
- org::genivi::NodeStateManager::Consumer::ConsumerExtensions::ShutdownReasonAttributeExtension<_AttributeExtension>,
- org::genivi::NodeStateManager::Consumer::ConsumerExtensions::WakeUpReasonAttributeExtension<_AttributeExtension>,
- org::genivi::NodeStateManager::Consumer::ConsumerExtensions::BootModeAttributeExtension<_AttributeExtension>
+ typedef typename org::genivi::NodeStateManager::ConsumerProxy<
+ org::genivi::NodeStateManager::ConsumerExtensions::BootModeAttributeExtension<_AttributeExtension>,
+ org::genivi::NodeStateManager::ConsumerExtensions::RestartReasonAttributeExtension<_AttributeExtension>,
+ org::genivi::NodeStateManager::ConsumerExtensions::ShutdownReasonAttributeExtension<_AttributeExtension>,
+ org::genivi::NodeStateManager::ConsumerExtensions::WakeUpReasonAttributeExtension<_AttributeExtension>
> class_t;
};
}
-#endif // ORG_GENIVI_NODESTATEMANAGER_CONSUMER_Consumer_PROXY_H_
+#endif // ORG_GENIVI_NODESTATEMANAGER_Consumer_PROXY_H_
diff --git a/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/Consumer/ConsumerProxyBase.h b/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/ConsumerProxyBase.h
index 076f5cc..a226480 100644
--- a/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/Consumer/ConsumerProxyBase.h
+++ b/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/ConsumerProxyBase.h
@@ -1,25 +1,12 @@
/*
* This file was generated by the CommonAPI Generators.
*
- * Copyright (C) 2012, BMW AG
+ * Copyright (C) 2013, BMW AG
*
- * This file is part of GENIVI Project AudioManager.
- *
- * Contributions are licensed to the GENIVI Alliance under one or more
- * Contribution License Agreements.
- *
- * \copyright
- * 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/.
- *
- *
- * \author Aleksandar Donchev, aleksander.donchev@partner.bmw.de BMW 2013
- *
- * For further information see http://www.genivi.org/.
+ * \author Christian Linke, christian.linke@bmw.de BMW 2012,2013
*/
- #ifndef ORG_GENIVI_NODESTATEMANAGER_CONSUMER_Consumer_PROXY_BASE_H_
- #define ORG_GENIVI_NODESTATEMANAGER_CONSUMER_Consumer_PROXY_BASE_H_
+ #ifndef ORG_GENIVI_NODESTATEMANAGER_Consumer_PROXY_BASE_H_
+ #define ORG_GENIVI_NODESTATEMANAGER_Consumer_PROXY_BASE_H_
#include "Consumer.h"
@@ -39,76 +26,74 @@
namespace org {
namespace genivi {
namespace NodeStateManager {
- namespace Consumer {
class ConsumerProxyBase: virtual public CommonAPI::Proxy {
public:
- typedef CommonAPI::ObservableAttribute<int32_t> RestartReasonAttribute;
- typedef CommonAPI::ObservableAttribute<int32_t> ShutdownReasonAttribute;
- typedef CommonAPI::ObservableAttribute<int32_t> WakeUpReasonAttribute;
- typedef CommonAPI::ObservableAttribute<int32_t> BootModeAttribute;
- typedef CommonAPI::Event<int32_t> NodeStateEvent;
+ typedef CommonAPI::ReadonlyAttribute<int32_t> BootModeAttribute;
+ typedef CommonAPI::ReadonlyAttribute<int32_t> RestartReasonAttribute;
+ typedef CommonAPI::ReadonlyAttribute<int32_t> ShutdownReasonAttribute;
+ typedef CommonAPI::ReadonlyAttribute<int32_t> WakeUpReasonAttribute;
typedef CommonAPI::Event<int32_t> NodeApplicationModeEvent;
typedef CommonAPI::Event<std::string, int32_t, int32_t> SessionStateChangedEvent;
- typedef std::function<void(const CommonAPI::CallStatus&, const int32_t&, const int32_t&)> GetNodeStateAsyncCallback;
- typedef std::function<void(const CommonAPI::CallStatus&, const int32_t&)> SetSessionStateAsyncCallback;
- typedef std::function<void(const CommonAPI::CallStatus&, const int32_t&, const int32_t&)> GetSessionStateAsyncCallback;
- typedef std::function<void(const CommonAPI::CallStatus&, const int32_t&, const int32_t&)> GetApplicationModeAsyncCallback;
- typedef std::function<void(const CommonAPI::CallStatus&, const int32_t&)> RegisterShutdownClientAsyncCallback;
- typedef std::function<void(const CommonAPI::CallStatus&, const int32_t&)> UnRegisterShutdownClientAsyncCallback;
- typedef std::function<void(const CommonAPI::CallStatus&, const int32_t&)> RegisterSessionAsyncCallback;
- typedef std::function<void(const CommonAPI::CallStatus&, const int32_t&)> UnRegisterSessionAsyncCallback;
+ typedef CommonAPI::Event<int32_t> NodeStateEvent;
typedef std::function<void(const CommonAPI::CallStatus&, const uint32_t&)> GetAppHealthCountAsyncCallback;
- typedef std::function<void(const CommonAPI::CallStatus&, const uint32_t&)> GetInterfaceVersionAsyncCallback;
typedef std::function<void(const CommonAPI::CallStatus&, const int32_t&)> LifecycleRequestCompleteAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&, const uint32_t&)> GetInterfaceVersionAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&, const int32_t&, const int32_t&)> GetApplicationModeAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&, const int32_t&)> UnRegisterSessionAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&, const int32_t&)> RegisterSessionAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&, const int32_t&)> UnRegisterShutdownClientAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&, const int32_t&)> RegisterShutdownClientAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&, const int32_t&, const int32_t&)> GetNodeStateAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&, const int32_t&, const int32_t&)> GetSessionStateAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&, const int32_t&)> SetSessionStateAsyncCallback;
+ virtual BootModeAttribute& getBootModeAttribute() = 0;
virtual RestartReasonAttribute& getRestartReasonAttribute() = 0;
virtual ShutdownReasonAttribute& getShutdownReasonAttribute() = 0;
virtual WakeUpReasonAttribute& getWakeUpReasonAttribute() = 0;
- virtual BootModeAttribute& getBootModeAttribute() = 0;
- virtual NodeStateEvent& getNodeStateEvent() = 0;
virtual NodeApplicationModeEvent& getNodeApplicationModeEvent() = 0;
virtual SessionStateChangedEvent& getSessionStateChangedEvent() = 0;
+ virtual NodeStateEvent& getNodeStateEvent() = 0;
- virtual void GetNodeState(CommonAPI::CallStatus& callStatus, int32_t& NodeStateId, int32_t& ErrorCode) = 0;
- virtual std::future<CommonAPI::CallStatus> GetNodeStateAsync(GetNodeStateAsyncCallback callback) = 0;
+ virtual void GetAppHealthCount(CommonAPI::CallStatus& callStatus, uint32_t& Count) = 0;
+ virtual std::future<CommonAPI::CallStatus> GetAppHealthCountAsync(GetAppHealthCountAsyncCallback callback) = 0;
- virtual void SetSessionState(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SeatID, const int32_t& SessionState, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode) = 0;
- virtual std::future<CommonAPI::CallStatus> SetSessionStateAsync(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SeatID, const int32_t& SessionState, SetSessionStateAsyncCallback callback) = 0;
+ virtual void LifecycleRequestComplete(const uint32_t& RequestId, const int32_t& Status, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode) = 0;
+ virtual std::future<CommonAPI::CallStatus> LifecycleRequestCompleteAsync(const uint32_t& RequestId, const int32_t& Status, LifecycleRequestCompleteAsyncCallback callback) = 0;
- virtual void GetSessionState(const std::string& SessionName, const int32_t& SeatID, CommonAPI::CallStatus& callStatus, int32_t& SessionState, int32_t& ErrorCode) = 0;
- virtual std::future<CommonAPI::CallStatus> GetSessionStateAsync(const std::string& SessionName, const int32_t& SeatID, GetSessionStateAsyncCallback callback) = 0;
+ virtual void GetInterfaceVersion(CommonAPI::CallStatus& callStatus, uint32_t& Version) = 0;
+ virtual std::future<CommonAPI::CallStatus> GetInterfaceVersionAsync(GetInterfaceVersionAsyncCallback callback) = 0;
- virtual void GetApplicationMode(CommonAPI::CallStatus& callStatus, int32_t& ApplicationModeId, int32_t& ErrorCode) = 0;
+ virtual void GetApplicationMode(CommonAPI::CallStatus& callStatus, int32_t& ErrorCode, int32_t& ApplicationModeId) = 0;
virtual std::future<CommonAPI::CallStatus> GetApplicationModeAsync(GetApplicationModeAsyncCallback callback) = 0;
- virtual void RegisterShutdownClient(const std::string& BusName, const std::string& ObjName, const uint32_t& ShutdownMode, const uint32_t& TimeoutMs, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode) = 0;
- virtual std::future<CommonAPI::CallStatus> RegisterShutdownClientAsync(const std::string& BusName, const std::string& ObjName, const uint32_t& ShutdownMode, const uint32_t& TimeoutMs, RegisterShutdownClientAsyncCallback callback) = 0;
-
- virtual void UnRegisterShutdownClient(const std::string& BusName, const std::string& ObjName, const uint32_t& ShutdownMode, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode) = 0;
- virtual std::future<CommonAPI::CallStatus> UnRegisterShutdownClientAsync(const std::string& BusName, const std::string& ObjName, const uint32_t& ShutdownMode, UnRegisterShutdownClientAsyncCallback callback) = 0;
+ virtual void UnRegisterSession(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SeatID, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode) = 0;
+ virtual std::future<CommonAPI::CallStatus> UnRegisterSessionAsync(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SeatID, UnRegisterSessionAsyncCallback callback) = 0;
virtual void RegisterSession(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SeatID, const int32_t& SessionState, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode) = 0;
virtual std::future<CommonAPI::CallStatus> RegisterSessionAsync(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SeatID, const int32_t& SessionState, RegisterSessionAsyncCallback callback) = 0;
- virtual void UnRegisterSession(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SeatID, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode) = 0;
- virtual std::future<CommonAPI::CallStatus> UnRegisterSessionAsync(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SeatID, UnRegisterSessionAsyncCallback callback) = 0;
+ virtual void UnRegisterShutdownClient(const std::string& BusName, const std::string& ObjName, const uint32_t& ShutdownMode, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode) = 0;
+ virtual std::future<CommonAPI::CallStatus> UnRegisterShutdownClientAsync(const std::string& BusName, const std::string& ObjName, const uint32_t& ShutdownMode, UnRegisterShutdownClientAsyncCallback callback) = 0;
- virtual void GetAppHealthCount(CommonAPI::CallStatus& callStatus, uint32_t& Count) = 0;
- virtual std::future<CommonAPI::CallStatus> GetAppHealthCountAsync(GetAppHealthCountAsyncCallback callback) = 0;
+ virtual void RegisterShutdownClient(const std::string& BusName, const std::string& ObjName, const uint32_t& ShutdownMode, const uint32_t& TimeoutMs, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode) = 0;
+ virtual std::future<CommonAPI::CallStatus> RegisterShutdownClientAsync(const std::string& BusName, const std::string& ObjName, const uint32_t& ShutdownMode, const uint32_t& TimeoutMs, RegisterShutdownClientAsyncCallback callback) = 0;
- virtual void GetInterfaceVersion(CommonAPI::CallStatus& callStatus, uint32_t& Version) = 0;
- virtual std::future<CommonAPI::CallStatus> GetInterfaceVersionAsync(GetInterfaceVersionAsyncCallback callback) = 0;
+ virtual void GetNodeState(CommonAPI::CallStatus& callStatus, int32_t& ErrorCode, int32_t& NodeStateId) = 0;
+ virtual std::future<CommonAPI::CallStatus> GetNodeStateAsync(GetNodeStateAsyncCallback callback) = 0;
- virtual void LifecycleRequestComplete(const uint32_t& RequestId, const int32_t& Status, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode) = 0;
- virtual std::future<CommonAPI::CallStatus> LifecycleRequestCompleteAsync(const uint32_t& RequestId, const int32_t& Status, LifecycleRequestCompleteAsyncCallback callback) = 0;
+ virtual void GetSessionState(const std::string& SessionName, const int32_t& SeatID, CommonAPI::CallStatus& callStatus, int32_t& SessionState, int32_t& ErrorCode) = 0;
+ virtual std::future<CommonAPI::CallStatus> GetSessionStateAsync(const std::string& SessionName, const int32_t& SeatID, GetSessionStateAsyncCallback callback) = 0;
+
+ virtual void SetSessionState(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SessionState, const int32_t& SeatID, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode) = 0;
+ virtual std::future<CommonAPI::CallStatus> SetSessionStateAsync(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SessionState, const int32_t& SeatID, SetSessionStateAsyncCallback callback) = 0;
};
- } // namespace Consumer
} // namespace NodeStateManager
} // namespace genivi
} // namespace org
- #endif // ORG_GENIVI_NODESTATEMANAGER_CONSUMER_Consumer_PROXY_BASE_H_
+ #endif // ORG_GENIVI_NODESTATEMANAGER_Consumer_PROXY_BASE_H_
diff --git a/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/Consumer/ConsumerStub.h b/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/ConsumerStub.h
index 02fc7ae..4d4aebb 100644
--- a/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/Consumer/ConsumerStub.h
+++ b/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/ConsumerStub.h
@@ -1,25 +1,12 @@
/*
* This file was generated by the CommonAPI Generators.
*
- * Copyright (C) 2012, BMW AG
+ * Copyright (C) 2013, BMW AG
*
- * This file is part of GENIVI Project AudioManager.
- *
- * Contributions are licensed to the GENIVI Alliance under one or more
- * Contribution License Agreements.
- *
- * \copyright
- * 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/.
- *
- *
- * \author Aleksandar Donchev, aleksander.donchev@partner.bmw.de BMW 2013
- *
- * For further information see http://www.genivi.org/.
+ * \author Christian Linke, christian.linke@bmw.de BMW 2012,2013
*/
-#ifndef ORG_GENIVI_NODESTATEMANAGER_CONSUMER_Consumer_STUB_H_
-#define ORG_GENIVI_NODESTATEMANAGER_CONSUMER_Consumer_STUB_H_
+#ifndef ORG_GENIVI_NODESTATEMANAGER_Consumer_STUB_H_
+#define ORG_GENIVI_NODESTATEMANAGER_Consumer_STUB_H_
@@ -36,7 +23,6 @@
namespace org {
namespace genivi {
namespace NodeStateManager {
-namespace Consumer {
/**
* Receives messages from remote and handles all dispatching of deserialized calls
@@ -46,21 +32,8 @@ namespace Consumer {
*/
class ConsumerStubAdapter: virtual public CommonAPI::StubAdapter, public Consumer {
public:
- ///Notifies all remote listeners about a change of value of the attribute RestartReason.
- virtual void fireRestartReasonAttributeChanged(const int32_t& RestartReason) = 0;
- ///Notifies all remote listeners about a change of value of the attribute ShutdownReason.
- virtual void fireShutdownReasonAttributeChanged(const int32_t& ShutdownReason) = 0;
- ///Notifies all remote listeners about a change of value of the attribute WakeUpReason.
- virtual void fireWakeUpReasonAttributeChanged(const int32_t& WakeUpReason) = 0;
- ///Notifies all remote listeners about a change of value of the attribute BootMode.
- virtual void fireBootModeAttributeChanged(const int32_t& BootMode) = 0;
/**
- * Sends a broadcast event for NodeState. Should not be called directly.
- * Instead, the "fire<broadcastName>Event" methods of the stub should be used.
- */
- virtual void fireNodeStateEvent(const int32_t& NodeState) = 0;
- /**
* Sends a broadcast event for NodeApplicationMode. Should not be called directly.
* Instead, the "fire<broadcastName>Event" methods of the stub should be used.
*/
@@ -70,6 +43,11 @@ class ConsumerStubAdapter: virtual public CommonAPI::StubAdapter, public Consume
* Instead, the "fire<broadcastName>Event" methods of the stub should be used.
*/
virtual void fireSessionStateChangedEvent(const std::string& SessionStateName, const int32_t& SeatID, const int32_t& SessionState) = 0;
+ /**
+ * Sends a broadcast event for NodeState. Should not be called directly.
+ * Instead, the "fire<broadcastName>Event" methods of the stub should be used.
+ */
+ virtual void fireNodeStateEvent(const int32_t& NodeState) = 0;
};
@@ -89,6 +67,11 @@ class ConsumerStubRemoteEvent {
public:
virtual ~ConsumerStubRemoteEvent() { }
+ /// Verification callback for remote set requests on the attribute BootMode.
+ virtual bool onRemoteSetBootModeAttribute(int32_t BootMode) = 0;
+ /// Action callback for remote set requests on the attribute BootMode.
+ virtual void onRemoteBootModeAttributeChanged() = 0;
+
/// Verification callback for remote set requests on the attribute RestartReason.
virtual bool onRemoteSetRestartReasonAttribute(int32_t RestartReason) = 0;
/// Action callback for remote set requests on the attribute RestartReason.
@@ -104,11 +87,6 @@ class ConsumerStubRemoteEvent {
/// Action callback for remote set requests on the attribute WakeUpReason.
virtual void onRemoteWakeUpReasonAttributeChanged() = 0;
- /// Verification callback for remote set requests on the attribute BootMode.
- virtual bool onRemoteSetBootModeAttribute(int32_t BootMode) = 0;
- /// Action callback for remote set requests on the attribute BootMode.
- virtual void onRemoteBootModeAttributeChanged() = 0;
-
};
@@ -122,49 +100,48 @@ class ConsumerStub : public CommonAPI::Stub<ConsumerStubAdapter , ConsumerStubRe
public:
virtual ~ConsumerStub() { }
+ /// Provides getter access to the attribute BootMode.
+ virtual const int32_t& getBootModeAttribute() = 0;
/// Provides getter access to the attribute RestartReason.
virtual const int32_t& getRestartReasonAttribute() = 0;
/// Provides getter access to the attribute ShutdownReason.
virtual const int32_t& getShutdownReasonAttribute() = 0;
/// Provides getter access to the attribute WakeUpReason.
virtual const int32_t& getWakeUpReasonAttribute() = 0;
- /// Provides getter access to the attribute BootMode.
- virtual const int32_t& getBootModeAttribute() = 0;
- /// This is the method that will be called on remote calls on the method GetNodeState.
- virtual void GetNodeState(int32_t& NodeStateId, int32_t& ErrorCode) = 0;
- /// This is the method that will be called on remote calls on the method SetSessionState.
- virtual void SetSessionState(std::string SessionName, std::string SessionOwner, int32_t SeatID, int32_t SessionState, int32_t& ErrorCode) = 0;
- /// This is the method that will be called on remote calls on the method GetSessionState.
- virtual void GetSessionState(std::string SessionName, int32_t SeatID, int32_t& SessionState, int32_t& ErrorCode) = 0;
- /// This is the method that will be called on remote calls on the method GetApplicationMode.
- virtual void GetApplicationMode(int32_t& ApplicationModeId, int32_t& ErrorCode) = 0;
- /// This is the method that will be called on remote calls on the method RegisterShutdownClient.
- virtual void RegisterShutdownClient(std::string BusName, std::string ObjName, uint32_t ShutdownMode, uint32_t TimeoutMs, int32_t& ErrorCode) = 0;
- /// This is the method that will be called on remote calls on the method UnRegisterShutdownClient.
- virtual void UnRegisterShutdownClient(std::string BusName, std::string ObjName, uint32_t ShutdownMode, int32_t& ErrorCode) = 0;
- /// This is the method that will be called on remote calls on the method RegisterSession.
- virtual void RegisterSession(std::string SessionName, std::string SessionOwner, int32_t SeatID, int32_t SessionState, int32_t& ErrorCode) = 0;
- /// This is the method that will be called on remote calls on the method UnRegisterSession.
- virtual void UnRegisterSession(std::string SessionName, std::string SessionOwner, int32_t SeatID, int32_t& ErrorCode) = 0;
/// This is the method that will be called on remote calls on the method GetAppHealthCount.
virtual void GetAppHealthCount(uint32_t& Count) = 0;
- /// This is the method that will be called on remote calls on the method GetInterfaceVersion.
- virtual void GetInterfaceVersion(uint32_t& Version) = 0;
/// This is the method that will be called on remote calls on the method LifecycleRequestComplete.
virtual void LifecycleRequestComplete(uint32_t RequestId, int32_t Status, int32_t& ErrorCode) = 0;
+ /// This is the method that will be called on remote calls on the method GetInterfaceVersion.
+ virtual void GetInterfaceVersion(uint32_t& Version) = 0;
+ /// This is the method that will be called on remote calls on the method GetApplicationMode.
+ virtual void GetApplicationMode(int32_t& ErrorCode, int32_t& ApplicationModeId) = 0;
+ /// This is the method that will be called on remote calls on the method UnRegisterSession.
+ virtual void UnRegisterSession(std::string SessionName, std::string SessionOwner, int32_t SeatID, int32_t& ErrorCode) = 0;
+ /// This is the method that will be called on remote calls on the method RegisterSession.
+ virtual void RegisterSession(std::string SessionName, std::string SessionOwner, int32_t SeatID, int32_t SessionState, int32_t& ErrorCode) = 0;
+ /// This is the method that will be called on remote calls on the method UnRegisterShutdownClient.
+ virtual void UnRegisterShutdownClient(std::string BusName, std::string ObjName, uint32_t ShutdownMode, int32_t& ErrorCode) = 0;
+ /// This is the method that will be called on remote calls on the method RegisterShutdownClient.
+ virtual void RegisterShutdownClient(std::string BusName, std::string ObjName, uint32_t ShutdownMode, uint32_t TimeoutMs, int32_t& ErrorCode) = 0;
+ /// This is the method that will be called on remote calls on the method GetNodeState.
+ virtual void GetNodeState(int32_t& ErrorCode, int32_t& NodeStateId) = 0;
+ /// This is the method that will be called on remote calls on the method GetSessionState.
+ virtual void GetSessionState(std::string SessionName, int32_t SeatID, int32_t& SessionState, int32_t& ErrorCode) = 0;
+ /// This is the method that will be called on remote calls on the method SetSessionState.
+ virtual void SetSessionState(std::string SessionName, std::string SessionOwner, int32_t SessionState, int32_t SeatID, int32_t& ErrorCode) = 0;
- /// Sends a broadcast event for NodeState.
- virtual void fireNodeStateEvent(const int32_t& NodeState) = 0;
/// Sends a broadcast event for NodeApplicationMode.
virtual void fireNodeApplicationModeEvent(const int32_t& ApplicationModeId) = 0;
/// Sends a broadcast event for SessionStateChanged.
virtual void fireSessionStateChangedEvent(const std::string& SessionStateName, const int32_t& SeatID, const int32_t& SessionState) = 0;
+ /// Sends a broadcast event for NodeState.
+ virtual void fireNodeStateEvent(const int32_t& NodeState) = 0;
};
-} // namespace Consumer
} // namespace NodeStateManager
} // namespace genivi
} // namespace org
-#endif // ORG_GENIVI_NODESTATEMANAGER_CONSUMER_Consumer_STUB_H_
+#endif // ORG_GENIVI_NODESTATEMANAGER_Consumer_STUB_H_
diff --git a/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/Consumer/ConsumerStubDefault.cpp b/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/ConsumerStubDefault.cpp
index f923d1d..2cacb2f 100644
--- a/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/Consumer/ConsumerStubDefault.cpp
+++ b/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/ConsumerStubDefault.cpp
@@ -1,29 +1,15 @@
/*
* This file was generated by the CommonAPI Generators.
*
- * Copyright (C) 2012, BMW AG
+ * Copyright (C) 2013, BMW AG
*
- * This file is part of GENIVI Project AudioManager.
- *
- * Contributions are licensed to the GENIVI Alliance under one or more
- * Contribution License Agreements.
- *
- * \copyright
- * 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/.
- *
- *
- * \author Aleksandar Donchev, aleksander.donchev@partner.bmw.de BMW 2013
- *
- * For further information see http://www.genivi.org/.
+ * \author Christian Linke, christian.linke@bmw.de BMW 2012,2013
*/
-#include <org/genivi/NodeStateManager/Consumer/ConsumerStubDefault.h>
+#include <org/genivi/NodeStateManager/ConsumerStubDefault.h>
namespace org {
namespace genivi {
namespace NodeStateManager {
-namespace Consumer {
ConsumerStubDefault::ConsumerStubDefault():
remoteEventHandler_(this) {
@@ -34,14 +20,45 @@ ConsumerStubRemoteEvent* ConsumerStubDefault::initStubAdapter(const std::shared_
return &remoteEventHandler_;
}
+const int32_t& ConsumerStubDefault::getBootModeAttribute() {
+ return bootModeAttributeValue_;
+}
+
+void ConsumerStubDefault::setBootModeAttribute(int32_t value) {
+ trySetBootModeAttribute(std::move(value));
+}
+
+void ConsumerStubDefault::onRemoteBootModeAttributeChanged() {
+ // No operation in default
+}
+
+bool ConsumerStubDefault::trySetBootModeAttribute(int32_t value) {
+ if (!validateBootModeAttributeRequestedValue(value))
+ return false;
+
+ const bool valueChanged = (bootModeAttributeValue_ != value);
+ bootModeAttributeValue_ = std::move(value);
+ return valueChanged;
+}
+
+bool ConsumerStubDefault::validateBootModeAttributeRequestedValue(const int32_t& value) {
+ return true;
+}
+
+bool ConsumerStubDefault::RemoteEventHandler::onRemoteSetBootModeAttribute(int32_t value) {
+ return defaultStub_->trySetBootModeAttribute(std::move(value));
+}
+
+void ConsumerStubDefault::RemoteEventHandler::onRemoteBootModeAttributeChanged() {
+ defaultStub_->onRemoteBootModeAttributeChanged();
+}
+
const int32_t& ConsumerStubDefault::getRestartReasonAttribute() {
return restartReasonAttributeValue_;
}
void ConsumerStubDefault::setRestartReasonAttribute(int32_t value) {
- const bool valueChanged = trySetRestartReasonAttribute(std::move(value));
- if (valueChanged)
- stubAdapter_->fireRestartReasonAttributeChanged(restartReasonAttributeValue_);
+ trySetRestartReasonAttribute(std::move(value));
}
void ConsumerStubDefault::onRemoteRestartReasonAttributeChanged() {
@@ -74,9 +91,7 @@ const int32_t& ConsumerStubDefault::getShutdownReasonAttribute() {
}
void ConsumerStubDefault::setShutdownReasonAttribute(int32_t value) {
- const bool valueChanged = trySetShutdownReasonAttribute(std::move(value));
- if (valueChanged)
- stubAdapter_->fireShutdownReasonAttributeChanged(shutdownReasonAttributeValue_);
+ trySetShutdownReasonAttribute(std::move(value));
}
void ConsumerStubDefault::onRemoteShutdownReasonAttributeChanged() {
@@ -109,9 +124,7 @@ const int32_t& ConsumerStubDefault::getWakeUpReasonAttribute() {
}
void ConsumerStubDefault::setWakeUpReasonAttribute(int32_t value) {
- const bool valueChanged = trySetWakeUpReasonAttribute(std::move(value));
- if (valueChanged)
- stubAdapter_->fireWakeUpReasonAttributeChanged(wakeUpReasonAttributeValue_);
+ trySetWakeUpReasonAttribute(std::move(value));
}
void ConsumerStubDefault::onRemoteWakeUpReasonAttributeChanged() {
@@ -139,59 +152,28 @@ void ConsumerStubDefault::RemoteEventHandler::onRemoteWakeUpReasonAttributeChang
defaultStub_->onRemoteWakeUpReasonAttributeChanged();
}
-const int32_t& ConsumerStubDefault::getBootModeAttribute() {
- return bootModeAttributeValue_;
-}
-void ConsumerStubDefault::setBootModeAttribute(int32_t value) {
- const bool valueChanged = trySetBootModeAttribute(std::move(value));
- if (valueChanged)
- stubAdapter_->fireBootModeAttributeChanged(bootModeAttributeValue_);
-}
-
-void ConsumerStubDefault::onRemoteBootModeAttributeChanged() {
+void ConsumerStubDefault::GetAppHealthCount(uint32_t& Count) {
// No operation in default
}
-bool ConsumerStubDefault::trySetBootModeAttribute(int32_t value) {
- if (!validateBootModeAttributeRequestedValue(value))
- return false;
-
- const bool valueChanged = (bootModeAttributeValue_ != value);
- bootModeAttributeValue_ = std::move(value);
- return valueChanged;
-}
-
-bool ConsumerStubDefault::validateBootModeAttributeRequestedValue(const int32_t& value) {
- return true;
-}
-
-bool ConsumerStubDefault::RemoteEventHandler::onRemoteSetBootModeAttribute(int32_t value) {
- return defaultStub_->trySetBootModeAttribute(std::move(value));
-}
-
-void ConsumerStubDefault::RemoteEventHandler::onRemoteBootModeAttributeChanged() {
- defaultStub_->onRemoteBootModeAttributeChanged();
-}
-
-
-void ConsumerStubDefault::GetNodeState(int32_t& NodeStateId, int32_t& ErrorCode) {
+void ConsumerStubDefault::LifecycleRequestComplete(uint32_t RequestId, int32_t Status, int32_t& ErrorCode) {
// No operation in default
}
-void ConsumerStubDefault::SetSessionState(std::string SessionName, std::string SessionOwner, int32_t SeatID, int32_t SessionState, int32_t& ErrorCode) {
+void ConsumerStubDefault::GetInterfaceVersion(uint32_t& Version) {
// No operation in default
}
-void ConsumerStubDefault::GetSessionState(std::string SessionName, int32_t SeatID, int32_t& SessionState, int32_t& ErrorCode) {
+void ConsumerStubDefault::GetApplicationMode(int32_t& ErrorCode, int32_t& ApplicationModeId) {
// No operation in default
}
-void ConsumerStubDefault::GetApplicationMode(int32_t& ApplicationModeId, int32_t& ErrorCode) {
+void ConsumerStubDefault::UnRegisterSession(std::string SessionName, std::string SessionOwner, int32_t SeatID, int32_t& ErrorCode) {
// No operation in default
}
-void ConsumerStubDefault::RegisterShutdownClient(std::string BusName, std::string ObjName, uint32_t ShutdownMode, uint32_t TimeoutMs, int32_t& ErrorCode) {
+void ConsumerStubDefault::RegisterSession(std::string SessionName, std::string SessionOwner, int32_t SeatID, int32_t SessionState, int32_t& ErrorCode) {
// No operation in default
}
@@ -199,42 +181,37 @@ void ConsumerStubDefault::UnRegisterShutdownClient(std::string BusName, std::str
// No operation in default
}
-void ConsumerStubDefault::RegisterSession(std::string SessionName, std::string SessionOwner, int32_t SeatID, int32_t SessionState, int32_t& ErrorCode) {
- // No operation in default
-}
-
-void ConsumerStubDefault::UnRegisterSession(std::string SessionName, std::string SessionOwner, int32_t SeatID, int32_t& ErrorCode) {
+void ConsumerStubDefault::RegisterShutdownClient(std::string BusName, std::string ObjName, uint32_t ShutdownMode, uint32_t TimeoutMs, int32_t& ErrorCode) {
// No operation in default
}
-void ConsumerStubDefault::GetAppHealthCount(uint32_t& Count) {
+void ConsumerStubDefault::GetNodeState(int32_t& ErrorCode, int32_t& NodeStateId) {
// No operation in default
}
-void ConsumerStubDefault::GetInterfaceVersion(uint32_t& Version) {
+void ConsumerStubDefault::GetSessionState(std::string SessionName, int32_t SeatID, int32_t& SessionState, int32_t& ErrorCode) {
// No operation in default
}
-void ConsumerStubDefault::LifecycleRequestComplete(uint32_t RequestId, int32_t Status, int32_t& ErrorCode) {
+void ConsumerStubDefault::SetSessionState(std::string SessionName, std::string SessionOwner, int32_t SessionState, int32_t SeatID, int32_t& ErrorCode) {
// No operation in default
}
-void ConsumerStubDefault::fireNodeStateEvent(const int32_t& NodeState) {
- stubAdapter_->fireNodeStateEvent(NodeState);
-}
void ConsumerStubDefault::fireNodeApplicationModeEvent(const int32_t& ApplicationModeId) {
stubAdapter_->fireNodeApplicationModeEvent(ApplicationModeId);
}
void ConsumerStubDefault::fireSessionStateChangedEvent(const std::string& SessionStateName, const int32_t& SeatID, const int32_t& SessionState) {
stubAdapter_->fireSessionStateChangedEvent(SessionStateName, SeatID, SessionState);
}
+void ConsumerStubDefault::fireNodeStateEvent(const int32_t& NodeState) {
+ stubAdapter_->fireNodeStateEvent(NodeState);
+}
ConsumerStubDefault::RemoteEventHandler::RemoteEventHandler(ConsumerStubDefault* defaultStub):
defaultStub_(defaultStub) {
}
-} // namespace Consumer
} // namespace NodeStateManager
} // namespace genivi
} // namespace org
diff --git a/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/Consumer/ConsumerStubDefault.h b/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/ConsumerStubDefault.h
index 76b7f8c..7cc92f9 100644
--- a/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/Consumer/ConsumerStubDefault.h
+++ b/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/ConsumerStubDefault.h
@@ -1,32 +1,18 @@
/*
* This file was generated by the CommonAPI Generators.
*
- * Copyright (C) 2012, BMW AG
+ * Copyright (C) 2013, BMW AG
*
- * This file is part of GENIVI Project AudioManager.
- *
- * Contributions are licensed to the GENIVI Alliance under one or more
- * Contribution License Agreements.
- *
- * \copyright
- * 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/.
- *
- *
- * \author Aleksandar Donchev, aleksander.donchev@partner.bmw.de BMW 2013
- *
- * For further information see http://www.genivi.org/.
+ * \author Christian Linke, christian.linke@bmw.de BMW 2012,2013
*/
-#ifndef ORG_GENIVI_NODESTATEMANAGER_CONSUMER_Consumer_STUB_DEFAULT_H_
-#define ORG_GENIVI_NODESTATEMANAGER_CONSUMER_Consumer_STUB_DEFAULT_H_
+#ifndef ORG_GENIVI_NODESTATEMANAGER_Consumer_STUB_DEFAULT_H_
+#define ORG_GENIVI_NODESTATEMANAGER_Consumer_STUB_DEFAULT_H_
-#include <org/genivi/NodeStateManager/Consumer/ConsumerStub.h>
+#include <org/genivi/NodeStateManager/ConsumerStub.h>
namespace org {
namespace genivi {
namespace NodeStateManager {
-namespace Consumer {
/**
* Provides a default implementation for ConsumerStubRemoteEvent and
@@ -44,6 +30,9 @@ class ConsumerStubDefault : public ConsumerStub {
ConsumerStubRemoteEvent* initStubAdapter(const std::shared_ptr<ConsumerStubAdapter>& stubAdapter);
+ virtual const int32_t& getBootModeAttribute();
+ virtual void setBootModeAttribute(int32_t value);
+
virtual const int32_t& getRestartReasonAttribute();
virtual void setRestartReasonAttribute(int32_t value);
@@ -53,38 +42,39 @@ class ConsumerStubDefault : public ConsumerStub {
virtual const int32_t& getWakeUpReasonAttribute();
virtual void setWakeUpReasonAttribute(int32_t value);
- virtual const int32_t& getBootModeAttribute();
- virtual void setBootModeAttribute(int32_t value);
+ virtual void GetAppHealthCount(uint32_t& Count);
- virtual void GetNodeState(int32_t& NodeStateId, int32_t& ErrorCode);
+ virtual void LifecycleRequestComplete(uint32_t RequestId, int32_t Status, int32_t& ErrorCode);
- virtual void SetSessionState(std::string SessionName, std::string SessionOwner, int32_t SeatID, int32_t SessionState, int32_t& ErrorCode);
+ virtual void GetInterfaceVersion(uint32_t& Version);
- virtual void GetSessionState(std::string SessionName, int32_t SeatID, int32_t& SessionState, int32_t& ErrorCode);
+ virtual void GetApplicationMode(int32_t& ErrorCode, int32_t& ApplicationModeId);
- virtual void GetApplicationMode(int32_t& ApplicationModeId, int32_t& ErrorCode);
+ virtual void UnRegisterSession(std::string SessionName, std::string SessionOwner, int32_t SeatID, int32_t& ErrorCode);
- virtual void RegisterShutdownClient(std::string BusName, std::string ObjName, uint32_t ShutdownMode, uint32_t TimeoutMs, int32_t& ErrorCode);
+ virtual void RegisterSession(std::string SessionName, std::string SessionOwner, int32_t SeatID, int32_t SessionState, int32_t& ErrorCode);
virtual void UnRegisterShutdownClient(std::string BusName, std::string ObjName, uint32_t ShutdownMode, int32_t& ErrorCode);
- virtual void RegisterSession(std::string SessionName, std::string SessionOwner, int32_t SeatID, int32_t SessionState, int32_t& ErrorCode);
-
- virtual void UnRegisterSession(std::string SessionName, std::string SessionOwner, int32_t SeatID, int32_t& ErrorCode);
+ virtual void RegisterShutdownClient(std::string BusName, std::string ObjName, uint32_t ShutdownMode, uint32_t TimeoutMs, int32_t& ErrorCode);
- virtual void GetAppHealthCount(uint32_t& Count);
+ virtual void GetNodeState(int32_t& ErrorCode, int32_t& NodeStateId);
- virtual void GetInterfaceVersion(uint32_t& Version);
+ virtual void GetSessionState(std::string SessionName, int32_t SeatID, int32_t& SessionState, int32_t& ErrorCode);
- virtual void LifecycleRequestComplete(uint32_t RequestId, int32_t Status, int32_t& ErrorCode);
+ virtual void SetSessionState(std::string SessionName, std::string SessionOwner, int32_t SessionState, int32_t SeatID, int32_t& ErrorCode);
- virtual void fireNodeStateEvent(const int32_t& NodeState);
virtual void fireNodeApplicationModeEvent(const int32_t& ApplicationModeId);
virtual void fireSessionStateChangedEvent(const std::string& SessionStateName, const int32_t& SeatID, const int32_t& SessionState);
+ virtual void fireNodeStateEvent(const int32_t& NodeState);
protected:
+ virtual void onRemoteBootModeAttributeChanged();
+ virtual bool trySetBootModeAttribute(int32_t value);
+ virtual bool validateBootModeAttributeRequestedValue(const int32_t& value);
+
virtual void onRemoteRestartReasonAttributeChanged();
virtual bool trySetRestartReasonAttribute(int32_t value);
virtual bool validateRestartReasonAttributeRequestedValue(const int32_t& value);
@@ -97,16 +87,15 @@ class ConsumerStubDefault : public ConsumerStub {
virtual bool trySetWakeUpReasonAttribute(int32_t value);
virtual bool validateWakeUpReasonAttributeRequestedValue(const int32_t& value);
- virtual void onRemoteBootModeAttributeChanged();
- virtual bool trySetBootModeAttribute(int32_t value);
- virtual bool validateBootModeAttributeRequestedValue(const int32_t& value);
-
private:
class RemoteEventHandler: public ConsumerStubRemoteEvent {
public:
RemoteEventHandler(ConsumerStubDefault* defaultStub);
+ virtual bool onRemoteSetBootModeAttribute(int32_t value);
+ virtual void onRemoteBootModeAttributeChanged();
+
virtual bool onRemoteSetRestartReasonAttribute(int32_t value);
virtual void onRemoteRestartReasonAttributeChanged();
@@ -116,9 +105,6 @@ class ConsumerStubDefault : public ConsumerStub {
virtual bool onRemoteSetWakeUpReasonAttribute(int32_t value);
virtual void onRemoteWakeUpReasonAttributeChanged();
- virtual bool onRemoteSetBootModeAttribute(int32_t value);
- virtual void onRemoteBootModeAttributeChanged();
-
private:
ConsumerStubDefault* defaultStub_;
@@ -127,15 +113,14 @@ class ConsumerStubDefault : public ConsumerStub {
RemoteEventHandler remoteEventHandler_;
std::shared_ptr<ConsumerStubAdapter> stubAdapter_;
+ int32_t bootModeAttributeValue_;
int32_t restartReasonAttributeValue_;
int32_t shutdownReasonAttributeValue_;
int32_t wakeUpReasonAttributeValue_;
- int32_t bootModeAttributeValue_;
};
-} // namespace Consumer
} // namespace NodeStateManager
} // namespace genivi
} // namespace org
-#endif // ORG_GENIVI_NODESTATEMANAGER_CONSUMER_Consumer_STUB_DEFAULT_H_
+#endif // ORG_GENIVI_NODESTATEMANAGER_Consumer_STUB_DEFAULT_H_
diff --git a/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/LifeCycleConsumer.h b/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/LifeCycleConsumer.h
new file mode 100644
index 0000000..674e11b
--- /dev/null
+++ b/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/LifeCycleConsumer.h
@@ -0,0 +1,55 @@
+/*
+* This file was generated by the CommonAPI Generators.
+*
+ * Copyright (C) 2013, BMW AG
+ *
+ * \author Christian Linke, christian.linke@bmw.de BMW 2012,2013
+*/
+#ifndef ORG_GENIVI_NODESTATEMANAGER_Life_Cycle_Consumer_H_
+#define ORG_GENIVI_NODESTATEMANAGER_Life_Cycle_Consumer_H_
+
+
+
+#define COMMONAPI_INTERNAL_COMPILATION
+
+#include <CommonAPI/types.h>
+
+#undef COMMONAPI_INTERNAL_COMPILATION
+
+namespace org {
+namespace genivi {
+namespace NodeStateManager {
+
+class LifeCycleConsumer {
+ public:
+ virtual ~LifeCycleConsumer() { }
+
+ static inline const char* getInterfaceId();
+ static inline CommonAPI::Version getInterfaceVersion();
+};
+
+const char* LifeCycleConsumer::getInterfaceId() {
+ return "org.genivi.NodeStateManager.LifeCycleConsumer";
+}
+
+CommonAPI::Version LifeCycleConsumer::getInterfaceVersion() {
+ return CommonAPI::Version(1, 0);
+}
+
+
+} // namespace NodeStateManager
+} // namespace genivi
+} // namespace org
+
+namespace CommonAPI {
+
+}
+
+
+namespace std {
+ //hashes for types
+
+ //hashes for error types
+}
+
+#endif // ORG_GENIVI_NODESTATEMANAGER_Life_Cycle_Consumer_H_
diff --git a/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/LifeCycleConsumer/LifeCycleConsumer.h b/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/LifeCycleConsumer/LifeCycleConsumer.h
deleted file mode 100644
index d4e071d..0000000
--- a/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/LifeCycleConsumer/LifeCycleConsumer.h
+++ /dev/null
@@ -1,70 +0,0 @@
-/*
-* This file was generated by the CommonAPI Generators.
-*
- * Copyright (C) 2012, BMW AG
- *
- * This file is part of GENIVI Project AudioManager.
- *
- * Contributions are licensed to the GENIVI Alliance under one or more
- * Contribution License Agreements.
- *
- * \copyright
- * 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/.
- *
- *
- * \author Aleksandar Donchev, aleksander.donchev@partner.bmw.de BMW 2013
- *
- * For further information see http://www.genivi.org/.
-*/
-#ifndef ORG_GENIVI_NODESTATEMANAGER_LIFECYCLECONSUMER_Life_Cycle_Consumer_H_
-#define ORG_GENIVI_NODESTATEMANAGER_LIFECYCLECONSUMER_Life_Cycle_Consumer_H_
-
-
-
-#define COMMONAPI_INTERNAL_COMPILATION
-
-#include <CommonAPI/types.h>
-
-#undef COMMONAPI_INTERNAL_COMPILATION
-
-namespace org {
-namespace genivi {
-namespace NodeStateManager {
-namespace LifeCycleConsumer {
-
-class LifeCycleConsumer {
- public:
- virtual ~LifeCycleConsumer() { }
-
- static inline const char* getInterfaceId();
- static inline CommonAPI::Version getInterfaceVersion();
-};
-
-const char* LifeCycleConsumer::getInterfaceId() {
- return "org.genivi.NodeStateManager.LifeCycleConsumer.LifeCycleConsumer";
-}
-
-CommonAPI::Version LifeCycleConsumer::getInterfaceVersion() {
- return CommonAPI::Version(0, 1);
-}
-
-
-} // namespace LifeCycleConsumer
-} // namespace NodeStateManager
-} // namespace genivi
-} // namespace org
-
-namespace CommonAPI {
-
-}
-
-
-namespace std {
- //hashes for types
-
- //hashes for error types
-}
-
-#endif // ORG_GENIVI_NODESTATEMANAGER_LIFECYCLECONSUMER_Life_Cycle_Consumer_H_
diff --git a/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/LifeCycleConsumer/LifeCycleConsumerDBusProxy.cpp b/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/LifeCycleConsumerDBusProxy.cpp
index 5df88da..40f18e6 100644
--- a/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/LifeCycleConsumer/LifeCycleConsumerDBusProxy.cpp
+++ b/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/LifeCycleConsumerDBusProxy.cpp
@@ -1,29 +1,15 @@
/*
* This file was generated by the CommonAPI Generators.
*
- * Copyright (C) 2012, BMW AG
+ * Copyright (C) 2013, BMW AG
*
- * This file is part of GENIVI Project AudioManager.
- *
- * Contributions are licensed to the GENIVI Alliance under one or more
- * Contribution License Agreements.
- *
- * \copyright
- * 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/.
- *
- *
- * \author Aleksandar Donchev, aleksander.donchev@partner.bmw.de BMW 2013
- *
- * For further information see http://www.genivi.org/.
+ * \author Christian Linke, christian.linke@bmw.de BMW 2012,2013
*/
#include "LifeCycleConsumerDBusProxy.h"
namespace org {
namespace genivi {
namespace NodeStateManager {
-namespace LifeCycleConsumer {
std::shared_ptr<CommonAPI::DBus::DBusProxy> createLifeCycleConsumerDBusProxy(
const std::string& commonApiAddress,
@@ -72,11 +58,10 @@ std::future<CommonAPI::CallStatus> LifeCycleConsumerDBusProxy::LifecycleRequestA
}
void LifeCycleConsumerDBusProxy::getOwnVersion(uint16_t& ownVersionMajor, uint16_t& ownVersionMinor) const {
- ownVersionMajor = 0;
- ownVersionMinor = 1;
+ ownVersionMajor = 1;
+ ownVersionMinor = 0;
}
-} // namespace LifeCycleConsumer
} // namespace NodeStateManager
} // namespace genivi
} // namespace org
diff --git a/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/LifeCycleConsumer/LifeCycleConsumerDBusProxy.h b/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/LifeCycleConsumerDBusProxy.h
index 7c4522d..351558d 100644
--- a/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/LifeCycleConsumer/LifeCycleConsumerDBusProxy.h
+++ b/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/LifeCycleConsumerDBusProxy.h
@@ -1,27 +1,14 @@
/*
* This file was generated by the CommonAPI Generators.
*
- * Copyright (C) 2012, BMW AG
+ * Copyright (C) 2013, BMW AG
*
- * This file is part of GENIVI Project AudioManager.
- *
- * Contributions are licensed to the GENIVI Alliance under one or more
- * Contribution License Agreements.
- *
- * \copyright
- * 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/.
- *
- *
- * \author Aleksandar Donchev, aleksander.donchev@partner.bmw.de BMW 2013
- *
- * For further information see http://www.genivi.org/.
+ * \author Christian Linke, christian.linke@bmw.de BMW 2012,2013
*/
-#ifndef ORG_GENIVI_NODESTATEMANAGER_LIFECYCLECONSUMER_Life_Cycle_Consumer_DBUS_PROXY_H_
-#define ORG_GENIVI_NODESTATEMANAGER_LIFECYCLECONSUMER_Life_Cycle_Consumer_DBUS_PROXY_H_
+#ifndef ORG_GENIVI_NODESTATEMANAGER_Life_Cycle_Consumer_DBUS_PROXY_H_
+#define ORG_GENIVI_NODESTATEMANAGER_Life_Cycle_Consumer_DBUS_PROXY_H_
-#include <org/genivi/NodeStateManager/LifeCycleConsumer/LifeCycleConsumerProxyBase.h>
+#include <org/genivi/NodeStateManager/LifeCycleConsumerProxyBase.h>
#define COMMONAPI_INTERNAL_COMPILATION
@@ -35,7 +22,6 @@
namespace org {
namespace genivi {
namespace NodeStateManager {
-namespace LifeCycleConsumer {
class LifeCycleConsumerDBusProxy: virtual public LifeCycleConsumerProxyBase, virtual public CommonAPI::DBus::DBusProxy {
public:
@@ -60,9 +46,8 @@ class LifeCycleConsumerDBusProxy: virtual public LifeCycleConsumerProxyBase, vir
};
-} // namespace LifeCycleConsumer
} // namespace NodeStateManager
} // namespace genivi
} // namespace org
-#endif // ORG_GENIVI_NODESTATEMANAGER_LIFECYCLECONSUMER_Life_Cycle_Consumer_DBUS_PROXY_H_
+#endif // ORG_GENIVI_NODESTATEMANAGER_Life_Cycle_Consumer_DBUS_PROXY_H_
diff --git a/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/LifeCycleConsumer/LifeCycleConsumerDBusStubAdapter.cpp b/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/LifeCycleConsumerDBusStubAdapter.cpp
index e408a47..f59fb96 100644
--- a/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/LifeCycleConsumer/LifeCycleConsumerDBusStubAdapter.cpp
+++ b/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/LifeCycleConsumerDBusStubAdapter.cpp
@@ -1,30 +1,16 @@
/*
* This file was generated by the CommonAPI Generators.
*
- * Copyright (C) 2012, BMW AG
+ * Copyright (C) 2013, BMW AG
*
- * This file is part of GENIVI Project AudioManager.
- *
- * Contributions are licensed to the GENIVI Alliance under one or more
- * Contribution License Agreements.
- *
- * \copyright
- * 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/.
- *
- *
- * \author Aleksandar Donchev, aleksander.donchev@partner.bmw.de BMW 2013
- *
- * For further information see http://www.genivi.org/.
+ * \author Christian Linke, christian.linke@bmw.de BMW 2012,2013
*/
#include "LifeCycleConsumerDBusStubAdapter.h"
-#include <org/genivi/NodeStateManager/LifeCycleConsumer/LifeCycleConsumer.h>
+#include <org/genivi/NodeStateManager/LifeCycleConsumer.h>
namespace org {
namespace genivi {
namespace NodeStateManager {
-namespace LifeCycleConsumer {
std::shared_ptr<CommonAPI::DBus::DBusStubAdapter> createLifeCycleConsumerDBusStubAdapter(
const std::string& commonApiAddress,
@@ -71,12 +57,11 @@ static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
-} // namespace LifeCycleConsumer
} // namespace NodeStateManager
} // namespace genivi
} // namespace org
template<>
-const org::genivi::NodeStateManager::LifeCycleConsumer::LifeCycleConsumerDBusStubAdapterHelper::StubDispatcherTable org::genivi::NodeStateManager::LifeCycleConsumer::LifeCycleConsumerDBusStubAdapterHelper::stubDispatcherTable_ = {
- { { "LifecycleRequest", "uu" }, &org::genivi::NodeStateManager::LifeCycleConsumer::lifecycleRequestStubDispatcher }
+const org::genivi::NodeStateManager::LifeCycleConsumerDBusStubAdapterHelper::StubDispatcherTable org::genivi::NodeStateManager::LifeCycleConsumerDBusStubAdapterHelper::stubDispatcherTable_ = {
+ { { "LifecycleRequest", "uu" }, &org::genivi::NodeStateManager::lifecycleRequestStubDispatcher }
};
diff --git a/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/LifeCycleConsumer/LifeCycleConsumerDBusStubAdapter.h b/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/LifeCycleConsumerDBusStubAdapter.h
index 74e41a4..e6073ea 100644
--- a/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/LifeCycleConsumer/LifeCycleConsumerDBusStubAdapter.h
+++ b/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/LifeCycleConsumerDBusStubAdapter.h
@@ -1,27 +1,14 @@
/*
* This file was generated by the CommonAPI Generators.
*
- * Copyright (C) 2012, BMW AG
+ * Copyright (C) 2013, BMW AG
*
- * This file is part of GENIVI Project AudioManager.
- *
- * Contributions are licensed to the GENIVI Alliance under one or more
- * Contribution License Agreements.
- *
- * \copyright
- * 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/.
- *
- *
- * \author Aleksandar Donchev, aleksander.donchev@partner.bmw.de BMW 2013
- *
- * For further information see http://www.genivi.org/.
+ * \author Christian Linke, christian.linke@bmw.de BMW 2012,2013
*/
-#ifndef ORG_GENIVI_NODESTATEMANAGER_LIFECYCLECONSUMER_Life_Cycle_Consumer_DBUS_STUB_ADAPTER_H_
-#define ORG_GENIVI_NODESTATEMANAGER_LIFECYCLECONSUMER_Life_Cycle_Consumer_DBUS_STUB_ADAPTER_H_
+#ifndef ORG_GENIVI_NODESTATEMANAGER_Life_Cycle_Consumer_DBUS_STUB_ADAPTER_H_
+#define ORG_GENIVI_NODESTATEMANAGER_Life_Cycle_Consumer_DBUS_STUB_ADAPTER_H_
-#include <org/genivi/NodeStateManager/LifeCycleConsumer/LifeCycleConsumerStub.h>
+#include <org/genivi/NodeStateManager/LifeCycleConsumerStub.h>
#define COMMONAPI_INTERNAL_COMPILATION
@@ -33,7 +20,6 @@
namespace org {
namespace genivi {
namespace NodeStateManager {
-namespace LifeCycleConsumer {
typedef CommonAPI::DBus::DBusStubAdapterHelper<LifeCycleConsumerStub> LifeCycleConsumerDBusStubAdapterHelper;
@@ -53,9 +39,8 @@ class LifeCycleConsumerDBusStubAdapter: public LifeCycleConsumerStubAdapter, pub
virtual const char* getMethodsDBusIntrospectionXmlData() const;
};
-} // namespace LifeCycleConsumer
} // namespace NodeStateManager
} // namespace genivi
} // namespace org
-#endif // ORG_GENIVI_NODESTATEMANAGER_LIFECYCLECONSUMER_Life_Cycle_Consumer_DBUS_STUB_ADAPTER_H_
+#endif // ORG_GENIVI_NODESTATEMANAGER_Life_Cycle_Consumer_DBUS_STUB_ADAPTER_H_
diff --git a/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/LifeCycleConsumer/LifeCycleConsumerProxy.h b/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/LifeCycleConsumerProxy.h
index f8e21ed..9289e83 100644
--- a/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/LifeCycleConsumer/LifeCycleConsumerProxy.h
+++ b/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/LifeCycleConsumerProxy.h
@@ -1,25 +1,12 @@
/*
* This file was generated by the CommonAPI Generators.
*
- * Copyright (C) 2012, BMW AG
+ * Copyright (C) 2013, BMW AG
*
- * This file is part of GENIVI Project AudioManager.
- *
- * Contributions are licensed to the GENIVI Alliance under one or more
- * Contribution License Agreements.
- *
- * \copyright
- * 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/.
- *
- *
- * \author Aleksandar Donchev, aleksander.donchev@partner.bmw.de BMW 2013
- *
- * For further information see http://www.genivi.org/.
+ * \author Christian Linke, christian.linke@bmw.de BMW 2012,2013
*/
-#ifndef ORG_GENIVI_NODESTATEMANAGER_LIFECYCLECONSUMER_Life_Cycle_Consumer_PROXY_H_
-#define ORG_GENIVI_NODESTATEMANAGER_LIFECYCLECONSUMER_Life_Cycle_Consumer_PROXY_H_
+#ifndef ORG_GENIVI_NODESTATEMANAGER_Life_Cycle_Consumer_PROXY_H_
+#define ORG_GENIVI_NODESTATEMANAGER_Life_Cycle_Consumer_PROXY_H_
#include "LifeCycleConsumerProxyBase.h"
@@ -31,7 +18,6 @@
namespace org {
namespace genivi {
namespace NodeStateManager {
-namespace LifeCycleConsumer {
template <typename ... _AttributeExtensions>
class LifeCycleConsumerProxy: virtual public LifeCycleConsumer, virtual public LifeCycleConsumerProxyBase, public _AttributeExtensions... {
@@ -156,11 +142,10 @@ CommonAPI::InterfaceVersionAttribute& LifeCycleConsumerProxy<_AttributeExtension
return delegate_->getInterfaceVersionAttribute();
}
-} // namespace LifeCycleConsumer
} // namespace NodeStateManager
} // namespace genivi
} // namespace org
-#endif // ORG_GENIVI_NODESTATEMANAGER_LIFECYCLECONSUMER_Life_Cycle_Consumer_PROXY_H_
+#endif // ORG_GENIVI_NODESTATEMANAGER_Life_Cycle_Consumer_PROXY_H_
diff --git a/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/LifeCycleConsumer/LifeCycleConsumerProxyBase.h b/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/LifeCycleConsumerProxyBase.h
index 3e780d0..7ee8471 100644
--- a/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/LifeCycleConsumer/LifeCycleConsumerProxyBase.h
+++ b/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/LifeCycleConsumerProxyBase.h
@@ -1,25 +1,12 @@
/*
* This file was generated by the CommonAPI Generators.
*
- * Copyright (C) 2012, BMW AG
+ * Copyright (C) 2013, BMW AG
*
- * This file is part of GENIVI Project AudioManager.
- *
- * Contributions are licensed to the GENIVI Alliance under one or more
- * Contribution License Agreements.
- *
- * \copyright
- * 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/.
- *
- *
- * \author Aleksandar Donchev, aleksander.donchev@partner.bmw.de BMW 2013
- *
- * For further information see http://www.genivi.org/.
+ * \author Christian Linke, christian.linke@bmw.de BMW 2012,2013
*/
- #ifndef ORG_GENIVI_NODESTATEMANAGER_LIFECYCLECONSUMER_Life_Cycle_Consumer_PROXY_BASE_H_
- #define ORG_GENIVI_NODESTATEMANAGER_LIFECYCLECONSUMER_Life_Cycle_Consumer_PROXY_BASE_H_
+ #ifndef ORG_GENIVI_NODESTATEMANAGER_Life_Cycle_Consumer_PROXY_BASE_H_
+ #define ORG_GENIVI_NODESTATEMANAGER_Life_Cycle_Consumer_PROXY_BASE_H_
#include "LifeCycleConsumer.h"
@@ -37,7 +24,6 @@
namespace org {
namespace genivi {
namespace NodeStateManager {
- namespace LifeCycleConsumer {
class LifeCycleConsumerProxyBase: virtual public CommonAPI::Proxy {
public:
@@ -50,9 +36,8 @@
virtual std::future<CommonAPI::CallStatus> LifecycleRequestAsync(const uint32_t& Request, const uint32_t& RequestId, LifecycleRequestAsyncCallback callback) = 0;
};
- } // namespace LifeCycleConsumer
} // namespace NodeStateManager
} // namespace genivi
} // namespace org
- #endif // ORG_GENIVI_NODESTATEMANAGER_LIFECYCLECONSUMER_Life_Cycle_Consumer_PROXY_BASE_H_
+ #endif // ORG_GENIVI_NODESTATEMANAGER_Life_Cycle_Consumer_PROXY_BASE_H_
diff --git a/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/LifeCycleConsumer/LifeCycleConsumerStub.h b/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/LifeCycleConsumerStub.h
index f4d9d80..b7d83fd 100644
--- a/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/LifeCycleConsumer/LifeCycleConsumerStub.h
+++ b/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/LifeCycleConsumerStub.h
@@ -1,25 +1,12 @@
/*
* This file was generated by the CommonAPI Generators.
*
- * Copyright (C) 2012, BMW AG
+ * Copyright (C) 2013, BMW AG
*
- * This file is part of GENIVI Project AudioManager.
- *
- * Contributions are licensed to the GENIVI Alliance under one or more
- * Contribution License Agreements.
- *
- * \copyright
- * 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/.
- *
- *
- * \author Aleksandar Donchev, aleksander.donchev@partner.bmw.de BMW 2013
- *
- * For further information see http://www.genivi.org/.
+ * \author Christian Linke, christian.linke@bmw.de BMW 2012,2013
*/
-#ifndef ORG_GENIVI_NODESTATEMANAGER_LIFECYCLECONSUMER_Life_Cycle_Consumer_STUB_H_
-#define ORG_GENIVI_NODESTATEMANAGER_LIFECYCLECONSUMER_Life_Cycle_Consumer_STUB_H_
+#ifndef ORG_GENIVI_NODESTATEMANAGER_Life_Cycle_Consumer_STUB_H_
+#define ORG_GENIVI_NODESTATEMANAGER_Life_Cycle_Consumer_STUB_H_
@@ -36,7 +23,6 @@
namespace org {
namespace genivi {
namespace NodeStateManager {
-namespace LifeCycleConsumer {
/**
* Receives messages from remote and handles all dispatching of deserialized calls
@@ -85,9 +71,8 @@ class LifeCycleConsumerStub : public CommonAPI::Stub<LifeCycleConsumerStubAdapte
};
-} // namespace LifeCycleConsumer
} // namespace NodeStateManager
} // namespace genivi
} // namespace org
-#endif // ORG_GENIVI_NODESTATEMANAGER_LIFECYCLECONSUMER_Life_Cycle_Consumer_STUB_H_
+#endif // ORG_GENIVI_NODESTATEMANAGER_Life_Cycle_Consumer_STUB_H_
diff --git a/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/LifeCycleConsumer/LifeCycleConsumerStubDefault.cpp b/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/LifeCycleConsumerStubDefault.cpp
index 92df0f0..cc7dbfd 100644
--- a/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/LifeCycleConsumer/LifeCycleConsumerStubDefault.cpp
+++ b/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/LifeCycleConsumerStubDefault.cpp
@@ -1,29 +1,15 @@
/*
* This file was generated by the CommonAPI Generators.
*
- * Copyright (C) 2012, BMW AG
+ * Copyright (C) 2013, BMW AG
*
- * This file is part of GENIVI Project AudioManager.
- *
- * Contributions are licensed to the GENIVI Alliance under one or more
- * Contribution License Agreements.
- *
- * \copyright
- * 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/.
- *
- *
- * \author Aleksandar Donchev, aleksander.donchev@partner.bmw.de BMW 2013
- *
- * For further information see http://www.genivi.org/.
+ * \author Christian Linke, christian.linke@bmw.de BMW 2012,2013
*/
-#include <org/genivi/NodeStateManager/LifeCycleConsumer/LifeCycleConsumerStubDefault.h>
+#include <org/genivi/NodeStateManager/LifeCycleConsumerStubDefault.h>
namespace org {
namespace genivi {
namespace NodeStateManager {
-namespace LifeCycleConsumer {
LifeCycleConsumerStubDefault::LifeCycleConsumerStubDefault():
remoteEventHandler_(this) {
@@ -45,7 +31,6 @@ LifeCycleConsumerStubDefault::RemoteEventHandler::RemoteEventHandler(LifeCycleCo
defaultStub_(defaultStub) {
}
-} // namespace LifeCycleConsumer
} // namespace NodeStateManager
} // namespace genivi
} // namespace org
diff --git a/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/LifeCycleConsumer/LifeCycleConsumerStubDefault.h b/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/LifeCycleConsumerStubDefault.h
index 6c5f402..22e86ab 100644
--- a/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/LifeCycleConsumer/LifeCycleConsumerStubDefault.h
+++ b/AudioManagerDaemon/src-gen/org/genivi/NodeStateManager/LifeCycleConsumerStubDefault.h
@@ -1,32 +1,18 @@
/*
* This file was generated by the CommonAPI Generators.
*
- * Copyright (C) 2012, BMW AG
+ * Copyright (C) 2013, BMW AG
*
- * This file is part of GENIVI Project AudioManager.
- *
- * Contributions are licensed to the GENIVI Alliance under one or more
- * Contribution License Agreements.
- *
- * \copyright
- * 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/.
- *
- *
- * \author Aleksandar Donchev, aleksander.donchev@partner.bmw.de BMW 2013
- *
- * For further information see http://www.genivi.org/.
+ * \author Christian Linke, christian.linke@bmw.de BMW 2012,2013
*/
-#ifndef ORG_GENIVI_NODESTATEMANAGER_LIFECYCLECONSUMER_Life_Cycle_Consumer_STUB_DEFAULT_H_
-#define ORG_GENIVI_NODESTATEMANAGER_LIFECYCLECONSUMER_Life_Cycle_Consumer_STUB_DEFAULT_H_
+#ifndef ORG_GENIVI_NODESTATEMANAGER_Life_Cycle_Consumer_STUB_DEFAULT_H_
+#define ORG_GENIVI_NODESTATEMANAGER_Life_Cycle_Consumer_STUB_DEFAULT_H_
-#include <org/genivi/NodeStateManager/LifeCycleConsumer/LifeCycleConsumerStub.h>
+#include <org/genivi/NodeStateManager/LifeCycleConsumerStub.h>
namespace org {
namespace genivi {
namespace NodeStateManager {
-namespace LifeCycleConsumer {
/**
* Provides a default implementation for LifeCycleConsumerStubRemoteEvent and
@@ -66,9 +52,8 @@ class LifeCycleConsumerStubDefault : public LifeCycleConsumerStub {
};
-} // namespace LifeCycleConsumer
} // namespace NodeStateManager
} // namespace genivi
} // namespace org
-#endif // ORG_GENIVI_NODESTATEMANAGER_LIFECYCLECONSUMER_Life_Cycle_Consumer_STUB_DEFAULT_H_
+#endif // ORG_GENIVI_NODESTATEMANAGER_Life_Cycle_Consumer_STUB_DEFAULT_H_
diff --git a/AudioManagerDaemon/src/CAmNodeStateCommunicatorCAPI.cpp b/AudioManagerDaemon/src/CAmNodeStateCommunicatorCAPI.cpp
index 3761fca..6ac8f53 100644
--- a/AudioManagerDaemon/src/CAmNodeStateCommunicatorCAPI.cpp
+++ b/AudioManagerDaemon/src/CAmNodeStateCommunicatorCAPI.cpp
@@ -32,7 +32,7 @@
#include "shared/CAmDltWrapper.h"
#include "CAmNodeStateCommunicatorCAPI.h"
#include "CAmControlSender.h"
-#include "LifeCycleConsumer.h"
+#include <org/genivi/NodeStateManager/LifeCycleConsumerProxy.h>
@@ -122,7 +122,13 @@ am_Error_e CAmNodeStateCommunicatorCAPI::nsmGetRestartReasonProperty(NsmRestartR
//Check the service via the proxy object is available
IF_NOT_AVAILABLE_RETURN(E_NOT_POSSIBLE)
//Get the attribute
- return getAttributeValue(&mNSMProxy->getRestartReasonAttribute(), restartReason);
+ int32_t value;
+ CommonAPI::CallStatus status;
+ mNSMProxy->getRestartReasonAttribute().getValue(status,value);
+ if (status!=CommonAPI::CallStatus::SUCCESS)
+ return (E_UNKNOWN);
+ restartReason=static_cast<NsmRestartReason_e>(value);
+ return (E_OK);
}
/** retrieves the actual shutdown reason
@@ -135,7 +141,13 @@ am_Error_e CAmNodeStateCommunicatorCAPI::nsmGetShutdownReasonProperty(NsmShutdow
//Check the service via the proxy object is available
IF_NOT_AVAILABLE_RETURN(E_NOT_POSSIBLE)
//Get the attribute
- return getAttributeValue(&mNSMProxy->getShutdownReasonAttribute(), ShutdownReason);
+ int32_t value;
+ CommonAPI::CallStatus status;
+ mNSMProxy->getShutdownReasonAttribute().getValue(status,value);
+ if (status!=CommonAPI::CallStatus::SUCCESS)
+ return (E_UNKNOWN);
+ ShutdownReason=static_cast<NsmShutdownReason_e>(value);
+ return (E_OK);
}
/** retrieves the actual running reason
@@ -148,7 +160,13 @@ am_Error_e CAmNodeStateCommunicatorCAPI::nsmGetRunningReasonProperty(NsmRunningR
//Check the service via the proxy object is available
IF_NOT_AVAILABLE_RETURN(E_NOT_POSSIBLE)
//Get the attribute
- return getAttributeValue(&mNSMProxy->getWakeUpReasonAttribute(), nsmRunningReason);
+ int32_t value;
+ CommonAPI::CallStatus status;
+ mNSMProxy->getWakeUpReasonAttribute().getValue(status,value);
+ if (status!=CommonAPI::CallStatus::SUCCESS)
+ return (E_UNKNOWN);
+ nsmRunningReason=static_cast<NsmRunningReason_e>(value);
+ return (E_OK);
}
/** gets the node state
@@ -186,7 +204,7 @@ NsmErrorStatus_e CAmNodeStateCommunicatorCAPI::nsmGetSessionState(const std::str
CallStatus callStatus;
int32_t tmpSessionState = 0 , errorCode = 0;
- mNSMProxy->GetSessionState(sessionName, seatID, callStatus, tmpSessionState, errorCode);
+ mNSMProxy->GetSessionState(sessionName,seatID,callStatus, tmpSessionState, errorCode);
if( CallStatus::SUCCESS == callStatus)
{
diff --git a/PluginCommandInterfaceCAPI/fidl/CommandInterface.fidl b/PluginCommandInterfaceCAPI/fidl/CommandInterface.fidl
index 8f1a220..0d752d6 100755..100644
--- a/PluginCommandInterfaceCAPI/fidl/CommandInterface.fidl
+++ b/PluginCommandInterfaceCAPI/fidl/CommandInterface.fidl
@@ -1,723 +1,605 @@
-package org.genivi.audiomanager
-
-import org.genivi.audiomanager.am.* from "amTypes.fidl"
-
-<**
- @author : J�rgen Gehring
-
- @description : CommandInterface AudioManager.
-
- @details : Source D-Bus specification org.genivi.audiomanager.CommandInterface
-
-**>
-
-interface CommandInterface {
- version {
- major 0
- minor 1
- }
- method Connect {
- in {
- am_sourceID_t sourceID
- am_sinkID_t sinkID
- }
- out {
- am_Error_e result
- am_mainConnectionID_t mainConnectionID
- }
- }
- method Disconnect {
- in {
- am_mainConnectionID_t mainConnectionID
- }
- out {
- am_Error_e result
- }
- }
- method SetVolume {
- in {
- am_sinkID_t sinkID
- am_mainVolume_t volume
- }
- out {
- am_Error_e result
- }
- }
- method VolumeStep {
- in {
- am_sinkID_t sinkID
- am_mainVolume_t volumeStep
- }
- out {
- am_Error_e result
- }
- }
- method SetSinkMuteState {
- in {
- am_sinkID_t sinkID
- am_MuteState_e muteState
- }
- out {
- am_Error_e result
- }
- }
- method SetMainSinkSoundProperty {
- in {
- am_sinkID_t sinkID
- am_MainSoundProperty_s soundProperty
- }
- out {
- am_Error_e result
- }
- }
- method SetMainSourceSoundProperty {
- in {
- am_sourceID_t sourceID
- am_MainSoundProperty_s soundProperty
- }
- out {
- am_Error_e result
- }
- }
- method SetSystemProperty {
- in {
- am_SystemProperty_s soundProperty
- }
- out {
- am_Error_e result
- }
- }
- method GetListMainConnections {
- out {
- am_Error_e result
- am_MainConnectionType_l listConnections
- }
- }
- method GetListMainSinks {
- out {
- am_Error_e result
- am_SinkType_l listMainSinks
- }
- }
- method GetListMainSources {
- out {
- am_Error_e result
- am_SourceType_l listMainSources
- }
- }
- method GetListMainSinkSoundProperties {
- in {
- am_sinkID_t sinkID
- }
- out {
- am_Error_e result
- am_MainSoundProperty_l listSoundProperties
- }
- }
- method GetListMainSourceSoundProperties {
- in {
- am_sourceID_t sourceID
- }
- out {
- am_Error_e result
- am_MainSoundProperty_l listSourceProperties
- }
- }
- method GetListSourceClasses {
- out {
- am_Error_e result
- am_SourceClass_l listSourceClasses
- }
- }
- method GetListSinkClasses {
- out {
- am_Error_e result
- am_SinkClass_l listSinkClasses
- }
- }
- method GetListSystemProperties {
- out {
- am_Error_e result
- am_SystemProperty_l listSystemProperties
- }
- }
- method GetTimingInformation {
- in {
- am_mainConnectionID_t mainConnectionID
- }
- out {
- am_Error_e result
- am_timeSync_t delay
- }
- }
- broadcast NumberOfMainConnectionsChanged {
- }
- broadcast MainConnectionStateChanged {
- out {
- am_mainConnectionID_t connectionID
- am_ConnectionState_e connectionState
- }
- }
- broadcast NumberOfSourceClassesChanged {
- }
- broadcast SourceAdded {
- out {
- am_SourceType_s newSource
- }
- }
- broadcast SourceRemoved {
- out {
- am_sourceID_t removedSourceID
- }
- }
- broadcast MainSourceSoundPropertyChanged {
- out {
- am_sourceID_t sourceID
- am_MainSoundProperty_s SoundProperty
- }
- }
- broadcast SourceAvailabilityChanged {
- out {
- am_sourceID_t sourceID
- am_Availability_s availability
- }
- }
- broadcast NumberOfSinkClassesChanged {
- }
- broadcast SinkAdded {
- out {
- am_SinkType_s newSink
- }
- }
- broadcast SinkRemoved {
- out {
- am_sinkID_t removedSinkID
- }
- }
- broadcast MainSinkSoundPropertyChanged {
- out {
- am_sinkID_t sinkID
- am_MainSoundProperty_s SoundProperty
- }
- }
- broadcast SinkAvailabilityChanged {
- out {
- am_sinkID_t sinkID
- am_Availability_s availability
- }
- }
- broadcast VolumeChanged {
- out {
- am_sinkID_t sinkID
- am_mainVolume_t volume
- }
- }
- broadcast SinkMuteStateChanged {
- out {
- am_sinkID_t sinkID
- am_MuteState_e muteState
- }
- }
- broadcast SystemPropertyChanged {
- out {
- am_SystemProperty_s SystemProperty
- }
- }
- broadcast TimingInformationChanged {
- out {
- am_mainConnectionID_t mainConnection
- am_timeSync_t time
- }
- }
-
- broadcast SinkUpdated{
- out{
- am_sinkID_t sinkID
- am_sinkClass_t sinkClassID
- am_MainSoundProperty_l listMainSoundProperties
- }
- }
-
- broadcast SourceUpdated{
- out{
- am_sourceID_t sourceID
- am_sourceClass_t sourceClassID
- am_MainSoundProperty_l listMainSoundProperties
- }
- }
-
- broadcast SinkNotification{
- out{
- am_sinkID_t sinkID
- am_NotificationPayload_s notification
- }
- }
-
- broadcast SourceNotification{
- out{
- am_sourceID_t sourceID
- am_NotificationPayload_s notification
- }
- }
-
- broadcast MainSinkNotificationConfigurationChanged{
- out{
- am_sinkID_t sinkID
- am_NotificationConfiguration_s mainNotificationConfiguration
- }
- }
-
- broadcast MainSourceNotificationConfigurationChanged{
- out{
- am_sourceID_t sourceID
- am_NotificationConfiguration_s mainNotificationConfiguration
- }
- }
-
- typedef am_sourceID_t is UInt16
-
- typedef am_sinkID_t is UInt16
-
- typedef am_mainConnectionID_t is UInt16
-
- typedef am_timeSync_t is Int16
-
- typedef am_mainVolume_t is Int16
-
- typedef am_sourceClass_t is UInt16
-
- typedef am_sinkClass_t is UInt16
-
- <**
- @description : The errors of the audiomanager. All possible errors are in here. This enum is used widely as return parameter.
- **>
- enumeration am_Error_e {
-
- //E_UNKNOWN = "0x00"
-
- <**
- @description : no error - positive reply
- **>
- E_OK = "0x00"
-
- <**
- @description : value out of range
- **>
- E_OUT_OF_RANGE = "0x01"
-
- <**
- @description : not used
- **>
- E_NOT_USED = "0x02"
-
- <**
- @description : a database error occurred
- **>
- E_DATABASE_ERROR = "0x03"
-
- <**
- @description : the desired object already exists
- **>
- E_ALREADY_EXISTS = "0x04"
-
- <**
- @description : there is no change
- **>
- E_NO_CHANGE = "0x05"
-
- <**
- @description : the desired action is not possible
- **>
- E_NOT_POSSIBLE = "0x06"
-
- <**
- @description : the desired object is non existent
- **>
- E_NON_EXISTENT = "0x07"
-
- <**
- @description : the asynchronous action was aborted
- **>
- E_ABORTED = "0x08"
-
- <**
- @description : This error is returned in case a connect is issued with a connectionFormat
- that cannot be selected for the connection. This could be either due to the capabilities of
- a source or a sink or gateway compatibilities for example
- **>
- E_WRONG_FORMAT = "0x09"
- E_MAX = "0xA"
- }
-
- enumeration am_MuteState_e {
-
- <**
- @description : default
- **>
- MS_UNKNOWN = "0x00"
-
- <**
- @description : the source / sink is muted
- **>
- MS_MUTED = "0x01"
-
- <**
- @description : the source / sink is unmuted
- **>
- MS_UNMUTED = "0x02"
- MS_MAX = "0x03"
- }
-
- enumeration am_MainSoundPropertyType_e {
-
- <**
- @description : default
- **>
- MSP_UNKNOWN = "0x00"
-
- <**
- @description : example value between -10 and +10
- **>
- MSP_EXAMPLE_TREBLE = "0x01"
-
- <**
- @description : example value between -10 and +10
- **>
- MSP_EXAMPLE_MID = "0x02"
-
- <**
- @description : example value between -10 and +10
- **>
- MSP_EXAMPLE_BASS = "0x03"
- MSP_SOURCE_TYPE = "0x04"
- MSP_MAX = "0x05"
- }
-
- enumeration am_SystemPropertyType_e {
-
- <**
- @description : default
- **>
- SYP_UNKNOWN = "0x00"
- SYP_MAX = "0x01"
- }
-
- enumeration am_ConnectionState_e {
- CS_UNKNOWN = "0x00"
-
- <**
- @description : This means the connection is just building up
- **>
- CS_CONNECTING = "0x01"
-
- <**
- @description : the connection is ready to be used
- **>
- CS_CONNECTED = "0x02"
-
- <**
- @description : the connection is in the course to be knocked down
- **>
- CS_DISCONNECTING = "0x03"
-
- <**
- @description : only relevant for connectionStatechanged. Is send after the connection was removed
- **>
- CS_DISCONNECTED = "0x04"
-
- <**
- @description : this means the connection is still build up but unused at the moment
- **>
- CS_SUSPENDED = "0x05"
- CS_MAX = "0x06"
- }
-
- enumeration am_Availablility_e {
-
- <**
- @description : default
- **>
- A_UNKNOWN = "0x00"
-
- <**
- @description : The source / sink is available
- **>
- A_AVAILABLE = "0x01"
-
- <**
- @description : the source / sink is not available
- **>
- A_UNAVAILABLE = "0x02"
- A_MAX = "0x03"
- }
-
- enumeration am_AvailabilityReason_e {
-
- <**
- @description : default
- **>
- AR_UNKNOWN = "0x00"
-
- <**
- @description : the availability changed because an new media was entered.
- **>
- AR_GENIVI_NEWMEDIA = "0x01"
-
- <**
- @description : the availability changed because the same media was entered.
- **>
- AR_GENIVI_SAMEMEDIA = "0x02"
-
- <**
- @description : the availability changed because there is no media.
- **>
- AR_GENIVI_NOMEDIA = "0x03"
-
- <**
- @description : the availability changed because of a temperature event.
- **>
- AR_GENIVI_TEMPERATURE = "0x04"
-
- <**
- @description : the availability changed because of a voltage event.
- **>
- AR_GENIVI_VOLTAGE = "0x05"
-
- <**
- @description : the availability changed because of fatal errors reading or accessing media.
- **>
- AR_GENIVI_ERRORMEDIA = "0x06"
- AR_MAX = "0x07"
- }
-
- enumeration am_ClassProperty_e {
-
- <**
- @description : default
- **>
- CP_UNKNOWN = "0x00"
-
- <**
- @description : defines the source type of a source. Project specific, could be for example differentiation between interrupt source and main source.
- **>
- CP_GENIVI_SOURCE_TYPE = "0x01"
- /**
- * defines the SINK_TYPE. Project specific
- */
- <**
- @description : defines the SINK_TYPE. Project specific.
- **>
- CP_GENIVI_SINK_TYPE = "0x02"
- CP_MAX = "0x03"
- }
-
- enumeration am_InterruptState_e
- {
- /**
- * default
- */
- IS_UNKNOWN = "0x00"
- /**
- * the interrupt state is off - no interrupt
- */
- IS_OFF = "0x01"
- /**
- * the interrupt state is interrupted - the interrupt is active
- */
- IS_INTERRUPTED = "0x02"
- IS_MAX = "0x03"
- }
-
- struct am_MainSoundProperty_s {
-
- <**
- @description : the type of the property
- **>
- am_MainSoundPropertyType_e type
-
- <**
- @description : the actual value
- **>
- Int16 value
- } array am_MainSoundProperty_l of am_MainSoundProperty_s
-
- struct am_SystemProperty_s {
-
- <**
- @description : the type that is set
- **>
- am_SystemPropertyType_e type
-
- <**
- @description : the actual value
- **>
- Int16 value
- }
-
- array am_SystemProperty_l of am_SystemProperty_s
-
- struct am_MainConnectionType_s {
-
- <**
- @description : the ID of the mainconnection
- **>
- am_mainConnectionID_t mainConnectionID
-
- <**
- @description : the sourceID where the connection starts
- **>
- am_sourceID_t sourceID
-
- <**
- @description : the sinkID where the connection ends
- **>
- am_sinkID_t sinkID
-
- <**
- @description : the delay of the mainconnection
- **>
- am_timeSync_t delay
-
- <**
- @description : the current connection state
- **>
- am_ConnectionState_e connectionState
- }
-
- array am_MainConnectionType_l of am_MainConnectionType_s
-
- struct am_Availability_s {
-
- <**
- @description : the current availability state.
- **>
- am_Availablility_e availability
-
- <**
- @description : the reason for the last change. This can be used to trigger events that deal with state changes.
- **>
- am_AvailabilityReason_e availabilityReason
- }
-
- struct am_SourceType_s {
-
- <**
- @description : his is the ID of the source, it is unique in the system. There are 2 ways, ID can be created: either it is assigned during the registration process (in a dynamic context, uniqueness will be ensured by the AudioManagerDaemon), or it is a fixed (the project has to ensure the uniqueness of the ID).
- **>
- am_sourceID_t sourceID
-
- <**
- @description : The name of the source. Must be unique in the whole system.
- **>
- String name
-
- <**
- @description : the availability of the source
- **>
- am_Availability_s availability
-
- <**
- @description : the sourceClassID, indicates the class the source is in. This information can be used by the Controller to implement different behaviour for different classes.
- **>
- am_sourceClass_t sourceClassID
- }
-
- array am_SourceType_l of am_SourceType_s
-
- struct am_SinkType_s {
-
- <**
- @description : This is the ID of the sink, it is unique in the system. There are 2 ways, ID can be created: either it is assigned during the registration process (in a dynamic context, uniqueness will be ensured by the AudioManagerDaemon), or it is a fixed (the project has to ensure the uniqueness of the ID).
- **>
- am_sinkID_t sinkID
-
- <**
- @description : The name of the sink. Must be unique in the whole system.
- **>
- String name
-
- <**
- @description :
- This attribute reflects the availability of the sink. There are several reasons why a sink could be not available for the moment: for example the shutdown of a sink because of overtemperature or over- & undervoltage. The availability consists of two pieces of information:
- Availablility: the status itself, can be A_AVAILABLE, A_UNAVAILABLE or A_UNKNOWN
- AvailabilityReason: this informs about the last reason for a change in availability. The reasons itself are product specific.
-
- **>
- am_Availability_s availability
-
- <**
- @description : This is the representation of the Volume for the commandInterface. It is used by the HMI to set the volume of a sink, the AudioManagerController has to transform this into real source and sink volumes.
- **>
- am_mainVolume_t volume
- am_MuteState_e muteState
-
- <**
- @description : the sinkClassID references to a sinkClass. With the help of classification, rules can be setup to define the system behaviour.
- **>
- am_sinkClass_t sinkClassID
- }
-
- array am_SinkType_l of am_SinkType_s
-
- struct am_ClassProperty_s {
-
- <**
- @description : he property as enum.
- **>
- am_ClassProperty_e classProperty
- Int16 value
- }
-
- array am_ClassProperty_l of am_ClassProperty_s
-
- struct am_SourceClass_s {
-
- <**
- @description : the source ID.
- **>
- am_sourceClass_t sourceClassID
-
- <**
- @description : the name of the sourceClass - must be unique in the system.
- **>
- String name
-
- <**
- @description : the list of the class properties. These are pairs of a project specific enum describing the type of the value and an integer holding the real value.
- **>
- am_ClassProperty_l listClassProperties
- }
-
- array am_SourceClass_l of am_SourceClass_s
-
- struct am_SinkClass_s {
-
- <**
- @description : the ID of the sinkClass.
- **>
- am_sinkClass_t sinkClassID
-
- <**
- @description : the name of the sinkClass - must be unique in the system.
- **>
- String name
-
- <**
- @description : the list of the class properties. These are pairs of a project specific enum describing the type of the value and an integer holding the real value.
- **>
- am_ClassProperty_l listClassProperties
- }
-
- array am_SinkClass_l of am_SinkClass_s
-
- struct am_NotificationPayload_s
- {
- am_NotificationType_e type
- <**
- @description : This is finally the value of the notification. It's meaning depends on the notificationType
- **>
- Int16 value
-
- }
-
-}
+package org.genivi.am
+import org.genivi.am.* from "../../AudioManagerDaemon/fidls/AudioManagerTypes.fidl"
+
+<**
+ @description : The interface towards the Controlling Instance (e.g HMI). It handles the communication towards the HMI and other system components who need to interact with the audiomanagement.
+There are two rules that have to be kept in mind when implementing against this interface:
+ @author : Christian Mueller
+**>
+
+interface CommandControl {
+ version {
+ major 1
+ minor 0
+ }
+
+ <**
+ @description : connects a source to sink
+(at)return E_OK on success, E_NOT_POSSIBLE on failure, E_ALREADY_EXISTS if the connection does already exists
+ **>
+ method connect {
+ in {
+ am_sourceID_t sourceID
+ am_sinkID_t sinkID
+ }
+ out {
+ am_mainConnectionID_t mainConnectionID
+ am_Error_e ^error
+ }
+ }
+
+ <**
+ @description : disconnects a mainConnection
+(at)return E_OK on successes, E_NON_EXISTENT if the connection does not exist, E_NOT_POSSIBLE on error.
+ **>
+ method disconnect {
+ in {
+ am_mainConnectionID_t mainConnectionID
+ }
+ out {
+ am_Error_e ^error
+ }
+ }
+
+ <**
+ @description : sets the volume for a sink
+(at)return E_OK on success, E_UNKOWN on error, E_OUT_OF_RANGE in case the value is out of range
+ **>
+ method setVolume {
+ in {
+
+ <**
+ @description : the sink
+ **>
+ am_sinkID_t sinkID
+
+ <**
+ @description : the volume
+ **>
+ am_mainVolume_t volume
+ }
+ out {
+ am_Error_e ^error
+ }
+ }
+
+ <**
+ @description : This function is used to increment or decrement the current volume for a sink.
+(at)return E_OK on success, E_UNKNOWN on error and E_OUT_OF_RANGE if the value is not in the given volume range.
+ **>
+ method volumeStep {
+ in {
+ am_sinkID_t sinkID
+
+ <**
+ @description : indicated the number of steps that should be incremented or decremented. Positive values here inkrement, negative values decrement
+ **>
+ Int16 volumeStep
+ }
+ out {
+ am_Error_e ^error
+ }
+ }
+
+ <**
+ @description : sets the mute state of a sink
+(at)return E_OK on success, E_UNKNOWN on error. If the mute state is already the desired one, the Daemon will return E_OK.
+ **>
+ method setSinkMuteState {
+ in {
+ am_sinkID_t sinkID
+ am_MuteState_e muteState
+ }
+ out {
+ am_Error_e ^error
+ }
+ }
+
+ <**
+ @description : This method is used to set sound properties, e.g. Equalizer Values. Since the capabilities of the system can differ, the exact key value pairs can be extended in each product
+(at)return E_OK on success, E_OUT_OF_RANGE if value exceeds range, E_UNKNOWN in case of an error
+ **>
+ method setMainSinkSoundProperty {
+ in {
+ am_sinkID_t sinkID
+ am_MainSoundProperty_s soundProperty
+ }
+ out {
+ am_Error_e ^error
+ }
+ }
+
+ <**
+ @description : This method is used to set sound properties, e.g. Equalizer Values. Since the capabilities of the system can differ, the exact key value pairs can be extended in each product
+(at)return E_OK on success, E_OUT_OF_RANGE if value exceeds range, E_UNKNOWN in case of an error
+ **>
+ method setMainSourceSoundProperty {
+ in {
+ am_sourceID_t sourceID
+ am_MainSoundProperty_s soundProperty
+ }
+ out {
+ am_Error_e ^error
+ }
+ }
+
+ <**
+ @description : is used to set a specific system property.
+(at)return E_OK on success, E_OUT_OF_RANGE if value exceeds range, E_UNKNOWN in case of an error
+ **>
+ method setSystemProperty {
+ in {
+
+ <**
+ @description : the property that shall be set
+ **>
+ am_SystemProperty_s property
+ }
+ out {
+ am_Error_e ^error
+ }
+ }
+
+ <**
+ @description : returns the actual list of MainConnections
+(at)return E_OK on success, E_DATABASE_ERROR on error
+ **>
+ method getListMainConnections {
+ out {
+ am_Error_e ^error
+
+ <**
+ @description : returns a list of all connections
+ **>
+ am_MainConnection_L listConnections
+ }
+ }
+
+ <**
+ @description : returns the actual list of Sinks
+(at)return E_OK on success, E_DATABASE_ERROR on error
+ **>
+ method getListMainSinks {
+ out {
+
+ <**
+ @description : the list of the sinks
+ **>
+ am_SinkType_L listMainSinks
+ am_Error_e ^error
+ }
+ }
+
+ <**
+ @description : returns the actual list of Sources
+(at)return E_OK on success, E_DATABASE_ERROR on error
+ **>
+ method getListMainSources {
+ out {
+
+ <**
+ @description : the list of sources
+ **>
+ am_SourceType_L listMainSources
+ am_Error_e ^error
+ }
+ }
+
+ <**
+ @description : This is used to retrieve all source sound properties related to a source. Returns a vector of the sound properties and values as pair
+(at)return E_OK on success, E_DATABASE_ERROR on error
+ **>
+ method getListMainSinkSoundProperties {
+ in {
+ am_sinkID_t sinkID
+ }
+ out {
+ am_MainSoundProperty_L listSoundProperties
+ am_Error_e ^error
+ }
+ }
+
+ <**
+ @description : This is used to retrieve all source sound properties related to a source.
+(at)return E_OK on success, E_DATABASE_ERROR on error
+ **>
+ method getListMainSourceSoundProperties {
+ in {
+ am_sourceID_t sourceID
+ }
+ out {
+ am_MainSoundProperty_L listSourceProperties
+ am_Error_e ^error
+ }
+ }
+
+ <**
+ @description : This is used to retrieve SourceClass Information of all source classes
+(at)return E_OK on success, E_DATABASE_ERROR on error
+ **>
+ method getListSourceClasses {
+ out {
+ am_SourceClass_L listSourceClasses
+ am_Error_e ^error
+ }
+ }
+
+ <**
+ @description : This is used to retrieve SinkClass Information of all sink classes
+(at)return E_OK on success, E_DATABASE_ERROR on error
+ **>
+ method getListSinkClasses {
+ out {
+ am_SinkClass_L listSinkClasses
+ am_Error_e ^error
+ }
+ }
+
+ <**
+ @description : Retrieves a complete list of all systemProperties.
+(at)return E_OK on success, E_DATABASE_ERROR on error
+ **>
+ method getListSystemProperties {
+ out {
+ am_SystemProperty_L listSystemProperties
+ am_Error_e ^error
+ }
+ }
+
+ <**
+ @description : returns the delay in ms that the audiopath for the given mainConnection has
+(at)return E_OK on success, E_NOT_POSSIBLE if timing information is not yet retrieved, E_DATABASE_ERROR on read error on the database
+ **>
+ method getTimingInformation {
+ in {
+ am_mainConnectionID_t mainConnectionID
+ }
+ out {
+ am_timeSync_t delay
+ am_Error_e ^error
+ }
+ }
+
+ <**
+ @description : Retrieves the list of MainNotifications for a sink. Does not return the possible ones.
+ **>
+ method getListMainSinkNotificationConfigurations {
+ in {
+
+ <**
+ @description : The sinkID
+ **>
+ am_sinkID_t sinkID
+ }
+ out {
+ am_NotificationConfiguration_L listMainNotificationConfigurations
+ am_Error_e ^error
+ }
+ }
+
+ <**
+ @description : Retrieves the list of MainNotifications for a source. Does not return the possible ones.
+ **>
+ method getListMainSourceNotificationConfigurations {
+ in {
+
+ <**
+ @description : The sourceID
+ **>
+ am_sourceID_t sourceID
+ }
+ out {
+ am_NotificationConfiguration_L listMainNotificationConfigurations
+ am_Error_e ^error
+ }
+ }
+
+ <**
+ @description : sets a MainNotificationConfiuration. This can be used to turn on an off notifications an to change the mode of the configuration.
+(at)return E_OK on success, E_NON_EXISTENT if sinkID does not exists, E_DATABASE_ERROR on error
+ **>
+ method setMainSinkNotificationConfiguration {
+ in {
+
+ <**
+ @description : The sinkID of the MainNotification to be changed
+ **>
+ am_sinkID_t sinkID
+
+ <**
+ @description : The MainNotifiication that needs to be set
+ **>
+ am_NotificationConfiguration_s mainNotificationConfiguration
+ }
+ out {
+ am_Error_e ^error
+ }
+ }
+
+ <**
+ @description : sets a MainNotificationConfiuration. This can be used to turn on an off notifications an to change the mode of the configuration.
+(at)return E_OK on success, E_NON_EXISTENT if sourceID does not exists, E_DATABASE_ERROR on error
+ **>
+ method setMainSourceNotificationConfiguration {
+ in {
+
+ <**
+ @description : The sourceID of the MainNotification to be changed
+ **>
+ am_sourceID_t sourceID
+
+ <**
+ @description : The MainNotifiication that needs to be set
+ **>
+ am_NotificationConfiguration_s mainNotificationConfiguration
+ }
+ out {
+ am_Error_e ^error
+ }
+ }
+
+ <**
+ @description : Callback that is called when the number of connections change
+ **>
+ broadcast newMainConnection {
+ out {
+ am_MainConnectionType_s mainConnection
+ }
+ }
+
+ <**
+ @description : Callback that is called when the number of connections change
+ **>
+ broadcast removedMainConnection {
+ out {
+ am_mainConnectionID_t mainConnection
+ }
+ }
+
+ <**
+ @description : Callback that is called when the number of sinks change
+ **>
+ broadcast newSink {
+ out {
+ am_SinkType_s sink
+ }
+ }
+
+ <**
+ @description : Callback that is called when the number of sinks change
+ **>
+ broadcast removedSink {
+ out {
+ am_sinkID_t sinkID
+ }
+ }
+
+ <**
+ @description : Callback that is called when the number of sources change
+ **>
+ broadcast newSource {
+ out {
+ am_SourceType_s source
+ }
+ }
+
+ <**
+ @description : Callback that is called when the number of sources change
+ **>
+ broadcast removedSource {
+ out {
+ am_sourceID_t source
+ }
+ }
+
+ <**
+ @description : this callback is fired if the number of sink classes changed
+ **>
+ broadcast numberOfSinkClassesChanged {
+ }
+
+ <**
+ @description : this callback is fired if the number of source classes changed
+ **>
+ broadcast numberOfSourceClassesChanged {
+ }
+
+ <**
+ @description : This callback is called when the ConnectionState of a connection changed.
+ **>
+ broadcast mainConnectionStateChanged {
+ out {
+ am_mainConnectionID_t connectionID
+ am_ConnectionState_e connectionState
+ }
+ }
+
+ <**
+ @description : this callback indicates that a sinkSoundProperty has changed.
+ **>
+ broadcast mainSinkSoundPropertyChanged {
+ out {
+ am_sinkID_t sinkID
+ am_MainSoundProperty_s soundProperty
+ }
+ }
+
+ <**
+ @description : this callback indicates that a sourceSoundProperty has changed.
+ **>
+ broadcast mainSourceSoundPropertyChanged {
+ out {
+ am_sourceID_t sourceID
+ am_MainSoundProperty_s soundProperty
+ }
+ }
+
+ <**
+ @description : this callback is called when the availability of a sink has changed
+ **>
+ broadcast sinkAvailabilityChanged {
+ out {
+ am_sinkID_t sinkID
+ am_Availability_s availability
+ }
+ }
+
+ <**
+ @description : this callback is called when the availability of source has changed.
+ **>
+ broadcast sourceAvailabilityChanged {
+ out {
+ am_sourceID_t sourceID
+ am_Availability_s availability
+ }
+ }
+
+ <**
+ @description : this callback indicates a volume change on the indicated sink
+ **>
+ broadcast volumeChanged {
+ out {
+ am_sinkID_t sinkID
+ am_mainVolume_t volume
+ }
+ }
+
+ <**
+ @description : this callback indicates a mute state change on a sink.
+ **>
+ broadcast sinkMuteStateChanged {
+ out {
+ am_sinkID_t sinkID
+ am_MuteState_e muteState
+ }
+ }
+
+ <**
+ @description : is fired if a systemProperty changed
+ **>
+ broadcast systemPropertyChanged {
+ out {
+ am_SystemProperty_s systemProperty
+ }
+ }
+
+ <**
+ @description : This callback is fired if the timinginformation for a mainConnectionID changed
+ **>
+ broadcast timingInformationChanged {
+ out {
+ am_mainConnectionID_t mainConnectionID
+ am_timeSync_t time
+ }
+ }
+
+ <**
+ @description : This callback is called when a sink is updated.
+ **>
+ broadcast sinkUpdated {
+ out {
+
+ <**
+ @description : The sinkID that is updated
+ **>
+ am_sinkID_t sinkID
+
+ <**
+ @description : The sinkClassID of the updated sink. gives the current value even if not updated
+ **>
+ am_sinkClass_t sinkClassID
+
+ <**
+ @description : The list of mainSoundProperties. Gives the actual list of MainSoundProperties even if not changed
+ **>
+ am_MainSoundProperty_L listMainSoundProperties
+ }
+ }
+
+ <**
+ @description : This callback is called when a source is updated.
+ **>
+ broadcast sourceUpdated {
+ out {
+
+ <**
+ @description : The sourceID that is updated
+ **>
+ am_sourceID_t sourceID
+
+ <**
+ @description : The sourceClassID of the updated source. Gives the current value even if not updated
+ **>
+ am_sourceClass_t sourceClassID
+
+ <**
+ @description : The list of mainSoundProperties. Gives the actual list of MainSoundProperties even if not changed
+ **>
+ am_MainSoundProperty_L listMainSoundProperties
+ }
+ }
+
+ <**
+ @description : This callback is called when a notificated value of a sink changes.
+ **>
+ broadcast sinkNotification {
+ out {
+
+ <**
+ @description : The sinkID
+ **>
+ am_sinkID_t sinkID
+
+ <**
+ @description : The payload of the notification
+ **>
+ am_NotificationPayload_s notification
+ }
+ }
+
+ <**
+ @description : This callback is called when a notifcated value of a source changes.
+ **>
+ broadcast sourceNotification {
+ out {
+
+ <**
+ @description : The sourceID
+ **>
+ am_sourceID_t sourceID
+
+ <**
+ @description : The payload of the notification
+ **>
+ am_NotificationPayload_s notification
+ }
+ }
+
+ <**
+ @description : This callback is triggered when a mainNotificationConfiguration is changed.
+ **>
+ broadcast mainSinkNotificationConfigurationChanged {
+ out {
+ am_sinkID_t sinkID
+
+ <**
+ @description : The MainNotificationConfiguration that changed
+ **>
+ am_NotificationConfiguration_s mainNotificationConfiguration
+ }
+ }
+
+ <**
+ @description : This callback is triggered when a mainNotificationConfiguration is changed.
+ **>
+ broadcast mainSourceNotificationConfigurationChanged {
+ out {
+ am_sourceID_t sourceID
+
+ <**
+ @description : The MainNotificationConfiguration that changed
+ **>
+ am_NotificationConfiguration_s mainNotificationConfiguration
+ }
+ }
+} \ No newline at end of file
diff --git a/PluginCommandInterfaceCAPI/fidl/amTypes.fidl b/PluginCommandInterfaceCAPI/fidl/amTypes.fidl
deleted file mode 100755
index 6f11698..0000000
--- a/PluginCommandInterfaceCAPI/fidl/amTypes.fidl
+++ /dev/null
@@ -1,329 +0,0 @@
-package org.genivi.audiomanager
-
-typeCollection am
-{
- typedef am_sourceID_t is UInt16
- typedef am_sinkID_t is UInt16
- typedef am_gatewayID_t is UInt16
- typedef gongHandle is Int16
- typedef am_sourceClass_t is UInt16
- typedef am_sinkClass_t is UInt16
- typedef am_volume_t is Int16
- typedef am_mainVolume_t is Int16
- typedef am_handle_t is UInt16
- typedef am_time_t is UInt16
-
- enumeration gp_indicatorDirection_e
- {
- INDICATOR_RIGHT ="0x00"
- INDICATOR_LEFT="0x01"
- INDICATOR_WARNING="0x02"
- }
-
- enumeration am_RampType_e
- {
- RAMP_UNKNOWN = "0x00"
- RAMP_GENIVI_DIRECT = "0x01"
- RAMP_GENIVI_NO_PLOP = "0x02"
- RAMP_GENIVI_EXP_INV = "0x03"
- RAMP_GENIVI_LINEAR = "0x04"
- RAMP_GENIVI_EXP = "0x05"
- RAMP_MAX = "0x06"
- }
-
- enumeration am_MuteState_e
- {
- MS_UNKNOWN = "0x00"
- MS_MUTED = "0x01"
- MS_UNMUTED = "0x02"
- MS_MAX = "0x03"
- }
-
- enumeration am_SourceState_e
- {
- SS_UNKNNOWN = "0x00"
- SS_ON = "0x01"
- SS_OFF = "0x02"
- SS_PAUSED = "0x03"
- SS_MAX = "0x04"
- }
- enumeration am_Error_e
- {
- E_OK = "0x00"
- E_UNKNOWN = "0x01"
- E_OUT_OF_RANGE = "0x02"
- E_NOT_USED = "0x03"
- E_DATABASE_ERROR = "0x04"
- E_ALREADY_EXISTS = "0x05"
- E_NO_CHANGE = "0x06"
- E_NOT_POSSIBLE = "0x07"
- E_NON_EXISTENT = "0x08"
- E_ABORTED = "0x09"
- E_WRONG_FORMAT = "0xA"
- E_MAX = "0xB"
- }
-
- enumeration am_DomainState_e
- {
-
- DS_UNKNOWN = "0"
- DS_CONTROLLED = "1"
- DS_INDEPENDENT_STARTUP = "2"
- DS_INDEPENDENT_RUNDOWN = "3"
- DS_MAX = "4"
- }
-
- enumeration gongType_e
- {
- AT_NUN = "0x01"
- AT_POC = "0x02"
- AT_QUE = "0x03"
- AT_IWA = "0x04"
- AT_WA = "0x05"
- AT_ETC_F = "0x06"
- AT_ETC_F2 = "0x07"
- AT_ETC_ST = "0x08"
- AT_ETC_S = "0x09"
- AT_REV = "0x0A"
- AT_ESU = "0x0B"
- AT_ESD = "0x0C"
- AT_DG = "0x0D"
- AT_SG = "0x0E"
- AT_IDG = "0x0F"
- AT_ION = "0x10"
- AT_IOFF = "0x11"
- AT_FBS = "0x12"
- AT_VFS = "0x13"
- AT_GES = "0x14"
- AT_UEE = "0x15"
- }
-
- enumeration gp_indicatorStatus_e
- {
- IS_ON = "0x00"
- IS_OFF = "0x01"
- }
-
- enumeration gongStatus_e
- {
- NOT_PLAYING = "0x00"
- PLAYING = "0x01"
- INTERRUPTED = "0x02"
- }
-
- enumeration gongError_e
- {
- SUCCESS = "0x00"
- ERROR = "0x01"
- LOW_PRIORITY = "0x02"
- }
-
- enumeration gongClass_e
- {
- GONGCLASS_1 = "0x01"
- GONGCLASS_2 = "0x02"
- GONGCLASS_PDC = "0x03"
- GONGCLASS_TURN = "0x04"
- GONGCLASS_OBSTACLE = "0x05"
- }
-
- enumeration sampleSet_e
- {
- setBMW = "0x00"
- setMini = "0x01"
- setRR = "0x02"
- }
-
- enumeration am_Availability_e
- {
- A_UNKNOWN = "0x00"
- A_AVAILABLE = "0x01"
- A_UNAVAILABLE = "0x02"
- A_MAX = "0x03"
- }
- enumeration am_AvailabilityReason_e
- {
- AR_UNKNOWN = "0x00"
- AR_GENIVI_NEWMEDIA = "0x01"
- AR_GENIVI_SAMEMEDIA = "0x02"
- AR_GENIVI_NOMEDIA = "0x03"
- AR_GENIVI_TEMPERATURE = "0x04"
- AR_GENIVI_VOLTAGE = "0x05"
- AR_GENIVI_ERRORMEDIA = "0x06"
- AR_MAX = "0x07"
- }
-
- enumeration am_InterruptState_e
- {
- IS_UNKNOWN = "0x00"
- IS_OFF = "0x01"
- IS_INTERRUPTED = "0x02"
- IS_MAX = "0x03"
- }
-
- enumeration am_SoundPropertyType_e
- {
- SP_UNKNOWN = "0x00"
- SP_EXAMPLE_TREBLE = "0x01"
- SP_EXAMPLE_MID = "0x02"
- SP_EXAMPLE_BASS = "0x03"
- SP_ENTER_SINKID = "0x04"
- SP_INTERR_SUPERSEEDINGID = "0x05"
- SP_INTERR_OVERLAYID = "0x06"
- SP_PRIORITY = "0x07"
- SP_MAX = "0x08"
- }
-
- enumeration am_ConnectionFormat_e
- {
- CF_UNKNOWN = "0x00"
- CF_GENIVI_MONO = "0x01"
- CF_GENIVI_STEREO = "0x02"
- CF_GENIVI_ANALOG = "0x03"
- CF_GENIVI_AUTO = "0x04"
- CF_MAX = "0x05"
- }
- array am_ConnectionFormat_L of am_ConnectionFormat_e
-
- enumeration am_MainSoundPropertyType_e
- {
- MSP_UNKNOWN = "0x00"
- MSP_EXAMPLE_TREBLE = "0x01"
- MSP_EXAMPLE_MID = "0x02"
- MSP_EXAMPLE_BASS = "0x03"
- MSP_SOURCE_TYPE = "0x04"
- MSP_MAX = "0x05"
- }
-
- enumeration am_NotificationType_e
- {
- NT_UNKNOWN = "0x00"
- NT_LOUDNESS = "0x01"
- NT_MAX = "0x02"
- }
-
- enumeration am_NotificationStatus_e
- {
- NS_UNKNOWN = "0x00"
- NS_OFF = "0x01"
- NS_PERIODIC = "0x02"
- NS_MINIMUM = "0x03"
- NS_MAXIMUM = "0x04"
- NS_CHANGE = "0x05"
- NS_MAX = "0x06"
- }
-
- struct distanceInformation_s
- {
- Int32 FrontLeft
- Int32 FrontRight
- Int32 RearLeft
- Int32 RearRight
- }
-
- struct sampleNames_s
- {
- sampleSet_e sample
- String sampleName
- } array listSampleNamesL of sampleNames_s
-
- typedef am_domainID_t is UInt16
-
- struct am_Domain_s
- {
- am_domainID_t domainID
- String name
- String busname
- String nodename
- Boolean early
- Boolean complete
- am_DomainState_e ^state
- }
-
- struct notificationPayload_s
- {
- Int16 type
- Int16 payload
- }
-
- struct am_Availability_s
- {
- am_Availability_e availability
- am_AvailabilityReason_e availabilityReason
- }
-
- struct am_SoundProperty_s
- {
- am_SoundPropertyType_e type
- Int16 value
- }
- array am_SoundProperty_L of am_SoundProperty_s
-
- struct am_MainSoundProperty_s
- {
- am_MainSoundPropertyType_e type
- Int16 value
- }
- array am_MainSoundProperty_L of am_MainSoundProperty_s
-
- struct am_NotificationConfiguration_s
- {
- am_NotificationType_e type
- am_NotificationStatus_e status
- Int16 parameter
- }
- array am_NotificationConfiguration_L of am_NotificationConfiguration_s
-
-
- array bool_L of Boolean
-
- struct sourceData_s
- {
- am_sourceID_t sourceID
- am_domainID_t domainID
- String name
- am_sourceClass_t sourceClassID
- am_SourceState_e sourceState
- am_volume_t volume
- Boolean visible
- am_Availability_s available
- am_InterruptState_e interruptState
- am_SoundProperty_L listSoundProperties
- am_ConnectionFormat_L listConnectionFormats
- am_MainSoundProperty_L listMainSoundProperties
- am_NotificationConfiguration_L listMainNotificationConfigurations
- am_NotificationConfiguration_L listNotificationConfigurations
- }
-
- struct sinkData_s
- {
- am_sinkID_t sinkID
- String name
- am_domainID_t domainID
- am_sinkClass_t sinkClassID
- am_volume_t volume
- Boolean visible
- am_Availability_s available
- am_MuteState_e muteState
- am_mainVolume_t mainVolume
- am_SoundProperty_L listSoundProperties
- am_ConnectionFormat_L listConnectionFormats
- am_MainSoundProperty_L listMainSoundProperties
- am_NotificationConfiguration_L listMainNotificationConfigurations
- am_NotificationConfiguration_L listNotificationConfigurations
- }
-
- struct am_Gateway_s
- {
- am_gatewayID_t gatewayID
- String name
- am_sinkID_t sinkID
- am_sourceID_t sourceID
- am_domainID_t domainSinkID
- am_domainID_t domainSourceID
- am_domainID_t controlDomainID
- am_ConnectionFormat_L listSourceFormats
- am_ConnectionFormat_L listSinkFormats
- bool_L convertionMatrix
- }
-} \ No newline at end of file
diff --git a/PluginCommandInterfaceCAPI/include/CAmCommandSenderCAPI.h b/PluginCommandInterfaceCAPI/include/CAmCommandSenderCAPI.h
index 9427823..64aba38 100644
--- a/PluginCommandInterfaceCAPI/include/CAmCommandSenderCAPI.h
+++ b/PluginCommandInterfaceCAPI/include/CAmCommandSenderCAPI.h
@@ -29,7 +29,6 @@
namespace am
{
using namespace CommonAPI;
-using namespace org::genivi::audiomanager;
/**
diff --git a/PluginCommandInterfaceCAPI/include/CAmCommandSenderCommon.h b/PluginCommandInterfaceCAPI/include/CAmCommandSenderCommon.h
index 4301dd7..750b2c5 100644
--- a/PluginCommandInterfaceCAPI/include/CAmCommandSenderCommon.h
+++ b/PluginCommandInterfaceCAPI/include/CAmCommandSenderCommon.h
@@ -20,42 +20,38 @@
#include <memory>
#include "audiomanagertypes.h"
-#include <org/genivi/audiomanager/CommandInterface.h>
+#include <org/genivi/am.h>
using namespace am;
-using namespace org::genivi::audiomanager;
/**
* The following functions convert the basics AudiomManager types from/to CommonAPI types.
*/
-extern void CAmConvertAvailablility(const am_Availability_s & , CommandInterface::am_Availability_s & );
-extern void CAmConvertMainSoundProperty(const am_MainSoundProperty_s & , CommandInterface::am_MainSoundProperty_s & );
-extern void CAmConvertSystemProperty(const am_SystemProperty_s &, CommandInterface::am_SystemProperty_s &);
+extern void CAmConvertAvailablility(const am_Availability_s & , org::genivi::am::am_Availability_s & );
+extern void CAmConvertMainSoundProperty(const am_MainSoundProperty_s & , org::genivi::am::am_MainSoundProperty_s & );
+extern void CAmConvertSystemProperty(const am_SystemProperty_s &, org::genivi::am::am_SystemProperty_s &);
-extern CommandInterface::am_ClassProperty_e CAmConvert2CAPIType(const am_ClassProperty_e & property);
-extern CommandInterface::am_SystemPropertyType_e CAmConvert2CAPIType(const am_SystemPropertyType_e &);
-extern CommandInterface::am_Availablility_e CAmConvert2CAPIType(const am_Availability_e & );
-extern CommandInterface::am_AvailabilityReason_e CAmConvert2CAPIType(const am_AvailabilityReason_e & );
+extern org::genivi::am::am_ClassProperty_pe CAmConvert2CAPIType(const am_ClassProperty_e & property);
+extern org::genivi::am::am_SystemPropertyType_pe CAmConvert2CAPIType(const am_SystemPropertyType_e &);
+extern org::genivi::am::am_Availability_e CAmConvert2CAPIType(const am_Availability_e & );
+extern org::genivi::am::am_AvailabilityReason_pe CAmConvert2CAPIType(const am_AvailabilityReason_e & );
-extern CommandInterface::am_MuteState_e CAmConvert2CAPIType(const am_MuteState_e &);
-extern am_MuteState_e CAmConvertFromCAPIType(const CommandInterface::am_MuteState_e &);
+extern org::genivi::am::am_MuteState_e CAmConvert2CAPIType(const am_MuteState_e &);
+extern am_MuteState_e CAmConvertFromCAPIType(const org::genivi::am::am_MuteState_e &);
-extern CommandInterface::am_MainSoundPropertyType_e CAmConvert2CAPIType(const am_MainSoundPropertyType_e &);
-extern am_MainSoundPropertyType_e CAmConvertFromCAPIType(const CommandInterface::am_MainSoundPropertyType_e &);
+extern org::genivi::am::am_MainSoundPropertyType_pe CAmConvert2CAPIType(const am_MainSoundPropertyType_e &);
-extern CommandInterface::am_ConnectionState_e CAmConvert2CAPIType(const am_ConnectionState_e &);
-extern am_ConnectionState_e CAmConvertFromCAPIType(const CommandInterface::am_ConnectionState_e &);
+extern org::genivi::am::am_ConnectionState_e CAmConvert2CAPIType(const am_ConnectionState_e &);
+extern am_ConnectionState_e CAmConvertFromCAPIType(const org::genivi::am::am_ConnectionState_e &);
-extern org::genivi::audiomanager::am::am_NotificationType_e CAmConvert2CAPIType(const am_NotificationType_e &);
-extern am_NotificationType_e CAmConvertFromCAPIType(const org::genivi::audiomanager::am::am_NotificationType_e &);
+extern am_NotificationType_e CAmConvert2CAPIType(const org::genivi::am::am_NotificationType_pe &);
+extern org::genivi::am::am_NotificationType_pe CAmConvertFromCAPIType(const am_NotificationType_e &);
-extern org::genivi::audiomanager::am::am_NotificationStatus_e CAmConvert2CAPIType(const am_NotificationStatus_e &);
-extern am_NotificationStatus_e CAmConvertFromCAPIType(const org::genivi::audiomanager::am::am_NotificationStatus_e &);
+extern am_NotificationStatus_e CAmConvert2CAPIType(const org::genivi::am::am_NotificationStatus_e &);
+extern org::genivi::am::am_NotificationStatus_e CAmConvertFromCAPIType(const am_NotificationStatus_e &);
-extern CommandInterface::am_Error_e CAmConvert2CAPIType(const am_Error_e &);
-extern am_Error_e CAmConvertFromCAPIType(const CommandInterface::am_Error_e & error);
-
-extern am_SystemPropertyType_e CAmConvertFromCAPIType(const CommandInterface::am_SystemPropertyType_e &);
+extern org::genivi::am::am_Error_e CAmConvert2CAPIType(const am_Error_e &);
+extern am_Error_e CAmConvertFromCAPIType(const org::genivi::am::am_Error_e & error);
#endif /* CAMCOMMANDSENDERCOMMON_H_ */
diff --git a/PluginCommandInterfaceCAPI/include/CAmCommandSenderService.h b/PluginCommandInterfaceCAPI/include/CAmCommandSenderService.h
index cac6162..0fbf499 100644
--- a/PluginCommandInterfaceCAPI/include/CAmCommandSenderService.h
+++ b/PluginCommandInterfaceCAPI/include/CAmCommandSenderService.h
@@ -18,56 +18,54 @@
#ifndef CAMCOMMANDSENDERSERVICE_H_
#define CAMCOMMANDSENDERSERVICE_H_
-#include <org/genivi/audiomanager/CommandInterfaceStubDefault.h>
+#include <org/genivi/am/CommandControlStubDefault.h>
#include "../../include/command/IAmCommandReceive.h"
namespace am {
-using namespace org::genivi::audiomanager;
-
/**
* A concrete stub implementation used by the command sender plug-in.
*/
-class CAmCommandSenderService: public CommandInterfaceStubDefault {
+class CAmCommandSenderService: public org::genivi::am::CommandControlStubDefault {
IAmCommandReceive* mpIAmCommandReceive;
public:
CAmCommandSenderService();
CAmCommandSenderService(IAmCommandReceive *aReceiver);
virtual ~CAmCommandSenderService();
- virtual void Connect(CommandInterface::am_sourceID_t sourceID, CommandInterface::am_sinkID_t sinkID, CommandInterface::am_Error_e& result, CommandInterface::am_mainConnectionID_t& mainConnectionID);
+ virtual void connect(org::genivi::am::am_sourceID_t sourceID, org::genivi::am::am_sinkID_t sinkID, org::genivi::am::am_mainConnectionID_t& mainConnectionID, org::genivi::am::am_Error_e& result);
- virtual void Disconnect(CommandInterface::am_mainConnectionID_t mainConnectionID, CommandInterface::am_Error_e& result);
+ virtual void disconnect(org::genivi::am::am_mainConnectionID_t mainConnectionID, org::genivi::am::am_Error_e& result);
- virtual void SetVolume(CommandInterface::am_sinkID_t sinkID, CommandInterface::am_mainVolume_t volume, CommandInterface::am_Error_e& result);
+ virtual void setVolume(org::genivi::am::am_sinkID_t sinkID, org::genivi::am::am_mainVolume_t volume, org::genivi::am::am_Error_e& result);
- virtual void VolumeStep(CommandInterface::am_sinkID_t sinkID, CommandInterface::am_mainVolume_t volumeStep, CommandInterface::am_Error_e& result);
+ virtual void volumeStep(org::genivi::am::am_sinkID_t sinkID, org::genivi::am::am_mainVolume_t volumeStep, org::genivi::am::am_Error_e& result);
- virtual void SetSinkMuteState(CommandInterface::am_sinkID_t sinkID, CommandInterface::am_MuteState_e muteState, CommandInterface::am_Error_e& result);
+ virtual void setSinkMuteState(org::genivi::am::am_sinkID_t sinkID, org::genivi::am::am_MuteState_e muteState, org::genivi::am::am_Error_e& result);
- virtual void SetMainSinkSoundProperty(CommandInterface::am_sinkID_t sinkID, CommandInterface::am_MainSoundProperty_s soundProperty, CommandInterface::am_Error_e& result);
+ virtual void setMainSinkSoundProperty(org::genivi::am::am_sinkID_t sinkID, org::genivi::am::am_MainSoundProperty_s soundProperty, org::genivi::am::am_Error_e& result);
- virtual void SetMainSourceSoundProperty(CommandInterface::am_sourceID_t sourceID, CommandInterface::am_MainSoundProperty_s soundProperty, CommandInterface::am_Error_e& result);
+ virtual void setMainSourceSoundProperty(org::genivi::am::am_sourceID_t sourceID, org::genivi::am::am_MainSoundProperty_s soundProperty, org::genivi::am::am_Error_e& result);
- virtual void SetSystemProperty(CommandInterface::am_SystemProperty_s soundProperty, CommandInterface::am_Error_e& result);
+ virtual void setSystemProperty(org::genivi::am::am_SystemProperty_s soundProperty, org::genivi::am::am_Error_e& result);
- virtual void GetListMainConnections(CommandInterface::am_Error_e& result, CommandInterface::am_MainConnectionType_l& listConnections);
+ virtual void getListMainConnections(org::genivi::am::am_Error_e& result, org::genivi::am::am_MainConnection_L& listConnections);
- virtual void GetListMainSinks(CommandInterface::am_Error_e& result, CommandInterface::am_SinkType_l& listMainSinks);
+ virtual void getListMainSinks(org::genivi::am::am_SinkType_L& listMainSinks, org::genivi::am::am_Error_e& result);
- virtual void GetListMainSources(CommandInterface::am_Error_e& result, CommandInterface::am_SourceType_l& listMainSources);
+ virtual void getListMainSources(org::genivi::am::am_SourceType_L& listMainSources, org::genivi::am::am_Error_e& result);
- virtual void GetListMainSinkSoundProperties(CommandInterface::am_sinkID_t sinkID, CommandInterface::am_Error_e& result, CommandInterface::am_MainSoundProperty_l& listSoundProperties);
+ virtual void getListMainSinkSoundProperties(org::genivi::am::am_sinkID_t sinkID, org::genivi::am::am_MainSoundProperty_L& listSoundProperties, org::genivi::am::am_Error_e& result);
- virtual void GetListMainSourceSoundProperties(CommandInterface::am_sourceID_t sourceID, CommandInterface::am_Error_e& result, CommandInterface::am_MainSoundProperty_l& listSourceProperties);
+ virtual void getListMainSourceSoundProperties(org::genivi::am::am_sourceID_t sourceID, org::genivi::am::am_MainSoundProperty_L& listSourceProperties, org::genivi::am::am_Error_e& result);
- virtual void GetListSourceClasses(CommandInterface::am_Error_e& result, CommandInterface::am_SourceClass_l& listSourceClasses);
+ virtual void getListSourceClasses( org::genivi::am::am_SourceClass_L& listSourceClasses,org::genivi::am::am_Error_e& result);
- virtual void GetListSinkClasses(CommandInterface::am_Error_e& result, CommandInterface::am_SinkClass_l& listSinkClasses);
+ virtual void getListSinkClasses( org::genivi::am::am_SinkClass_L& listSinkClasses,org::genivi::am::am_Error_e& result);
- virtual void GetListSystemProperties(CommandInterface::am_Error_e& result, CommandInterface::am_SystemProperty_l& listSystemProperties);
+ virtual void getListSystemProperties(org::genivi::am::am_SystemProperty_L& listSystemProperties,org::genivi::am::am_Error_e& result);
- virtual void GetTimingInformation(CommandInterface::am_mainConnectionID_t mainConnectionID, CommandInterface::am_Error_e& result, CommandInterface::am_timeSync_t& delay);
+ virtual void getTimingInformation(org::genivi::am::am_mainConnectionID_t mainConnectionID, org::genivi::am::am_timeSync_t& delay,org::genivi::am::am_Error_e& result);
};
} /* namespace am */
diff --git a/PluginCommandInterfaceCAPI/src-gen/org/genivi/am.cpp b/PluginCommandInterfaceCAPI/src-gen/org/genivi/am.cpp
new file mode 100644
index 0000000..01169e7
--- /dev/null
+++ b/PluginCommandInterfaceCAPI/src-gen/org/genivi/am.cpp
@@ -0,0 +1,910 @@
+/*
+* This file was generated by the CommonAPI Generators.
+*
+ * Copyright (C) 2013, BMW AG
+ *
+ * \author Christian Linke, christian.linke@bmw.de BMW 2012,2013
+*/
+#include "am.h"
+
+
+namespace org {
+namespace genivi {
+namespace am {
+
+am_Route_s::am_Route_s(const am_sourceID_t& sourceIDValue, const am_sinkID_t& sinkIDValue, const am_RoutingElement_L& routeValue):
+ sourceID(sourceIDValue),
+ sinkID(sinkIDValue),
+ route(routeValue)
+{
+}
+
+
+bool operator==(const am_Route_s& lhs, const am_Route_s& rhs) {
+ if (&lhs == &rhs)
+ return true;
+
+ return
+ lhs.sourceID == rhs.sourceID &&
+ lhs.sinkID == rhs.sinkID &&
+ lhs.route == rhs.route
+ ;
+}
+
+void am_Route_s::readFromInputStream(CommonAPI::InputStream& inputStream) {
+ inputStream >> sourceID;
+ inputStream >> sinkID;
+ inputStream >> route;
+}
+
+void am_Route_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const {
+ outputStream << sourceID;
+ outputStream << sinkID;
+ outputStream << route;
+}
+am_Availability_s::am_Availability_s(const am_Availability_e& availabilityValue, const am_AvailabilityReason_pe& availabilityReasonValue):
+ availability(availabilityValue),
+ availabilityReason(availabilityReasonValue)
+{
+}
+
+
+bool operator==(const am_Availability_s& lhs, const am_Availability_s& rhs) {
+ if (&lhs == &rhs)
+ return true;
+
+ return
+ lhs.availability == rhs.availability &&
+ lhs.availabilityReason == rhs.availabilityReason
+ ;
+}
+
+void am_Availability_s::readFromInputStream(CommonAPI::InputStream& inputStream) {
+ inputStream >> availability;
+ inputStream >> availabilityReason;
+}
+
+void am_Availability_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const {
+ outputStream << availability;
+ outputStream << availabilityReason;
+}
+am_ClassProperty_s::am_ClassProperty_s(const am_ClassProperty_pe& classPropertyValue, const int16_t& valueValue):
+ classProperty(classPropertyValue),
+ value(valueValue)
+{
+}
+
+
+bool operator==(const am_ClassProperty_s& lhs, const am_ClassProperty_s& rhs) {
+ if (&lhs == &rhs)
+ return true;
+
+ return
+ lhs.classProperty == rhs.classProperty &&
+ lhs.value == rhs.value
+ ;
+}
+
+void am_ClassProperty_s::readFromInputStream(CommonAPI::InputStream& inputStream) {
+ inputStream >> classProperty;
+ inputStream >> value;
+}
+
+void am_ClassProperty_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const {
+ outputStream << classProperty;
+ outputStream << value;
+}
+am_Crossfader_s::am_Crossfader_s(const am_crossfaderID_t& crossfaderIDValue, const std::string& nameValue, const am_sinkID_t& sinkID_AValue, const am_sinkID_t& sinkID_BValue, const am_sourceID_t& sourceIDValue, const am_HotSink_e& hotSinkValue):
+ crossfaderID(crossfaderIDValue),
+ name(nameValue),
+ sinkID_A(sinkID_AValue),
+ sinkID_B(sinkID_BValue),
+ sourceID(sourceIDValue),
+ hotSink(hotSinkValue)
+{
+}
+
+
+bool operator==(const am_Crossfader_s& lhs, const am_Crossfader_s& rhs) {
+ if (&lhs == &rhs)
+ return true;
+
+ return
+ lhs.crossfaderID == rhs.crossfaderID &&
+ lhs.name == rhs.name &&
+ lhs.sinkID_A == rhs.sinkID_A &&
+ lhs.sinkID_B == rhs.sinkID_B &&
+ lhs.sourceID == rhs.sourceID &&
+ lhs.hotSink == rhs.hotSink
+ ;
+}
+
+void am_Crossfader_s::readFromInputStream(CommonAPI::InputStream& inputStream) {
+ inputStream >> crossfaderID;
+ inputStream >> name;
+ inputStream >> sinkID_A;
+ inputStream >> sinkID_B;
+ inputStream >> sourceID;
+ inputStream >> hotSink;
+}
+
+void am_Crossfader_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const {
+ outputStream << crossfaderID;
+ outputStream << name;
+ outputStream << sinkID_A;
+ outputStream << sinkID_B;
+ outputStream << sourceID;
+ outputStream << hotSink;
+}
+am_Gateway_s::am_Gateway_s(const am_gatewayID_t& gatewayIDValue, const std::string& nameValue, const am_sinkID_t& sinkIDValue, const am_sourceID_t& sourceIDValue, const am_domainID_t& domainSinkIDValue, const am_domainID_t& domainSourceIDValue, const am_domainID_t& controlDomainIDValue, const am_ConnectionFormat_L& listSourceFormatsValue, const am_ConnectionFormat_L& listSinkFormatsValue, const am_Convertion_L& convertionMatrixValue):
+ gatewayID(gatewayIDValue),
+ name(nameValue),
+ sinkID(sinkIDValue),
+ sourceID(sourceIDValue),
+ domainSinkID(domainSinkIDValue),
+ domainSourceID(domainSourceIDValue),
+ controlDomainID(controlDomainIDValue),
+ listSourceFormats(listSourceFormatsValue),
+ listSinkFormats(listSinkFormatsValue),
+ convertionMatrix(convertionMatrixValue)
+{
+}
+
+
+bool operator==(const am_Gateway_s& lhs, const am_Gateway_s& rhs) {
+ if (&lhs == &rhs)
+ return true;
+
+ return
+ lhs.gatewayID == rhs.gatewayID &&
+ lhs.name == rhs.name &&
+ lhs.sinkID == rhs.sinkID &&
+ lhs.sourceID == rhs.sourceID &&
+ lhs.domainSinkID == rhs.domainSinkID &&
+ lhs.domainSourceID == rhs.domainSourceID &&
+ lhs.controlDomainID == rhs.controlDomainID &&
+ lhs.listSourceFormats == rhs.listSourceFormats &&
+ lhs.listSinkFormats == rhs.listSinkFormats &&
+ lhs.convertionMatrix == rhs.convertionMatrix
+ ;
+}
+
+void am_Gateway_s::readFromInputStream(CommonAPI::InputStream& inputStream) {
+ inputStream >> gatewayID;
+ inputStream >> name;
+ inputStream >> sinkID;
+ inputStream >> sourceID;
+ inputStream >> domainSinkID;
+ inputStream >> domainSourceID;
+ inputStream >> controlDomainID;
+ inputStream >> listSourceFormats;
+ inputStream >> listSinkFormats;
+ inputStream >> convertionMatrix;
+}
+
+void am_Gateway_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const {
+ outputStream << gatewayID;
+ outputStream << name;
+ outputStream << sinkID;
+ outputStream << sourceID;
+ outputStream << domainSinkID;
+ outputStream << domainSourceID;
+ outputStream << controlDomainID;
+ outputStream << listSourceFormats;
+ outputStream << listSinkFormats;
+ outputStream << convertionMatrix;
+}
+am_RoutingElement_s::am_RoutingElement_s(const am_sourceID_t& sourceIDValue, const am_sinkID_t& sinkIDValue, const am_domainID_t& domainIDValue, const am_ConnectionFormat_pe& connectionFormatValue):
+ sourceID(sourceIDValue),
+ sinkID(sinkIDValue),
+ domainID(domainIDValue),
+ connectionFormat(connectionFormatValue)
+{
+}
+
+
+bool operator==(const am_RoutingElement_s& lhs, const am_RoutingElement_s& rhs) {
+ if (&lhs == &rhs)
+ return true;
+
+ return
+ lhs.sourceID == rhs.sourceID &&
+ lhs.sinkID == rhs.sinkID &&
+ lhs.domainID == rhs.domainID &&
+ lhs.connectionFormat == rhs.connectionFormat
+ ;
+}
+
+void am_RoutingElement_s::readFromInputStream(CommonAPI::InputStream& inputStream) {
+ inputStream >> sourceID;
+ inputStream >> sinkID;
+ inputStream >> domainID;
+ inputStream >> connectionFormat;
+}
+
+void am_RoutingElement_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const {
+ outputStream << sourceID;
+ outputStream << sinkID;
+ outputStream << domainID;
+ outputStream << connectionFormat;
+}
+am_SoundProperty_s::am_SoundProperty_s(const am_SoundPropertyType_pe& typeValue, const int16_t& valueValue):
+ type(typeValue),
+ value(valueValue)
+{
+}
+
+
+bool operator==(const am_SoundProperty_s& lhs, const am_SoundProperty_s& rhs) {
+ if (&lhs == &rhs)
+ return true;
+
+ return
+ lhs.type == rhs.type &&
+ lhs.value == rhs.value
+ ;
+}
+
+void am_SoundProperty_s::readFromInputStream(CommonAPI::InputStream& inputStream) {
+ inputStream >> type;
+ inputStream >> value;
+}
+
+void am_SoundProperty_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const {
+ outputStream << type;
+ outputStream << value;
+}
+am_SystemProperty_s::am_SystemProperty_s(const am_SystemPropertyType_pe& typeValue, const int16_t& valueValue):
+ type(typeValue),
+ value(valueValue)
+{
+}
+
+
+bool operator==(const am_SystemProperty_s& lhs, const am_SystemProperty_s& rhs) {
+ if (&lhs == &rhs)
+ return true;
+
+ return
+ lhs.type == rhs.type &&
+ lhs.value == rhs.value
+ ;
+}
+
+void am_SystemProperty_s::readFromInputStream(CommonAPI::InputStream& inputStream) {
+ inputStream >> type;
+ inputStream >> value;
+}
+
+void am_SystemProperty_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const {
+ outputStream << type;
+ outputStream << value;
+}
+am_SinkClass_s::am_SinkClass_s(const am_sinkClass_t& sinkClassIDValue, const std::string& nameValue, const am_ClassProperty_L& listClassPropertiesValue):
+ sinkClassID(sinkClassIDValue),
+ name(nameValue),
+ listClassProperties(listClassPropertiesValue)
+{
+}
+
+
+bool operator==(const am_SinkClass_s& lhs, const am_SinkClass_s& rhs) {
+ if (&lhs == &rhs)
+ return true;
+
+ return
+ lhs.sinkClassID == rhs.sinkClassID &&
+ lhs.name == rhs.name &&
+ lhs.listClassProperties == rhs.listClassProperties
+ ;
+}
+
+void am_SinkClass_s::readFromInputStream(CommonAPI::InputStream& inputStream) {
+ inputStream >> sinkClassID;
+ inputStream >> name;
+ inputStream >> listClassProperties;
+}
+
+void am_SinkClass_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const {
+ outputStream << sinkClassID;
+ outputStream << name;
+ outputStream << listClassProperties;
+}
+am_SourceClass_s::am_SourceClass_s(const am_sourceClass_t& sourceClassIDValue, const std::string& nameValue, const am_ClassProperty_L& listClassPropertiesValue):
+ sourceClassID(sourceClassIDValue),
+ name(nameValue),
+ listClassProperties(listClassPropertiesValue)
+{
+}
+
+
+bool operator==(const am_SourceClass_s& lhs, const am_SourceClass_s& rhs) {
+ if (&lhs == &rhs)
+ return true;
+
+ return
+ lhs.sourceClassID == rhs.sourceClassID &&
+ lhs.name == rhs.name &&
+ lhs.listClassProperties == rhs.listClassProperties
+ ;
+}
+
+void am_SourceClass_s::readFromInputStream(CommonAPI::InputStream& inputStream) {
+ inputStream >> sourceClassID;
+ inputStream >> name;
+ inputStream >> listClassProperties;
+}
+
+void am_SourceClass_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const {
+ outputStream << sourceClassID;
+ outputStream << name;
+ outputStream << listClassProperties;
+}
+am_SourceType_s::am_SourceType_s(const am_sourceID_t& sourceIDValue, const std::string& nameValue, const am_Availability_s& availabilityValue, const am_sourceClass_t& sourceClassIDValue):
+ sourceID(sourceIDValue),
+ name(nameValue),
+ availability(availabilityValue),
+ sourceClassID(sourceClassIDValue)
+{
+}
+
+
+bool operator==(const am_SourceType_s& lhs, const am_SourceType_s& rhs) {
+ if (&lhs == &rhs)
+ return true;
+
+ return
+ lhs.sourceID == rhs.sourceID &&
+ lhs.name == rhs.name &&
+ lhs.availability == rhs.availability &&
+ lhs.sourceClassID == rhs.sourceClassID
+ ;
+}
+
+void am_SourceType_s::readFromInputStream(CommonAPI::InputStream& inputStream) {
+ inputStream >> sourceID;
+ inputStream >> name;
+ inputStream >> availability;
+ inputStream >> sourceClassID;
+}
+
+void am_SourceType_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const {
+ outputStream << sourceID;
+ outputStream << name;
+ outputStream << availability;
+ outputStream << sourceClassID;
+}
+am_SinkType_s::am_SinkType_s(const am_sinkID_t& sinkIDValue, const std::string& nameValue, const am_Availability_s& availabilityValue, const am_mainVolume_t& volumeValue, const am_MuteState_e& muteStateValue, const am_sinkClass_t& sinkClassIDValue):
+ sinkID(sinkIDValue),
+ name(nameValue),
+ availability(availabilityValue),
+ volume(volumeValue),
+ muteState(muteStateValue),
+ sinkClassID(sinkClassIDValue)
+{
+}
+
+
+bool operator==(const am_SinkType_s& lhs, const am_SinkType_s& rhs) {
+ if (&lhs == &rhs)
+ return true;
+
+ return
+ lhs.sinkID == rhs.sinkID &&
+ lhs.name == rhs.name &&
+ lhs.availability == rhs.availability &&
+ lhs.volume == rhs.volume &&
+ lhs.muteState == rhs.muteState &&
+ lhs.sinkClassID == rhs.sinkClassID
+ ;
+}
+
+void am_SinkType_s::readFromInputStream(CommonAPI::InputStream& inputStream) {
+ inputStream >> sinkID;
+ inputStream >> name;
+ inputStream >> availability;
+ inputStream >> volume;
+ inputStream >> muteState;
+ inputStream >> sinkClassID;
+}
+
+void am_SinkType_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const {
+ outputStream << sinkID;
+ outputStream << name;
+ outputStream << availability;
+ outputStream << volume;
+ outputStream << muteState;
+ outputStream << sinkClassID;
+}
+am_Handle_s::am_Handle_s(const am_Handle_e& handleTypeValue, const uint16_t& handleValue):
+ handleType(handleTypeValue),
+ handle(handleValue)
+{
+}
+
+
+bool operator==(const am_Handle_s& lhs, const am_Handle_s& rhs) {
+ if (&lhs == &rhs)
+ return true;
+
+ return
+ lhs.handleType == rhs.handleType &&
+ lhs.handle == rhs.handle
+ ;
+}
+
+void am_Handle_s::readFromInputStream(CommonAPI::InputStream& inputStream) {
+ inputStream >> handleType;
+ inputStream >> handle;
+}
+
+void am_Handle_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const {
+ outputStream << handleType;
+ outputStream << handle;
+}
+am_MainSoundProperty_s::am_MainSoundProperty_s(const am_MainSoundPropertyType_pe& typeValue, const int16_t& valueValue):
+ type(typeValue),
+ value(valueValue)
+{
+}
+
+
+bool operator==(const am_MainSoundProperty_s& lhs, const am_MainSoundProperty_s& rhs) {
+ if (&lhs == &rhs)
+ return true;
+
+ return
+ lhs.type == rhs.type &&
+ lhs.value == rhs.value
+ ;
+}
+
+void am_MainSoundProperty_s::readFromInputStream(CommonAPI::InputStream& inputStream) {
+ inputStream >> type;
+ inputStream >> value;
+}
+
+void am_MainSoundProperty_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const {
+ outputStream << type;
+ outputStream << value;
+}
+am_MainConnectionType_s::am_MainConnectionType_s(const am_mainConnectionID_t& mainConnectionIDValue, const am_sourceID_t& sourceIDValue, const am_sinkID_t& sinkIDValue, const am_timeSync_t& delayValue, const am_ConnectionState_e& connectionStateValue):
+ mainConnectionID(mainConnectionIDValue),
+ sourceID(sourceIDValue),
+ sinkID(sinkIDValue),
+ delay(delayValue),
+ connectionState(connectionStateValue)
+{
+}
+
+
+bool operator==(const am_MainConnectionType_s& lhs, const am_MainConnectionType_s& rhs) {
+ if (&lhs == &rhs)
+ return true;
+
+ return
+ lhs.mainConnectionID == rhs.mainConnectionID &&
+ lhs.sourceID == rhs.sourceID &&
+ lhs.sinkID == rhs.sinkID &&
+ lhs.delay == rhs.delay &&
+ lhs.connectionState == rhs.connectionState
+ ;
+}
+
+void am_MainConnectionType_s::readFromInputStream(CommonAPI::InputStream& inputStream) {
+ inputStream >> mainConnectionID;
+ inputStream >> sourceID;
+ inputStream >> sinkID;
+ inputStream >> delay;
+ inputStream >> connectionState;
+}
+
+void am_MainConnectionType_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const {
+ outputStream << mainConnectionID;
+ outputStream << sourceID;
+ outputStream << sinkID;
+ outputStream << delay;
+ outputStream << connectionState;
+}
+am_MainConnection_s::am_MainConnection_s(const am_mainConnectionID_t& mainConnectionIDValue, const am_ConnectionState_e& connectionStateValue, const am_sinkID_t& sinkIDValue, const am_sourceID_t& sourceIDValue, const am_timeSync_t& delayValue, const am_ConnectionID_L& listConnectionIDValue):
+ mainConnectionID(mainConnectionIDValue),
+ connectionState(connectionStateValue),
+ sinkID(sinkIDValue),
+ sourceID(sourceIDValue),
+ delay(delayValue),
+ listConnectionID(listConnectionIDValue)
+{
+}
+
+
+bool operator==(const am_MainConnection_s& lhs, const am_MainConnection_s& rhs) {
+ if (&lhs == &rhs)
+ return true;
+
+ return
+ lhs.mainConnectionID == rhs.mainConnectionID &&
+ lhs.connectionState == rhs.connectionState &&
+ lhs.sinkID == rhs.sinkID &&
+ lhs.sourceID == rhs.sourceID &&
+ lhs.delay == rhs.delay &&
+ lhs.listConnectionID == rhs.listConnectionID
+ ;
+}
+
+void am_MainConnection_s::readFromInputStream(CommonAPI::InputStream& inputStream) {
+ inputStream >> mainConnectionID;
+ inputStream >> connectionState;
+ inputStream >> sinkID;
+ inputStream >> sourceID;
+ inputStream >> delay;
+ inputStream >> listConnectionID;
+}
+
+void am_MainConnection_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const {
+ outputStream << mainConnectionID;
+ outputStream << connectionState;
+ outputStream << sinkID;
+ outputStream << sourceID;
+ outputStream << delay;
+ outputStream << listConnectionID;
+}
+am_NotificationPayload_s::am_NotificationPayload_s(const am_NotificationType_pe& typeValue, const int16_t& valueValue):
+ type(typeValue),
+ value(valueValue)
+{
+}
+
+
+bool operator==(const am_NotificationPayload_s& lhs, const am_NotificationPayload_s& rhs) {
+ if (&lhs == &rhs)
+ return true;
+
+ return
+ lhs.type == rhs.type &&
+ lhs.value == rhs.value
+ ;
+}
+
+void am_NotificationPayload_s::readFromInputStream(CommonAPI::InputStream& inputStream) {
+ inputStream >> type;
+ inputStream >> value;
+}
+
+void am_NotificationPayload_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const {
+ outputStream << type;
+ outputStream << value;
+}
+am_NotificationConfiguration_s::am_NotificationConfiguration_s(const am_NotificationType_pe& typeValue, const am_NotificationStatus_e& statusValue, const int16_t& parameterValue):
+ type(typeValue),
+ status(statusValue),
+ parameter(parameterValue)
+{
+}
+
+
+bool operator==(const am_NotificationConfiguration_s& lhs, const am_NotificationConfiguration_s& rhs) {
+ if (&lhs == &rhs)
+ return true;
+
+ return
+ lhs.type == rhs.type &&
+ lhs.status == rhs.status &&
+ lhs.parameter == rhs.parameter
+ ;
+}
+
+void am_NotificationConfiguration_s::readFromInputStream(CommonAPI::InputStream& inputStream) {
+ inputStream >> type;
+ inputStream >> status;
+ inputStream >> parameter;
+}
+
+void am_NotificationConfiguration_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const {
+ outputStream << type;
+ outputStream << status;
+ outputStream << parameter;
+}
+am_Sink_s::am_Sink_s(const am_sinkID_t& sinkIDValue, const std::string& nameValue, const am_domainID_t& domainIDValue, const am_sinkClass_t& sinkClassIDValue, const am_volume_t& volumeValue, const bool& visibleValue, const am_Availability_s& availableValue, const am_MuteState_e& muteStateValue, const am_mainVolume_t& mainVolumeValue, const am_SoundProperty_L& listSoundPropertiesValue, const am_ConnectionFormat_L& listConnectionFormatsValue, const am_MainSoundProperty_L& listMainSoundPropertiesValue, const am_NotificationConfiguration_L& listMainNotificationConfigurationsValue, const am_NotificationConfiguration_L& listNotificationConfigurationsValue):
+ sinkID(sinkIDValue),
+ name(nameValue),
+ domainID(domainIDValue),
+ sinkClassID(sinkClassIDValue),
+ volume(volumeValue),
+ visible(visibleValue),
+ available(availableValue),
+ muteState(muteStateValue),
+ mainVolume(mainVolumeValue),
+ listSoundProperties(listSoundPropertiesValue),
+ listConnectionFormats(listConnectionFormatsValue),
+ listMainSoundProperties(listMainSoundPropertiesValue),
+ listMainNotificationConfigurations(listMainNotificationConfigurationsValue),
+ listNotificationConfigurations(listNotificationConfigurationsValue)
+{
+}
+
+
+bool operator==(const am_Sink_s& lhs, const am_Sink_s& rhs) {
+ if (&lhs == &rhs)
+ return true;
+
+ return
+ lhs.sinkID == rhs.sinkID &&
+ lhs.name == rhs.name &&
+ lhs.domainID == rhs.domainID &&
+ lhs.sinkClassID == rhs.sinkClassID &&
+ lhs.volume == rhs.volume &&
+ lhs.visible == rhs.visible &&
+ lhs.available == rhs.available &&
+ lhs.muteState == rhs.muteState &&
+ lhs.mainVolume == rhs.mainVolume &&
+ lhs.listSoundProperties == rhs.listSoundProperties &&
+ lhs.listConnectionFormats == rhs.listConnectionFormats &&
+ lhs.listMainSoundProperties == rhs.listMainSoundProperties &&
+ lhs.listMainNotificationConfigurations == rhs.listMainNotificationConfigurations &&
+ lhs.listNotificationConfigurations == rhs.listNotificationConfigurations
+ ;
+}
+
+void am_Sink_s::readFromInputStream(CommonAPI::InputStream& inputStream) {
+ inputStream >> sinkID;
+ inputStream >> name;
+ inputStream >> domainID;
+ inputStream >> sinkClassID;
+ inputStream >> volume;
+ inputStream >> visible;
+ inputStream >> available;
+ inputStream >> muteState;
+ inputStream >> mainVolume;
+ inputStream >> listSoundProperties;
+ inputStream >> listConnectionFormats;
+ inputStream >> listMainSoundProperties;
+ inputStream >> listMainNotificationConfigurations;
+ inputStream >> listNotificationConfigurations;
+}
+
+void am_Sink_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const {
+ outputStream << sinkID;
+ outputStream << name;
+ outputStream << domainID;
+ outputStream << sinkClassID;
+ outputStream << volume;
+ outputStream << visible;
+ outputStream << available;
+ outputStream << muteState;
+ outputStream << mainVolume;
+ outputStream << listSoundProperties;
+ outputStream << listConnectionFormats;
+ outputStream << listMainSoundProperties;
+ outputStream << listMainNotificationConfigurations;
+ outputStream << listNotificationConfigurations;
+}
+am_Source_s::am_Source_s(const am_sourceID_t& sourceIDValue, const am_domainID_t& domainIDValue, const std::string& nameValue, const am_sourceClass_t& sourceClassIDValue, const am_SourceState_e& sourceStateValue, const am_volume_t& volumeValue, const bool& visibleValue, const am_Availability_s& availableValue, const am_InterruptState_e& interruptStateValue, const am_SoundProperty_L& listSoundPropertiesValue, const am_ConnectionFormat_L& listConnectionFormatsValue, const am_MainSoundProperty_L& listMainSoundPropertiesValue, const am_NotificationConfiguration_L& listMainNotificationConfigurationsValue, const am_NotificationConfiguration_L& listNotificationConfigurationsValue):
+ sourceID(sourceIDValue),
+ domainID(domainIDValue),
+ name(nameValue),
+ sourceClassID(sourceClassIDValue),
+ sourceState(sourceStateValue),
+ volume(volumeValue),
+ visible(visibleValue),
+ available(availableValue),
+ interruptState(interruptStateValue),
+ listSoundProperties(listSoundPropertiesValue),
+ listConnectionFormats(listConnectionFormatsValue),
+ listMainSoundProperties(listMainSoundPropertiesValue),
+ listMainNotificationConfigurations(listMainNotificationConfigurationsValue),
+ listNotificationConfigurations(listNotificationConfigurationsValue)
+{
+}
+
+
+bool operator==(const am_Source_s& lhs, const am_Source_s& rhs) {
+ if (&lhs == &rhs)
+ return true;
+
+ return
+ lhs.sourceID == rhs.sourceID &&
+ lhs.domainID == rhs.domainID &&
+ lhs.name == rhs.name &&
+ lhs.sourceClassID == rhs.sourceClassID &&
+ lhs.sourceState == rhs.sourceState &&
+ lhs.volume == rhs.volume &&
+ lhs.visible == rhs.visible &&
+ lhs.available == rhs.available &&
+ lhs.interruptState == rhs.interruptState &&
+ lhs.listSoundProperties == rhs.listSoundProperties &&
+ lhs.listConnectionFormats == rhs.listConnectionFormats &&
+ lhs.listMainSoundProperties == rhs.listMainSoundProperties &&
+ lhs.listMainNotificationConfigurations == rhs.listMainNotificationConfigurations &&
+ lhs.listNotificationConfigurations == rhs.listNotificationConfigurations
+ ;
+}
+
+void am_Source_s::readFromInputStream(CommonAPI::InputStream& inputStream) {
+ inputStream >> sourceID;
+ inputStream >> domainID;
+ inputStream >> name;
+ inputStream >> sourceClassID;
+ inputStream >> sourceState;
+ inputStream >> volume;
+ inputStream >> visible;
+ inputStream >> available;
+ inputStream >> interruptState;
+ inputStream >> listSoundProperties;
+ inputStream >> listConnectionFormats;
+ inputStream >> listMainSoundProperties;
+ inputStream >> listMainNotificationConfigurations;
+ inputStream >> listNotificationConfigurations;
+}
+
+void am_Source_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const {
+ outputStream << sourceID;
+ outputStream << domainID;
+ outputStream << name;
+ outputStream << sourceClassID;
+ outputStream << sourceState;
+ outputStream << volume;
+ outputStream << visible;
+ outputStream << available;
+ outputStream << interruptState;
+ outputStream << listSoundProperties;
+ outputStream << listConnectionFormats;
+ outputStream << listMainSoundProperties;
+ outputStream << listMainNotificationConfigurations;
+ outputStream << listNotificationConfigurations;
+}
+am_Domain_s::am_Domain_s(const am_domainID_t& domainIDValue, const std::string& nameValue, const std::string& busnameValue, const std::string& nodenameValue, const bool& earlyValue, const bool& completeValue, const am_DomainState_e& stateValue):
+ domainID(domainIDValue),
+ name(nameValue),
+ busname(busnameValue),
+ nodename(nodenameValue),
+ early(earlyValue),
+ complete(completeValue),
+ state(stateValue)
+{
+}
+
+
+bool operator==(const am_Domain_s& lhs, const am_Domain_s& rhs) {
+ if (&lhs == &rhs)
+ return true;
+
+ return
+ lhs.domainID == rhs.domainID &&
+ lhs.name == rhs.name &&
+ lhs.busname == rhs.busname &&
+ lhs.nodename == rhs.nodename &&
+ lhs.early == rhs.early &&
+ lhs.complete == rhs.complete &&
+ lhs.state == rhs.state
+ ;
+}
+
+void am_Domain_s::readFromInputStream(CommonAPI::InputStream& inputStream) {
+ inputStream >> domainID;
+ inputStream >> name;
+ inputStream >> busname;
+ inputStream >> nodename;
+ inputStream >> early;
+ inputStream >> complete;
+ inputStream >> state;
+}
+
+void am_Domain_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const {
+ outputStream << domainID;
+ outputStream << name;
+ outputStream << busname;
+ outputStream << nodename;
+ outputStream << early;
+ outputStream << complete;
+ outputStream << state;
+}
+am_EarlyData_s::am_EarlyData_s(const am_EarlyDataType_e& typeValue, const am_DataType_u& sinksourceValue, const am_EarlyData_u& dataValue):
+ type(typeValue),
+ sinksource(sinksourceValue),
+ data(dataValue)
+{
+}
+
+
+bool operator==(const am_EarlyData_s& lhs, const am_EarlyData_s& rhs) {
+ if (&lhs == &rhs)
+ return true;
+
+ return
+ lhs.type == rhs.type &&
+ lhs.sinksource == rhs.sinksource &&
+ lhs.data == rhs.data
+ ;
+}
+
+void am_EarlyData_s::readFromInputStream(CommonAPI::InputStream& inputStream) {
+ inputStream >> type;
+ inputStream >> sinksource;
+ inputStream >> data;
+}
+
+void am_EarlyData_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const {
+ outputStream << type;
+ outputStream << sinksource;
+ outputStream << data;
+}
+am_Connection_s::am_Connection_s(const am_connectionID_t& connectionIDValue, const am_sourceID_t& sourceIDValue, const am_sinkID_t& sinkIDValue, const am_timeSync_t& delayValue, const am_ConnectionFormat_pe& connectionFormatValue):
+ connectionID(connectionIDValue),
+ sourceID(sourceIDValue),
+ sinkID(sinkIDValue),
+ delay(delayValue),
+ connectionFormat(connectionFormatValue)
+{
+}
+
+
+bool operator==(const am_Connection_s& lhs, const am_Connection_s& rhs) {
+ if (&lhs == &rhs)
+ return true;
+
+ return
+ lhs.connectionID == rhs.connectionID &&
+ lhs.sourceID == rhs.sourceID &&
+ lhs.sinkID == rhs.sinkID &&
+ lhs.delay == rhs.delay &&
+ lhs.connectionFormat == rhs.connectionFormat
+ ;
+}
+
+void am_Connection_s::readFromInputStream(CommonAPI::InputStream& inputStream) {
+ inputStream >> connectionID;
+ inputStream >> sourceID;
+ inputStream >> sinkID;
+ inputStream >> delay;
+ inputStream >> connectionFormat;
+}
+
+void am_Connection_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const {
+ outputStream << connectionID;
+ outputStream << sourceID;
+ outputStream << sinkID;
+ outputStream << delay;
+ outputStream << connectionFormat;
+}
+am_Volumes_s::am_Volumes_s(const am_VolumeType_e& volumeTypeValue, const am_DataType_u& volumeIDValue, const am_volume_t& volumeValue, const am_RampType_pe& rampValue, const am_time_t& timeValue):
+ volumeType(volumeTypeValue),
+ volumeID(volumeIDValue),
+ volume(volumeValue),
+ ramp(rampValue),
+ time(timeValue)
+{
+}
+
+
+bool operator==(const am_Volumes_s& lhs, const am_Volumes_s& rhs) {
+ if (&lhs == &rhs)
+ return true;
+
+ return
+ lhs.volumeType == rhs.volumeType &&
+ lhs.volumeID == rhs.volumeID &&
+ lhs.volume == rhs.volume &&
+ lhs.ramp == rhs.ramp &&
+ lhs.time == rhs.time
+ ;
+}
+
+void am_Volumes_s::readFromInputStream(CommonAPI::InputStream& inputStream) {
+ inputStream >> volumeType;
+ inputStream >> volumeID;
+ inputStream >> volume;
+ inputStream >> ramp;
+ inputStream >> time;
+}
+
+void am_Volumes_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const {
+ outputStream << volumeType;
+ outputStream << volumeID;
+ outputStream << volume;
+ outputStream << ramp;
+ outputStream << time;
+}
+
+} // namespace am
+} // namespace genivi
+} // namespace org
diff --git a/PluginCommandInterfaceCAPI/src-gen/org/genivi/am.h b/PluginCommandInterfaceCAPI/src-gen/org/genivi/am.h
new file mode 100644
index 0000000..8e9b4be
--- /dev/null
+++ b/PluginCommandInterfaceCAPI/src-gen/org/genivi/am.h
@@ -0,0 +1,1532 @@
+/*
+* This file was generated by the CommonAPI Generators.
+*
+ * Copyright (C) 2013, BMW AG
+ *
+ * \author Christian Linke, christian.linke@bmw.de BMW 2012,2013
+*/
+#ifndef ORG_GENIVI_am_H_
+#define ORG_GENIVI_am_H_
+
+
+
+#define COMMONAPI_INTERNAL_COMPILATION
+
+#include <CommonAPI/InputStream.h>
+#include <CommonAPI/OutputStream.h>
+#include <CommonAPI/SerializableStruct.h>
+#include <CommonAPI/SerializableVariant.h>
+#include <CommonAPI/types.h>
+#include <cstdint>
+#include <memory>
+#include <string>
+#include <vector>
+
+#undef COMMONAPI_INTERNAL_COMPILATION
+
+namespace org {
+namespace genivi {
+
+namespace am {
+ typedef uint16_t am_sourceID_t;
+
+ typedef uint16_t am_mainConnectionID_t;
+
+ typedef int16_t am_timeSync_t;
+
+ typedef uint16_t am_sinkID_t;
+
+ enum class am_ConnectionState_e: int32_t {
+ CS_UNKNOWN = 0,
+ CS_CONNECTING = 1,
+ CS_CONNECTED = 2,
+ CS_DISCONNECTING = 3,
+ CS_DISCONNECTED = 4,
+ CS_SUSPENDED = 5,
+ CS_MAX
+ };
+
+ // XXX Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1
+ struct am_ConnectionState_eComparator;
+
+ struct am_MainConnectionType_s: CommonAPI::SerializableStruct {
+ am_mainConnectionID_t mainConnectionID;
+ am_sourceID_t sourceID;
+ am_sinkID_t sinkID;
+ am_timeSync_t delay;
+ am_ConnectionState_e connectionState;
+
+ am_MainConnectionType_s() = default;
+ am_MainConnectionType_s(const am_mainConnectionID_t& mainConnectionID, const am_sourceID_t& sourceID, const am_sinkID_t& sinkID, const am_timeSync_t& delay, const am_ConnectionState_e& connectionState);
+
+
+ virtual void readFromInputStream(CommonAPI::InputStream& inputStream);
+ virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const;
+
+ static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) {
+ typeOutputStream.writeUInt16Type();
+ typeOutputStream.writeUInt16Type();
+ typeOutputStream.writeUInt16Type();
+ typeOutputStream.writeInt16Type();
+ typeOutputStream.writeInt32Type();
+ }
+ };
+
+ typedef std::vector<am_MainConnectionType_s> am_MainConnection_L;
+
+ typedef uint16_t am_ClassProperty_pe;
+
+ struct am_ClassProperty_s: CommonAPI::SerializableStruct {
+ am_ClassProperty_pe classProperty;
+ int16_t value;
+
+ am_ClassProperty_s() = default;
+ am_ClassProperty_s(const am_ClassProperty_pe& classProperty, const int16_t& value);
+
+
+ virtual void readFromInputStream(CommonAPI::InputStream& inputStream);
+ virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const;
+
+ static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) {
+ typeOutputStream.writeUInt16Type();
+ typeOutputStream.writeInt16Type();
+ }
+ };
+
+ typedef std::vector<am_ClassProperty_s> am_ClassProperty_L;
+
+ typedef uint16_t am_sinkClass_t;
+
+ struct am_SinkClass_s: CommonAPI::SerializableStruct {
+ am_sinkClass_t sinkClassID;
+ std::string name;
+ am_ClassProperty_L listClassProperties;
+
+ am_SinkClass_s() = default;
+ am_SinkClass_s(const am_sinkClass_t& sinkClassID, const std::string& name, const am_ClassProperty_L& listClassProperties);
+
+
+ virtual void readFromInputStream(CommonAPI::InputStream& inputStream);
+ virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const;
+
+ static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) {
+ typeOutputStream.writeUInt16Type();
+ typeOutputStream.writeStringType();
+ typeOutputStream.beginWriteVectorType();
+ typeOutputStream.beginWriteStructType();
+ typeOutputStream.writeUInt16Type();typeOutputStream.writeInt16Type();
+ typeOutputStream.endWriteStructType();
+ typeOutputStream.endWriteVectorType();
+ }
+ };
+
+ typedef std::vector<am_SinkClass_s> am_SinkClass_L;
+
+ typedef int16_t am_mainVolume_t;
+
+ typedef uint16_t am_AvailabilityReason_pe;
+
+ enum class am_Availability_e: int32_t {
+ A_UNKNOWN = 0,
+ A_AVAILABLE = 1,
+ A_UNAVAILABLE = 2,
+ A_MAX
+ };
+
+ // XXX Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1
+ struct am_Availability_eComparator;
+
+ enum class am_MuteState_e: int32_t {
+ MS_UNKNOWN = 0,
+ MS_MUTED = 1,
+ MS_UNMUTED = 2,
+ MS_MAX
+ };
+
+ // XXX Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1
+ struct am_MuteState_eComparator;
+
+ struct am_Availability_s: CommonAPI::SerializableStruct {
+ am_Availability_e availability;
+ am_AvailabilityReason_pe availabilityReason;
+
+ am_Availability_s() = default;
+ am_Availability_s(const am_Availability_e& availability, const am_AvailabilityReason_pe& availabilityReason);
+
+
+ virtual void readFromInputStream(CommonAPI::InputStream& inputStream);
+ virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const;
+
+ static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) {
+ typeOutputStream.writeInt32Type();
+ typeOutputStream.writeUInt16Type();
+ }
+ };
+
+ struct am_SinkType_s: CommonAPI::SerializableStruct {
+ am_sinkID_t sinkID;
+ std::string name;
+ am_Availability_s availability;
+ am_mainVolume_t volume;
+ am_MuteState_e muteState;
+ am_sinkClass_t sinkClassID;
+
+ am_SinkType_s() = default;
+ am_SinkType_s(const am_sinkID_t& sinkID, const std::string& name, const am_Availability_s& availability, const am_mainVolume_t& volume, const am_MuteState_e& muteState, const am_sinkClass_t& sinkClassID);
+
+
+ virtual void readFromInputStream(CommonAPI::InputStream& inputStream);
+ virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const;
+
+ static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) {
+ typeOutputStream.writeUInt16Type();
+ typeOutputStream.writeStringType();
+ typeOutputStream.beginWriteStructType();
+ typeOutputStream.writeInt32Type();typeOutputStream.writeUInt16Type();
+ typeOutputStream.endWriteStructType();
+ typeOutputStream.writeInt16Type();
+ typeOutputStream.writeInt32Type();
+ typeOutputStream.writeUInt16Type();
+ }
+ };
+
+ typedef std::vector<am_SinkType_s> am_SinkType_L;
+
+ typedef uint16_t am_sourceClass_t;
+
+ struct am_SourceClass_s: CommonAPI::SerializableStruct {
+ am_sourceClass_t sourceClassID;
+ std::string name;
+ am_ClassProperty_L listClassProperties;
+
+ am_SourceClass_s() = default;
+ am_SourceClass_s(const am_sourceClass_t& sourceClassID, const std::string& name, const am_ClassProperty_L& listClassProperties);
+
+
+ virtual void readFromInputStream(CommonAPI::InputStream& inputStream);
+ virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const;
+
+ static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) {
+ typeOutputStream.writeUInt16Type();
+ typeOutputStream.writeStringType();
+ typeOutputStream.beginWriteVectorType();
+ typeOutputStream.beginWriteStructType();
+ typeOutputStream.writeUInt16Type();typeOutputStream.writeInt16Type();
+ typeOutputStream.endWriteStructType();
+ typeOutputStream.endWriteVectorType();
+ }
+ };
+
+ typedef std::vector<am_SourceClass_s> am_SourceClass_L;
+
+ struct am_SourceType_s: CommonAPI::SerializableStruct {
+ am_sourceID_t sourceID;
+ std::string name;
+ am_Availability_s availability;
+ am_sourceClass_t sourceClassID;
+
+ am_SourceType_s() = default;
+ am_SourceType_s(const am_sourceID_t& sourceID, const std::string& name, const am_Availability_s& availability, const am_sourceClass_t& sourceClassID);
+
+
+ virtual void readFromInputStream(CommonAPI::InputStream& inputStream);
+ virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const;
+
+ static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) {
+ typeOutputStream.writeUInt16Type();
+ typeOutputStream.writeStringType();
+ typeOutputStream.beginWriteStructType();
+ typeOutputStream.writeInt32Type();typeOutputStream.writeUInt16Type();
+ typeOutputStream.endWriteStructType();
+ typeOutputStream.writeUInt16Type();
+ }
+ };
+
+ typedef std::vector<am_SourceType_s> am_SourceType_L;
+
+ typedef uint16_t am_SystemPropertyType_pe;
+
+ struct am_SystemProperty_s: CommonAPI::SerializableStruct {
+ am_SystemPropertyType_pe type;
+ int16_t value;
+
+ am_SystemProperty_s() = default;
+ am_SystemProperty_s(const am_SystemPropertyType_pe& type, const int16_t& value);
+
+
+ virtual void readFromInputStream(CommonAPI::InputStream& inputStream);
+ virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const;
+
+ static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) {
+ typeOutputStream.writeUInt16Type();
+ typeOutputStream.writeInt16Type();
+ }
+ };
+
+ typedef std::vector<am_SystemProperty_s> am_SystemProperty_L;
+
+ typedef uint16_t am_connectionID_t;
+
+ typedef std::vector<am_connectionID_t> am_ConnectionID_L;
+
+ typedef int16_t am_volume_t;
+
+ typedef uint16_t am_SoundPropertyType_pe;
+
+ enum class am_EarlyDataType_e: int32_t {
+ ES_UNKNOWN = 0,
+ ED_SOURCE_VOLUME = 1,
+ ED_SINK_VOLUME = 2,
+ ED_SOURCE_PROPERTY = 3,
+ ED_SINK_PROPERTY = 4,
+ ED_MAX
+ };
+
+ // XXX Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1
+ struct am_EarlyDataType_eComparator;
+
+ struct am_SoundProperty_s: CommonAPI::SerializableStruct {
+ am_SoundPropertyType_pe type;
+ int16_t value;
+
+ am_SoundProperty_s() = default;
+ am_SoundProperty_s(const am_SoundPropertyType_pe& type, const int16_t& value);
+
+
+ virtual void readFromInputStream(CommonAPI::InputStream& inputStream);
+ virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const;
+
+ static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) {
+ typeOutputStream.writeUInt16Type();
+ typeOutputStream.writeInt16Type();
+ }
+ };
+
+ typedef CommonAPI::Variant<am_volume_t, am_SoundProperty_s> am_EarlyData_u;
+
+ typedef CommonAPI::Variant<am_sinkID_t, am_sourceID_t> am_DataType_u;
+
+ struct am_EarlyData_s: CommonAPI::SerializableStruct {
+ am_EarlyDataType_e type;
+ am_DataType_u sinksource;
+ am_EarlyData_u data;
+
+ am_EarlyData_s() = default;
+ am_EarlyData_s(const am_EarlyDataType_e& type, const am_DataType_u& sinksource, const am_EarlyData_u& data);
+
+
+ virtual void readFromInputStream(CommonAPI::InputStream& inputStream);
+ virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const;
+
+ static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) {
+ typeOutputStream.writeInt32Type();
+ typeOutputStream.writeVariantType();
+ typeOutputStream.writeVariantType();
+ }
+ };
+
+ typedef std::vector<am_EarlyData_s> am_EarlyData_L;
+
+ typedef uint16_t am_MainSoundPropertyType_pe;
+
+ struct am_MainSoundProperty_s: CommonAPI::SerializableStruct {
+ am_MainSoundPropertyType_pe type;
+ int16_t value;
+
+ am_MainSoundProperty_s() = default;
+ am_MainSoundProperty_s(const am_MainSoundPropertyType_pe& type, const int16_t& value);
+
+
+ virtual void readFromInputStream(CommonAPI::InputStream& inputStream);
+ virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const;
+
+ static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) {
+ typeOutputStream.writeUInt16Type();
+ typeOutputStream.writeInt16Type();
+ }
+ };
+
+ typedef std::vector<am_MainSoundProperty_s> am_MainSoundProperty_L;
+
+ typedef uint16_t am_NotificationType_pe;
+
+ enum class am_NotificationStatus_e: int32_t {
+ NS_UNKNOWN = 0,
+ NS_OFF = 1,
+ NS_PERIODIC = 2,
+ NS_MINIMUM = 3,
+ NS_MAXIMUM = 4,
+ NS_CHANGE_ = 5,
+ NS_MAX
+ };
+
+ // XXX Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1
+ struct am_NotificationStatus_eComparator;
+
+ struct am_NotificationConfiguration_s: CommonAPI::SerializableStruct {
+ am_NotificationType_pe type;
+ am_NotificationStatus_e status;
+ int16_t parameter;
+
+ am_NotificationConfiguration_s() = default;
+ am_NotificationConfiguration_s(const am_NotificationType_pe& type, const am_NotificationStatus_e& status, const int16_t& parameter);
+
+
+ virtual void readFromInputStream(CommonAPI::InputStream& inputStream);
+ virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const;
+
+ static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) {
+ typeOutputStream.writeUInt16Type();
+ typeOutputStream.writeInt32Type();
+ typeOutputStream.writeInt16Type();
+ }
+ };
+
+ typedef std::vector<am_NotificationConfiguration_s> am_NotificationConfiguration_L;
+
+ typedef uint16_t am_domainID_t;
+
+ typedef uint16_t am_ConnectionFormat_pe;
+
+ struct am_RoutingElement_s: CommonAPI::SerializableStruct {
+ am_sourceID_t sourceID;
+ am_sinkID_t sinkID;
+ am_domainID_t domainID;
+ am_ConnectionFormat_pe connectionFormat;
+
+ am_RoutingElement_s() = default;
+ am_RoutingElement_s(const am_sourceID_t& sourceID, const am_sinkID_t& sinkID, const am_domainID_t& domainID, const am_ConnectionFormat_pe& connectionFormat);
+
+
+ virtual void readFromInputStream(CommonAPI::InputStream& inputStream);
+ virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const;
+
+ static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) {
+ typeOutputStream.writeUInt16Type();
+ typeOutputStream.writeUInt16Type();
+ typeOutputStream.writeUInt16Type();
+ typeOutputStream.writeUInt16Type();
+ }
+ };
+
+ typedef std::vector<am_RoutingElement_s> am_RoutingElement_L;
+
+ typedef std::vector<am_SoundProperty_s> am_SoundProperty_L;
+
+ typedef int16_t am_time_t;
+
+ typedef uint16_t am_RampType_pe;
+
+ enum class am_VolumeType_e: int32_t {
+ VT_UNKNOWN = 0,
+ VT_SINK = 1,
+ VT_SOURCE = 2,
+ VT_MAX
+ };
+
+ // XXX Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1
+ struct am_VolumeType_eComparator;
+
+ struct am_Volumes_s: CommonAPI::SerializableStruct {
+ am_VolumeType_e volumeType;
+ am_DataType_u volumeID;
+ am_volume_t volume;
+ am_RampType_pe ramp;
+ am_time_t time;
+
+ am_Volumes_s() = default;
+ am_Volumes_s(const am_VolumeType_e& volumeType, const am_DataType_u& volumeID, const am_volume_t& volume, const am_RampType_pe& ramp, const am_time_t& time);
+
+
+ virtual void readFromInputStream(CommonAPI::InputStream& inputStream);
+ virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const;
+
+ static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) {
+ typeOutputStream.writeInt32Type();
+ typeOutputStream.writeVariantType();
+ typeOutputStream.writeInt16Type();
+ typeOutputStream.writeUInt16Type();
+ typeOutputStream.writeInt16Type();
+ }
+ };
+
+ typedef std::vector<am_Volumes_s> am_Volumes_L;
+
+ typedef std::vector<am_ConnectionFormat_pe> am_ConnectionFormat_L;
+
+ typedef bool am_bool_t;
+
+ typedef std::vector<am_bool_t> am_Convertion_L;
+
+ typedef uint16_t am_gatewayID_t;
+
+ typedef uint16_t am_crossfaderID_t;
+
+ typedef uint16_t am_speed_t;
+
+ enum class am_HotSink_e: int32_t {
+ HS_UNKNOWN = 0,
+ HS_SINKA = 1,
+ HS_SINKB = 2,
+ HS_INTERMEDIATE = 3,
+ HS_MAX
+ };
+
+ // XXX Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1
+ struct am_HotSink_eComparator;
+
+ enum class am_DomainState_e: int32_t {
+ DS_UNKNOWN = 0,
+ DS_CONTROLLED = 1,
+ DS_INDEPENDENT_STARTUP = 1,
+ DS_INDEPENDENT_RUNDOWN = 2,
+ DS_MAX
+ };
+
+ // XXX Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1
+ struct am_DomainState_eComparator;
+
+ enum class am_Error_e: int32_t {
+ E_OK = 0,
+ E_UNKNOWN = 1,
+ E_OUT_OF_RANGE = 2,
+ E_NOT_USED = 3,
+ E_DATABASE_ERROR = 4,
+ E_ALREADY_EXISTS = 5,
+ E_NO_CHANGE = 6,
+ E_NOT_POSSIBLE = 7,
+ E_NON_EXISTENT = 8,
+ E_ABORTED = 9,
+ E_WRONG_FORMAT = 10,
+ E_MAX
+ };
+
+ // XXX Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1
+ struct am_Error_eComparator;
+
+ enum class am_InterruptState_e: int32_t {
+ IS_UNKNOWN = 0,
+ IS_OFF = 1,
+ IS_INTERRUPTED = 2,
+ IS_MAX
+ };
+
+ // XXX Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1
+ struct am_InterruptState_eComparator;
+
+ enum class am_Handle_e: int32_t {
+ H_UNKNOWN = 0,
+ H_CONNECT = 1,
+ H_DISCONNECT = 2,
+ H_SETSOURCESTATE = 3,
+ H_SETSINKVOLUME = 4,
+ H_SETSOURCEVOLUME = 5,
+ H_SETSINKSOUNDPROPERTY = 6,
+ H_SETSOURCESOUNDPROPERTY = 7,
+ H_SETSINKSOUNDPROPERTIES = 8,
+ H_SETSOURCESOUNDPROPERTIES = 9,
+ H_CROSSFADE = 10,
+ H_SETVOLUMES = 11,
+ H_SETSINKNOTIFICATION = 12,
+ H_SETSOURCENOTIFICATION = 13,
+ H_MAX
+ };
+
+ // XXX Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1
+ struct am_Handle_eComparator;
+
+ enum class am_SourceState_e: int32_t {
+ SS_UNKNNOWN = 0,
+ SS_ON = 1,
+ SS_OFF = 2,
+ SS_PAUSED = 3,
+ SS_MAX
+ };
+
+ // XXX Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1
+ struct am_SourceState_eComparator;
+
+ enum class am_RoutingReady_e: int32_t {
+ RR_UNKNOWN = 0,
+ RR_READY = 1,
+ RR_RUNDOWN = 2
+ };
+
+ // XXX Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1
+ struct am_RoutingReady_eComparator;
+
+ struct am_Route_s: CommonAPI::SerializableStruct {
+ am_sourceID_t sourceID;
+ am_sinkID_t sinkID;
+ am_RoutingElement_L route;
+
+ am_Route_s() = default;
+ am_Route_s(const am_sourceID_t& sourceID, const am_sinkID_t& sinkID, const am_RoutingElement_L& route);
+
+
+ virtual void readFromInputStream(CommonAPI::InputStream& inputStream);
+ virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const;
+
+ static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) {
+ typeOutputStream.writeUInt16Type();
+ typeOutputStream.writeUInt16Type();
+ typeOutputStream.beginWriteVectorType();
+ typeOutputStream.beginWriteStructType();
+ typeOutputStream.writeUInt16Type();typeOutputStream.writeUInt16Type();typeOutputStream.writeUInt16Type();typeOutputStream.writeUInt16Type();
+ typeOutputStream.endWriteStructType();
+ typeOutputStream.endWriteVectorType();
+ }
+ };
+
+ struct am_Crossfader_s: CommonAPI::SerializableStruct {
+ am_crossfaderID_t crossfaderID;
+ std::string name;
+ am_sinkID_t sinkID_A;
+ am_sinkID_t sinkID_B;
+ am_sourceID_t sourceID;
+ am_HotSink_e hotSink;
+
+ am_Crossfader_s() = default;
+ am_Crossfader_s(const am_crossfaderID_t& crossfaderID, const std::string& name, const am_sinkID_t& sinkID_A, const am_sinkID_t& sinkID_B, const am_sourceID_t& sourceID, const am_HotSink_e& hotSink);
+
+
+ virtual void readFromInputStream(CommonAPI::InputStream& inputStream);
+ virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const;
+
+ static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) {
+ typeOutputStream.writeUInt16Type();
+ typeOutputStream.writeStringType();
+ typeOutputStream.writeUInt16Type();
+ typeOutputStream.writeUInt16Type();
+ typeOutputStream.writeUInt16Type();
+ typeOutputStream.writeInt32Type();
+ }
+ };
+
+ struct am_Gateway_s: CommonAPI::SerializableStruct {
+ am_gatewayID_t gatewayID;
+ std::string name;
+ am_sinkID_t sinkID;
+ am_sourceID_t sourceID;
+ am_domainID_t domainSinkID;
+ am_domainID_t domainSourceID;
+ am_domainID_t controlDomainID;
+ am_ConnectionFormat_L listSourceFormats;
+ am_ConnectionFormat_L listSinkFormats;
+ am_Convertion_L convertionMatrix;
+
+ am_Gateway_s() = default;
+ am_Gateway_s(const am_gatewayID_t& gatewayID, const std::string& name, const am_sinkID_t& sinkID, const am_sourceID_t& sourceID, const am_domainID_t& domainSinkID, const am_domainID_t& domainSourceID, const am_domainID_t& controlDomainID, const am_ConnectionFormat_L& listSourceFormats, const am_ConnectionFormat_L& listSinkFormats, const am_Convertion_L& convertionMatrix);
+
+
+ virtual void readFromInputStream(CommonAPI::InputStream& inputStream);
+ virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const;
+
+ static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) {
+ typeOutputStream.writeUInt16Type();
+ typeOutputStream.writeStringType();
+ typeOutputStream.writeUInt16Type();
+ typeOutputStream.writeUInt16Type();
+ typeOutputStream.writeUInt16Type();
+ typeOutputStream.writeUInt16Type();
+ typeOutputStream.writeUInt16Type();
+ typeOutputStream.beginWriteVectorType();
+ typeOutputStream.writeUInt16Type();
+ typeOutputStream.endWriteVectorType();
+ typeOutputStream.beginWriteVectorType();
+ typeOutputStream.writeUInt16Type();
+ typeOutputStream.endWriteVectorType();
+ typeOutputStream.beginWriteVectorType();
+ typeOutputStream.writeBoolType();
+ typeOutputStream.endWriteVectorType();
+ }
+ };
+
+ struct am_Handle_s: CommonAPI::SerializableStruct {
+ am_Handle_e handleType;
+ uint16_t handle;
+
+ am_Handle_s() = default;
+ am_Handle_s(const am_Handle_e& handleType, const uint16_t& handle);
+
+
+ virtual void readFromInputStream(CommonAPI::InputStream& inputStream);
+ virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const;
+
+ static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) {
+ typeOutputStream.writeInt32Type();
+ typeOutputStream.writeUInt16Type();
+ }
+ };
+
+ struct am_MainConnection_s: CommonAPI::SerializableStruct {
+ am_mainConnectionID_t mainConnectionID;
+ am_ConnectionState_e connectionState;
+ am_sinkID_t sinkID;
+ am_sourceID_t sourceID;
+ am_timeSync_t delay;
+ am_ConnectionID_L listConnectionID;
+
+ am_MainConnection_s() = default;
+ am_MainConnection_s(const am_mainConnectionID_t& mainConnectionID, const am_ConnectionState_e& connectionState, const am_sinkID_t& sinkID, const am_sourceID_t& sourceID, const am_timeSync_t& delay, const am_ConnectionID_L& listConnectionID);
+
+
+ virtual void readFromInputStream(CommonAPI::InputStream& inputStream);
+ virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const;
+
+ static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) {
+ typeOutputStream.writeUInt16Type();
+ typeOutputStream.writeInt32Type();
+ typeOutputStream.writeUInt16Type();
+ typeOutputStream.writeUInt16Type();
+ typeOutputStream.writeInt16Type();
+ typeOutputStream.beginWriteVectorType();
+ typeOutputStream.writeUInt16Type();
+ typeOutputStream.endWriteVectorType();
+ }
+ };
+
+ struct am_NotificationPayload_s: CommonAPI::SerializableStruct {
+ am_NotificationType_pe type;
+ int16_t value;
+
+ am_NotificationPayload_s() = default;
+ am_NotificationPayload_s(const am_NotificationType_pe& type, const int16_t& value);
+
+
+ virtual void readFromInputStream(CommonAPI::InputStream& inputStream);
+ virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const;
+
+ static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) {
+ typeOutputStream.writeUInt16Type();
+ typeOutputStream.writeInt16Type();
+ }
+ };
+
+ struct am_Sink_s: CommonAPI::SerializableStruct {
+ am_sinkID_t sinkID;
+ std::string name;
+ am_domainID_t domainID;
+ am_sinkClass_t sinkClassID;
+ am_volume_t volume;
+ bool visible;
+ am_Availability_s available;
+ am_MuteState_e muteState;
+ am_mainVolume_t mainVolume;
+ am_SoundProperty_L listSoundProperties;
+ am_ConnectionFormat_L listConnectionFormats;
+ am_MainSoundProperty_L listMainSoundProperties;
+ am_NotificationConfiguration_L listMainNotificationConfigurations;
+ am_NotificationConfiguration_L listNotificationConfigurations;
+
+ am_Sink_s() = default;
+ am_Sink_s(const am_sinkID_t& sinkID, const std::string& name, const am_domainID_t& domainID, const am_sinkClass_t& sinkClassID, const am_volume_t& volume, const bool& visible, const am_Availability_s& available, const am_MuteState_e& muteState, const am_mainVolume_t& mainVolume, const am_SoundProperty_L& listSoundProperties, const am_ConnectionFormat_L& listConnectionFormats, const am_MainSoundProperty_L& listMainSoundProperties, const am_NotificationConfiguration_L& listMainNotificationConfigurations, const am_NotificationConfiguration_L& listNotificationConfigurations);
+
+
+ virtual void readFromInputStream(CommonAPI::InputStream& inputStream);
+ virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const;
+
+ static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) {
+ typeOutputStream.writeUInt16Type();
+ typeOutputStream.writeStringType();
+ typeOutputStream.writeUInt16Type();
+ typeOutputStream.writeUInt16Type();
+ typeOutputStream.writeInt16Type();
+ typeOutputStream.writeBoolType();
+ typeOutputStream.beginWriteStructType();
+ typeOutputStream.writeInt32Type();typeOutputStream.writeUInt16Type();
+ typeOutputStream.endWriteStructType();
+ typeOutputStream.writeInt32Type();
+ typeOutputStream.writeInt16Type();
+ typeOutputStream.beginWriteVectorType();
+ typeOutputStream.beginWriteStructType();
+ typeOutputStream.writeUInt16Type();typeOutputStream.writeInt16Type();
+ typeOutputStream.endWriteStructType();
+ typeOutputStream.endWriteVectorType();
+ typeOutputStream.beginWriteVectorType();
+ typeOutputStream.writeUInt16Type();
+ typeOutputStream.endWriteVectorType();
+ typeOutputStream.beginWriteVectorType();
+ typeOutputStream.beginWriteStructType();
+ typeOutputStream.writeUInt16Type();typeOutputStream.writeInt16Type();
+ typeOutputStream.endWriteStructType();
+ typeOutputStream.endWriteVectorType();
+ typeOutputStream.beginWriteVectorType();
+ typeOutputStream.beginWriteStructType();
+ typeOutputStream.writeUInt16Type();typeOutputStream.writeInt32Type();typeOutputStream.writeInt16Type();
+ typeOutputStream.endWriteStructType();
+ typeOutputStream.endWriteVectorType();
+ typeOutputStream.beginWriteVectorType();
+ typeOutputStream.beginWriteStructType();
+ typeOutputStream.writeUInt16Type();typeOutputStream.writeInt32Type();typeOutputStream.writeInt16Type();
+ typeOutputStream.endWriteStructType();
+ typeOutputStream.endWriteVectorType();
+ }
+ };
+
+ struct am_Source_s: CommonAPI::SerializableStruct {
+ am_sourceID_t sourceID;
+ am_domainID_t domainID;
+ std::string name;
+ am_sourceClass_t sourceClassID;
+ am_SourceState_e sourceState;
+ am_volume_t volume;
+ bool visible;
+ am_Availability_s available;
+ am_InterruptState_e interruptState;
+ am_SoundProperty_L listSoundProperties;
+ am_ConnectionFormat_L listConnectionFormats;
+ am_MainSoundProperty_L listMainSoundProperties;
+ am_NotificationConfiguration_L listMainNotificationConfigurations;
+ am_NotificationConfiguration_L listNotificationConfigurations;
+
+ am_Source_s() = default;
+ am_Source_s(const am_sourceID_t& sourceID, const am_domainID_t& domainID, const std::string& name, const am_sourceClass_t& sourceClassID, const am_SourceState_e& sourceState, const am_volume_t& volume, const bool& visible, const am_Availability_s& available, const am_InterruptState_e& interruptState, const am_SoundProperty_L& listSoundProperties, const am_ConnectionFormat_L& listConnectionFormats, const am_MainSoundProperty_L& listMainSoundProperties, const am_NotificationConfiguration_L& listMainNotificationConfigurations, const am_NotificationConfiguration_L& listNotificationConfigurations);
+
+
+ virtual void readFromInputStream(CommonAPI::InputStream& inputStream);
+ virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const;
+
+ static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) {
+ typeOutputStream.writeUInt16Type();
+ typeOutputStream.writeUInt16Type();
+ typeOutputStream.writeStringType();
+ typeOutputStream.writeUInt16Type();
+ typeOutputStream.writeInt32Type();
+ typeOutputStream.writeInt16Type();
+ typeOutputStream.writeBoolType();
+ typeOutputStream.beginWriteStructType();
+ typeOutputStream.writeInt32Type();typeOutputStream.writeUInt16Type();
+ typeOutputStream.endWriteStructType();
+ typeOutputStream.writeInt32Type();
+ typeOutputStream.beginWriteVectorType();
+ typeOutputStream.beginWriteStructType();
+ typeOutputStream.writeUInt16Type();typeOutputStream.writeInt16Type();
+ typeOutputStream.endWriteStructType();
+ typeOutputStream.endWriteVectorType();
+ typeOutputStream.beginWriteVectorType();
+ typeOutputStream.writeUInt16Type();
+ typeOutputStream.endWriteVectorType();
+ typeOutputStream.beginWriteVectorType();
+ typeOutputStream.beginWriteStructType();
+ typeOutputStream.writeUInt16Type();typeOutputStream.writeInt16Type();
+ typeOutputStream.endWriteStructType();
+ typeOutputStream.endWriteVectorType();
+ typeOutputStream.beginWriteVectorType();
+ typeOutputStream.beginWriteStructType();
+ typeOutputStream.writeUInt16Type();typeOutputStream.writeInt32Type();typeOutputStream.writeInt16Type();
+ typeOutputStream.endWriteStructType();
+ typeOutputStream.endWriteVectorType();
+ typeOutputStream.beginWriteVectorType();
+ typeOutputStream.beginWriteStructType();
+ typeOutputStream.writeUInt16Type();typeOutputStream.writeInt32Type();typeOutputStream.writeInt16Type();
+ typeOutputStream.endWriteStructType();
+ typeOutputStream.endWriteVectorType();
+ }
+ };
+
+ struct am_Domain_s: CommonAPI::SerializableStruct {
+ am_domainID_t domainID;
+ std::string name;
+ std::string busname;
+ std::string nodename;
+ bool early;
+ bool complete;
+ am_DomainState_e state;
+
+ am_Domain_s() = default;
+ am_Domain_s(const am_domainID_t& domainID, const std::string& name, const std::string& busname, const std::string& nodename, const bool& early, const bool& complete, const am_DomainState_e& state);
+
+
+ virtual void readFromInputStream(CommonAPI::InputStream& inputStream);
+ virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const;
+
+ static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) {
+ typeOutputStream.writeUInt16Type();
+ typeOutputStream.writeStringType();
+ typeOutputStream.writeStringType();
+ typeOutputStream.writeStringType();
+ typeOutputStream.writeBoolType();
+ typeOutputStream.writeBoolType();
+ typeOutputStream.writeInt32Type();
+ }
+ };
+
+ struct am_Connection_s: CommonAPI::SerializableStruct {
+ am_connectionID_t connectionID;
+ am_sourceID_t sourceID;
+ am_sinkID_t sinkID;
+ am_timeSync_t delay;
+ am_ConnectionFormat_pe connectionFormat;
+
+ am_Connection_s() = default;
+ am_Connection_s(const am_connectionID_t& connectionID, const am_sourceID_t& sourceID, const am_sinkID_t& sinkID, const am_timeSync_t& delay, const am_ConnectionFormat_pe& connectionFormat);
+
+
+ virtual void readFromInputStream(CommonAPI::InputStream& inputStream);
+ virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const;
+
+ static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) {
+ typeOutputStream.writeUInt16Type();
+ typeOutputStream.writeUInt16Type();
+ typeOutputStream.writeUInt16Type();
+ typeOutputStream.writeInt16Type();
+ typeOutputStream.writeUInt16Type();
+ }
+ };
+
+
+inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, am_Availability_e& enumValue) {
+ return inputStream.readEnumValue<int32_t>(enumValue);
+}
+
+inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const am_Availability_e& enumValue) {
+ return outputStream.writeEnumValue(static_cast<int32_t>(enumValue));
+}
+
+struct am_Availability_eComparator {
+ inline bool operator()(const am_Availability_e& lhs, const am_Availability_e& rhs) const {
+ return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs);
+ }
+};
+
+inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, am_HotSink_e& enumValue) {
+ return inputStream.readEnumValue<int32_t>(enumValue);
+}
+
+inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const am_HotSink_e& enumValue) {
+ return outputStream.writeEnumValue(static_cast<int32_t>(enumValue));
+}
+
+struct am_HotSink_eComparator {
+ inline bool operator()(const am_HotSink_e& lhs, const am_HotSink_e& rhs) const {
+ return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs);
+ }
+};
+
+inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, am_ConnectionState_e& enumValue) {
+ return inputStream.readEnumValue<int32_t>(enumValue);
+}
+
+inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const am_ConnectionState_e& enumValue) {
+ return outputStream.writeEnumValue(static_cast<int32_t>(enumValue));
+}
+
+struct am_ConnectionState_eComparator {
+ inline bool operator()(const am_ConnectionState_e& lhs, const am_ConnectionState_e& rhs) const {
+ return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs);
+ }
+};
+
+inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, am_DomainState_e& enumValue) {
+ return inputStream.readEnumValue<int32_t>(enumValue);
+}
+
+inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const am_DomainState_e& enumValue) {
+ return outputStream.writeEnumValue(static_cast<int32_t>(enumValue));
+}
+
+struct am_DomainState_eComparator {
+ inline bool operator()(const am_DomainState_e& lhs, const am_DomainState_e& rhs) const {
+ return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs);
+ }
+};
+
+inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, am_EarlyDataType_e& enumValue) {
+ return inputStream.readEnumValue<int32_t>(enumValue);
+}
+
+inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const am_EarlyDataType_e& enumValue) {
+ return outputStream.writeEnumValue(static_cast<int32_t>(enumValue));
+}
+
+struct am_EarlyDataType_eComparator {
+ inline bool operator()(const am_EarlyDataType_e& lhs, const am_EarlyDataType_e& rhs) const {
+ return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs);
+ }
+};
+
+inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, am_Error_e& enumValue) {
+ return inputStream.readEnumValue<int32_t>(enumValue);
+}
+
+inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const am_Error_e& enumValue) {
+ return outputStream.writeEnumValue(static_cast<int32_t>(enumValue));
+}
+
+struct am_Error_eComparator {
+ inline bool operator()(const am_Error_e& lhs, const am_Error_e& rhs) const {
+ return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs);
+ }
+};
+
+inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, am_MuteState_e& enumValue) {
+ return inputStream.readEnumValue<int32_t>(enumValue);
+}
+
+inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const am_MuteState_e& enumValue) {
+ return outputStream.writeEnumValue(static_cast<int32_t>(enumValue));
+}
+
+struct am_MuteState_eComparator {
+ inline bool operator()(const am_MuteState_e& lhs, const am_MuteState_e& rhs) const {
+ return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs);
+ }
+};
+
+inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, am_InterruptState_e& enumValue) {
+ return inputStream.readEnumValue<int32_t>(enumValue);
+}
+
+inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const am_InterruptState_e& enumValue) {
+ return outputStream.writeEnumValue(static_cast<int32_t>(enumValue));
+}
+
+struct am_InterruptState_eComparator {
+ inline bool operator()(const am_InterruptState_e& lhs, const am_InterruptState_e& rhs) const {
+ return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs);
+ }
+};
+
+inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, am_VolumeType_e& enumValue) {
+ return inputStream.readEnumValue<int32_t>(enumValue);
+}
+
+inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const am_VolumeType_e& enumValue) {
+ return outputStream.writeEnumValue(static_cast<int32_t>(enumValue));
+}
+
+struct am_VolumeType_eComparator {
+ inline bool operator()(const am_VolumeType_e& lhs, const am_VolumeType_e& rhs) const {
+ return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs);
+ }
+};
+
+inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, am_NotificationStatus_e& enumValue) {
+ return inputStream.readEnumValue<int32_t>(enumValue);
+}
+
+inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const am_NotificationStatus_e& enumValue) {
+ return outputStream.writeEnumValue(static_cast<int32_t>(enumValue));
+}
+
+struct am_NotificationStatus_eComparator {
+ inline bool operator()(const am_NotificationStatus_e& lhs, const am_NotificationStatus_e& rhs) const {
+ return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs);
+ }
+};
+
+inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, am_Handle_e& enumValue) {
+ return inputStream.readEnumValue<int32_t>(enumValue);
+}
+
+inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const am_Handle_e& enumValue) {
+ return outputStream.writeEnumValue(static_cast<int32_t>(enumValue));
+}
+
+struct am_Handle_eComparator {
+ inline bool operator()(const am_Handle_e& lhs, const am_Handle_e& rhs) const {
+ return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs);
+ }
+};
+
+inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, am_SourceState_e& enumValue) {
+ return inputStream.readEnumValue<int32_t>(enumValue);
+}
+
+inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const am_SourceState_e& enumValue) {
+ return outputStream.writeEnumValue(static_cast<int32_t>(enumValue));
+}
+
+struct am_SourceState_eComparator {
+ inline bool operator()(const am_SourceState_e& lhs, const am_SourceState_e& rhs) const {
+ return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs);
+ }
+};
+
+inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, am_RoutingReady_e& enumValue) {
+ return inputStream.readEnumValue<int32_t>(enumValue);
+}
+
+inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const am_RoutingReady_e& enumValue) {
+ return outputStream.writeEnumValue(static_cast<int32_t>(enumValue));
+}
+
+struct am_RoutingReady_eComparator {
+ inline bool operator()(const am_RoutingReady_e& lhs, const am_RoutingReady_e& rhs) const {
+ return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs);
+ }
+};
+
+bool operator==(const am_Route_s& lhs, const am_Route_s& rhs);
+inline bool operator!=(const am_Route_s& lhs, const am_Route_s& rhs) {
+ return !(lhs == rhs);
+}
+bool operator==(const am_Availability_s& lhs, const am_Availability_s& rhs);
+inline bool operator!=(const am_Availability_s& lhs, const am_Availability_s& rhs) {
+ return !(lhs == rhs);
+}
+bool operator==(const am_ClassProperty_s& lhs, const am_ClassProperty_s& rhs);
+inline bool operator!=(const am_ClassProperty_s& lhs, const am_ClassProperty_s& rhs) {
+ return !(lhs == rhs);
+}
+bool operator==(const am_Crossfader_s& lhs, const am_Crossfader_s& rhs);
+inline bool operator!=(const am_Crossfader_s& lhs, const am_Crossfader_s& rhs) {
+ return !(lhs == rhs);
+}
+bool operator==(const am_Gateway_s& lhs, const am_Gateway_s& rhs);
+inline bool operator!=(const am_Gateway_s& lhs, const am_Gateway_s& rhs) {
+ return !(lhs == rhs);
+}
+bool operator==(const am_RoutingElement_s& lhs, const am_RoutingElement_s& rhs);
+inline bool operator!=(const am_RoutingElement_s& lhs, const am_RoutingElement_s& rhs) {
+ return !(lhs == rhs);
+}
+bool operator==(const am_SoundProperty_s& lhs, const am_SoundProperty_s& rhs);
+inline bool operator!=(const am_SoundProperty_s& lhs, const am_SoundProperty_s& rhs) {
+ return !(lhs == rhs);
+}
+bool operator==(const am_SystemProperty_s& lhs, const am_SystemProperty_s& rhs);
+inline bool operator!=(const am_SystemProperty_s& lhs, const am_SystemProperty_s& rhs) {
+ return !(lhs == rhs);
+}
+bool operator==(const am_SinkClass_s& lhs, const am_SinkClass_s& rhs);
+inline bool operator!=(const am_SinkClass_s& lhs, const am_SinkClass_s& rhs) {
+ return !(lhs == rhs);
+}
+bool operator==(const am_SourceClass_s& lhs, const am_SourceClass_s& rhs);
+inline bool operator!=(const am_SourceClass_s& lhs, const am_SourceClass_s& rhs) {
+ return !(lhs == rhs);
+}
+bool operator==(const am_SourceType_s& lhs, const am_SourceType_s& rhs);
+inline bool operator!=(const am_SourceType_s& lhs, const am_SourceType_s& rhs) {
+ return !(lhs == rhs);
+}
+bool operator==(const am_SinkType_s& lhs, const am_SinkType_s& rhs);
+inline bool operator!=(const am_SinkType_s& lhs, const am_SinkType_s& rhs) {
+ return !(lhs == rhs);
+}
+bool operator==(const am_Handle_s& lhs, const am_Handle_s& rhs);
+inline bool operator!=(const am_Handle_s& lhs, const am_Handle_s& rhs) {
+ return !(lhs == rhs);
+}
+bool operator==(const am_MainSoundProperty_s& lhs, const am_MainSoundProperty_s& rhs);
+inline bool operator!=(const am_MainSoundProperty_s& lhs, const am_MainSoundProperty_s& rhs) {
+ return !(lhs == rhs);
+}
+bool operator==(const am_MainConnectionType_s& lhs, const am_MainConnectionType_s& rhs);
+inline bool operator!=(const am_MainConnectionType_s& lhs, const am_MainConnectionType_s& rhs) {
+ return !(lhs == rhs);
+}
+bool operator==(const am_MainConnection_s& lhs, const am_MainConnection_s& rhs);
+inline bool operator!=(const am_MainConnection_s& lhs, const am_MainConnection_s& rhs) {
+ return !(lhs == rhs);
+}
+bool operator==(const am_NotificationPayload_s& lhs, const am_NotificationPayload_s& rhs);
+inline bool operator!=(const am_NotificationPayload_s& lhs, const am_NotificationPayload_s& rhs) {
+ return !(lhs == rhs);
+}
+bool operator==(const am_NotificationConfiguration_s& lhs, const am_NotificationConfiguration_s& rhs);
+inline bool operator!=(const am_NotificationConfiguration_s& lhs, const am_NotificationConfiguration_s& rhs) {
+ return !(lhs == rhs);
+}
+bool operator==(const am_Sink_s& lhs, const am_Sink_s& rhs);
+inline bool operator!=(const am_Sink_s& lhs, const am_Sink_s& rhs) {
+ return !(lhs == rhs);
+}
+bool operator==(const am_Source_s& lhs, const am_Source_s& rhs);
+inline bool operator!=(const am_Source_s& lhs, const am_Source_s& rhs) {
+ return !(lhs == rhs);
+}
+bool operator==(const am_Domain_s& lhs, const am_Domain_s& rhs);
+inline bool operator!=(const am_Domain_s& lhs, const am_Domain_s& rhs) {
+ return !(lhs == rhs);
+}
+bool operator==(const am_EarlyData_s& lhs, const am_EarlyData_s& rhs);
+inline bool operator!=(const am_EarlyData_s& lhs, const am_EarlyData_s& rhs) {
+ return !(lhs == rhs);
+}
+bool operator==(const am_Connection_s& lhs, const am_Connection_s& rhs);
+inline bool operator!=(const am_Connection_s& lhs, const am_Connection_s& rhs) {
+ return !(lhs == rhs);
+}
+bool operator==(const am_Volumes_s& lhs, const am_Volumes_s& rhs);
+inline bool operator!=(const am_Volumes_s& lhs, const am_Volumes_s& rhs) {
+ return !(lhs == rhs);
+}
+
+
+static inline const char* getTypeCollectionName() {
+ return "org.genivi.am";
+}
+
+inline CommonAPI::Version getTypeCollectionVersion() {
+ return CommonAPI::Version(1, 0);
+}
+
+} // namespace am
+
+} // namespace genivi
+} // namespace org
+
+namespace CommonAPI {
+
+ template<>
+ struct BasicTypeWriter<org::genivi::am::am_Availability_e> {
+ inline static void writeType (CommonAPI::TypeOutputStream& typeStream) {
+ typeStream.writeInt32EnumType();
+ }
+ };
+
+ template<>
+ struct InputStreamVectorHelper<org::genivi::am::am_Availability_e> {
+ static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::am::am_Availability_e>& vectorValue) {
+ inputStream.beginReadInt32EnumVector();
+ }
+ };
+
+ template <>
+ struct OutputStreamVectorHelper<org::genivi::am::am_Availability_e> {
+ static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::am::am_Availability_e>& vectorValue) {
+ outputStream.beginWriteInt32EnumVector(vectorValue.size());
+ }
+ };
+ template<>
+ struct BasicTypeWriter<org::genivi::am::am_HotSink_e> {
+ inline static void writeType (CommonAPI::TypeOutputStream& typeStream) {
+ typeStream.writeInt32EnumType();
+ }
+ };
+
+ template<>
+ struct InputStreamVectorHelper<org::genivi::am::am_HotSink_e> {
+ static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::am::am_HotSink_e>& vectorValue) {
+ inputStream.beginReadInt32EnumVector();
+ }
+ };
+
+ template <>
+ struct OutputStreamVectorHelper<org::genivi::am::am_HotSink_e> {
+ static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::am::am_HotSink_e>& vectorValue) {
+ outputStream.beginWriteInt32EnumVector(vectorValue.size());
+ }
+ };
+ template<>
+ struct BasicTypeWriter<org::genivi::am::am_ConnectionState_e> {
+ inline static void writeType (CommonAPI::TypeOutputStream& typeStream) {
+ typeStream.writeInt32EnumType();
+ }
+ };
+
+ template<>
+ struct InputStreamVectorHelper<org::genivi::am::am_ConnectionState_e> {
+ static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::am::am_ConnectionState_e>& vectorValue) {
+ inputStream.beginReadInt32EnumVector();
+ }
+ };
+
+ template <>
+ struct OutputStreamVectorHelper<org::genivi::am::am_ConnectionState_e> {
+ static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::am::am_ConnectionState_e>& vectorValue) {
+ outputStream.beginWriteInt32EnumVector(vectorValue.size());
+ }
+ };
+ template<>
+ struct BasicTypeWriter<org::genivi::am::am_DomainState_e> {
+ inline static void writeType (CommonAPI::TypeOutputStream& typeStream) {
+ typeStream.writeInt32EnumType();
+ }
+ };
+
+ template<>
+ struct InputStreamVectorHelper<org::genivi::am::am_DomainState_e> {
+ static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::am::am_DomainState_e>& vectorValue) {
+ inputStream.beginReadInt32EnumVector();
+ }
+ };
+
+ template <>
+ struct OutputStreamVectorHelper<org::genivi::am::am_DomainState_e> {
+ static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::am::am_DomainState_e>& vectorValue) {
+ outputStream.beginWriteInt32EnumVector(vectorValue.size());
+ }
+ };
+ template<>
+ struct BasicTypeWriter<org::genivi::am::am_EarlyDataType_e> {
+ inline static void writeType (CommonAPI::TypeOutputStream& typeStream) {
+ typeStream.writeInt32EnumType();
+ }
+ };
+
+ template<>
+ struct InputStreamVectorHelper<org::genivi::am::am_EarlyDataType_e> {
+ static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::am::am_EarlyDataType_e>& vectorValue) {
+ inputStream.beginReadInt32EnumVector();
+ }
+ };
+
+ template <>
+ struct OutputStreamVectorHelper<org::genivi::am::am_EarlyDataType_e> {
+ static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::am::am_EarlyDataType_e>& vectorValue) {
+ outputStream.beginWriteInt32EnumVector(vectorValue.size());
+ }
+ };
+ template<>
+ struct BasicTypeWriter<org::genivi::am::am_Error_e> {
+ inline static void writeType (CommonAPI::TypeOutputStream& typeStream) {
+ typeStream.writeInt32EnumType();
+ }
+ };
+
+ template<>
+ struct InputStreamVectorHelper<org::genivi::am::am_Error_e> {
+ static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::am::am_Error_e>& vectorValue) {
+ inputStream.beginReadInt32EnumVector();
+ }
+ };
+
+ template <>
+ struct OutputStreamVectorHelper<org::genivi::am::am_Error_e> {
+ static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::am::am_Error_e>& vectorValue) {
+ outputStream.beginWriteInt32EnumVector(vectorValue.size());
+ }
+ };
+ template<>
+ struct BasicTypeWriter<org::genivi::am::am_MuteState_e> {
+ inline static void writeType (CommonAPI::TypeOutputStream& typeStream) {
+ typeStream.writeInt32EnumType();
+ }
+ };
+
+ template<>
+ struct InputStreamVectorHelper<org::genivi::am::am_MuteState_e> {
+ static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::am::am_MuteState_e>& vectorValue) {
+ inputStream.beginReadInt32EnumVector();
+ }
+ };
+
+ template <>
+ struct OutputStreamVectorHelper<org::genivi::am::am_MuteState_e> {
+ static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::am::am_MuteState_e>& vectorValue) {
+ outputStream.beginWriteInt32EnumVector(vectorValue.size());
+ }
+ };
+ template<>
+ struct BasicTypeWriter<org::genivi::am::am_InterruptState_e> {
+ inline static void writeType (CommonAPI::TypeOutputStream& typeStream) {
+ typeStream.writeInt32EnumType();
+ }
+ };
+
+ template<>
+ struct InputStreamVectorHelper<org::genivi::am::am_InterruptState_e> {
+ static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::am::am_InterruptState_e>& vectorValue) {
+ inputStream.beginReadInt32EnumVector();
+ }
+ };
+
+ template <>
+ struct OutputStreamVectorHelper<org::genivi::am::am_InterruptState_e> {
+ static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::am::am_InterruptState_e>& vectorValue) {
+ outputStream.beginWriteInt32EnumVector(vectorValue.size());
+ }
+ };
+ template<>
+ struct BasicTypeWriter<org::genivi::am::am_VolumeType_e> {
+ inline static void writeType (CommonAPI::TypeOutputStream& typeStream) {
+ typeStream.writeInt32EnumType();
+ }
+ };
+
+ template<>
+ struct InputStreamVectorHelper<org::genivi::am::am_VolumeType_e> {
+ static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::am::am_VolumeType_e>& vectorValue) {
+ inputStream.beginReadInt32EnumVector();
+ }
+ };
+
+ template <>
+ struct OutputStreamVectorHelper<org::genivi::am::am_VolumeType_e> {
+ static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::am::am_VolumeType_e>& vectorValue) {
+ outputStream.beginWriteInt32EnumVector(vectorValue.size());
+ }
+ };
+ template<>
+ struct BasicTypeWriter<org::genivi::am::am_NotificationStatus_e> {
+ inline static void writeType (CommonAPI::TypeOutputStream& typeStream) {
+ typeStream.writeInt32EnumType();
+ }
+ };
+
+ template<>
+ struct InputStreamVectorHelper<org::genivi::am::am_NotificationStatus_e> {
+ static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::am::am_NotificationStatus_e>& vectorValue) {
+ inputStream.beginReadInt32EnumVector();
+ }
+ };
+
+ template <>
+ struct OutputStreamVectorHelper<org::genivi::am::am_NotificationStatus_e> {
+ static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::am::am_NotificationStatus_e>& vectorValue) {
+ outputStream.beginWriteInt32EnumVector(vectorValue.size());
+ }
+ };
+ template<>
+ struct BasicTypeWriter<org::genivi::am::am_Handle_e> {
+ inline static void writeType (CommonAPI::TypeOutputStream& typeStream) {
+ typeStream.writeInt32EnumType();
+ }
+ };
+
+ template<>
+ struct InputStreamVectorHelper<org::genivi::am::am_Handle_e> {
+ static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::am::am_Handle_e>& vectorValue) {
+ inputStream.beginReadInt32EnumVector();
+ }
+ };
+
+ template <>
+ struct OutputStreamVectorHelper<org::genivi::am::am_Handle_e> {
+ static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::am::am_Handle_e>& vectorValue) {
+ outputStream.beginWriteInt32EnumVector(vectorValue.size());
+ }
+ };
+ template<>
+ struct BasicTypeWriter<org::genivi::am::am_SourceState_e> {
+ inline static void writeType (CommonAPI::TypeOutputStream& typeStream) {
+ typeStream.writeInt32EnumType();
+ }
+ };
+
+ template<>
+ struct InputStreamVectorHelper<org::genivi::am::am_SourceState_e> {
+ static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::am::am_SourceState_e>& vectorValue) {
+ inputStream.beginReadInt32EnumVector();
+ }
+ };
+
+ template <>
+ struct OutputStreamVectorHelper<org::genivi::am::am_SourceState_e> {
+ static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::am::am_SourceState_e>& vectorValue) {
+ outputStream.beginWriteInt32EnumVector(vectorValue.size());
+ }
+ };
+ template<>
+ struct BasicTypeWriter<org::genivi::am::am_RoutingReady_e> {
+ inline static void writeType (CommonAPI::TypeOutputStream& typeStream) {
+ typeStream.writeInt32EnumType();
+ }
+ };
+
+ template<>
+ struct InputStreamVectorHelper<org::genivi::am::am_RoutingReady_e> {
+ static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::am::am_RoutingReady_e>& vectorValue) {
+ inputStream.beginReadInt32EnumVector();
+ }
+ };
+
+ template <>
+ struct OutputStreamVectorHelper<org::genivi::am::am_RoutingReady_e> {
+ static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::am::am_RoutingReady_e>& vectorValue) {
+ outputStream.beginWriteInt32EnumVector(vectorValue.size());
+ }
+ };
+
+}
+
+
+namespace std {
+ //Hash for am_Availability_e
+ template<>
+ struct hash<org::genivi::am::am_Availability_e> {
+ inline size_t operator()(const org::genivi::am::am_Availability_e& am_Availability_e) const {
+ return static_cast<int32_t>(am_Availability_e);
+ }
+ };
+ //Hash for am_HotSink_e
+ template<>
+ struct hash<org::genivi::am::am_HotSink_e> {
+ inline size_t operator()(const org::genivi::am::am_HotSink_e& am_HotSink_e) const {
+ return static_cast<int32_t>(am_HotSink_e);
+ }
+ };
+ //Hash for am_ConnectionState_e
+ template<>
+ struct hash<org::genivi::am::am_ConnectionState_e> {
+ inline size_t operator()(const org::genivi::am::am_ConnectionState_e& am_ConnectionState_e) const {
+ return static_cast<int32_t>(am_ConnectionState_e);
+ }
+ };
+ //Hash for am_DomainState_e
+ template<>
+ struct hash<org::genivi::am::am_DomainState_e> {
+ inline size_t operator()(const org::genivi::am::am_DomainState_e& am_DomainState_e) const {
+ return static_cast<int32_t>(am_DomainState_e);
+ }
+ };
+ //Hash for am_EarlyDataType_e
+ template<>
+ struct hash<org::genivi::am::am_EarlyDataType_e> {
+ inline size_t operator()(const org::genivi::am::am_EarlyDataType_e& am_EarlyDataType_e) const {
+ return static_cast<int32_t>(am_EarlyDataType_e);
+ }
+ };
+ //Hash for am_Error_e
+ template<>
+ struct hash<org::genivi::am::am_Error_e> {
+ inline size_t operator()(const org::genivi::am::am_Error_e& am_Error_e) const {
+ return static_cast<int32_t>(am_Error_e);
+ }
+ };
+ //Hash for am_MuteState_e
+ template<>
+ struct hash<org::genivi::am::am_MuteState_e> {
+ inline size_t operator()(const org::genivi::am::am_MuteState_e& am_MuteState_e) const {
+ return static_cast<int32_t>(am_MuteState_e);
+ }
+ };
+ //Hash for am_InterruptState_e
+ template<>
+ struct hash<org::genivi::am::am_InterruptState_e> {
+ inline size_t operator()(const org::genivi::am::am_InterruptState_e& am_InterruptState_e) const {
+ return static_cast<int32_t>(am_InterruptState_e);
+ }
+ };
+ //Hash for am_VolumeType_e
+ template<>
+ struct hash<org::genivi::am::am_VolumeType_e> {
+ inline size_t operator()(const org::genivi::am::am_VolumeType_e& am_VolumeType_e) const {
+ return static_cast<int32_t>(am_VolumeType_e);
+ }
+ };
+ //Hash for am_NotificationStatus_e
+ template<>
+ struct hash<org::genivi::am::am_NotificationStatus_e> {
+ inline size_t operator()(const org::genivi::am::am_NotificationStatus_e& am_NotificationStatus_e) const {
+ return static_cast<int32_t>(am_NotificationStatus_e);
+ }
+ };
+ //Hash for am_Handle_e
+ template<>
+ struct hash<org::genivi::am::am_Handle_e> {
+ inline size_t operator()(const org::genivi::am::am_Handle_e& am_Handle_e) const {
+ return static_cast<int32_t>(am_Handle_e);
+ }
+ };
+ //Hash for am_SourceState_e
+ template<>
+ struct hash<org::genivi::am::am_SourceState_e> {
+ inline size_t operator()(const org::genivi::am::am_SourceState_e& am_SourceState_e) const {
+ return static_cast<int32_t>(am_SourceState_e);
+ }
+ };
+ //Hash for am_RoutingReady_e
+ template<>
+ struct hash<org::genivi::am::am_RoutingReady_e> {
+ inline size_t operator()(const org::genivi::am::am_RoutingReady_e& am_RoutingReady_e) const {
+ return static_cast<int32_t>(am_RoutingReady_e);
+ }
+ };
+}
+
+#endif // ORG_GENIVI_am_H_
diff --git a/PluginCommandInterfaceCAPI/src-gen/org/genivi/am/CommandControl.h b/PluginCommandInterfaceCAPI/src-gen/org/genivi/am/CommandControl.h
new file mode 100644
index 0000000..88f5ca2
--- /dev/null
+++ b/PluginCommandInterfaceCAPI/src-gen/org/genivi/am/CommandControl.h
@@ -0,0 +1,55 @@
+/*
+* This file was generated by the CommonAPI Generators.
+*
+ * Copyright (C) 2013, BMW AG
+ *
+ * \author Christian Linke, christian.linke@bmw.de BMW 2012,2013
+*/
+#ifndef ORG_GENIVI_AM_Command_Control_H_
+#define ORG_GENIVI_AM_Command_Control_H_
+
+
+
+#define COMMONAPI_INTERNAL_COMPILATION
+
+#include <CommonAPI/types.h>
+
+#undef COMMONAPI_INTERNAL_COMPILATION
+
+namespace org {
+namespace genivi {
+namespace am {
+
+class CommandControl {
+ public:
+ virtual ~CommandControl() { }
+
+ static inline const char* getInterfaceId();
+ static inline CommonAPI::Version getInterfaceVersion();
+};
+
+const char* CommandControl::getInterfaceId() {
+ return "org.genivi.am.CommandControl";
+}
+
+CommonAPI::Version CommandControl::getInterfaceVersion() {
+ return CommonAPI::Version(1, 0);
+}
+
+
+} // namespace am
+} // namespace genivi
+} // namespace org
+
+namespace CommonAPI {
+
+}
+
+
+namespace std {
+ //hashes for types
+
+ //hashes for error types
+}
+
+#endif // ORG_GENIVI_AM_Command_Control_H_
diff --git a/PluginCommandInterfaceCAPI/src-gen/org/genivi/am/CommandControlDBusProxy.cpp b/PluginCommandInterfaceCAPI/src-gen/org/genivi/am/CommandControlDBusProxy.cpp
new file mode 100644
index 0000000..4901145
--- /dev/null
+++ b/PluginCommandInterfaceCAPI/src-gen/org/genivi/am/CommandControlDBusProxy.cpp
@@ -0,0 +1,527 @@
+/*
+* This file was generated by the CommonAPI Generators.
+*
+ * Copyright (C) 2013, BMW AG
+ *
+ * \author Christian Linke, christian.linke@bmw.de BMW 2012,2013
+*/
+#include "CommandControlDBusProxy.h"
+
+namespace org {
+namespace genivi {
+namespace am {
+
+std::shared_ptr<CommonAPI::DBus::DBusProxy> createCommandControlDBusProxy(
+ const std::string& commonApiAddress,
+ const std::string& interfaceName,
+ const std::string& busName,
+ const std::string& objectPath,
+ const std::shared_ptr<CommonAPI::DBus::DBusProxyConnection>& dbusProxyConnection) {
+ return std::make_shared<CommandControlDBusProxy>(commonApiAddress, interfaceName, busName, objectPath, dbusProxyConnection);
+}
+
+__attribute__((constructor)) void registerCommandControlDBusProxy(void) {
+ CommonAPI::DBus::DBusFactory::registerProxyFactoryMethod(CommandControl::getInterfaceId(),
+ &createCommandControlDBusProxy);
+}
+
+CommandControlDBusProxy::CommandControlDBusProxy(
+ const std::string& commonApiAddress,
+ const std::string& interfaceName,
+ const std::string& busName,
+ const std::string& objectPath,
+ const std::shared_ptr<CommonAPI::DBus::DBusProxyConnection>& dbusProxyconnection):
+ CommonAPI::DBus::DBusProxy(commonApiAddress, interfaceName, busName, objectPath, dbusProxyconnection)
+, newMainConnection_(*this, "newMainConnection", "(qqqni)"),
+ removedMainConnection_(*this, "removedMainConnection", "q"),
+ newSink_(*this, "newSink", "(qs(iq)niq)"),
+ removedSink_(*this, "removedSink", "q"),
+ newSource_(*this, "newSource", "(qs(iq)q)"),
+ removedSource_(*this, "removedSource", "q"),
+ numberOfSinkClassesChanged_(*this, "numberOfSinkClassesChanged", ""),
+ numberOfSourceClassesChanged_(*this, "numberOfSourceClassesChanged", ""),
+ mainConnectionStateChanged_(*this, "mainConnectionStateChanged", "qi"),
+ mainSinkSoundPropertyChanged_(*this, "mainSinkSoundPropertyChanged", "q(qn)"),
+ mainSourceSoundPropertyChanged_(*this, "mainSourceSoundPropertyChanged", "q(qn)"),
+ sinkAvailabilityChanged_(*this, "sinkAvailabilityChanged", "q(iq)"),
+ sourceAvailabilityChanged_(*this, "sourceAvailabilityChanged", "q(iq)"),
+ volumeChanged_(*this, "volumeChanged", "qn"),
+ sinkMuteStateChanged_(*this, "sinkMuteStateChanged", "qi"),
+ systemPropertyChanged_(*this, "systemPropertyChanged", "(qn)"),
+ timingInformationChanged_(*this, "timingInformationChanged", "qn"),
+ sinkUpdated_(*this, "sinkUpdated", "qqa(qn)"),
+ sourceUpdated_(*this, "sourceUpdated", "qqa(qn)"),
+ sinkNotification_(*this, "sinkNotification", "q(qn)"),
+ sourceNotification_(*this, "sourceNotification", "q(qn)"),
+ mainSinkNotificationConfigurationChanged_(*this, "mainSinkNotificationConfigurationChanged", "q(qin)"),
+ mainSourceNotificationConfigurationChanged_(*this, "mainSourceNotificationConfigurationChanged", "q(qin)")
+ {
+}
+
+
+CommandControlDBusProxy::NewMainConnectionEvent& CommandControlDBusProxy::getNewMainConnectionEvent() {
+ return newMainConnection_;
+}
+CommandControlDBusProxy::RemovedMainConnectionEvent& CommandControlDBusProxy::getRemovedMainConnectionEvent() {
+ return removedMainConnection_;
+}
+CommandControlDBusProxy::NewSinkEvent& CommandControlDBusProxy::getNewSinkEvent() {
+ return newSink_;
+}
+CommandControlDBusProxy::RemovedSinkEvent& CommandControlDBusProxy::getRemovedSinkEvent() {
+ return removedSink_;
+}
+CommandControlDBusProxy::NewSourceEvent& CommandControlDBusProxy::getNewSourceEvent() {
+ return newSource_;
+}
+CommandControlDBusProxy::RemovedSourceEvent& CommandControlDBusProxy::getRemovedSourceEvent() {
+ return removedSource_;
+}
+CommandControlDBusProxy::NumberOfSinkClassesChangedEvent& CommandControlDBusProxy::getNumberOfSinkClassesChangedEvent() {
+ return numberOfSinkClassesChanged_;
+}
+CommandControlDBusProxy::NumberOfSourceClassesChangedEvent& CommandControlDBusProxy::getNumberOfSourceClassesChangedEvent() {
+ return numberOfSourceClassesChanged_;
+}
+CommandControlDBusProxy::MainConnectionStateChangedEvent& CommandControlDBusProxy::getMainConnectionStateChangedEvent() {
+ return mainConnectionStateChanged_;
+}
+CommandControlDBusProxy::MainSinkSoundPropertyChangedEvent& CommandControlDBusProxy::getMainSinkSoundPropertyChangedEvent() {
+ return mainSinkSoundPropertyChanged_;
+}
+CommandControlDBusProxy::MainSourceSoundPropertyChangedEvent& CommandControlDBusProxy::getMainSourceSoundPropertyChangedEvent() {
+ return mainSourceSoundPropertyChanged_;
+}
+CommandControlDBusProxy::SinkAvailabilityChangedEvent& CommandControlDBusProxy::getSinkAvailabilityChangedEvent() {
+ return sinkAvailabilityChanged_;
+}
+CommandControlDBusProxy::SourceAvailabilityChangedEvent& CommandControlDBusProxy::getSourceAvailabilityChangedEvent() {
+ return sourceAvailabilityChanged_;
+}
+CommandControlDBusProxy::VolumeChangedEvent& CommandControlDBusProxy::getVolumeChangedEvent() {
+ return volumeChanged_;
+}
+CommandControlDBusProxy::SinkMuteStateChangedEvent& CommandControlDBusProxy::getSinkMuteStateChangedEvent() {
+ return sinkMuteStateChanged_;
+}
+CommandControlDBusProxy::SystemPropertyChangedEvent& CommandControlDBusProxy::getSystemPropertyChangedEvent() {
+ return systemPropertyChanged_;
+}
+CommandControlDBusProxy::TimingInformationChangedEvent& CommandControlDBusProxy::getTimingInformationChangedEvent() {
+ return timingInformationChanged_;
+}
+CommandControlDBusProxy::SinkUpdatedEvent& CommandControlDBusProxy::getSinkUpdatedEvent() {
+ return sinkUpdated_;
+}
+CommandControlDBusProxy::SourceUpdatedEvent& CommandControlDBusProxy::getSourceUpdatedEvent() {
+ return sourceUpdated_;
+}
+CommandControlDBusProxy::SinkNotificationEvent& CommandControlDBusProxy::getSinkNotificationEvent() {
+ return sinkNotification_;
+}
+CommandControlDBusProxy::SourceNotificationEvent& CommandControlDBusProxy::getSourceNotificationEvent() {
+ return sourceNotification_;
+}
+CommandControlDBusProxy::MainSinkNotificationConfigurationChangedEvent& CommandControlDBusProxy::getMainSinkNotificationConfigurationChangedEvent() {
+ return mainSinkNotificationConfigurationChanged_;
+}
+CommandControlDBusProxy::MainSourceNotificationConfigurationChangedEvent& CommandControlDBusProxy::getMainSourceNotificationConfigurationChangedEvent() {
+ return mainSourceNotificationConfigurationChanged_;
+}
+
+void CommandControlDBusProxy::connect(const am_sourceID_t& sourceID, const am_sinkID_t& sinkID, CommonAPI::CallStatus& callStatus, am_mainConnectionID_t& mainConnectionID, am_Error_e& error) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_sourceID_t, am_sinkID_t>,
+ CommonAPI::DBus::DBusSerializableArguments<am_mainConnectionID_t, am_Error_e> >::callMethodWithReply(
+ *this,
+ "connect",
+ "qq",
+ sourceID, sinkID,
+ callStatus
+ , mainConnectionID, error);
+}
+std::future<CommonAPI::CallStatus> CommandControlDBusProxy::connectAsync(const am_sourceID_t& sourceID, const am_sinkID_t& sinkID, ConnectAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_sourceID_t, am_sinkID_t>,
+ CommonAPI::DBus::DBusSerializableArguments<am_mainConnectionID_t, am_Error_e> >::callMethodAsync(
+ *this,
+ "connect",
+ "qq",
+ sourceID, sinkID,
+ std::move(callback));
+}
+void CommandControlDBusProxy::disconnect(const am_mainConnectionID_t& mainConnectionID, CommonAPI::CallStatus& callStatus, am_Error_e& error) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_mainConnectionID_t>,
+ CommonAPI::DBus::DBusSerializableArguments<am_Error_e> >::callMethodWithReply(
+ *this,
+ "disconnect",
+ "q",
+ mainConnectionID,
+ callStatus
+ , error);
+}
+std::future<CommonAPI::CallStatus> CommandControlDBusProxy::disconnectAsync(const am_mainConnectionID_t& mainConnectionID, DisconnectAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_mainConnectionID_t>,
+ CommonAPI::DBus::DBusSerializableArguments<am_Error_e> >::callMethodAsync(
+ *this,
+ "disconnect",
+ "q",
+ mainConnectionID,
+ std::move(callback));
+}
+void CommandControlDBusProxy::setVolume(const am_sinkID_t& sinkID, const am_mainVolume_t& volume, CommonAPI::CallStatus& callStatus, am_Error_e& error) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_sinkID_t, am_mainVolume_t>,
+ CommonAPI::DBus::DBusSerializableArguments<am_Error_e> >::callMethodWithReply(
+ *this,
+ "setVolume",
+ "qn",
+ sinkID, volume,
+ callStatus
+ , error);
+}
+std::future<CommonAPI::CallStatus> CommandControlDBusProxy::setVolumeAsync(const am_sinkID_t& sinkID, const am_mainVolume_t& volume, SetVolumeAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_sinkID_t, am_mainVolume_t>,
+ CommonAPI::DBus::DBusSerializableArguments<am_Error_e> >::callMethodAsync(
+ *this,
+ "setVolume",
+ "qn",
+ sinkID, volume,
+ std::move(callback));
+}
+void CommandControlDBusProxy::volumeStep(const am_sinkID_t& sinkID, const int16_t& volumeStep, CommonAPI::CallStatus& callStatus, am_Error_e& error) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_sinkID_t, int16_t>,
+ CommonAPI::DBus::DBusSerializableArguments<am_Error_e> >::callMethodWithReply(
+ *this,
+ "volumeStep",
+ "qn",
+ sinkID, volumeStep,
+ callStatus
+ , error);
+}
+std::future<CommonAPI::CallStatus> CommandControlDBusProxy::volumeStepAsync(const am_sinkID_t& sinkID, const int16_t& volumeStep, VolumeStepAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_sinkID_t, int16_t>,
+ CommonAPI::DBus::DBusSerializableArguments<am_Error_e> >::callMethodAsync(
+ *this,
+ "volumeStep",
+ "qn",
+ sinkID, volumeStep,
+ std::move(callback));
+}
+void CommandControlDBusProxy::setSinkMuteState(const am_sinkID_t& sinkID, const am_MuteState_e& muteState, CommonAPI::CallStatus& callStatus, am_Error_e& error) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_sinkID_t, am_MuteState_e>,
+ CommonAPI::DBus::DBusSerializableArguments<am_Error_e> >::callMethodWithReply(
+ *this,
+ "setSinkMuteState",
+ "qi",
+ sinkID, muteState,
+ callStatus
+ , error);
+}
+std::future<CommonAPI::CallStatus> CommandControlDBusProxy::setSinkMuteStateAsync(const am_sinkID_t& sinkID, const am_MuteState_e& muteState, SetSinkMuteStateAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_sinkID_t, am_MuteState_e>,
+ CommonAPI::DBus::DBusSerializableArguments<am_Error_e> >::callMethodAsync(
+ *this,
+ "setSinkMuteState",
+ "qi",
+ sinkID, muteState,
+ std::move(callback));
+}
+void CommandControlDBusProxy::setMainSinkSoundProperty(const am_sinkID_t& sinkID, const am_MainSoundProperty_s& soundProperty, CommonAPI::CallStatus& callStatus, am_Error_e& error) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_sinkID_t, am_MainSoundProperty_s>,
+ CommonAPI::DBus::DBusSerializableArguments<am_Error_e> >::callMethodWithReply(
+ *this,
+ "setMainSinkSoundProperty",
+ "q(qn)",
+ sinkID, soundProperty,
+ callStatus
+ , error);
+}
+std::future<CommonAPI::CallStatus> CommandControlDBusProxy::setMainSinkSoundPropertyAsync(const am_sinkID_t& sinkID, const am_MainSoundProperty_s& soundProperty, SetMainSinkSoundPropertyAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_sinkID_t, am_MainSoundProperty_s>,
+ CommonAPI::DBus::DBusSerializableArguments<am_Error_e> >::callMethodAsync(
+ *this,
+ "setMainSinkSoundProperty",
+ "q(qn)",
+ sinkID, soundProperty,
+ std::move(callback));
+}
+void CommandControlDBusProxy::setMainSourceSoundProperty(const am_sourceID_t& sourceID, const am_MainSoundProperty_s& soundProperty, CommonAPI::CallStatus& callStatus, am_Error_e& error) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_sourceID_t, am_MainSoundProperty_s>,
+ CommonAPI::DBus::DBusSerializableArguments<am_Error_e> >::callMethodWithReply(
+ *this,
+ "setMainSourceSoundProperty",
+ "q(qn)",
+ sourceID, soundProperty,
+ callStatus
+ , error);
+}
+std::future<CommonAPI::CallStatus> CommandControlDBusProxy::setMainSourceSoundPropertyAsync(const am_sourceID_t& sourceID, const am_MainSoundProperty_s& soundProperty, SetMainSourceSoundPropertyAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_sourceID_t, am_MainSoundProperty_s>,
+ CommonAPI::DBus::DBusSerializableArguments<am_Error_e> >::callMethodAsync(
+ *this,
+ "setMainSourceSoundProperty",
+ "q(qn)",
+ sourceID, soundProperty,
+ std::move(callback));
+}
+void CommandControlDBusProxy::setSystemProperty(const am_SystemProperty_s& property, CommonAPI::CallStatus& callStatus, am_Error_e& error) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_SystemProperty_s>,
+ CommonAPI::DBus::DBusSerializableArguments<am_Error_e> >::callMethodWithReply(
+ *this,
+ "setSystemProperty",
+ "(qn)",
+ property,
+ callStatus
+ , error);
+}
+std::future<CommonAPI::CallStatus> CommandControlDBusProxy::setSystemPropertyAsync(const am_SystemProperty_s& property, SetSystemPropertyAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_SystemProperty_s>,
+ CommonAPI::DBus::DBusSerializableArguments<am_Error_e> >::callMethodAsync(
+ *this,
+ "setSystemProperty",
+ "(qn)",
+ property,
+ std::move(callback));
+}
+void CommandControlDBusProxy::getListMainConnections(CommonAPI::CallStatus& callStatus, am_Error_e& error, am_MainConnection_L& listConnections) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<>,
+ CommonAPI::DBus::DBusSerializableArguments<am_Error_e, am_MainConnection_L> >::callMethodWithReply(
+ *this,
+ "getListMainConnections",
+ "",
+ callStatus
+ , error, listConnections);
+}
+std::future<CommonAPI::CallStatus> CommandControlDBusProxy::getListMainConnectionsAsync(GetListMainConnectionsAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<>,
+ CommonAPI::DBus::DBusSerializableArguments<am_Error_e, am_MainConnection_L> >::callMethodAsync(
+ *this,
+ "getListMainConnections",
+ "",
+ std::move(callback));
+}
+void CommandControlDBusProxy::getListMainSinks(CommonAPI::CallStatus& callStatus, am_SinkType_L& listMainSinks, am_Error_e& error) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<>,
+ CommonAPI::DBus::DBusSerializableArguments<am_SinkType_L, am_Error_e> >::callMethodWithReply(
+ *this,
+ "getListMainSinks",
+ "",
+ callStatus
+ , listMainSinks, error);
+}
+std::future<CommonAPI::CallStatus> CommandControlDBusProxy::getListMainSinksAsync(GetListMainSinksAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<>,
+ CommonAPI::DBus::DBusSerializableArguments<am_SinkType_L, am_Error_e> >::callMethodAsync(
+ *this,
+ "getListMainSinks",
+ "",
+ std::move(callback));
+}
+void CommandControlDBusProxy::getListMainSources(CommonAPI::CallStatus& callStatus, am_SourceType_L& listMainSources, am_Error_e& error) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<>,
+ CommonAPI::DBus::DBusSerializableArguments<am_SourceType_L, am_Error_e> >::callMethodWithReply(
+ *this,
+ "getListMainSources",
+ "",
+ callStatus
+ , listMainSources, error);
+}
+std::future<CommonAPI::CallStatus> CommandControlDBusProxy::getListMainSourcesAsync(GetListMainSourcesAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<>,
+ CommonAPI::DBus::DBusSerializableArguments<am_SourceType_L, am_Error_e> >::callMethodAsync(
+ *this,
+ "getListMainSources",
+ "",
+ std::move(callback));
+}
+void CommandControlDBusProxy::getListMainSinkSoundProperties(const am_sinkID_t& sinkID, CommonAPI::CallStatus& callStatus, am_MainSoundProperty_L& listSoundProperties, am_Error_e& error) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_sinkID_t>,
+ CommonAPI::DBus::DBusSerializableArguments<am_MainSoundProperty_L, am_Error_e> >::callMethodWithReply(
+ *this,
+ "getListMainSinkSoundProperties",
+ "q",
+ sinkID,
+ callStatus
+ , listSoundProperties, error);
+}
+std::future<CommonAPI::CallStatus> CommandControlDBusProxy::getListMainSinkSoundPropertiesAsync(const am_sinkID_t& sinkID, GetListMainSinkSoundPropertiesAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_sinkID_t>,
+ CommonAPI::DBus::DBusSerializableArguments<am_MainSoundProperty_L, am_Error_e> >::callMethodAsync(
+ *this,
+ "getListMainSinkSoundProperties",
+ "q",
+ sinkID,
+ std::move(callback));
+}
+void CommandControlDBusProxy::getListMainSourceSoundProperties(const am_sourceID_t& sourceID, CommonAPI::CallStatus& callStatus, am_MainSoundProperty_L& listSourceProperties, am_Error_e& error) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_sourceID_t>,
+ CommonAPI::DBus::DBusSerializableArguments<am_MainSoundProperty_L, am_Error_e> >::callMethodWithReply(
+ *this,
+ "getListMainSourceSoundProperties",
+ "q",
+ sourceID,
+ callStatus
+ , listSourceProperties, error);
+}
+std::future<CommonAPI::CallStatus> CommandControlDBusProxy::getListMainSourceSoundPropertiesAsync(const am_sourceID_t& sourceID, GetListMainSourceSoundPropertiesAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_sourceID_t>,
+ CommonAPI::DBus::DBusSerializableArguments<am_MainSoundProperty_L, am_Error_e> >::callMethodAsync(
+ *this,
+ "getListMainSourceSoundProperties",
+ "q",
+ sourceID,
+ std::move(callback));
+}
+void CommandControlDBusProxy::getListSourceClasses(CommonAPI::CallStatus& callStatus, am_SourceClass_L& listSourceClasses, am_Error_e& error) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<>,
+ CommonAPI::DBus::DBusSerializableArguments<am_SourceClass_L, am_Error_e> >::callMethodWithReply(
+ *this,
+ "getListSourceClasses",
+ "",
+ callStatus
+ , listSourceClasses, error);
+}
+std::future<CommonAPI::CallStatus> CommandControlDBusProxy::getListSourceClassesAsync(GetListSourceClassesAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<>,
+ CommonAPI::DBus::DBusSerializableArguments<am_SourceClass_L, am_Error_e> >::callMethodAsync(
+ *this,
+ "getListSourceClasses",
+ "",
+ std::move(callback));
+}
+void CommandControlDBusProxy::getListSinkClasses(CommonAPI::CallStatus& callStatus, am_SinkClass_L& listSinkClasses, am_Error_e& error) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<>,
+ CommonAPI::DBus::DBusSerializableArguments<am_SinkClass_L, am_Error_e> >::callMethodWithReply(
+ *this,
+ "getListSinkClasses",
+ "",
+ callStatus
+ , listSinkClasses, error);
+}
+std::future<CommonAPI::CallStatus> CommandControlDBusProxy::getListSinkClassesAsync(GetListSinkClassesAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<>,
+ CommonAPI::DBus::DBusSerializableArguments<am_SinkClass_L, am_Error_e> >::callMethodAsync(
+ *this,
+ "getListSinkClasses",
+ "",
+ std::move(callback));
+}
+void CommandControlDBusProxy::getListSystemProperties(CommonAPI::CallStatus& callStatus, am_SystemProperty_L& listSystemProperties, am_Error_e& error) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<>,
+ CommonAPI::DBus::DBusSerializableArguments<am_SystemProperty_L, am_Error_e> >::callMethodWithReply(
+ *this,
+ "getListSystemProperties",
+ "",
+ callStatus
+ , listSystemProperties, error);
+}
+std::future<CommonAPI::CallStatus> CommandControlDBusProxy::getListSystemPropertiesAsync(GetListSystemPropertiesAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<>,
+ CommonAPI::DBus::DBusSerializableArguments<am_SystemProperty_L, am_Error_e> >::callMethodAsync(
+ *this,
+ "getListSystemProperties",
+ "",
+ std::move(callback));
+}
+void CommandControlDBusProxy::getTimingInformation(const am_mainConnectionID_t& mainConnectionID, CommonAPI::CallStatus& callStatus, am_timeSync_t& delay, am_Error_e& error) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_mainConnectionID_t>,
+ CommonAPI::DBus::DBusSerializableArguments<am_timeSync_t, am_Error_e> >::callMethodWithReply(
+ *this,
+ "getTimingInformation",
+ "q",
+ mainConnectionID,
+ callStatus
+ , delay, error);
+}
+std::future<CommonAPI::CallStatus> CommandControlDBusProxy::getTimingInformationAsync(const am_mainConnectionID_t& mainConnectionID, GetTimingInformationAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_mainConnectionID_t>,
+ CommonAPI::DBus::DBusSerializableArguments<am_timeSync_t, am_Error_e> >::callMethodAsync(
+ *this,
+ "getTimingInformation",
+ "q",
+ mainConnectionID,
+ std::move(callback));
+}
+void CommandControlDBusProxy::getListMainSinkNotificationConfigurations(const am_sinkID_t& sinkID, CommonAPI::CallStatus& callStatus, am_NotificationConfiguration_L& listMainNotificationConfigurations, am_Error_e& error) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_sinkID_t>,
+ CommonAPI::DBus::DBusSerializableArguments<am_NotificationConfiguration_L, am_Error_e> >::callMethodWithReply(
+ *this,
+ "getListMainSinkNotificationConfigurations",
+ "q",
+ sinkID,
+ callStatus
+ , listMainNotificationConfigurations, error);
+}
+std::future<CommonAPI::CallStatus> CommandControlDBusProxy::getListMainSinkNotificationConfigurationsAsync(const am_sinkID_t& sinkID, GetListMainSinkNotificationConfigurationsAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_sinkID_t>,
+ CommonAPI::DBus::DBusSerializableArguments<am_NotificationConfiguration_L, am_Error_e> >::callMethodAsync(
+ *this,
+ "getListMainSinkNotificationConfigurations",
+ "q",
+ sinkID,
+ std::move(callback));
+}
+void CommandControlDBusProxy::getListMainSourceNotificationConfigurations(const am_sourceID_t& sourceID, CommonAPI::CallStatus& callStatus, am_NotificationConfiguration_L& listMainNotificationConfigurations, am_Error_e& error) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_sourceID_t>,
+ CommonAPI::DBus::DBusSerializableArguments<am_NotificationConfiguration_L, am_Error_e> >::callMethodWithReply(
+ *this,
+ "getListMainSourceNotificationConfigurations",
+ "q",
+ sourceID,
+ callStatus
+ , listMainNotificationConfigurations, error);
+}
+std::future<CommonAPI::CallStatus> CommandControlDBusProxy::getListMainSourceNotificationConfigurationsAsync(const am_sourceID_t& sourceID, GetListMainSourceNotificationConfigurationsAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_sourceID_t>,
+ CommonAPI::DBus::DBusSerializableArguments<am_NotificationConfiguration_L, am_Error_e> >::callMethodAsync(
+ *this,
+ "getListMainSourceNotificationConfigurations",
+ "q",
+ sourceID,
+ std::move(callback));
+}
+void CommandControlDBusProxy::setMainSinkNotificationConfiguration(const am_sinkID_t& sinkID, const am_NotificationConfiguration_s& mainNotificationConfiguration, CommonAPI::CallStatus& callStatus, am_Error_e& error) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_sinkID_t, am_NotificationConfiguration_s>,
+ CommonAPI::DBus::DBusSerializableArguments<am_Error_e> >::callMethodWithReply(
+ *this,
+ "setMainSinkNotificationConfiguration",
+ "q(qin)",
+ sinkID, mainNotificationConfiguration,
+ callStatus
+ , error);
+}
+std::future<CommonAPI::CallStatus> CommandControlDBusProxy::setMainSinkNotificationConfigurationAsync(const am_sinkID_t& sinkID, const am_NotificationConfiguration_s& mainNotificationConfiguration, SetMainSinkNotificationConfigurationAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_sinkID_t, am_NotificationConfiguration_s>,
+ CommonAPI::DBus::DBusSerializableArguments<am_Error_e> >::callMethodAsync(
+ *this,
+ "setMainSinkNotificationConfiguration",
+ "q(qin)",
+ sinkID, mainNotificationConfiguration,
+ std::move(callback));
+}
+void CommandControlDBusProxy::setMainSourceNotificationConfiguration(const am_sourceID_t& sourceID, const am_NotificationConfiguration_s& mainNotificationConfiguration, CommonAPI::CallStatus& callStatus, am_Error_e& error) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_sourceID_t, am_NotificationConfiguration_s>,
+ CommonAPI::DBus::DBusSerializableArguments<am_Error_e> >::callMethodWithReply(
+ *this,
+ "setMainSourceNotificationConfiguration",
+ "q(qin)",
+ sourceID, mainNotificationConfiguration,
+ callStatus
+ , error);
+}
+std::future<CommonAPI::CallStatus> CommandControlDBusProxy::setMainSourceNotificationConfigurationAsync(const am_sourceID_t& sourceID, const am_NotificationConfiguration_s& mainNotificationConfiguration, SetMainSourceNotificationConfigurationAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_sourceID_t, am_NotificationConfiguration_s>,
+ CommonAPI::DBus::DBusSerializableArguments<am_Error_e> >::callMethodAsync(
+ *this,
+ "setMainSourceNotificationConfiguration",
+ "q(qin)",
+ sourceID, mainNotificationConfiguration,
+ std::move(callback));
+}
+
+void CommandControlDBusProxy::getOwnVersion(uint16_t& ownVersionMajor, uint16_t& ownVersionMinor) const {
+ ownVersionMajor = 1;
+ ownVersionMinor = 0;
+}
+
+} // namespace am
+} // namespace genivi
+} // namespace org
diff --git a/PluginCommandInterfaceCAPI/src-gen/org/genivi/am/CommandControlDBusProxy.h b/PluginCommandInterfaceCAPI/src-gen/org/genivi/am/CommandControlDBusProxy.h
new file mode 100644
index 0000000..0c6e470
--- /dev/null
+++ b/PluginCommandInterfaceCAPI/src-gen/org/genivi/am/CommandControlDBusProxy.h
@@ -0,0 +1,160 @@
+/*
+* This file was generated by the CommonAPI Generators.
+*
+ * Copyright (C) 2013, BMW AG
+ *
+ * \author Christian Linke, christian.linke@bmw.de BMW 2012,2013
+*/
+#ifndef ORG_GENIVI_AM_Command_Control_DBUS_PROXY_H_
+#define ORG_GENIVI_AM_Command_Control_DBUS_PROXY_H_
+
+#include <org/genivi/am/CommandControlProxyBase.h>
+
+#define COMMONAPI_INTERNAL_COMPILATION
+
+#include <CommonAPI/DBus/DBusFactory.h>
+#include <CommonAPI/DBus/DBusProxy.h>
+#include <CommonAPI/DBus/DBusEvent.h>
+
+#undef COMMONAPI_INTERNAL_COMPILATION
+
+#include <string>
+
+namespace org {
+namespace genivi {
+namespace am {
+
+class CommandControlDBusProxy: virtual public CommandControlProxyBase, virtual public CommonAPI::DBus::DBusProxy {
+ public:
+ CommandControlDBusProxy(
+ const std::string& commonApiAddress,
+ const std::string& interfaceName,
+ const std::string& busName,
+ const std::string& objectPath,
+ const std::shared_ptr<CommonAPI::DBus::DBusProxyConnection>& dbusProxyconnection);
+
+ virtual ~CommandControlDBusProxy() { }
+
+
+ virtual NewMainConnectionEvent& getNewMainConnectionEvent();
+ virtual RemovedMainConnectionEvent& getRemovedMainConnectionEvent();
+ virtual NewSinkEvent& getNewSinkEvent();
+ virtual RemovedSinkEvent& getRemovedSinkEvent();
+ virtual NewSourceEvent& getNewSourceEvent();
+ virtual RemovedSourceEvent& getRemovedSourceEvent();
+ virtual NumberOfSinkClassesChangedEvent& getNumberOfSinkClassesChangedEvent();
+ virtual NumberOfSourceClassesChangedEvent& getNumberOfSourceClassesChangedEvent();
+ virtual MainConnectionStateChangedEvent& getMainConnectionStateChangedEvent();
+ virtual MainSinkSoundPropertyChangedEvent& getMainSinkSoundPropertyChangedEvent();
+ virtual MainSourceSoundPropertyChangedEvent& getMainSourceSoundPropertyChangedEvent();
+ virtual SinkAvailabilityChangedEvent& getSinkAvailabilityChangedEvent();
+ virtual SourceAvailabilityChangedEvent& getSourceAvailabilityChangedEvent();
+ virtual VolumeChangedEvent& getVolumeChangedEvent();
+ virtual SinkMuteStateChangedEvent& getSinkMuteStateChangedEvent();
+ virtual SystemPropertyChangedEvent& getSystemPropertyChangedEvent();
+ virtual TimingInformationChangedEvent& getTimingInformationChangedEvent();
+ virtual SinkUpdatedEvent& getSinkUpdatedEvent();
+ virtual SourceUpdatedEvent& getSourceUpdatedEvent();
+ virtual SinkNotificationEvent& getSinkNotificationEvent();
+ virtual SourceNotificationEvent& getSourceNotificationEvent();
+ virtual MainSinkNotificationConfigurationChangedEvent& getMainSinkNotificationConfigurationChangedEvent();
+ virtual MainSourceNotificationConfigurationChangedEvent& getMainSourceNotificationConfigurationChangedEvent();
+
+
+ virtual void connect(const am_sourceID_t& sourceID, const am_sinkID_t& sinkID, CommonAPI::CallStatus& callStatus, am_mainConnectionID_t& mainConnectionID, am_Error_e& error);
+ virtual std::future<CommonAPI::CallStatus> connectAsync(const am_sourceID_t& sourceID, const am_sinkID_t& sinkID, ConnectAsyncCallback callback);
+
+ virtual void disconnect(const am_mainConnectionID_t& mainConnectionID, CommonAPI::CallStatus& callStatus, am_Error_e& error);
+ virtual std::future<CommonAPI::CallStatus> disconnectAsync(const am_mainConnectionID_t& mainConnectionID, DisconnectAsyncCallback callback);
+
+ virtual void setVolume(const am_sinkID_t& sinkID, const am_mainVolume_t& volume, CommonAPI::CallStatus& callStatus, am_Error_e& error);
+ virtual std::future<CommonAPI::CallStatus> setVolumeAsync(const am_sinkID_t& sinkID, const am_mainVolume_t& volume, SetVolumeAsyncCallback callback);
+
+ virtual void volumeStep(const am_sinkID_t& sinkID, const int16_t& volumeStep, CommonAPI::CallStatus& callStatus, am_Error_e& error);
+ virtual std::future<CommonAPI::CallStatus> volumeStepAsync(const am_sinkID_t& sinkID, const int16_t& volumeStep, VolumeStepAsyncCallback callback);
+
+ virtual void setSinkMuteState(const am_sinkID_t& sinkID, const am_MuteState_e& muteState, CommonAPI::CallStatus& callStatus, am_Error_e& error);
+ virtual std::future<CommonAPI::CallStatus> setSinkMuteStateAsync(const am_sinkID_t& sinkID, const am_MuteState_e& muteState, SetSinkMuteStateAsyncCallback callback);
+
+ virtual void setMainSinkSoundProperty(const am_sinkID_t& sinkID, const am_MainSoundProperty_s& soundProperty, CommonAPI::CallStatus& callStatus, am_Error_e& error);
+ virtual std::future<CommonAPI::CallStatus> setMainSinkSoundPropertyAsync(const am_sinkID_t& sinkID, const am_MainSoundProperty_s& soundProperty, SetMainSinkSoundPropertyAsyncCallback callback);
+
+ virtual void setMainSourceSoundProperty(const am_sourceID_t& sourceID, const am_MainSoundProperty_s& soundProperty, CommonAPI::CallStatus& callStatus, am_Error_e& error);
+ virtual std::future<CommonAPI::CallStatus> setMainSourceSoundPropertyAsync(const am_sourceID_t& sourceID, const am_MainSoundProperty_s& soundProperty, SetMainSourceSoundPropertyAsyncCallback callback);
+
+ virtual void setSystemProperty(const am_SystemProperty_s& property, CommonAPI::CallStatus& callStatus, am_Error_e& error);
+ virtual std::future<CommonAPI::CallStatus> setSystemPropertyAsync(const am_SystemProperty_s& property, SetSystemPropertyAsyncCallback callback);
+
+ virtual void getListMainConnections(CommonAPI::CallStatus& callStatus, am_Error_e& error, am_MainConnection_L& listConnections);
+ virtual std::future<CommonAPI::CallStatus> getListMainConnectionsAsync(GetListMainConnectionsAsyncCallback callback);
+
+ virtual void getListMainSinks(CommonAPI::CallStatus& callStatus, am_SinkType_L& listMainSinks, am_Error_e& error);
+ virtual std::future<CommonAPI::CallStatus> getListMainSinksAsync(GetListMainSinksAsyncCallback callback);
+
+ virtual void getListMainSources(CommonAPI::CallStatus& callStatus, am_SourceType_L& listMainSources, am_Error_e& error);
+ virtual std::future<CommonAPI::CallStatus> getListMainSourcesAsync(GetListMainSourcesAsyncCallback callback);
+
+ virtual void getListMainSinkSoundProperties(const am_sinkID_t& sinkID, CommonAPI::CallStatus& callStatus, am_MainSoundProperty_L& listSoundProperties, am_Error_e& error);
+ virtual std::future<CommonAPI::CallStatus> getListMainSinkSoundPropertiesAsync(const am_sinkID_t& sinkID, GetListMainSinkSoundPropertiesAsyncCallback callback);
+
+ virtual void getListMainSourceSoundProperties(const am_sourceID_t& sourceID, CommonAPI::CallStatus& callStatus, am_MainSoundProperty_L& listSourceProperties, am_Error_e& error);
+ virtual std::future<CommonAPI::CallStatus> getListMainSourceSoundPropertiesAsync(const am_sourceID_t& sourceID, GetListMainSourceSoundPropertiesAsyncCallback callback);
+
+ virtual void getListSourceClasses(CommonAPI::CallStatus& callStatus, am_SourceClass_L& listSourceClasses, am_Error_e& error);
+ virtual std::future<CommonAPI::CallStatus> getListSourceClassesAsync(GetListSourceClassesAsyncCallback callback);
+
+ virtual void getListSinkClasses(CommonAPI::CallStatus& callStatus, am_SinkClass_L& listSinkClasses, am_Error_e& error);
+ virtual std::future<CommonAPI::CallStatus> getListSinkClassesAsync(GetListSinkClassesAsyncCallback callback);
+
+ virtual void getListSystemProperties(CommonAPI::CallStatus& callStatus, am_SystemProperty_L& listSystemProperties, am_Error_e& error);
+ virtual std::future<CommonAPI::CallStatus> getListSystemPropertiesAsync(GetListSystemPropertiesAsyncCallback callback);
+
+ virtual void getTimingInformation(const am_mainConnectionID_t& mainConnectionID, CommonAPI::CallStatus& callStatus, am_timeSync_t& delay, am_Error_e& error);
+ virtual std::future<CommonAPI::CallStatus> getTimingInformationAsync(const am_mainConnectionID_t& mainConnectionID, GetTimingInformationAsyncCallback callback);
+
+ virtual void getListMainSinkNotificationConfigurations(const am_sinkID_t& sinkID, CommonAPI::CallStatus& callStatus, am_NotificationConfiguration_L& listMainNotificationConfigurations, am_Error_e& error);
+ virtual std::future<CommonAPI::CallStatus> getListMainSinkNotificationConfigurationsAsync(const am_sinkID_t& sinkID, GetListMainSinkNotificationConfigurationsAsyncCallback callback);
+
+ virtual void getListMainSourceNotificationConfigurations(const am_sourceID_t& sourceID, CommonAPI::CallStatus& callStatus, am_NotificationConfiguration_L& listMainNotificationConfigurations, am_Error_e& error);
+ virtual std::future<CommonAPI::CallStatus> getListMainSourceNotificationConfigurationsAsync(const am_sourceID_t& sourceID, GetListMainSourceNotificationConfigurationsAsyncCallback callback);
+
+ virtual void setMainSinkNotificationConfiguration(const am_sinkID_t& sinkID, const am_NotificationConfiguration_s& mainNotificationConfiguration, CommonAPI::CallStatus& callStatus, am_Error_e& error);
+ virtual std::future<CommonAPI::CallStatus> setMainSinkNotificationConfigurationAsync(const am_sinkID_t& sinkID, const am_NotificationConfiguration_s& mainNotificationConfiguration, SetMainSinkNotificationConfigurationAsyncCallback callback);
+
+ virtual void setMainSourceNotificationConfiguration(const am_sourceID_t& sourceID, const am_NotificationConfiguration_s& mainNotificationConfiguration, CommonAPI::CallStatus& callStatus, am_Error_e& error);
+ virtual std::future<CommonAPI::CallStatus> setMainSourceNotificationConfigurationAsync(const am_sourceID_t& sourceID, const am_NotificationConfiguration_s& mainNotificationConfiguration, SetMainSourceNotificationConfigurationAsyncCallback callback);
+
+ virtual void getOwnVersion(uint16_t& ownVersionMajor, uint16_t& ownVersionMinor) const;
+
+ private:
+
+ CommonAPI::DBus::DBusEvent<NewMainConnectionEvent> newMainConnection_;
+ CommonAPI::DBus::DBusEvent<RemovedMainConnectionEvent> removedMainConnection_;
+ CommonAPI::DBus::DBusEvent<NewSinkEvent> newSink_;
+ CommonAPI::DBus::DBusEvent<RemovedSinkEvent> removedSink_;
+ CommonAPI::DBus::DBusEvent<NewSourceEvent> newSource_;
+ CommonAPI::DBus::DBusEvent<RemovedSourceEvent> removedSource_;
+ CommonAPI::DBus::DBusEvent<NumberOfSinkClassesChangedEvent> numberOfSinkClassesChanged_;
+ CommonAPI::DBus::DBusEvent<NumberOfSourceClassesChangedEvent> numberOfSourceClassesChanged_;
+ CommonAPI::DBus::DBusEvent<MainConnectionStateChangedEvent> mainConnectionStateChanged_;
+ CommonAPI::DBus::DBusEvent<MainSinkSoundPropertyChangedEvent> mainSinkSoundPropertyChanged_;
+ CommonAPI::DBus::DBusEvent<MainSourceSoundPropertyChangedEvent> mainSourceSoundPropertyChanged_;
+ CommonAPI::DBus::DBusEvent<SinkAvailabilityChangedEvent> sinkAvailabilityChanged_;
+ CommonAPI::DBus::DBusEvent<SourceAvailabilityChangedEvent> sourceAvailabilityChanged_;
+ CommonAPI::DBus::DBusEvent<VolumeChangedEvent> volumeChanged_;
+ CommonAPI::DBus::DBusEvent<SinkMuteStateChangedEvent> sinkMuteStateChanged_;
+ CommonAPI::DBus::DBusEvent<SystemPropertyChangedEvent> systemPropertyChanged_;
+ CommonAPI::DBus::DBusEvent<TimingInformationChangedEvent> timingInformationChanged_;
+ CommonAPI::DBus::DBusEvent<SinkUpdatedEvent> sinkUpdated_;
+ CommonAPI::DBus::DBusEvent<SourceUpdatedEvent> sourceUpdated_;
+ CommonAPI::DBus::DBusEvent<SinkNotificationEvent> sinkNotification_;
+ CommonAPI::DBus::DBusEvent<SourceNotificationEvent> sourceNotification_;
+ CommonAPI::DBus::DBusEvent<MainSinkNotificationConfigurationChangedEvent> mainSinkNotificationConfigurationChanged_;
+ CommonAPI::DBus::DBusEvent<MainSourceNotificationConfigurationChangedEvent> mainSourceNotificationConfigurationChanged_;
+};
+
+} // namespace am
+} // namespace genivi
+} // namespace org
+
+#endif // ORG_GENIVI_AM_Command_Control_DBUS_PROXY_H_
diff --git a/PluginCommandInterfaceCAPI/src-gen/org/genivi/am/CommandControlDBusStubAdapter.cpp b/PluginCommandInterfaceCAPI/src-gen/org/genivi/am/CommandControlDBusStubAdapter.cpp
new file mode 100644
index 0000000..89d06a8
--- /dev/null
+++ b/PluginCommandInterfaceCAPI/src-gen/org/genivi/am/CommandControlDBusStubAdapter.cpp
@@ -0,0 +1,568 @@
+/*
+* This file was generated by the CommonAPI Generators.
+*
+ * Copyright (C) 2013, BMW AG
+ *
+ * \author Christian Linke, christian.linke@bmw.de BMW 2012,2013
+*/
+#include "CommandControlDBusStubAdapter.h"
+#include <org/genivi/am/CommandControl.h>
+
+namespace org {
+namespace genivi {
+namespace am {
+
+std::shared_ptr<CommonAPI::DBus::DBusStubAdapter> createCommandControlDBusStubAdapter(
+ const std::string& commonApiAddress,
+ const std::string& interfaceName,
+ const std::string& busName,
+ const std::string& objectPath,
+ const std::shared_ptr<CommonAPI::DBus::DBusProxyConnection>& dbusProxyConnection,
+ const std::shared_ptr<CommonAPI::StubBase>& stubBase) {
+ return std::make_shared<CommandControlDBusStubAdapter>(commonApiAddress, interfaceName, busName, objectPath, dbusProxyConnection, stubBase);
+}
+
+__attribute__((constructor)) void registerCommandControlDBusStubAdapter(void) {
+ CommonAPI::DBus::DBusFactory::registerAdapterFactoryMethod(CommandControl::getInterfaceId(),
+ &createCommandControlDBusStubAdapter);
+}
+
+CommandControlDBusStubAdapter::CommandControlDBusStubAdapter(
+ const std::string& commonApiAddress,
+ const std::string& dbusInterfaceName,
+ const std::string& dbusBusName,
+ const std::string& dbusObjectPath,
+ const std::shared_ptr<CommonAPI::DBus::DBusProxyConnection>& dbusConnection,
+ const std::shared_ptr<CommonAPI::StubBase>& stub):
+ CommandControlDBusStubAdapterHelper(commonApiAddress, dbusInterfaceName, dbusBusName, dbusObjectPath, dbusConnection, std::dynamic_pointer_cast<CommandControlStub>(stub)) {
+}
+
+const char* CommandControlDBusStubAdapter::getMethodsDBusIntrospectionXmlData() const {
+ return
+ "<signal name=\"newMainConnection\">\n"
+ "<arg name=\"mainConnection\" type=\"(qqqni)\" />\n"
+ "</signal>\n"
+ "<signal name=\"removedMainConnection\">\n"
+ "<arg name=\"mainConnection\" type=\"q\" />\n"
+ "</signal>\n"
+ "<signal name=\"newSink\">\n"
+ "<arg name=\"sink\" type=\"(qs(iq)niq)\" />\n"
+ "</signal>\n"
+ "<signal name=\"removedSink\">\n"
+ "<arg name=\"sinkID\" type=\"q\" />\n"
+ "</signal>\n"
+ "<signal name=\"newSource\">\n"
+ "<arg name=\"source\" type=\"(qs(iq)q)\" />\n"
+ "</signal>\n"
+ "<signal name=\"removedSource\">\n"
+ "<arg name=\"source\" type=\"q\" />\n"
+ "</signal>\n"
+ "<signal name=\"numberOfSinkClassesChanged\">\n"
+ "</signal>\n"
+ "<signal name=\"numberOfSourceClassesChanged\">\n"
+ "</signal>\n"
+ "<signal name=\"mainConnectionStateChanged\">\n"
+ "<arg name=\"connectionID\" type=\"q\" />\n"
+ "<arg name=\"connectionState\" type=\"i\" />\n"
+ "</signal>\n"
+ "<signal name=\"mainSinkSoundPropertyChanged\">\n"
+ "<arg name=\"sinkID\" type=\"q\" />\n"
+ "<arg name=\"soundProperty\" type=\"(qn)\" />\n"
+ "</signal>\n"
+ "<signal name=\"mainSourceSoundPropertyChanged\">\n"
+ "<arg name=\"sourceID\" type=\"q\" />\n"
+ "<arg name=\"soundProperty\" type=\"(qn)\" />\n"
+ "</signal>\n"
+ "<signal name=\"sinkAvailabilityChanged\">\n"
+ "<arg name=\"sinkID\" type=\"q\" />\n"
+ "<arg name=\"availability\" type=\"(iq)\" />\n"
+ "</signal>\n"
+ "<signal name=\"sourceAvailabilityChanged\">\n"
+ "<arg name=\"sourceID\" type=\"q\" />\n"
+ "<arg name=\"availability\" type=\"(iq)\" />\n"
+ "</signal>\n"
+ "<signal name=\"volumeChanged\">\n"
+ "<arg name=\"sinkID\" type=\"q\" />\n"
+ "<arg name=\"volume\" type=\"n\" />\n"
+ "</signal>\n"
+ "<signal name=\"sinkMuteStateChanged\">\n"
+ "<arg name=\"sinkID\" type=\"q\" />\n"
+ "<arg name=\"muteState\" type=\"i\" />\n"
+ "</signal>\n"
+ "<signal name=\"systemPropertyChanged\">\n"
+ "<arg name=\"systemProperty\" type=\"(qn)\" />\n"
+ "</signal>\n"
+ "<signal name=\"timingInformationChanged\">\n"
+ "<arg name=\"mainConnectionID\" type=\"q\" />\n"
+ "<arg name=\"time\" type=\"n\" />\n"
+ "</signal>\n"
+ "<signal name=\"sinkUpdated\">\n"
+ "<arg name=\"sinkID\" type=\"q\" />\n"
+ "<arg name=\"sinkClassID\" type=\"q\" />\n"
+ "<arg name=\"listMainSoundProperties\" type=\"a(qn)\" />\n"
+ "</signal>\n"
+ "<signal name=\"sourceUpdated\">\n"
+ "<arg name=\"sourceID\" type=\"q\" />\n"
+ "<arg name=\"sourceClassID\" type=\"q\" />\n"
+ "<arg name=\"listMainSoundProperties\" type=\"a(qn)\" />\n"
+ "</signal>\n"
+ "<signal name=\"sinkNotification\">\n"
+ "<arg name=\"sinkID\" type=\"q\" />\n"
+ "<arg name=\"notification\" type=\"(qn)\" />\n"
+ "</signal>\n"
+ "<signal name=\"sourceNotification\">\n"
+ "<arg name=\"sourceID\" type=\"q\" />\n"
+ "<arg name=\"notification\" type=\"(qn)\" />\n"
+ "</signal>\n"
+ "<signal name=\"mainSinkNotificationConfigurationChanged\">\n"
+ "<arg name=\"sinkID\" type=\"q\" />\n"
+ "<arg name=\"mainNotificationConfiguration\" type=\"(qin)\" />\n"
+ "</signal>\n"
+ "<signal name=\"mainSourceNotificationConfigurationChanged\">\n"
+ "<arg name=\"sourceID\" type=\"q\" />\n"
+ "<arg name=\"mainNotificationConfiguration\" type=\"(qin)\" />\n"
+ "</signal>\n"
+ "<method name=\"connect\">\n"
+ "<arg name=\"sourceID\" type=\"q\" direction=\"in\" />\n"
+ "<arg name=\"sinkID\" type=\"q\" direction=\"in\" />\n"
+ "<arg name=\"mainConnectionID\" type=\"q\" direction=\"out\" />\n"
+ "<arg name=\"error\" type=\"i\" direction=\"out\" />\n"
+ "</method>\n"
+ "<method name=\"disconnect\">\n"
+ "<arg name=\"mainConnectionID\" type=\"q\" direction=\"in\" />\n"
+ "<arg name=\"error\" type=\"i\" direction=\"out\" />\n"
+ "</method>\n"
+ "<method name=\"setVolume\">\n"
+ "<arg name=\"sinkID\" type=\"q\" direction=\"in\" />\n"
+ "<arg name=\"volume\" type=\"n\" direction=\"in\" />\n"
+ "<arg name=\"error\" type=\"i\" direction=\"out\" />\n"
+ "</method>\n"
+ "<method name=\"volumeStep\">\n"
+ "<arg name=\"sinkID\" type=\"q\" direction=\"in\" />\n"
+ "<arg name=\"volumeStep\" type=\"n\" direction=\"in\" />\n"
+ "<arg name=\"error\" type=\"i\" direction=\"out\" />\n"
+ "</method>\n"
+ "<method name=\"setSinkMuteState\">\n"
+ "<arg name=\"sinkID\" type=\"q\" direction=\"in\" />\n"
+ "<arg name=\"muteState\" type=\"i\" direction=\"in\" />\n"
+ "<arg name=\"error\" type=\"i\" direction=\"out\" />\n"
+ "</method>\n"
+ "<method name=\"setMainSinkSoundProperty\">\n"
+ "<arg name=\"sinkID\" type=\"q\" direction=\"in\" />\n"
+ "<arg name=\"soundProperty\" type=\"(qn)\" direction=\"in\" />\n"
+ "<arg name=\"error\" type=\"i\" direction=\"out\" />\n"
+ "</method>\n"
+ "<method name=\"setMainSourceSoundProperty\">\n"
+ "<arg name=\"sourceID\" type=\"q\" direction=\"in\" />\n"
+ "<arg name=\"soundProperty\" type=\"(qn)\" direction=\"in\" />\n"
+ "<arg name=\"error\" type=\"i\" direction=\"out\" />\n"
+ "</method>\n"
+ "<method name=\"setSystemProperty\">\n"
+ "<arg name=\"property\" type=\"(qn)\" direction=\"in\" />\n"
+ "<arg name=\"error\" type=\"i\" direction=\"out\" />\n"
+ "</method>\n"
+ "<method name=\"getListMainConnections\">\n"
+ "<arg name=\"error\" type=\"i\" direction=\"out\" />\n"
+ "<arg name=\"listConnections\" type=\"a(qqqni)\" direction=\"out\" />\n"
+ "</method>\n"
+ "<method name=\"getListMainSinks\">\n"
+ "<arg name=\"listMainSinks\" type=\"a(qs(iq)niq)\" direction=\"out\" />\n"
+ "<arg name=\"error\" type=\"i\" direction=\"out\" />\n"
+ "</method>\n"
+ "<method name=\"getListMainSources\">\n"
+ "<arg name=\"listMainSources\" type=\"a(qs(iq)q)\" direction=\"out\" />\n"
+ "<arg name=\"error\" type=\"i\" direction=\"out\" />\n"
+ "</method>\n"
+ "<method name=\"getListMainSinkSoundProperties\">\n"
+ "<arg name=\"sinkID\" type=\"q\" direction=\"in\" />\n"
+ "<arg name=\"listSoundProperties\" type=\"a(qn)\" direction=\"out\" />\n"
+ "<arg name=\"error\" type=\"i\" direction=\"out\" />\n"
+ "</method>\n"
+ "<method name=\"getListMainSourceSoundProperties\">\n"
+ "<arg name=\"sourceID\" type=\"q\" direction=\"in\" />\n"
+ "<arg name=\"listSourceProperties\" type=\"a(qn)\" direction=\"out\" />\n"
+ "<arg name=\"error\" type=\"i\" direction=\"out\" />\n"
+ "</method>\n"
+ "<method name=\"getListSourceClasses\">\n"
+ "<arg name=\"listSourceClasses\" type=\"a(qsa(qn))\" direction=\"out\" />\n"
+ "<arg name=\"error\" type=\"i\" direction=\"out\" />\n"
+ "</method>\n"
+ "<method name=\"getListSinkClasses\">\n"
+ "<arg name=\"listSinkClasses\" type=\"a(qsa(qn))\" direction=\"out\" />\n"
+ "<arg name=\"error\" type=\"i\" direction=\"out\" />\n"
+ "</method>\n"
+ "<method name=\"getListSystemProperties\">\n"
+ "<arg name=\"listSystemProperties\" type=\"a(qn)\" direction=\"out\" />\n"
+ "<arg name=\"error\" type=\"i\" direction=\"out\" />\n"
+ "</method>\n"
+ "<method name=\"getTimingInformation\">\n"
+ "<arg name=\"mainConnectionID\" type=\"q\" direction=\"in\" />\n"
+ "<arg name=\"delay\" type=\"n\" direction=\"out\" />\n"
+ "<arg name=\"error\" type=\"i\" direction=\"out\" />\n"
+ "</method>\n"
+ "<method name=\"getListMainSinkNotificationConfigurations\">\n"
+ "<arg name=\"sinkID\" type=\"q\" direction=\"in\" />\n"
+ "<arg name=\"listMainNotificationConfigurations\" type=\"a(qin)\" direction=\"out\" />\n"
+ "<arg name=\"error\" type=\"i\" direction=\"out\" />\n"
+ "</method>\n"
+ "<method name=\"getListMainSourceNotificationConfigurations\">\n"
+ "<arg name=\"sourceID\" type=\"q\" direction=\"in\" />\n"
+ "<arg name=\"listMainNotificationConfigurations\" type=\"a(qin)\" direction=\"out\" />\n"
+ "<arg name=\"error\" type=\"i\" direction=\"out\" />\n"
+ "</method>\n"
+ "<method name=\"setMainSinkNotificationConfiguration\">\n"
+ "<arg name=\"sinkID\" type=\"q\" direction=\"in\" />\n"
+ "<arg name=\"mainNotificationConfiguration\" type=\"(qin)\" direction=\"in\" />\n"
+ "<arg name=\"error\" type=\"i\" direction=\"out\" />\n"
+ "</method>\n"
+ "<method name=\"setMainSourceNotificationConfiguration\">\n"
+ "<arg name=\"sourceID\" type=\"q\" direction=\"in\" />\n"
+ "<arg name=\"mainNotificationConfiguration\" type=\"(qin)\" direction=\"in\" />\n"
+ "<arg name=\"error\" type=\"i\" direction=\"out\" />\n"
+ "</method>\n"
+ ;
+}
+
+
+
+static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
+ CommandControlStub,
+ std::tuple<am_sourceID_t, am_sinkID_t>,
+ std::tuple<am_mainConnectionID_t, am_Error_e>
+ > connectStubDispatcher(&CommandControlStub::connect, "qi");
+static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
+ CommandControlStub,
+ std::tuple<am_mainConnectionID_t>,
+ std::tuple<am_Error_e>
+ > disconnectStubDispatcher(&CommandControlStub::disconnect, "i");
+static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
+ CommandControlStub,
+ std::tuple<am_sinkID_t, am_mainVolume_t>,
+ std::tuple<am_Error_e>
+ > setVolumeStubDispatcher(&CommandControlStub::setVolume, "i");
+static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
+ CommandControlStub,
+ std::tuple<am_sinkID_t, int16_t>,
+ std::tuple<am_Error_e>
+ > volumeStepStubDispatcher(&CommandControlStub::volumeStep, "i");
+static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
+ CommandControlStub,
+ std::tuple<am_sinkID_t, am_MuteState_e>,
+ std::tuple<am_Error_e>
+ > setSinkMuteStateStubDispatcher(&CommandControlStub::setSinkMuteState, "i");
+static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
+ CommandControlStub,
+ std::tuple<am_sinkID_t, am_MainSoundProperty_s>,
+ std::tuple<am_Error_e>
+ > setMainSinkSoundPropertyStubDispatcher(&CommandControlStub::setMainSinkSoundProperty, "i");
+static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
+ CommandControlStub,
+ std::tuple<am_sourceID_t, am_MainSoundProperty_s>,
+ std::tuple<am_Error_e>
+ > setMainSourceSoundPropertyStubDispatcher(&CommandControlStub::setMainSourceSoundProperty, "i");
+static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
+ CommandControlStub,
+ std::tuple<am_SystemProperty_s>,
+ std::tuple<am_Error_e>
+ > setSystemPropertyStubDispatcher(&CommandControlStub::setSystemProperty, "i");
+static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
+ CommandControlStub,
+ std::tuple<>,
+ std::tuple<am_Error_e, am_MainConnection_L>
+ > getListMainConnectionsStubDispatcher(&CommandControlStub::getListMainConnections, "ia(qqqni)");
+static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
+ CommandControlStub,
+ std::tuple<>,
+ std::tuple<am_SinkType_L, am_Error_e>
+ > getListMainSinksStubDispatcher(&CommandControlStub::getListMainSinks, "a(qs(iq)niq)i");
+static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
+ CommandControlStub,
+ std::tuple<>,
+ std::tuple<am_SourceType_L, am_Error_e>
+ > getListMainSourcesStubDispatcher(&CommandControlStub::getListMainSources, "a(qs(iq)q)i");
+static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
+ CommandControlStub,
+ std::tuple<am_sinkID_t>,
+ std::tuple<am_MainSoundProperty_L, am_Error_e>
+ > getListMainSinkSoundPropertiesStubDispatcher(&CommandControlStub::getListMainSinkSoundProperties, "a(qn)i");
+static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
+ CommandControlStub,
+ std::tuple<am_sourceID_t>,
+ std::tuple<am_MainSoundProperty_L, am_Error_e>
+ > getListMainSourceSoundPropertiesStubDispatcher(&CommandControlStub::getListMainSourceSoundProperties, "a(qn)i");
+static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
+ CommandControlStub,
+ std::tuple<>,
+ std::tuple<am_SourceClass_L, am_Error_e>
+ > getListSourceClassesStubDispatcher(&CommandControlStub::getListSourceClasses, "a(qsa(qn))i");
+static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
+ CommandControlStub,
+ std::tuple<>,
+ std::tuple<am_SinkClass_L, am_Error_e>
+ > getListSinkClassesStubDispatcher(&CommandControlStub::getListSinkClasses, "a(qsa(qn))i");
+static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
+ CommandControlStub,
+ std::tuple<>,
+ std::tuple<am_SystemProperty_L, am_Error_e>
+ > getListSystemPropertiesStubDispatcher(&CommandControlStub::getListSystemProperties, "a(qn)i");
+static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
+ CommandControlStub,
+ std::tuple<am_mainConnectionID_t>,
+ std::tuple<am_timeSync_t, am_Error_e>
+ > getTimingInformationStubDispatcher(&CommandControlStub::getTimingInformation, "ni");
+static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
+ CommandControlStub,
+ std::tuple<am_sinkID_t>,
+ std::tuple<am_NotificationConfiguration_L, am_Error_e>
+ > getListMainSinkNotificationConfigurationsStubDispatcher(&CommandControlStub::getListMainSinkNotificationConfigurations, "a(qin)i");
+static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
+ CommandControlStub,
+ std::tuple<am_sourceID_t>,
+ std::tuple<am_NotificationConfiguration_L, am_Error_e>
+ > getListMainSourceNotificationConfigurationsStubDispatcher(&CommandControlStub::getListMainSourceNotificationConfigurations, "a(qin)i");
+static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
+ CommandControlStub,
+ std::tuple<am_sinkID_t, am_NotificationConfiguration_s>,
+ std::tuple<am_Error_e>
+ > setMainSinkNotificationConfigurationStubDispatcher(&CommandControlStub::setMainSinkNotificationConfiguration, "i");
+static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
+ CommandControlStub,
+ std::tuple<am_sourceID_t, am_NotificationConfiguration_s>,
+ std::tuple<am_Error_e>
+ > setMainSourceNotificationConfigurationStubDispatcher(&CommandControlStub::setMainSourceNotificationConfiguration, "i");
+
+
+void CommandControlDBusStubAdapter::fireNewMainConnectionEvent(const am_MainConnectionType_s& mainConnection) {
+ CommonAPI::DBus::DBusStubSignalHelper<CommonAPI::DBus::DBusSerializableArguments<am_MainConnectionType_s>>
+ ::sendSignal(
+ *this,
+ "newMainConnection",
+ "(qqqni)",
+ mainConnection
+ );
+}
+void CommandControlDBusStubAdapter::fireRemovedMainConnectionEvent(const am_mainConnectionID_t& mainConnection) {
+ CommonAPI::DBus::DBusStubSignalHelper<CommonAPI::DBus::DBusSerializableArguments<am_mainConnectionID_t>>
+ ::sendSignal(
+ *this,
+ "removedMainConnection",
+ "q",
+ mainConnection
+ );
+}
+void CommandControlDBusStubAdapter::fireNewSinkEvent(const am_SinkType_s& sink) {
+ CommonAPI::DBus::DBusStubSignalHelper<CommonAPI::DBus::DBusSerializableArguments<am_SinkType_s>>
+ ::sendSignal(
+ *this,
+ "newSink",
+ "(qs(iq)niq)",
+ sink
+ );
+}
+void CommandControlDBusStubAdapter::fireRemovedSinkEvent(const am_sinkID_t& sinkID) {
+ CommonAPI::DBus::DBusStubSignalHelper<CommonAPI::DBus::DBusSerializableArguments<am_sinkID_t>>
+ ::sendSignal(
+ *this,
+ "removedSink",
+ "q",
+ sinkID
+ );
+}
+void CommandControlDBusStubAdapter::fireNewSourceEvent(const am_SourceType_s& source) {
+ CommonAPI::DBus::DBusStubSignalHelper<CommonAPI::DBus::DBusSerializableArguments<am_SourceType_s>>
+ ::sendSignal(
+ *this,
+ "newSource",
+ "(qs(iq)q)",
+ source
+ );
+}
+void CommandControlDBusStubAdapter::fireRemovedSourceEvent(const am_sourceID_t& source) {
+ CommonAPI::DBus::DBusStubSignalHelper<CommonAPI::DBus::DBusSerializableArguments<am_sourceID_t>>
+ ::sendSignal(
+ *this,
+ "removedSource",
+ "q",
+ source
+ );
+}
+void CommandControlDBusStubAdapter::fireNumberOfSinkClassesChangedEvent() {
+ CommonAPI::DBus::DBusStubSignalHelper<CommonAPI::DBus::DBusSerializableArguments<>>
+ ::sendSignal(
+ *this,
+ "numberOfSinkClassesChanged",
+ ""
+ );
+}
+void CommandControlDBusStubAdapter::fireNumberOfSourceClassesChangedEvent() {
+ CommonAPI::DBus::DBusStubSignalHelper<CommonAPI::DBus::DBusSerializableArguments<>>
+ ::sendSignal(
+ *this,
+ "numberOfSourceClassesChanged",
+ ""
+ );
+}
+void CommandControlDBusStubAdapter::fireMainConnectionStateChangedEvent(const am_mainConnectionID_t& connectionID, const am_ConnectionState_e& connectionState) {
+ CommonAPI::DBus::DBusStubSignalHelper<CommonAPI::DBus::DBusSerializableArguments<am_mainConnectionID_t, am_ConnectionState_e>>
+ ::sendSignal(
+ *this,
+ "mainConnectionStateChanged",
+ "qi",
+ connectionID, connectionState
+ );
+}
+void CommandControlDBusStubAdapter::fireMainSinkSoundPropertyChangedEvent(const am_sinkID_t& sinkID, const am_MainSoundProperty_s& soundProperty) {
+ CommonAPI::DBus::DBusStubSignalHelper<CommonAPI::DBus::DBusSerializableArguments<am_sinkID_t, am_MainSoundProperty_s>>
+ ::sendSignal(
+ *this,
+ "mainSinkSoundPropertyChanged",
+ "q(qn)",
+ sinkID, soundProperty
+ );
+}
+void CommandControlDBusStubAdapter::fireMainSourceSoundPropertyChangedEvent(const am_sourceID_t& sourceID, const am_MainSoundProperty_s& soundProperty) {
+ CommonAPI::DBus::DBusStubSignalHelper<CommonAPI::DBus::DBusSerializableArguments<am_sourceID_t, am_MainSoundProperty_s>>
+ ::sendSignal(
+ *this,
+ "mainSourceSoundPropertyChanged",
+ "q(qn)",
+ sourceID, soundProperty
+ );
+}
+void CommandControlDBusStubAdapter::fireSinkAvailabilityChangedEvent(const am_sinkID_t& sinkID, const am_Availability_s& availability) {
+ CommonAPI::DBus::DBusStubSignalHelper<CommonAPI::DBus::DBusSerializableArguments<am_sinkID_t, am_Availability_s>>
+ ::sendSignal(
+ *this,
+ "sinkAvailabilityChanged",
+ "q(iq)",
+ sinkID, availability
+ );
+}
+void CommandControlDBusStubAdapter::fireSourceAvailabilityChangedEvent(const am_sourceID_t& sourceID, const am_Availability_s& availability) {
+ CommonAPI::DBus::DBusStubSignalHelper<CommonAPI::DBus::DBusSerializableArguments<am_sourceID_t, am_Availability_s>>
+ ::sendSignal(
+ *this,
+ "sourceAvailabilityChanged",
+ "q(iq)",
+ sourceID, availability
+ );
+}
+void CommandControlDBusStubAdapter::fireVolumeChangedEvent(const am_sinkID_t& sinkID, const am_mainVolume_t& volume) {
+ CommonAPI::DBus::DBusStubSignalHelper<CommonAPI::DBus::DBusSerializableArguments<am_sinkID_t, am_mainVolume_t>>
+ ::sendSignal(
+ *this,
+ "volumeChanged",
+ "qn",
+ sinkID, volume
+ );
+}
+void CommandControlDBusStubAdapter::fireSinkMuteStateChangedEvent(const am_sinkID_t& sinkID, const am_MuteState_e& muteState) {
+ CommonAPI::DBus::DBusStubSignalHelper<CommonAPI::DBus::DBusSerializableArguments<am_sinkID_t, am_MuteState_e>>
+ ::sendSignal(
+ *this,
+ "sinkMuteStateChanged",
+ "qi",
+ sinkID, muteState
+ );
+}
+void CommandControlDBusStubAdapter::fireSystemPropertyChangedEvent(const am_SystemProperty_s& systemProperty) {
+ CommonAPI::DBus::DBusStubSignalHelper<CommonAPI::DBus::DBusSerializableArguments<am_SystemProperty_s>>
+ ::sendSignal(
+ *this,
+ "systemPropertyChanged",
+ "(qn)",
+ systemProperty
+ );
+}
+void CommandControlDBusStubAdapter::fireTimingInformationChangedEvent(const am_mainConnectionID_t& mainConnectionID, const am_timeSync_t& time) {
+ CommonAPI::DBus::DBusStubSignalHelper<CommonAPI::DBus::DBusSerializableArguments<am_mainConnectionID_t, am_timeSync_t>>
+ ::sendSignal(
+ *this,
+ "timingInformationChanged",
+ "qn",
+ mainConnectionID, time
+ );
+}
+void CommandControlDBusStubAdapter::fireSinkUpdatedEvent(const am_sinkID_t& sinkID, const am_sinkClass_t& sinkClassID, const am_MainSoundProperty_L& listMainSoundProperties) {
+ CommonAPI::DBus::DBusStubSignalHelper<CommonAPI::DBus::DBusSerializableArguments<am_sinkID_t, am_sinkClass_t, am_MainSoundProperty_L>>
+ ::sendSignal(
+ *this,
+ "sinkUpdated",
+ "qqa(qn)",
+ sinkID, sinkClassID, listMainSoundProperties
+ );
+}
+void CommandControlDBusStubAdapter::fireSourceUpdatedEvent(const am_sourceID_t& sourceID, const am_sourceClass_t& sourceClassID, const am_MainSoundProperty_L& listMainSoundProperties) {
+ CommonAPI::DBus::DBusStubSignalHelper<CommonAPI::DBus::DBusSerializableArguments<am_sourceID_t, am_sourceClass_t, am_MainSoundProperty_L>>
+ ::sendSignal(
+ *this,
+ "sourceUpdated",
+ "qqa(qn)",
+ sourceID, sourceClassID, listMainSoundProperties
+ );
+}
+void CommandControlDBusStubAdapter::fireSinkNotificationEvent(const am_sinkID_t& sinkID, const am_NotificationPayload_s& notification) {
+ CommonAPI::DBus::DBusStubSignalHelper<CommonAPI::DBus::DBusSerializableArguments<am_sinkID_t, am_NotificationPayload_s>>
+ ::sendSignal(
+ *this,
+ "sinkNotification",
+ "q(qn)",
+ sinkID, notification
+ );
+}
+void CommandControlDBusStubAdapter::fireSourceNotificationEvent(const am_sourceID_t& sourceID, const am_NotificationPayload_s& notification) {
+ CommonAPI::DBus::DBusStubSignalHelper<CommonAPI::DBus::DBusSerializableArguments<am_sourceID_t, am_NotificationPayload_s>>
+ ::sendSignal(
+ *this,
+ "sourceNotification",
+ "q(qn)",
+ sourceID, notification
+ );
+}
+void CommandControlDBusStubAdapter::fireMainSinkNotificationConfigurationChangedEvent(const am_sinkID_t& sinkID, const am_NotificationConfiguration_s& mainNotificationConfiguration) {
+ CommonAPI::DBus::DBusStubSignalHelper<CommonAPI::DBus::DBusSerializableArguments<am_sinkID_t, am_NotificationConfiguration_s>>
+ ::sendSignal(
+ *this,
+ "mainSinkNotificationConfigurationChanged",
+ "q(qin)",
+ sinkID, mainNotificationConfiguration
+ );
+}
+void CommandControlDBusStubAdapter::fireMainSourceNotificationConfigurationChangedEvent(const am_sourceID_t& sourceID, const am_NotificationConfiguration_s& mainNotificationConfiguration) {
+ CommonAPI::DBus::DBusStubSignalHelper<CommonAPI::DBus::DBusSerializableArguments<am_sourceID_t, am_NotificationConfiguration_s>>
+ ::sendSignal(
+ *this,
+ "mainSourceNotificationConfigurationChanged",
+ "q(qin)",
+ sourceID, mainNotificationConfiguration
+ );
+}
+
+} // namespace am
+} // namespace genivi
+} // namespace org
+
+template<>
+const org::genivi::am::CommandControlDBusStubAdapterHelper::StubDispatcherTable org::genivi::am::CommandControlDBusStubAdapterHelper::stubDispatcherTable_ = {
+ { { "connect", "qq" }, &org::genivi::am::connectStubDispatcher },
+ { { "disconnect", "q" }, &org::genivi::am::disconnectStubDispatcher },
+ { { "setVolume", "qn" }, &org::genivi::am::setVolumeStubDispatcher },
+ { { "volumeStep", "qn" }, &org::genivi::am::volumeStepStubDispatcher },
+ { { "setSinkMuteState", "qi" }, &org::genivi::am::setSinkMuteStateStubDispatcher },
+ { { "setMainSinkSoundProperty", "q(qn)" }, &org::genivi::am::setMainSinkSoundPropertyStubDispatcher },
+ { { "setMainSourceSoundProperty", "q(qn)" }, &org::genivi::am::setMainSourceSoundPropertyStubDispatcher },
+ { { "setSystemProperty", "(qn)" }, &org::genivi::am::setSystemPropertyStubDispatcher },
+ { { "getListMainConnections", "" }, &org::genivi::am::getListMainConnectionsStubDispatcher },
+ { { "getListMainSinks", "" }, &org::genivi::am::getListMainSinksStubDispatcher },
+ { { "getListMainSources", "" }, &org::genivi::am::getListMainSourcesStubDispatcher },
+ { { "getListMainSinkSoundProperties", "q" }, &org::genivi::am::getListMainSinkSoundPropertiesStubDispatcher },
+ { { "getListMainSourceSoundProperties", "q" }, &org::genivi::am::getListMainSourceSoundPropertiesStubDispatcher },
+ { { "getListSourceClasses", "" }, &org::genivi::am::getListSourceClassesStubDispatcher },
+ { { "getListSinkClasses", "" }, &org::genivi::am::getListSinkClassesStubDispatcher },
+ { { "getListSystemProperties", "" }, &org::genivi::am::getListSystemPropertiesStubDispatcher },
+ { { "getTimingInformation", "q" }, &org::genivi::am::getTimingInformationStubDispatcher },
+ { { "getListMainSinkNotificationConfigurations", "q" }, &org::genivi::am::getListMainSinkNotificationConfigurationsStubDispatcher },
+ { { "getListMainSourceNotificationConfigurations", "q" }, &org::genivi::am::getListMainSourceNotificationConfigurationsStubDispatcher },
+ { { "setMainSinkNotificationConfiguration", "q(qin)" }, &org::genivi::am::setMainSinkNotificationConfigurationStubDispatcher },
+ { { "setMainSourceNotificationConfiguration", "q(qin)" }, &org::genivi::am::setMainSourceNotificationConfigurationStubDispatcher }
+};
diff --git a/PluginCommandInterfaceCAPI/src-gen/org/genivi/am/CommandControlDBusStubAdapter.h b/PluginCommandInterfaceCAPI/src-gen/org/genivi/am/CommandControlDBusStubAdapter.h
new file mode 100644
index 0000000..0435d14
--- /dev/null
+++ b/PluginCommandInterfaceCAPI/src-gen/org/genivi/am/CommandControlDBusStubAdapter.h
@@ -0,0 +1,69 @@
+/*
+* This file was generated by the CommonAPI Generators.
+*
+ * Copyright (C) 2013, BMW AG
+ *
+ * \author Christian Linke, christian.linke@bmw.de BMW 2012,2013
+*/
+#ifndef ORG_GENIVI_AM_Command_Control_DBUS_STUB_ADAPTER_H_
+#define ORG_GENIVI_AM_Command_Control_DBUS_STUB_ADAPTER_H_
+
+#include <org/genivi/am/CommandControlStub.h>
+
+#define COMMONAPI_INTERNAL_COMPILATION
+
+#include <CommonAPI/DBus/DBusStubAdapterHelper.h>
+#include <CommonAPI/DBus/DBusFactory.h>
+
+#undef COMMONAPI_INTERNAL_COMPILATION
+
+namespace org {
+namespace genivi {
+namespace am {
+
+typedef CommonAPI::DBus::DBusStubAdapterHelper<CommandControlStub> CommandControlDBusStubAdapterHelper;
+
+class CommandControlDBusStubAdapter: public CommandControlStubAdapter, public CommandControlDBusStubAdapterHelper {
+ public:
+ CommandControlDBusStubAdapter(
+ const std::string& commonApiAddress,
+ const std::string& dbusInterfaceName,
+ const std::string& dbusBusName,
+ const std::string& dbusObjectPath,
+ const std::shared_ptr<CommonAPI::DBus::DBusProxyConnection>& dbusConnection,
+ const std::shared_ptr<CommonAPI::StubBase>& stub);
+
+
+ void fireNewMainConnectionEvent(const am_MainConnectionType_s& mainConnection);
+ void fireRemovedMainConnectionEvent(const am_mainConnectionID_t& mainConnection);
+ void fireNewSinkEvent(const am_SinkType_s& sink);
+ void fireRemovedSinkEvent(const am_sinkID_t& sinkID);
+ void fireNewSourceEvent(const am_SourceType_s& source);
+ void fireRemovedSourceEvent(const am_sourceID_t& source);
+ void fireNumberOfSinkClassesChangedEvent();
+ void fireNumberOfSourceClassesChangedEvent();
+ void fireMainConnectionStateChangedEvent(const am_mainConnectionID_t& connectionID, const am_ConnectionState_e& connectionState);
+ void fireMainSinkSoundPropertyChangedEvent(const am_sinkID_t& sinkID, const am_MainSoundProperty_s& soundProperty);
+ void fireMainSourceSoundPropertyChangedEvent(const am_sourceID_t& sourceID, const am_MainSoundProperty_s& soundProperty);
+ void fireSinkAvailabilityChangedEvent(const am_sinkID_t& sinkID, const am_Availability_s& availability);
+ void fireSourceAvailabilityChangedEvent(const am_sourceID_t& sourceID, const am_Availability_s& availability);
+ void fireVolumeChangedEvent(const am_sinkID_t& sinkID, const am_mainVolume_t& volume);
+ void fireSinkMuteStateChangedEvent(const am_sinkID_t& sinkID, const am_MuteState_e& muteState);
+ void fireSystemPropertyChangedEvent(const am_SystemProperty_s& systemProperty);
+ void fireTimingInformationChangedEvent(const am_mainConnectionID_t& mainConnectionID, const am_timeSync_t& time);
+ void fireSinkUpdatedEvent(const am_sinkID_t& sinkID, const am_sinkClass_t& sinkClassID, const am_MainSoundProperty_L& listMainSoundProperties);
+ void fireSourceUpdatedEvent(const am_sourceID_t& sourceID, const am_sourceClass_t& sourceClassID, const am_MainSoundProperty_L& listMainSoundProperties);
+ void fireSinkNotificationEvent(const am_sinkID_t& sinkID, const am_NotificationPayload_s& notification);
+ void fireSourceNotificationEvent(const am_sourceID_t& sourceID, const am_NotificationPayload_s& notification);
+ void fireMainSinkNotificationConfigurationChangedEvent(const am_sinkID_t& sinkID, const am_NotificationConfiguration_s& mainNotificationConfiguration);
+ void fireMainSourceNotificationConfigurationChangedEvent(const am_sourceID_t& sourceID, const am_NotificationConfiguration_s& mainNotificationConfiguration);
+
+ protected:
+ virtual const char* getMethodsDBusIntrospectionXmlData() const;
+};
+
+} // namespace am
+} // namespace genivi
+} // namespace org
+
+#endif // ORG_GENIVI_AM_Command_Control_DBUS_STUB_ADAPTER_H_
diff --git a/PluginCommandInterfaceCAPI/src-gen/org/genivi/am/CommandControlProxy.h b/PluginCommandInterfaceCAPI/src-gen/org/genivi/am/CommandControlProxy.h
new file mode 100644
index 0000000..3f6b3fc
--- /dev/null
+++ b/PluginCommandInterfaceCAPI/src-gen/org/genivi/am/CommandControlProxy.h
@@ -0,0 +1,920 @@
+/*
+* This file was generated by the CommonAPI Generators.
+*
+ * Copyright (C) 2013, BMW AG
+ *
+ * \author Christian Linke, christian.linke@bmw.de BMW 2012,2013
+*/
+#ifndef ORG_GENIVI_AM_Command_Control_PROXY_H_
+#define ORG_GENIVI_AM_Command_Control_PROXY_H_
+
+#include "CommandControlProxyBase.h"
+
+#define COMMONAPI_INTERNAL_COMPILATION
+
+
+#undef COMMONAPI_INTERNAL_COMPILATION
+
+namespace org {
+namespace genivi {
+namespace am {
+
+template <typename ... _AttributeExtensions>
+class CommandControlProxy: virtual public CommandControl, virtual public CommandControlProxyBase, public _AttributeExtensions... {
+ public:
+ CommandControlProxy(std::shared_ptr<CommonAPI::Proxy> delegate);
+ ~CommandControlProxy();
+
+
+ /// Returns the wrapper class that provides access to the broadcast newMainConnection.
+ virtual NewMainConnectionEvent& getNewMainConnectionEvent() {
+ return delegate_->getNewMainConnectionEvent();
+ }
+
+ /// Returns the wrapper class that provides access to the broadcast removedMainConnection.
+ virtual RemovedMainConnectionEvent& getRemovedMainConnectionEvent() {
+ return delegate_->getRemovedMainConnectionEvent();
+ }
+
+ /// Returns the wrapper class that provides access to the broadcast newSink.
+ virtual NewSinkEvent& getNewSinkEvent() {
+ return delegate_->getNewSinkEvent();
+ }
+
+ /// Returns the wrapper class that provides access to the broadcast removedSink.
+ virtual RemovedSinkEvent& getRemovedSinkEvent() {
+ return delegate_->getRemovedSinkEvent();
+ }
+
+ /// Returns the wrapper class that provides access to the broadcast newSource.
+ virtual NewSourceEvent& getNewSourceEvent() {
+ return delegate_->getNewSourceEvent();
+ }
+
+ /// Returns the wrapper class that provides access to the broadcast removedSource.
+ virtual RemovedSourceEvent& getRemovedSourceEvent() {
+ return delegate_->getRemovedSourceEvent();
+ }
+
+ /// Returns the wrapper class that provides access to the broadcast numberOfSinkClassesChanged.
+ virtual NumberOfSinkClassesChangedEvent& getNumberOfSinkClassesChangedEvent() {
+ return delegate_->getNumberOfSinkClassesChangedEvent();
+ }
+
+ /// Returns the wrapper class that provides access to the broadcast numberOfSourceClassesChanged.
+ virtual NumberOfSourceClassesChangedEvent& getNumberOfSourceClassesChangedEvent() {
+ return delegate_->getNumberOfSourceClassesChangedEvent();
+ }
+
+ /// Returns the wrapper class that provides access to the broadcast mainConnectionStateChanged.
+ virtual MainConnectionStateChangedEvent& getMainConnectionStateChangedEvent() {
+ return delegate_->getMainConnectionStateChangedEvent();
+ }
+
+ /// Returns the wrapper class that provides access to the broadcast mainSinkSoundPropertyChanged.
+ virtual MainSinkSoundPropertyChangedEvent& getMainSinkSoundPropertyChangedEvent() {
+ return delegate_->getMainSinkSoundPropertyChangedEvent();
+ }
+
+ /// Returns the wrapper class that provides access to the broadcast mainSourceSoundPropertyChanged.
+ virtual MainSourceSoundPropertyChangedEvent& getMainSourceSoundPropertyChangedEvent() {
+ return delegate_->getMainSourceSoundPropertyChangedEvent();
+ }
+
+ /// Returns the wrapper class that provides access to the broadcast sinkAvailabilityChanged.
+ virtual SinkAvailabilityChangedEvent& getSinkAvailabilityChangedEvent() {
+ return delegate_->getSinkAvailabilityChangedEvent();
+ }
+
+ /// Returns the wrapper class that provides access to the broadcast sourceAvailabilityChanged.
+ virtual SourceAvailabilityChangedEvent& getSourceAvailabilityChangedEvent() {
+ return delegate_->getSourceAvailabilityChangedEvent();
+ }
+
+ /// Returns the wrapper class that provides access to the broadcast volumeChanged.
+ virtual VolumeChangedEvent& getVolumeChangedEvent() {
+ return delegate_->getVolumeChangedEvent();
+ }
+
+ /// Returns the wrapper class that provides access to the broadcast sinkMuteStateChanged.
+ virtual SinkMuteStateChangedEvent& getSinkMuteStateChangedEvent() {
+ return delegate_->getSinkMuteStateChangedEvent();
+ }
+
+ /// Returns the wrapper class that provides access to the broadcast systemPropertyChanged.
+ virtual SystemPropertyChangedEvent& getSystemPropertyChangedEvent() {
+ return delegate_->getSystemPropertyChangedEvent();
+ }
+
+ /// Returns the wrapper class that provides access to the broadcast timingInformationChanged.
+ virtual TimingInformationChangedEvent& getTimingInformationChangedEvent() {
+ return delegate_->getTimingInformationChangedEvent();
+ }
+
+ /// Returns the wrapper class that provides access to the broadcast sinkUpdated.
+ virtual SinkUpdatedEvent& getSinkUpdatedEvent() {
+ return delegate_->getSinkUpdatedEvent();
+ }
+
+ /// Returns the wrapper class that provides access to the broadcast sourceUpdated.
+ virtual SourceUpdatedEvent& getSourceUpdatedEvent() {
+ return delegate_->getSourceUpdatedEvent();
+ }
+
+ /// Returns the wrapper class that provides access to the broadcast sinkNotification.
+ virtual SinkNotificationEvent& getSinkNotificationEvent() {
+ return delegate_->getSinkNotificationEvent();
+ }
+
+ /// Returns the wrapper class that provides access to the broadcast sourceNotification.
+ virtual SourceNotificationEvent& getSourceNotificationEvent() {
+ return delegate_->getSourceNotificationEvent();
+ }
+
+ /// Returns the wrapper class that provides access to the broadcast mainSinkNotificationConfigurationChanged.
+ virtual MainSinkNotificationConfigurationChangedEvent& getMainSinkNotificationConfigurationChangedEvent() {
+ return delegate_->getMainSinkNotificationConfigurationChangedEvent();
+ }
+
+ /// Returns the wrapper class that provides access to the broadcast mainSourceNotificationConfigurationChanged.
+ virtual MainSourceNotificationConfigurationChangedEvent& getMainSourceNotificationConfigurationChangedEvent() {
+ return delegate_->getMainSourceNotificationConfigurationChangedEvent();
+ }
+
+
+
+ /**
+ * Calls connect with synchronous semantics.
+ *
+ * All const parameters are input parameters to this method.
+ * All non-const parameters will be filled with the returned values.
+ * The CallStatus will be filled when the method returns and indicate either
+ * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus
+ * will be set.
+ * Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
+ */
+ virtual void connect(const am_sourceID_t& sourceID, const am_sinkID_t& sinkID, CommonAPI::CallStatus& callStatus, am_mainConnectionID_t& mainConnectionID, am_Error_e& error);
+ /**
+ * Calls connect with asynchronous semantics.
+ *
+ * The provided callback will be called when the reply to this call arrives or
+ * an error occurs during the call. The CallStatus will indicate either "SUCCESS"
+ * or which type of error has occurred. In case of any error, ONLY the CallStatus
+ * will have a defined value.
+ * The std::future returned by this method will be fulfilled at arrival of the reply.
+ * It will provide the same value for CallStatus as will be handed to the callback.
+ */
+ virtual std::future<CommonAPI::CallStatus> connectAsync(const am_sourceID_t& sourceID, const am_sinkID_t& sinkID, ConnectAsyncCallback callback);
+
+ /**
+ * Calls disconnect with synchronous semantics.
+ *
+ * All const parameters are input parameters to this method.
+ * All non-const parameters will be filled with the returned values.
+ * The CallStatus will be filled when the method returns and indicate either
+ * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus
+ * will be set.
+ * Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
+ */
+ virtual void disconnect(const am_mainConnectionID_t& mainConnectionID, CommonAPI::CallStatus& callStatus, am_Error_e& error);
+ /**
+ * Calls disconnect with asynchronous semantics.
+ *
+ * The provided callback will be called when the reply to this call arrives or
+ * an error occurs during the call. The CallStatus will indicate either "SUCCESS"
+ * or which type of error has occurred. In case of any error, ONLY the CallStatus
+ * will have a defined value.
+ * The std::future returned by this method will be fulfilled at arrival of the reply.
+ * It will provide the same value for CallStatus as will be handed to the callback.
+ */
+ virtual std::future<CommonAPI::CallStatus> disconnectAsync(const am_mainConnectionID_t& mainConnectionID, DisconnectAsyncCallback callback);
+
+ /**
+ * Calls setVolume with synchronous semantics.
+ *
+ * All const parameters are input parameters to this method.
+ * All non-const parameters will be filled with the returned values.
+ * The CallStatus will be filled when the method returns and indicate either
+ * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus
+ * will be set.
+ * Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
+ */
+ virtual void setVolume(const am_sinkID_t& sinkID, const am_mainVolume_t& volume, CommonAPI::CallStatus& callStatus, am_Error_e& error);
+ /**
+ * Calls setVolume with asynchronous semantics.
+ *
+ * The provided callback will be called when the reply to this call arrives or
+ * an error occurs during the call. The CallStatus will indicate either "SUCCESS"
+ * or which type of error has occurred. In case of any error, ONLY the CallStatus
+ * will have a defined value.
+ * The std::future returned by this method will be fulfilled at arrival of the reply.
+ * It will provide the same value for CallStatus as will be handed to the callback.
+ */
+ virtual std::future<CommonAPI::CallStatus> setVolumeAsync(const am_sinkID_t& sinkID, const am_mainVolume_t& volume, SetVolumeAsyncCallback callback);
+
+ /**
+ * Calls volumeStep with synchronous semantics.
+ *
+ * All const parameters are input parameters to this method.
+ * All non-const parameters will be filled with the returned values.
+ * The CallStatus will be filled when the method returns and indicate either
+ * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus
+ * will be set.
+ * Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
+ */
+ virtual void volumeStep(const am_sinkID_t& sinkID, const int16_t& volumeStep, CommonAPI::CallStatus& callStatus, am_Error_e& error);
+ /**
+ * Calls volumeStep with asynchronous semantics.
+ *
+ * The provided callback will be called when the reply to this call arrives or
+ * an error occurs during the call. The CallStatus will indicate either "SUCCESS"
+ * or which type of error has occurred. In case of any error, ONLY the CallStatus
+ * will have a defined value.
+ * The std::future returned by this method will be fulfilled at arrival of the reply.
+ * It will provide the same value for CallStatus as will be handed to the callback.
+ */
+ virtual std::future<CommonAPI::CallStatus> volumeStepAsync(const am_sinkID_t& sinkID, const int16_t& volumeStep, VolumeStepAsyncCallback callback);
+
+ /**
+ * Calls setSinkMuteState with synchronous semantics.
+ *
+ * All const parameters are input parameters to this method.
+ * All non-const parameters will be filled with the returned values.
+ * The CallStatus will be filled when the method returns and indicate either
+ * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus
+ * will be set.
+ * Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
+ */
+ virtual void setSinkMuteState(const am_sinkID_t& sinkID, const am_MuteState_e& muteState, CommonAPI::CallStatus& callStatus, am_Error_e& error);
+ /**
+ * Calls setSinkMuteState with asynchronous semantics.
+ *
+ * The provided callback will be called when the reply to this call arrives or
+ * an error occurs during the call. The CallStatus will indicate either "SUCCESS"
+ * or which type of error has occurred. In case of any error, ONLY the CallStatus
+ * will have a defined value.
+ * The std::future returned by this method will be fulfilled at arrival of the reply.
+ * It will provide the same value for CallStatus as will be handed to the callback.
+ */
+ virtual std::future<CommonAPI::CallStatus> setSinkMuteStateAsync(const am_sinkID_t& sinkID, const am_MuteState_e& muteState, SetSinkMuteStateAsyncCallback callback);
+
+ /**
+ * Calls setMainSinkSoundProperty with synchronous semantics.
+ *
+ * All const parameters are input parameters to this method.
+ * All non-const parameters will be filled with the returned values.
+ * The CallStatus will be filled when the method returns and indicate either
+ * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus
+ * will be set.
+ * Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
+ */
+ virtual void setMainSinkSoundProperty(const am_sinkID_t& sinkID, const am_MainSoundProperty_s& soundProperty, CommonAPI::CallStatus& callStatus, am_Error_e& error);
+ /**
+ * Calls setMainSinkSoundProperty with asynchronous semantics.
+ *
+ * The provided callback will be called when the reply to this call arrives or
+ * an error occurs during the call. The CallStatus will indicate either "SUCCESS"
+ * or which type of error has occurred. In case of any error, ONLY the CallStatus
+ * will have a defined value.
+ * The std::future returned by this method will be fulfilled at arrival of the reply.
+ * It will provide the same value for CallStatus as will be handed to the callback.
+ */
+ virtual std::future<CommonAPI::CallStatus> setMainSinkSoundPropertyAsync(const am_sinkID_t& sinkID, const am_MainSoundProperty_s& soundProperty, SetMainSinkSoundPropertyAsyncCallback callback);
+
+ /**
+ * Calls setMainSourceSoundProperty with synchronous semantics.
+ *
+ * All const parameters are input parameters to this method.
+ * All non-const parameters will be filled with the returned values.
+ * The CallStatus will be filled when the method returns and indicate either
+ * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus
+ * will be set.
+ * Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
+ */
+ virtual void setMainSourceSoundProperty(const am_sourceID_t& sourceID, const am_MainSoundProperty_s& soundProperty, CommonAPI::CallStatus& callStatus, am_Error_e& error);
+ /**
+ * Calls setMainSourceSoundProperty with asynchronous semantics.
+ *
+ * The provided callback will be called when the reply to this call arrives or
+ * an error occurs during the call. The CallStatus will indicate either "SUCCESS"
+ * or which type of error has occurred. In case of any error, ONLY the CallStatus
+ * will have a defined value.
+ * The std::future returned by this method will be fulfilled at arrival of the reply.
+ * It will provide the same value for CallStatus as will be handed to the callback.
+ */
+ virtual std::future<CommonAPI::CallStatus> setMainSourceSoundPropertyAsync(const am_sourceID_t& sourceID, const am_MainSoundProperty_s& soundProperty, SetMainSourceSoundPropertyAsyncCallback callback);
+
+ /**
+ * Calls setSystemProperty with synchronous semantics.
+ *
+ * All const parameters are input parameters to this method.
+ * All non-const parameters will be filled with the returned values.
+ * The CallStatus will be filled when the method returns and indicate either
+ * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus
+ * will be set.
+ * Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
+ */
+ virtual void setSystemProperty(const am_SystemProperty_s& property, CommonAPI::CallStatus& callStatus, am_Error_e& error);
+ /**
+ * Calls setSystemProperty with asynchronous semantics.
+ *
+ * The provided callback will be called when the reply to this call arrives or
+ * an error occurs during the call. The CallStatus will indicate either "SUCCESS"
+ * or which type of error has occurred. In case of any error, ONLY the CallStatus
+ * will have a defined value.
+ * The std::future returned by this method will be fulfilled at arrival of the reply.
+ * It will provide the same value for CallStatus as will be handed to the callback.
+ */
+ virtual std::future<CommonAPI::CallStatus> setSystemPropertyAsync(const am_SystemProperty_s& property, SetSystemPropertyAsyncCallback callback);
+
+ /**
+ * Calls getListMainConnections with synchronous semantics.
+ *
+ * All non-const parameters will be filled with the returned values.
+ * The CallStatus will be filled when the method returns and indicate either
+ * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus
+ * will be set.
+ * Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
+ */
+ virtual void getListMainConnections(CommonAPI::CallStatus& callStatus, am_Error_e& error, am_MainConnection_L& listConnections);
+ /**
+ * Calls getListMainConnections with asynchronous semantics.
+ *
+ * The provided callback will be called when the reply to this call arrives or
+ * an error occurs during the call. The CallStatus will indicate either "SUCCESS"
+ * or which type of error has occurred. In case of any error, ONLY the CallStatus
+ * will have a defined value.
+ * The std::future returned by this method will be fulfilled at arrival of the reply.
+ * It will provide the same value for CallStatus as will be handed to the callback.
+ */
+ virtual std::future<CommonAPI::CallStatus> getListMainConnectionsAsync(GetListMainConnectionsAsyncCallback callback);
+
+ /**
+ * Calls getListMainSinks with synchronous semantics.
+ *
+ * All non-const parameters will be filled with the returned values.
+ * The CallStatus will be filled when the method returns and indicate either
+ * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus
+ * will be set.
+ * Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
+ */
+ virtual void getListMainSinks(CommonAPI::CallStatus& callStatus, am_SinkType_L& listMainSinks, am_Error_e& error);
+ /**
+ * Calls getListMainSinks with asynchronous semantics.
+ *
+ * The provided callback will be called when the reply to this call arrives or
+ * an error occurs during the call. The CallStatus will indicate either "SUCCESS"
+ * or which type of error has occurred. In case of any error, ONLY the CallStatus
+ * will have a defined value.
+ * The std::future returned by this method will be fulfilled at arrival of the reply.
+ * It will provide the same value for CallStatus as will be handed to the callback.
+ */
+ virtual std::future<CommonAPI::CallStatus> getListMainSinksAsync(GetListMainSinksAsyncCallback callback);
+
+ /**
+ * Calls getListMainSources with synchronous semantics.
+ *
+ * All non-const parameters will be filled with the returned values.
+ * The CallStatus will be filled when the method returns and indicate either
+ * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus
+ * will be set.
+ * Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
+ */
+ virtual void getListMainSources(CommonAPI::CallStatus& callStatus, am_SourceType_L& listMainSources, am_Error_e& error);
+ /**
+ * Calls getListMainSources with asynchronous semantics.
+ *
+ * The provided callback will be called when the reply to this call arrives or
+ * an error occurs during the call. The CallStatus will indicate either "SUCCESS"
+ * or which type of error has occurred. In case of any error, ONLY the CallStatus
+ * will have a defined value.
+ * The std::future returned by this method will be fulfilled at arrival of the reply.
+ * It will provide the same value for CallStatus as will be handed to the callback.
+ */
+ virtual std::future<CommonAPI::CallStatus> getListMainSourcesAsync(GetListMainSourcesAsyncCallback callback);
+
+ /**
+ * Calls getListMainSinkSoundProperties with synchronous semantics.
+ *
+ * All const parameters are input parameters to this method.
+ * All non-const parameters will be filled with the returned values.
+ * The CallStatus will be filled when the method returns and indicate either
+ * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus
+ * will be set.
+ * Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
+ */
+ virtual void getListMainSinkSoundProperties(const am_sinkID_t& sinkID, CommonAPI::CallStatus& callStatus, am_MainSoundProperty_L& listSoundProperties, am_Error_e& error);
+ /**
+ * Calls getListMainSinkSoundProperties with asynchronous semantics.
+ *
+ * The provided callback will be called when the reply to this call arrives or
+ * an error occurs during the call. The CallStatus will indicate either "SUCCESS"
+ * or which type of error has occurred. In case of any error, ONLY the CallStatus
+ * will have a defined value.
+ * The std::future returned by this method will be fulfilled at arrival of the reply.
+ * It will provide the same value for CallStatus as will be handed to the callback.
+ */
+ virtual std::future<CommonAPI::CallStatus> getListMainSinkSoundPropertiesAsync(const am_sinkID_t& sinkID, GetListMainSinkSoundPropertiesAsyncCallback callback);
+
+ /**
+ * Calls getListMainSourceSoundProperties with synchronous semantics.
+ *
+ * All const parameters are input parameters to this method.
+ * All non-const parameters will be filled with the returned values.
+ * The CallStatus will be filled when the method returns and indicate either
+ * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus
+ * will be set.
+ * Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
+ */
+ virtual void getListMainSourceSoundProperties(const am_sourceID_t& sourceID, CommonAPI::CallStatus& callStatus, am_MainSoundProperty_L& listSourceProperties, am_Error_e& error);
+ /**
+ * Calls getListMainSourceSoundProperties with asynchronous semantics.
+ *
+ * The provided callback will be called when the reply to this call arrives or
+ * an error occurs during the call. The CallStatus will indicate either "SUCCESS"
+ * or which type of error has occurred. In case of any error, ONLY the CallStatus
+ * will have a defined value.
+ * The std::future returned by this method will be fulfilled at arrival of the reply.
+ * It will provide the same value for CallStatus as will be handed to the callback.
+ */
+ virtual std::future<CommonAPI::CallStatus> getListMainSourceSoundPropertiesAsync(const am_sourceID_t& sourceID, GetListMainSourceSoundPropertiesAsyncCallback callback);
+
+ /**
+ * Calls getListSourceClasses with synchronous semantics.
+ *
+ * All non-const parameters will be filled with the returned values.
+ * The CallStatus will be filled when the method returns and indicate either
+ * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus
+ * will be set.
+ * Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
+ */
+ virtual void getListSourceClasses(CommonAPI::CallStatus& callStatus, am_SourceClass_L& listSourceClasses, am_Error_e& error);
+ /**
+ * Calls getListSourceClasses with asynchronous semantics.
+ *
+ * The provided callback will be called when the reply to this call arrives or
+ * an error occurs during the call. The CallStatus will indicate either "SUCCESS"
+ * or which type of error has occurred. In case of any error, ONLY the CallStatus
+ * will have a defined value.
+ * The std::future returned by this method will be fulfilled at arrival of the reply.
+ * It will provide the same value for CallStatus as will be handed to the callback.
+ */
+ virtual std::future<CommonAPI::CallStatus> getListSourceClassesAsync(GetListSourceClassesAsyncCallback callback);
+
+ /**
+ * Calls getListSinkClasses with synchronous semantics.
+ *
+ * All non-const parameters will be filled with the returned values.
+ * The CallStatus will be filled when the method returns and indicate either
+ * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus
+ * will be set.
+ * Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
+ */
+ virtual void getListSinkClasses(CommonAPI::CallStatus& callStatus, am_SinkClass_L& listSinkClasses, am_Error_e& error);
+ /**
+ * Calls getListSinkClasses with asynchronous semantics.
+ *
+ * The provided callback will be called when the reply to this call arrives or
+ * an error occurs during the call. The CallStatus will indicate either "SUCCESS"
+ * or which type of error has occurred. In case of any error, ONLY the CallStatus
+ * will have a defined value.
+ * The std::future returned by this method will be fulfilled at arrival of the reply.
+ * It will provide the same value for CallStatus as will be handed to the callback.
+ */
+ virtual std::future<CommonAPI::CallStatus> getListSinkClassesAsync(GetListSinkClassesAsyncCallback callback);
+
+ /**
+ * Calls getListSystemProperties with synchronous semantics.
+ *
+ * All non-const parameters will be filled with the returned values.
+ * The CallStatus will be filled when the method returns and indicate either
+ * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus
+ * will be set.
+ * Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
+ */
+ virtual void getListSystemProperties(CommonAPI::CallStatus& callStatus, am_SystemProperty_L& listSystemProperties, am_Error_e& error);
+ /**
+ * Calls getListSystemProperties with asynchronous semantics.
+ *
+ * The provided callback will be called when the reply to this call arrives or
+ * an error occurs during the call. The CallStatus will indicate either "SUCCESS"
+ * or which type of error has occurred. In case of any error, ONLY the CallStatus
+ * will have a defined value.
+ * The std::future returned by this method will be fulfilled at arrival of the reply.
+ * It will provide the same value for CallStatus as will be handed to the callback.
+ */
+ virtual std::future<CommonAPI::CallStatus> getListSystemPropertiesAsync(GetListSystemPropertiesAsyncCallback callback);
+
+ /**
+ * Calls getTimingInformation with synchronous semantics.
+ *
+ * All const parameters are input parameters to this method.
+ * All non-const parameters will be filled with the returned values.
+ * The CallStatus will be filled when the method returns and indicate either
+ * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus
+ * will be set.
+ * Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
+ */
+ virtual void getTimingInformation(const am_mainConnectionID_t& mainConnectionID, CommonAPI::CallStatus& callStatus, am_timeSync_t& delay, am_Error_e& error);
+ /**
+ * Calls getTimingInformation with asynchronous semantics.
+ *
+ * The provided callback will be called when the reply to this call arrives or
+ * an error occurs during the call. The CallStatus will indicate either "SUCCESS"
+ * or which type of error has occurred. In case of any error, ONLY the CallStatus
+ * will have a defined value.
+ * The std::future returned by this method will be fulfilled at arrival of the reply.
+ * It will provide the same value for CallStatus as will be handed to the callback.
+ */
+ virtual std::future<CommonAPI::CallStatus> getTimingInformationAsync(const am_mainConnectionID_t& mainConnectionID, GetTimingInformationAsyncCallback callback);
+
+ /**
+ * Calls getListMainSinkNotificationConfigurations with synchronous semantics.
+ *
+ * All const parameters are input parameters to this method.
+ * All non-const parameters will be filled with the returned values.
+ * The CallStatus will be filled when the method returns and indicate either
+ * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus
+ * will be set.
+ * Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
+ */
+ virtual void getListMainSinkNotificationConfigurations(const am_sinkID_t& sinkID, CommonAPI::CallStatus& callStatus, am_NotificationConfiguration_L& listMainNotificationConfigurations, am_Error_e& error);
+ /**
+ * Calls getListMainSinkNotificationConfigurations with asynchronous semantics.
+ *
+ * The provided callback will be called when the reply to this call arrives or
+ * an error occurs during the call. The CallStatus will indicate either "SUCCESS"
+ * or which type of error has occurred. In case of any error, ONLY the CallStatus
+ * will have a defined value.
+ * The std::future returned by this method will be fulfilled at arrival of the reply.
+ * It will provide the same value for CallStatus as will be handed to the callback.
+ */
+ virtual std::future<CommonAPI::CallStatus> getListMainSinkNotificationConfigurationsAsync(const am_sinkID_t& sinkID, GetListMainSinkNotificationConfigurationsAsyncCallback callback);
+
+ /**
+ * Calls getListMainSourceNotificationConfigurations with synchronous semantics.
+ *
+ * All const parameters are input parameters to this method.
+ * All non-const parameters will be filled with the returned values.
+ * The CallStatus will be filled when the method returns and indicate either
+ * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus
+ * will be set.
+ * Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
+ */
+ virtual void getListMainSourceNotificationConfigurations(const am_sourceID_t& sourceID, CommonAPI::CallStatus& callStatus, am_NotificationConfiguration_L& listMainNotificationConfigurations, am_Error_e& error);
+ /**
+ * Calls getListMainSourceNotificationConfigurations with asynchronous semantics.
+ *
+ * The provided callback will be called when the reply to this call arrives or
+ * an error occurs during the call. The CallStatus will indicate either "SUCCESS"
+ * or which type of error has occurred. In case of any error, ONLY the CallStatus
+ * will have a defined value.
+ * The std::future returned by this method will be fulfilled at arrival of the reply.
+ * It will provide the same value for CallStatus as will be handed to the callback.
+ */
+ virtual std::future<CommonAPI::CallStatus> getListMainSourceNotificationConfigurationsAsync(const am_sourceID_t& sourceID, GetListMainSourceNotificationConfigurationsAsyncCallback callback);
+
+ /**
+ * Calls setMainSinkNotificationConfiguration with synchronous semantics.
+ *
+ * All const parameters are input parameters to this method.
+ * All non-const parameters will be filled with the returned values.
+ * The CallStatus will be filled when the method returns and indicate either
+ * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus
+ * will be set.
+ * Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
+ */
+ virtual void setMainSinkNotificationConfiguration(const am_sinkID_t& sinkID, const am_NotificationConfiguration_s& mainNotificationConfiguration, CommonAPI::CallStatus& callStatus, am_Error_e& error);
+ /**
+ * Calls setMainSinkNotificationConfiguration with asynchronous semantics.
+ *
+ * The provided callback will be called when the reply to this call arrives or
+ * an error occurs during the call. The CallStatus will indicate either "SUCCESS"
+ * or which type of error has occurred. In case of any error, ONLY the CallStatus
+ * will have a defined value.
+ * The std::future returned by this method will be fulfilled at arrival of the reply.
+ * It will provide the same value for CallStatus as will be handed to the callback.
+ */
+ virtual std::future<CommonAPI::CallStatus> setMainSinkNotificationConfigurationAsync(const am_sinkID_t& sinkID, const am_NotificationConfiguration_s& mainNotificationConfiguration, SetMainSinkNotificationConfigurationAsyncCallback callback);
+
+ /**
+ * Calls setMainSourceNotificationConfiguration with synchronous semantics.
+ *
+ * All const parameters are input parameters to this method.
+ * All non-const parameters will be filled with the returned values.
+ * The CallStatus will be filled when the method returns and indicate either
+ * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus
+ * will be set.
+ * Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
+ */
+ virtual void setMainSourceNotificationConfiguration(const am_sourceID_t& sourceID, const am_NotificationConfiguration_s& mainNotificationConfiguration, CommonAPI::CallStatus& callStatus, am_Error_e& error);
+ /**
+ * Calls setMainSourceNotificationConfiguration with asynchronous semantics.
+ *
+ * The provided callback will be called when the reply to this call arrives or
+ * an error occurs during the call. The CallStatus will indicate either "SUCCESS"
+ * or which type of error has occurred. In case of any error, ONLY the CallStatus
+ * will have a defined value.
+ * The std::future returned by this method will be fulfilled at arrival of the reply.
+ * It will provide the same value for CallStatus as will be handed to the callback.
+ */
+ virtual std::future<CommonAPI::CallStatus> setMainSourceNotificationConfigurationAsync(const am_sourceID_t& sourceID, const am_NotificationConfiguration_s& mainNotificationConfiguration, SetMainSourceNotificationConfigurationAsyncCallback callback);
+
+ /// Returns the CommonAPI address of the remote partner this proxy communicates with.
+ virtual std::string getAddress() const;
+
+ /// Returns the domain of the remote partner this proxy communicates with.
+ virtual const std::string& getDomain() const;
+
+ /// Returns the service ID of the remote partner this proxy communicates with.
+ virtual const std::string& getServiceId() const;
+
+ /// Returns the instance ID of the remote partner this proxy communicates with.
+ virtual const std::string& getInstanceId() const;
+
+ /// Returns true if the remote partner for this proxy is available.
+ virtual bool isAvailable() const;
+
+ /**
+ * Returns the wrapper class that is used to (de-)register for notifications about
+ * the availability of the remote partner of this proxy.
+ */
+ virtual CommonAPI::ProxyStatusEvent& getProxyStatusEvent();
+
+ /**
+ * Returns the wrapper class that is used to access version information of the remote
+ * partner of this proxy.
+ */
+ virtual CommonAPI::InterfaceVersionAttribute& getInterfaceVersionAttribute();
+
+ private:
+ std::shared_ptr<CommandControlProxyBase> delegate_;
+};
+
+
+//
+// CommandControlProxy Implementation
+//
+template <typename ... _AttributeExtensions>
+CommandControlProxy<_AttributeExtensions...>::CommandControlProxy(std::shared_ptr<CommonAPI::Proxy> delegate):
+ delegate_(std::dynamic_pointer_cast<CommandControlProxyBase>(delegate)),
+ _AttributeExtensions(*(std::dynamic_pointer_cast<CommandControlProxyBase>(delegate)))... {
+}
+
+template <typename ... _AttributeExtensions>
+CommandControlProxy<_AttributeExtensions...>::~CommandControlProxy() {
+}
+
+template <typename ... _AttributeExtensions>
+void CommandControlProxy<_AttributeExtensions...>::connect(const am_sourceID_t& sourceID, const am_sinkID_t& sinkID, CommonAPI::CallStatus& callStatus, am_mainConnectionID_t& mainConnectionID, am_Error_e& error) {
+ delegate_->connect(sourceID, sinkID, callStatus, mainConnectionID, error);
+}
+
+template <typename ... _AttributeExtensions>
+std::future<CommonAPI::CallStatus> CommandControlProxy<_AttributeExtensions...>::connectAsync(const am_sourceID_t& sourceID, const am_sinkID_t& sinkID, ConnectAsyncCallback callback) {
+ return delegate_->connectAsync(sourceID, sinkID, callback);
+}
+
+template <typename ... _AttributeExtensions>
+void CommandControlProxy<_AttributeExtensions...>::disconnect(const am_mainConnectionID_t& mainConnectionID, CommonAPI::CallStatus& callStatus, am_Error_e& error) {
+ delegate_->disconnect(mainConnectionID, callStatus, error);
+}
+
+template <typename ... _AttributeExtensions>
+std::future<CommonAPI::CallStatus> CommandControlProxy<_AttributeExtensions...>::disconnectAsync(const am_mainConnectionID_t& mainConnectionID, DisconnectAsyncCallback callback) {
+ return delegate_->disconnectAsync(mainConnectionID, callback);
+}
+
+template <typename ... _AttributeExtensions>
+void CommandControlProxy<_AttributeExtensions...>::setVolume(const am_sinkID_t& sinkID, const am_mainVolume_t& volume, CommonAPI::CallStatus& callStatus, am_Error_e& error) {
+ delegate_->setVolume(sinkID, volume, callStatus, error);
+}
+
+template <typename ... _AttributeExtensions>
+std::future<CommonAPI::CallStatus> CommandControlProxy<_AttributeExtensions...>::setVolumeAsync(const am_sinkID_t& sinkID, const am_mainVolume_t& volume, SetVolumeAsyncCallback callback) {
+ return delegate_->setVolumeAsync(sinkID, volume, callback);
+}
+
+template <typename ... _AttributeExtensions>
+void CommandControlProxy<_AttributeExtensions...>::volumeStep(const am_sinkID_t& sinkID, const int16_t& volumeStep, CommonAPI::CallStatus& callStatus, am_Error_e& error) {
+ delegate_->volumeStep(sinkID, volumeStep, callStatus, error);
+}
+
+template <typename ... _AttributeExtensions>
+std::future<CommonAPI::CallStatus> CommandControlProxy<_AttributeExtensions...>::volumeStepAsync(const am_sinkID_t& sinkID, const int16_t& volumeStep, VolumeStepAsyncCallback callback) {
+ return delegate_->volumeStepAsync(sinkID, volumeStep, callback);
+}
+
+template <typename ... _AttributeExtensions>
+void CommandControlProxy<_AttributeExtensions...>::setSinkMuteState(const am_sinkID_t& sinkID, const am_MuteState_e& muteState, CommonAPI::CallStatus& callStatus, am_Error_e& error) {
+ delegate_->setSinkMuteState(sinkID, muteState, callStatus, error);
+}
+
+template <typename ... _AttributeExtensions>
+std::future<CommonAPI::CallStatus> CommandControlProxy<_AttributeExtensions...>::setSinkMuteStateAsync(const am_sinkID_t& sinkID, const am_MuteState_e& muteState, SetSinkMuteStateAsyncCallback callback) {
+ return delegate_->setSinkMuteStateAsync(sinkID, muteState, callback);
+}
+
+template <typename ... _AttributeExtensions>
+void CommandControlProxy<_AttributeExtensions...>::setMainSinkSoundProperty(const am_sinkID_t& sinkID, const am_MainSoundProperty_s& soundProperty, CommonAPI::CallStatus& callStatus, am_Error_e& error) {
+ delegate_->setMainSinkSoundProperty(sinkID, soundProperty, callStatus, error);
+}
+
+template <typename ... _AttributeExtensions>
+std::future<CommonAPI::CallStatus> CommandControlProxy<_AttributeExtensions...>::setMainSinkSoundPropertyAsync(const am_sinkID_t& sinkID, const am_MainSoundProperty_s& soundProperty, SetMainSinkSoundPropertyAsyncCallback callback) {
+ return delegate_->setMainSinkSoundPropertyAsync(sinkID, soundProperty, callback);
+}
+
+template <typename ... _AttributeExtensions>
+void CommandControlProxy<_AttributeExtensions...>::setMainSourceSoundProperty(const am_sourceID_t& sourceID, const am_MainSoundProperty_s& soundProperty, CommonAPI::CallStatus& callStatus, am_Error_e& error) {
+ delegate_->setMainSourceSoundProperty(sourceID, soundProperty, callStatus, error);
+}
+
+template <typename ... _AttributeExtensions>
+std::future<CommonAPI::CallStatus> CommandControlProxy<_AttributeExtensions...>::setMainSourceSoundPropertyAsync(const am_sourceID_t& sourceID, const am_MainSoundProperty_s& soundProperty, SetMainSourceSoundPropertyAsyncCallback callback) {
+ return delegate_->setMainSourceSoundPropertyAsync(sourceID, soundProperty, callback);
+}
+
+template <typename ... _AttributeExtensions>
+void CommandControlProxy<_AttributeExtensions...>::setSystemProperty(const am_SystemProperty_s& property, CommonAPI::CallStatus& callStatus, am_Error_e& error) {
+ delegate_->setSystemProperty(property, callStatus, error);
+}
+
+template <typename ... _AttributeExtensions>
+std::future<CommonAPI::CallStatus> CommandControlProxy<_AttributeExtensions...>::setSystemPropertyAsync(const am_SystemProperty_s& property, SetSystemPropertyAsyncCallback callback) {
+ return delegate_->setSystemPropertyAsync(property, callback);
+}
+
+template <typename ... _AttributeExtensions>
+void CommandControlProxy<_AttributeExtensions...>::getListMainConnections(CommonAPI::CallStatus& callStatus, am_Error_e& error, am_MainConnection_L& listConnections) {
+ delegate_->getListMainConnections(callStatus, error, listConnections);
+}
+
+template <typename ... _AttributeExtensions>
+std::future<CommonAPI::CallStatus> CommandControlProxy<_AttributeExtensions...>::getListMainConnectionsAsync(GetListMainConnectionsAsyncCallback callback) {
+ return delegate_->getListMainConnectionsAsync(callback);
+}
+
+template <typename ... _AttributeExtensions>
+void CommandControlProxy<_AttributeExtensions...>::getListMainSinks(CommonAPI::CallStatus& callStatus, am_SinkType_L& listMainSinks, am_Error_e& error) {
+ delegate_->getListMainSinks(callStatus, listMainSinks, error);
+}
+
+template <typename ... _AttributeExtensions>
+std::future<CommonAPI::CallStatus> CommandControlProxy<_AttributeExtensions...>::getListMainSinksAsync(GetListMainSinksAsyncCallback callback) {
+ return delegate_->getListMainSinksAsync(callback);
+}
+
+template <typename ... _AttributeExtensions>
+void CommandControlProxy<_AttributeExtensions...>::getListMainSources(CommonAPI::CallStatus& callStatus, am_SourceType_L& listMainSources, am_Error_e& error) {
+ delegate_->getListMainSources(callStatus, listMainSources, error);
+}
+
+template <typename ... _AttributeExtensions>
+std::future<CommonAPI::CallStatus> CommandControlProxy<_AttributeExtensions...>::getListMainSourcesAsync(GetListMainSourcesAsyncCallback callback) {
+ return delegate_->getListMainSourcesAsync(callback);
+}
+
+template <typename ... _AttributeExtensions>
+void CommandControlProxy<_AttributeExtensions...>::getListMainSinkSoundProperties(const am_sinkID_t& sinkID, CommonAPI::CallStatus& callStatus, am_MainSoundProperty_L& listSoundProperties, am_Error_e& error) {
+ delegate_->getListMainSinkSoundProperties(sinkID, callStatus, listSoundProperties, error);
+}
+
+template <typename ... _AttributeExtensions>
+std::future<CommonAPI::CallStatus> CommandControlProxy<_AttributeExtensions...>::getListMainSinkSoundPropertiesAsync(const am_sinkID_t& sinkID, GetListMainSinkSoundPropertiesAsyncCallback callback) {
+ return delegate_->getListMainSinkSoundPropertiesAsync(sinkID, callback);
+}
+
+template <typename ... _AttributeExtensions>
+void CommandControlProxy<_AttributeExtensions...>::getListMainSourceSoundProperties(const am_sourceID_t& sourceID, CommonAPI::CallStatus& callStatus, am_MainSoundProperty_L& listSourceProperties, am_Error_e& error) {
+ delegate_->getListMainSourceSoundProperties(sourceID, callStatus, listSourceProperties, error);
+}
+
+template <typename ... _AttributeExtensions>
+std::future<CommonAPI::CallStatus> CommandControlProxy<_AttributeExtensions...>::getListMainSourceSoundPropertiesAsync(const am_sourceID_t& sourceID, GetListMainSourceSoundPropertiesAsyncCallback callback) {
+ return delegate_->getListMainSourceSoundPropertiesAsync(sourceID, callback);
+}
+
+template <typename ... _AttributeExtensions>
+void CommandControlProxy<_AttributeExtensions...>::getListSourceClasses(CommonAPI::CallStatus& callStatus, am_SourceClass_L& listSourceClasses, am_Error_e& error) {
+ delegate_->getListSourceClasses(callStatus, listSourceClasses, error);
+}
+
+template <typename ... _AttributeExtensions>
+std::future<CommonAPI::CallStatus> CommandControlProxy<_AttributeExtensions...>::getListSourceClassesAsync(GetListSourceClassesAsyncCallback callback) {
+ return delegate_->getListSourceClassesAsync(callback);
+}
+
+template <typename ... _AttributeExtensions>
+void CommandControlProxy<_AttributeExtensions...>::getListSinkClasses(CommonAPI::CallStatus& callStatus, am_SinkClass_L& listSinkClasses, am_Error_e& error) {
+ delegate_->getListSinkClasses(callStatus, listSinkClasses, error);
+}
+
+template <typename ... _AttributeExtensions>
+std::future<CommonAPI::CallStatus> CommandControlProxy<_AttributeExtensions...>::getListSinkClassesAsync(GetListSinkClassesAsyncCallback callback) {
+ return delegate_->getListSinkClassesAsync(callback);
+}
+
+template <typename ... _AttributeExtensions>
+void CommandControlProxy<_AttributeExtensions...>::getListSystemProperties(CommonAPI::CallStatus& callStatus, am_SystemProperty_L& listSystemProperties, am_Error_e& error) {
+ delegate_->getListSystemProperties(callStatus, listSystemProperties, error);
+}
+
+template <typename ... _AttributeExtensions>
+std::future<CommonAPI::CallStatus> CommandControlProxy<_AttributeExtensions...>::getListSystemPropertiesAsync(GetListSystemPropertiesAsyncCallback callback) {
+ return delegate_->getListSystemPropertiesAsync(callback);
+}
+
+template <typename ... _AttributeExtensions>
+void CommandControlProxy<_AttributeExtensions...>::getTimingInformation(const am_mainConnectionID_t& mainConnectionID, CommonAPI::CallStatus& callStatus, am_timeSync_t& delay, am_Error_e& error) {
+ delegate_->getTimingInformation(mainConnectionID, callStatus, delay, error);
+}
+
+template <typename ... _AttributeExtensions>
+std::future<CommonAPI::CallStatus> CommandControlProxy<_AttributeExtensions...>::getTimingInformationAsync(const am_mainConnectionID_t& mainConnectionID, GetTimingInformationAsyncCallback callback) {
+ return delegate_->getTimingInformationAsync(mainConnectionID, callback);
+}
+
+template <typename ... _AttributeExtensions>
+void CommandControlProxy<_AttributeExtensions...>::getListMainSinkNotificationConfigurations(const am_sinkID_t& sinkID, CommonAPI::CallStatus& callStatus, am_NotificationConfiguration_L& listMainNotificationConfigurations, am_Error_e& error) {
+ delegate_->getListMainSinkNotificationConfigurations(sinkID, callStatus, listMainNotificationConfigurations, error);
+}
+
+template <typename ... _AttributeExtensions>
+std::future<CommonAPI::CallStatus> CommandControlProxy<_AttributeExtensions...>::getListMainSinkNotificationConfigurationsAsync(const am_sinkID_t& sinkID, GetListMainSinkNotificationConfigurationsAsyncCallback callback) {
+ return delegate_->getListMainSinkNotificationConfigurationsAsync(sinkID, callback);
+}
+
+template <typename ... _AttributeExtensions>
+void CommandControlProxy<_AttributeExtensions...>::getListMainSourceNotificationConfigurations(const am_sourceID_t& sourceID, CommonAPI::CallStatus& callStatus, am_NotificationConfiguration_L& listMainNotificationConfigurations, am_Error_e& error) {
+ delegate_->getListMainSourceNotificationConfigurations(sourceID, callStatus, listMainNotificationConfigurations, error);
+}
+
+template <typename ... _AttributeExtensions>
+std::future<CommonAPI::CallStatus> CommandControlProxy<_AttributeExtensions...>::getListMainSourceNotificationConfigurationsAsync(const am_sourceID_t& sourceID, GetListMainSourceNotificationConfigurationsAsyncCallback callback) {
+ return delegate_->getListMainSourceNotificationConfigurationsAsync(sourceID, callback);
+}
+
+template <typename ... _AttributeExtensions>
+void CommandControlProxy<_AttributeExtensions...>::setMainSinkNotificationConfiguration(const am_sinkID_t& sinkID, const am_NotificationConfiguration_s& mainNotificationConfiguration, CommonAPI::CallStatus& callStatus, am_Error_e& error) {
+ delegate_->setMainSinkNotificationConfiguration(sinkID, mainNotificationConfiguration, callStatus, error);
+}
+
+template <typename ... _AttributeExtensions>
+std::future<CommonAPI::CallStatus> CommandControlProxy<_AttributeExtensions...>::setMainSinkNotificationConfigurationAsync(const am_sinkID_t& sinkID, const am_NotificationConfiguration_s& mainNotificationConfiguration, SetMainSinkNotificationConfigurationAsyncCallback callback) {
+ return delegate_->setMainSinkNotificationConfigurationAsync(sinkID, mainNotificationConfiguration, callback);
+}
+
+template <typename ... _AttributeExtensions>
+void CommandControlProxy<_AttributeExtensions...>::setMainSourceNotificationConfiguration(const am_sourceID_t& sourceID, const am_NotificationConfiguration_s& mainNotificationConfiguration, CommonAPI::CallStatus& callStatus, am_Error_e& error) {
+ delegate_->setMainSourceNotificationConfiguration(sourceID, mainNotificationConfiguration, callStatus, error);
+}
+
+template <typename ... _AttributeExtensions>
+std::future<CommonAPI::CallStatus> CommandControlProxy<_AttributeExtensions...>::setMainSourceNotificationConfigurationAsync(const am_sourceID_t& sourceID, const am_NotificationConfiguration_s& mainNotificationConfiguration, SetMainSourceNotificationConfigurationAsyncCallback callback) {
+ return delegate_->setMainSourceNotificationConfigurationAsync(sourceID, mainNotificationConfiguration, callback);
+}
+
+
+template <typename ... _AttributeExtensions>
+std::string CommandControlProxy<_AttributeExtensions...>::getAddress() const {
+ return delegate_->getAddress();
+}
+
+template <typename ... _AttributeExtensions>
+const std::string& CommandControlProxy<_AttributeExtensions...>::getDomain() const {
+ return delegate_->getDomain();
+}
+
+template <typename ... _AttributeExtensions>
+const std::string& CommandControlProxy<_AttributeExtensions...>::getServiceId() const {
+ return delegate_->getServiceId();
+}
+
+template <typename ... _AttributeExtensions>
+const std::string& CommandControlProxy<_AttributeExtensions...>::getInstanceId() const {
+ return delegate_->getInstanceId();
+}
+
+template <typename ... _AttributeExtensions>
+bool CommandControlProxy<_AttributeExtensions...>::isAvailable() const {
+ return delegate_->isAvailable();
+}
+
+template <typename ... _AttributeExtensions>
+CommonAPI::ProxyStatusEvent& CommandControlProxy<_AttributeExtensions...>::getProxyStatusEvent() {
+ return delegate_->getProxyStatusEvent();
+}
+
+template <typename ... _AttributeExtensions>
+CommonAPI::InterfaceVersionAttribute& CommandControlProxy<_AttributeExtensions...>::getInterfaceVersionAttribute() {
+ return delegate_->getInterfaceVersionAttribute();
+}
+
+} // namespace am
+} // namespace genivi
+} // namespace org
+
+
+
+#endif // ORG_GENIVI_AM_Command_Control_PROXY_H_
diff --git a/PluginCommandInterfaceCAPI/src-gen/org/genivi/am/CommandControlProxyBase.h b/PluginCommandInterfaceCAPI/src-gen/org/genivi/am/CommandControlProxyBase.h
new file mode 100644
index 0000000..eaf1fc8
--- /dev/null
+++ b/PluginCommandInterfaceCAPI/src-gen/org/genivi/am/CommandControlProxyBase.h
@@ -0,0 +1,177 @@
+ /*
+ * This file was generated by the CommonAPI Generators.
+ *
+ * Copyright (C) 2013, BMW AG
+ *
+ * \author Christian Linke, christian.linke@bmw.de BMW 2012,2013
+ */
+ #ifndef ORG_GENIVI_AM_Command_Control_PROXY_BASE_H_
+ #define ORG_GENIVI_AM_Command_Control_PROXY_BASE_H_
+
+ #include "CommandControl.h"
+
+
+ #include <org/genivi/am.h>
+
+ #define COMMONAPI_INTERNAL_COMPILATION
+
+ #include <CommonAPI/InputStream.h>
+ #include <CommonAPI/OutputStream.h>
+ #include <CommonAPI/SerializableStruct.h>
+ #include <cstdint>
+ #include <string>
+ #include <vector>
+
+ #include <CommonAPI/Event.h>
+ #include <CommonAPI/Proxy.h>
+ #include <functional>
+ #include <future>
+
+ #undef COMMONAPI_INTERNAL_COMPILATION
+
+ namespace org {
+ namespace genivi {
+ namespace am {
+
+ class CommandControlProxyBase: virtual public CommonAPI::Proxy {
+ public:
+ typedef CommonAPI::Event<am_MainConnectionType_s> NewMainConnectionEvent;
+ typedef CommonAPI::Event<am_mainConnectionID_t> RemovedMainConnectionEvent;
+ typedef CommonAPI::Event<am_SinkType_s> NewSinkEvent;
+ typedef CommonAPI::Event<am_sinkID_t> RemovedSinkEvent;
+ typedef CommonAPI::Event<am_SourceType_s> NewSourceEvent;
+ typedef CommonAPI::Event<am_sourceID_t> RemovedSourceEvent;
+ typedef CommonAPI::Event<> NumberOfSinkClassesChangedEvent;
+ typedef CommonAPI::Event<> NumberOfSourceClassesChangedEvent;
+ typedef CommonAPI::Event<am_mainConnectionID_t, am_ConnectionState_e> MainConnectionStateChangedEvent;
+ typedef CommonAPI::Event<am_sinkID_t, am_MainSoundProperty_s> MainSinkSoundPropertyChangedEvent;
+ typedef CommonAPI::Event<am_sourceID_t, am_MainSoundProperty_s> MainSourceSoundPropertyChangedEvent;
+ typedef CommonAPI::Event<am_sinkID_t, am_Availability_s> SinkAvailabilityChangedEvent;
+ typedef CommonAPI::Event<am_sourceID_t, am_Availability_s> SourceAvailabilityChangedEvent;
+ typedef CommonAPI::Event<am_sinkID_t, am_mainVolume_t> VolumeChangedEvent;
+ typedef CommonAPI::Event<am_sinkID_t, am_MuteState_e> SinkMuteStateChangedEvent;
+ typedef CommonAPI::Event<am_SystemProperty_s> SystemPropertyChangedEvent;
+ typedef CommonAPI::Event<am_mainConnectionID_t, am_timeSync_t> TimingInformationChangedEvent;
+ typedef CommonAPI::Event<am_sinkID_t, am_sinkClass_t, am_MainSoundProperty_L> SinkUpdatedEvent;
+ typedef CommonAPI::Event<am_sourceID_t, am_sourceClass_t, am_MainSoundProperty_L> SourceUpdatedEvent;
+ typedef CommonAPI::Event<am_sinkID_t, am_NotificationPayload_s> SinkNotificationEvent;
+ typedef CommonAPI::Event<am_sourceID_t, am_NotificationPayload_s> SourceNotificationEvent;
+ typedef CommonAPI::Event<am_sinkID_t, am_NotificationConfiguration_s> MainSinkNotificationConfigurationChangedEvent;
+ typedef CommonAPI::Event<am_sourceID_t, am_NotificationConfiguration_s> MainSourceNotificationConfigurationChangedEvent;
+ typedef std::function<void(const CommonAPI::CallStatus&, const am_mainConnectionID_t&, const am_Error_e&)> ConnectAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&, const am_Error_e&)> DisconnectAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&, const am_Error_e&)> SetVolumeAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&, const am_Error_e&)> VolumeStepAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&, const am_Error_e&)> SetSinkMuteStateAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&, const am_Error_e&)> SetMainSinkSoundPropertyAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&, const am_Error_e&)> SetMainSourceSoundPropertyAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&, const am_Error_e&)> SetSystemPropertyAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&, const am_Error_e&, const am_MainConnection_L&)> GetListMainConnectionsAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&, const am_SinkType_L&, const am_Error_e&)> GetListMainSinksAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&, const am_SourceType_L&, const am_Error_e&)> GetListMainSourcesAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&, const am_MainSoundProperty_L&, const am_Error_e&)> GetListMainSinkSoundPropertiesAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&, const am_MainSoundProperty_L&, const am_Error_e&)> GetListMainSourceSoundPropertiesAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&, const am_SourceClass_L&, const am_Error_e&)> GetListSourceClassesAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&, const am_SinkClass_L&, const am_Error_e&)> GetListSinkClassesAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&, const am_SystemProperty_L&, const am_Error_e&)> GetListSystemPropertiesAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&, const am_timeSync_t&, const am_Error_e&)> GetTimingInformationAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&, const am_NotificationConfiguration_L&, const am_Error_e&)> GetListMainSinkNotificationConfigurationsAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&, const am_NotificationConfiguration_L&, const am_Error_e&)> GetListMainSourceNotificationConfigurationsAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&, const am_Error_e&)> SetMainSinkNotificationConfigurationAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&, const am_Error_e&)> SetMainSourceNotificationConfigurationAsyncCallback;
+
+
+ virtual NewMainConnectionEvent& getNewMainConnectionEvent() = 0;
+ virtual RemovedMainConnectionEvent& getRemovedMainConnectionEvent() = 0;
+ virtual NewSinkEvent& getNewSinkEvent() = 0;
+ virtual RemovedSinkEvent& getRemovedSinkEvent() = 0;
+ virtual NewSourceEvent& getNewSourceEvent() = 0;
+ virtual RemovedSourceEvent& getRemovedSourceEvent() = 0;
+ virtual NumberOfSinkClassesChangedEvent& getNumberOfSinkClassesChangedEvent() = 0;
+ virtual NumberOfSourceClassesChangedEvent& getNumberOfSourceClassesChangedEvent() = 0;
+ virtual MainConnectionStateChangedEvent& getMainConnectionStateChangedEvent() = 0;
+ virtual MainSinkSoundPropertyChangedEvent& getMainSinkSoundPropertyChangedEvent() = 0;
+ virtual MainSourceSoundPropertyChangedEvent& getMainSourceSoundPropertyChangedEvent() = 0;
+ virtual SinkAvailabilityChangedEvent& getSinkAvailabilityChangedEvent() = 0;
+ virtual SourceAvailabilityChangedEvent& getSourceAvailabilityChangedEvent() = 0;
+ virtual VolumeChangedEvent& getVolumeChangedEvent() = 0;
+ virtual SinkMuteStateChangedEvent& getSinkMuteStateChangedEvent() = 0;
+ virtual SystemPropertyChangedEvent& getSystemPropertyChangedEvent() = 0;
+ virtual TimingInformationChangedEvent& getTimingInformationChangedEvent() = 0;
+ virtual SinkUpdatedEvent& getSinkUpdatedEvent() = 0;
+ virtual SourceUpdatedEvent& getSourceUpdatedEvent() = 0;
+ virtual SinkNotificationEvent& getSinkNotificationEvent() = 0;
+ virtual SourceNotificationEvent& getSourceNotificationEvent() = 0;
+ virtual MainSinkNotificationConfigurationChangedEvent& getMainSinkNotificationConfigurationChangedEvent() = 0;
+ virtual MainSourceNotificationConfigurationChangedEvent& getMainSourceNotificationConfigurationChangedEvent() = 0;
+
+
+ virtual void connect(const am_sourceID_t& sourceID, const am_sinkID_t& sinkID, CommonAPI::CallStatus& callStatus, am_mainConnectionID_t& mainConnectionID, am_Error_e& error) = 0;
+ virtual std::future<CommonAPI::CallStatus> connectAsync(const am_sourceID_t& sourceID, const am_sinkID_t& sinkID, ConnectAsyncCallback callback) = 0;
+
+ virtual void disconnect(const am_mainConnectionID_t& mainConnectionID, CommonAPI::CallStatus& callStatus, am_Error_e& error) = 0;
+ virtual std::future<CommonAPI::CallStatus> disconnectAsync(const am_mainConnectionID_t& mainConnectionID, DisconnectAsyncCallback callback) = 0;
+
+ virtual void setVolume(const am_sinkID_t& sinkID, const am_mainVolume_t& volume, CommonAPI::CallStatus& callStatus, am_Error_e& error) = 0;
+ virtual std::future<CommonAPI::CallStatus> setVolumeAsync(const am_sinkID_t& sinkID, const am_mainVolume_t& volume, SetVolumeAsyncCallback callback) = 0;
+
+ virtual void volumeStep(const am_sinkID_t& sinkID, const int16_t& volumeStep, CommonAPI::CallStatus& callStatus, am_Error_e& error) = 0;
+ virtual std::future<CommonAPI::CallStatus> volumeStepAsync(const am_sinkID_t& sinkID, const int16_t& volumeStep, VolumeStepAsyncCallback callback) = 0;
+
+ virtual void setSinkMuteState(const am_sinkID_t& sinkID, const am_MuteState_e& muteState, CommonAPI::CallStatus& callStatus, am_Error_e& error) = 0;
+ virtual std::future<CommonAPI::CallStatus> setSinkMuteStateAsync(const am_sinkID_t& sinkID, const am_MuteState_e& muteState, SetSinkMuteStateAsyncCallback callback) = 0;
+
+ virtual void setMainSinkSoundProperty(const am_sinkID_t& sinkID, const am_MainSoundProperty_s& soundProperty, CommonAPI::CallStatus& callStatus, am_Error_e& error) = 0;
+ virtual std::future<CommonAPI::CallStatus> setMainSinkSoundPropertyAsync(const am_sinkID_t& sinkID, const am_MainSoundProperty_s& soundProperty, SetMainSinkSoundPropertyAsyncCallback callback) = 0;
+
+ virtual void setMainSourceSoundProperty(const am_sourceID_t& sourceID, const am_MainSoundProperty_s& soundProperty, CommonAPI::CallStatus& callStatus, am_Error_e& error) = 0;
+ virtual std::future<CommonAPI::CallStatus> setMainSourceSoundPropertyAsync(const am_sourceID_t& sourceID, const am_MainSoundProperty_s& soundProperty, SetMainSourceSoundPropertyAsyncCallback callback) = 0;
+
+ virtual void setSystemProperty(const am_SystemProperty_s& property, CommonAPI::CallStatus& callStatus, am_Error_e& error) = 0;
+ virtual std::future<CommonAPI::CallStatus> setSystemPropertyAsync(const am_SystemProperty_s& property, SetSystemPropertyAsyncCallback callback) = 0;
+
+ virtual void getListMainConnections(CommonAPI::CallStatus& callStatus, am_Error_e& error, am_MainConnection_L& listConnections) = 0;
+ virtual std::future<CommonAPI::CallStatus> getListMainConnectionsAsync(GetListMainConnectionsAsyncCallback callback) = 0;
+
+ virtual void getListMainSinks(CommonAPI::CallStatus& callStatus, am_SinkType_L& listMainSinks, am_Error_e& error) = 0;
+ virtual std::future<CommonAPI::CallStatus> getListMainSinksAsync(GetListMainSinksAsyncCallback callback) = 0;
+
+ virtual void getListMainSources(CommonAPI::CallStatus& callStatus, am_SourceType_L& listMainSources, am_Error_e& error) = 0;
+ virtual std::future<CommonAPI::CallStatus> getListMainSourcesAsync(GetListMainSourcesAsyncCallback callback) = 0;
+
+ virtual void getListMainSinkSoundProperties(const am_sinkID_t& sinkID, CommonAPI::CallStatus& callStatus, am_MainSoundProperty_L& listSoundProperties, am_Error_e& error) = 0;
+ virtual std::future<CommonAPI::CallStatus> getListMainSinkSoundPropertiesAsync(const am_sinkID_t& sinkID, GetListMainSinkSoundPropertiesAsyncCallback callback) = 0;
+
+ virtual void getListMainSourceSoundProperties(const am_sourceID_t& sourceID, CommonAPI::CallStatus& callStatus, am_MainSoundProperty_L& listSourceProperties, am_Error_e& error) = 0;
+ virtual std::future<CommonAPI::CallStatus> getListMainSourceSoundPropertiesAsync(const am_sourceID_t& sourceID, GetListMainSourceSoundPropertiesAsyncCallback callback) = 0;
+
+ virtual void getListSourceClasses(CommonAPI::CallStatus& callStatus, am_SourceClass_L& listSourceClasses, am_Error_e& error) = 0;
+ virtual std::future<CommonAPI::CallStatus> getListSourceClassesAsync(GetListSourceClassesAsyncCallback callback) = 0;
+
+ virtual void getListSinkClasses(CommonAPI::CallStatus& callStatus, am_SinkClass_L& listSinkClasses, am_Error_e& error) = 0;
+ virtual std::future<CommonAPI::CallStatus> getListSinkClassesAsync(GetListSinkClassesAsyncCallback callback) = 0;
+
+ virtual void getListSystemProperties(CommonAPI::CallStatus& callStatus, am_SystemProperty_L& listSystemProperties, am_Error_e& error) = 0;
+ virtual std::future<CommonAPI::CallStatus> getListSystemPropertiesAsync(GetListSystemPropertiesAsyncCallback callback) = 0;
+
+ virtual void getTimingInformation(const am_mainConnectionID_t& mainConnectionID, CommonAPI::CallStatus& callStatus, am_timeSync_t& delay, am_Error_e& error) = 0;
+ virtual std::future<CommonAPI::CallStatus> getTimingInformationAsync(const am_mainConnectionID_t& mainConnectionID, GetTimingInformationAsyncCallback callback) = 0;
+
+ virtual void getListMainSinkNotificationConfigurations(const am_sinkID_t& sinkID, CommonAPI::CallStatus& callStatus, am_NotificationConfiguration_L& listMainNotificationConfigurations, am_Error_e& error) = 0;
+ virtual std::future<CommonAPI::CallStatus> getListMainSinkNotificationConfigurationsAsync(const am_sinkID_t& sinkID, GetListMainSinkNotificationConfigurationsAsyncCallback callback) = 0;
+
+ virtual void getListMainSourceNotificationConfigurations(const am_sourceID_t& sourceID, CommonAPI::CallStatus& callStatus, am_NotificationConfiguration_L& listMainNotificationConfigurations, am_Error_e& error) = 0;
+ virtual std::future<CommonAPI::CallStatus> getListMainSourceNotificationConfigurationsAsync(const am_sourceID_t& sourceID, GetListMainSourceNotificationConfigurationsAsyncCallback callback) = 0;
+
+ virtual void setMainSinkNotificationConfiguration(const am_sinkID_t& sinkID, const am_NotificationConfiguration_s& mainNotificationConfiguration, CommonAPI::CallStatus& callStatus, am_Error_e& error) = 0;
+ virtual std::future<CommonAPI::CallStatus> setMainSinkNotificationConfigurationAsync(const am_sinkID_t& sinkID, const am_NotificationConfiguration_s& mainNotificationConfiguration, SetMainSinkNotificationConfigurationAsyncCallback callback) = 0;
+
+ virtual void setMainSourceNotificationConfiguration(const am_sourceID_t& sourceID, const am_NotificationConfiguration_s& mainNotificationConfiguration, CommonAPI::CallStatus& callStatus, am_Error_e& error) = 0;
+ virtual std::future<CommonAPI::CallStatus> setMainSourceNotificationConfigurationAsync(const am_sourceID_t& sourceID, const am_NotificationConfiguration_s& mainNotificationConfiguration, SetMainSourceNotificationConfigurationAsyncCallback callback) = 0;
+ };
+
+ } // namespace am
+ } // namespace genivi
+ } // namespace org
+
+ #endif // ORG_GENIVI_AM_Command_Control_PROXY_BASE_H_
diff --git a/PluginCommandInterfaceCAPI/src-gen/org/genivi/am/CommandControlStub.h b/PluginCommandInterfaceCAPI/src-gen/org/genivi/am/CommandControlStub.h
new file mode 100644
index 0000000..5bca231
--- /dev/null
+++ b/PluginCommandInterfaceCAPI/src-gen/org/genivi/am/CommandControlStub.h
@@ -0,0 +1,286 @@
+/*
+* This file was generated by the CommonAPI Generators.
+*
+ * Copyright (C) 2013, BMW AG
+ *
+ * \author Christian Linke, christian.linke@bmw.de BMW 2012,2013
+*/
+#ifndef ORG_GENIVI_AM_Command_Control_STUB_H_
+#define ORG_GENIVI_AM_Command_Control_STUB_H_
+
+
+
+#include <org/genivi/am.h>
+
+#include "CommandControl.h"
+
+#define COMMONAPI_INTERNAL_COMPILATION
+
+#include <CommonAPI/InputStream.h>
+#include <CommonAPI/OutputStream.h>
+#include <CommonAPI/SerializableStruct.h>
+#include <cstdint>
+#include <string>
+#include <vector>
+
+#include <CommonAPI/Stub.h>
+
+#undef COMMONAPI_INTERNAL_COMPILATION
+
+namespace org {
+namespace genivi {
+namespace am {
+
+/**
+ * Receives messages from remote and handles all dispatching of deserialized calls
+ * to a stub for the service CommandControl. Also provides means to send broadcasts
+ * and attribute-changed-notifications of observable attributes as defined by this service.
+ * An application developer should not need to bother with this class.
+ */
+class CommandControlStubAdapter: virtual public CommonAPI::StubAdapter, public CommandControl {
+ public:
+
+ /**
+ * Sends a broadcast event for newMainConnection. Should not be called directly.
+ * Instead, the "fire<broadcastName>Event" methods of the stub should be used.
+ */
+ virtual void fireNewMainConnectionEvent(const am_MainConnectionType_s& mainConnection) = 0;
+ /**
+ * Sends a broadcast event for removedMainConnection. Should not be called directly.
+ * Instead, the "fire<broadcastName>Event" methods of the stub should be used.
+ */
+ virtual void fireRemovedMainConnectionEvent(const am_mainConnectionID_t& mainConnection) = 0;
+ /**
+ * Sends a broadcast event for newSink. Should not be called directly.
+ * Instead, the "fire<broadcastName>Event" methods of the stub should be used.
+ */
+ virtual void fireNewSinkEvent(const am_SinkType_s& sink) = 0;
+ /**
+ * Sends a broadcast event for removedSink. Should not be called directly.
+ * Instead, the "fire<broadcastName>Event" methods of the stub should be used.
+ */
+ virtual void fireRemovedSinkEvent(const am_sinkID_t& sinkID) = 0;
+ /**
+ * Sends a broadcast event for newSource. Should not be called directly.
+ * Instead, the "fire<broadcastName>Event" methods of the stub should be used.
+ */
+ virtual void fireNewSourceEvent(const am_SourceType_s& source) = 0;
+ /**
+ * Sends a broadcast event for removedSource. Should not be called directly.
+ * Instead, the "fire<broadcastName>Event" methods of the stub should be used.
+ */
+ virtual void fireRemovedSourceEvent(const am_sourceID_t& source) = 0;
+ /**
+ * Sends a broadcast event for numberOfSinkClassesChanged. Should not be called directly.
+ * Instead, the "fire<broadcastName>Event" methods of the stub should be used.
+ */
+ virtual void fireNumberOfSinkClassesChangedEvent() = 0;
+ /**
+ * Sends a broadcast event for numberOfSourceClassesChanged. Should not be called directly.
+ * Instead, the "fire<broadcastName>Event" methods of the stub should be used.
+ */
+ virtual void fireNumberOfSourceClassesChangedEvent() = 0;
+ /**
+ * Sends a broadcast event for mainConnectionStateChanged. Should not be called directly.
+ * Instead, the "fire<broadcastName>Event" methods of the stub should be used.
+ */
+ virtual void fireMainConnectionStateChangedEvent(const am_mainConnectionID_t& connectionID, const am_ConnectionState_e& connectionState) = 0;
+ /**
+ * Sends a broadcast event for mainSinkSoundPropertyChanged. Should not be called directly.
+ * Instead, the "fire<broadcastName>Event" methods of the stub should be used.
+ */
+ virtual void fireMainSinkSoundPropertyChangedEvent(const am_sinkID_t& sinkID, const am_MainSoundProperty_s& soundProperty) = 0;
+ /**
+ * Sends a broadcast event for mainSourceSoundPropertyChanged. Should not be called directly.
+ * Instead, the "fire<broadcastName>Event" methods of the stub should be used.
+ */
+ virtual void fireMainSourceSoundPropertyChangedEvent(const am_sourceID_t& sourceID, const am_MainSoundProperty_s& soundProperty) = 0;
+ /**
+ * Sends a broadcast event for sinkAvailabilityChanged. Should not be called directly.
+ * Instead, the "fire<broadcastName>Event" methods of the stub should be used.
+ */
+ virtual void fireSinkAvailabilityChangedEvent(const am_sinkID_t& sinkID, const am_Availability_s& availability) = 0;
+ /**
+ * Sends a broadcast event for sourceAvailabilityChanged. Should not be called directly.
+ * Instead, the "fire<broadcastName>Event" methods of the stub should be used.
+ */
+ virtual void fireSourceAvailabilityChangedEvent(const am_sourceID_t& sourceID, const am_Availability_s& availability) = 0;
+ /**
+ * Sends a broadcast event for volumeChanged. Should not be called directly.
+ * Instead, the "fire<broadcastName>Event" methods of the stub should be used.
+ */
+ virtual void fireVolumeChangedEvent(const am_sinkID_t& sinkID, const am_mainVolume_t& volume) = 0;
+ /**
+ * Sends a broadcast event for sinkMuteStateChanged. Should not be called directly.
+ * Instead, the "fire<broadcastName>Event" methods of the stub should be used.
+ */
+ virtual void fireSinkMuteStateChangedEvent(const am_sinkID_t& sinkID, const am_MuteState_e& muteState) = 0;
+ /**
+ * Sends a broadcast event for systemPropertyChanged. Should not be called directly.
+ * Instead, the "fire<broadcastName>Event" methods of the stub should be used.
+ */
+ virtual void fireSystemPropertyChangedEvent(const am_SystemProperty_s& systemProperty) = 0;
+ /**
+ * Sends a broadcast event for timingInformationChanged. Should not be called directly.
+ * Instead, the "fire<broadcastName>Event" methods of the stub should be used.
+ */
+ virtual void fireTimingInformationChangedEvent(const am_mainConnectionID_t& mainConnectionID, const am_timeSync_t& time) = 0;
+ /**
+ * Sends a broadcast event for sinkUpdated. Should not be called directly.
+ * Instead, the "fire<broadcastName>Event" methods of the stub should be used.
+ */
+ virtual void fireSinkUpdatedEvent(const am_sinkID_t& sinkID, const am_sinkClass_t& sinkClassID, const am_MainSoundProperty_L& listMainSoundProperties) = 0;
+ /**
+ * Sends a broadcast event for sourceUpdated. Should not be called directly.
+ * Instead, the "fire<broadcastName>Event" methods of the stub should be used.
+ */
+ virtual void fireSourceUpdatedEvent(const am_sourceID_t& sourceID, const am_sourceClass_t& sourceClassID, const am_MainSoundProperty_L& listMainSoundProperties) = 0;
+ /**
+ * Sends a broadcast event for sinkNotification. Should not be called directly.
+ * Instead, the "fire<broadcastName>Event" methods of the stub should be used.
+ */
+ virtual void fireSinkNotificationEvent(const am_sinkID_t& sinkID, const am_NotificationPayload_s& notification) = 0;
+ /**
+ * Sends a broadcast event for sourceNotification. Should not be called directly.
+ * Instead, the "fire<broadcastName>Event" methods of the stub should be used.
+ */
+ virtual void fireSourceNotificationEvent(const am_sourceID_t& sourceID, const am_NotificationPayload_s& notification) = 0;
+ /**
+ * Sends a broadcast event for mainSinkNotificationConfigurationChanged. Should not be called directly.
+ * Instead, the "fire<broadcastName>Event" methods of the stub should be used.
+ */
+ virtual void fireMainSinkNotificationConfigurationChangedEvent(const am_sinkID_t& sinkID, const am_NotificationConfiguration_s& mainNotificationConfiguration) = 0;
+ /**
+ * Sends a broadcast event for mainSourceNotificationConfigurationChanged. Should not be called directly.
+ * Instead, the "fire<broadcastName>Event" methods of the stub should be used.
+ */
+ virtual void fireMainSourceNotificationConfigurationChangedEvent(const am_sourceID_t& sourceID, const am_NotificationConfiguration_s& mainNotificationConfiguration) = 0;
+};
+
+
+/**
+ * Defines the necessary callbacks to handle remote set events related to the attributes
+ * defined in the IDL description for CommandControl.
+ * For each attribute two callbacks are defined:
+ * - a verification callback that allows to verify the requested value and to prevent setting
+ * e.g. an invalid value ("onRemoteSet<AttributeName>").
+ * - an action callback to do local work after the attribute value has been changed
+ * ("onRemote<AttributeName>Changed").
+ *
+ * This class and the one below are the ones an application developer needs to have
+ * a look at if he wants to implement a service.
+ */
+class CommandControlStubRemoteEvent {
+ public:
+ virtual ~CommandControlStubRemoteEvent() { }
+
+};
+
+
+/**
+ * Defines the interface that must be implemented by any class that should provide
+ * the service CommandControl to remote clients.
+ * This class and the one above are the ones an application developer needs to have
+ * a look at if he wants to implement a service.
+ */
+class CommandControlStub : public CommonAPI::Stub<CommandControlStubAdapter , CommandControlStubRemoteEvent> {
+ public:
+ virtual ~CommandControlStub() { }
+
+
+ /// This is the method that will be called on remote calls on the method connect.
+ virtual void connect(am_sourceID_t sourceID, am_sinkID_t sinkID, am_mainConnectionID_t& mainConnectionID, am_Error_e& error) = 0;
+ /// This is the method that will be called on remote calls on the method disconnect.
+ virtual void disconnect(am_mainConnectionID_t mainConnectionID, am_Error_e& error) = 0;
+ /// This is the method that will be called on remote calls on the method setVolume.
+ virtual void setVolume(am_sinkID_t sinkID, am_mainVolume_t volume, am_Error_e& error) = 0;
+ /// This is the method that will be called on remote calls on the method volumeStep.
+ virtual void volumeStep(am_sinkID_t sinkID, int16_t volumeStep, am_Error_e& error) = 0;
+ /// This is the method that will be called on remote calls on the method setSinkMuteState.
+ virtual void setSinkMuteState(am_sinkID_t sinkID, am_MuteState_e muteState, am_Error_e& error) = 0;
+ /// This is the method that will be called on remote calls on the method setMainSinkSoundProperty.
+ virtual void setMainSinkSoundProperty(am_sinkID_t sinkID, am_MainSoundProperty_s soundProperty, am_Error_e& error) = 0;
+ /// This is the method that will be called on remote calls on the method setMainSourceSoundProperty.
+ virtual void setMainSourceSoundProperty(am_sourceID_t sourceID, am_MainSoundProperty_s soundProperty, am_Error_e& error) = 0;
+ /// This is the method that will be called on remote calls on the method setSystemProperty.
+ virtual void setSystemProperty(am_SystemProperty_s property, am_Error_e& error) = 0;
+ /// This is the method that will be called on remote calls on the method getListMainConnections.
+ virtual void getListMainConnections(am_Error_e& error, am_MainConnection_L& listConnections) = 0;
+ /// This is the method that will be called on remote calls on the method getListMainSinks.
+ virtual void getListMainSinks(am_SinkType_L& listMainSinks, am_Error_e& error) = 0;
+ /// This is the method that will be called on remote calls on the method getListMainSources.
+ virtual void getListMainSources(am_SourceType_L& listMainSources, am_Error_e& error) = 0;
+ /// This is the method that will be called on remote calls on the method getListMainSinkSoundProperties.
+ virtual void getListMainSinkSoundProperties(am_sinkID_t sinkID, am_MainSoundProperty_L& listSoundProperties, am_Error_e& error) = 0;
+ /// This is the method that will be called on remote calls on the method getListMainSourceSoundProperties.
+ virtual void getListMainSourceSoundProperties(am_sourceID_t sourceID, am_MainSoundProperty_L& listSourceProperties, am_Error_e& error) = 0;
+ /// This is the method that will be called on remote calls on the method getListSourceClasses.
+ virtual void getListSourceClasses(am_SourceClass_L& listSourceClasses, am_Error_e& error) = 0;
+ /// This is the method that will be called on remote calls on the method getListSinkClasses.
+ virtual void getListSinkClasses(am_SinkClass_L& listSinkClasses, am_Error_e& error) = 0;
+ /// This is the method that will be called on remote calls on the method getListSystemProperties.
+ virtual void getListSystemProperties(am_SystemProperty_L& listSystemProperties, am_Error_e& error) = 0;
+ /// This is the method that will be called on remote calls on the method getTimingInformation.
+ virtual void getTimingInformation(am_mainConnectionID_t mainConnectionID, am_timeSync_t& delay, am_Error_e& error) = 0;
+ /// This is the method that will be called on remote calls on the method getListMainSinkNotificationConfigurations.
+ virtual void getListMainSinkNotificationConfigurations(am_sinkID_t sinkID, am_NotificationConfiguration_L& listMainNotificationConfigurations, am_Error_e& error) = 0;
+ /// This is the method that will be called on remote calls on the method getListMainSourceNotificationConfigurations.
+ virtual void getListMainSourceNotificationConfigurations(am_sourceID_t sourceID, am_NotificationConfiguration_L& listMainNotificationConfigurations, am_Error_e& error) = 0;
+ /// This is the method that will be called on remote calls on the method setMainSinkNotificationConfiguration.
+ virtual void setMainSinkNotificationConfiguration(am_sinkID_t sinkID, am_NotificationConfiguration_s mainNotificationConfiguration, am_Error_e& error) = 0;
+ /// This is the method that will be called on remote calls on the method setMainSourceNotificationConfiguration.
+ virtual void setMainSourceNotificationConfiguration(am_sourceID_t sourceID, am_NotificationConfiguration_s mainNotificationConfiguration, am_Error_e& error) = 0;
+
+ /// Sends a broadcast event for newMainConnection.
+ virtual void fireNewMainConnectionEvent(const am_MainConnectionType_s& mainConnection) = 0;
+ /// Sends a broadcast event for removedMainConnection.
+ virtual void fireRemovedMainConnectionEvent(const am_mainConnectionID_t& mainConnection) = 0;
+ /// Sends a broadcast event for newSink.
+ virtual void fireNewSinkEvent(const am_SinkType_s& sink) = 0;
+ /// Sends a broadcast event for removedSink.
+ virtual void fireRemovedSinkEvent(const am_sinkID_t& sinkID) = 0;
+ /// Sends a broadcast event for newSource.
+ virtual void fireNewSourceEvent(const am_SourceType_s& source) = 0;
+ /// Sends a broadcast event for removedSource.
+ virtual void fireRemovedSourceEvent(const am_sourceID_t& source) = 0;
+ /// Sends a broadcast event for numberOfSinkClassesChanged.
+ virtual void fireNumberOfSinkClassesChangedEvent() = 0;
+ /// Sends a broadcast event for numberOfSourceClassesChanged.
+ virtual void fireNumberOfSourceClassesChangedEvent() = 0;
+ /// Sends a broadcast event for mainConnectionStateChanged.
+ virtual void fireMainConnectionStateChangedEvent(const am_mainConnectionID_t& connectionID, const am_ConnectionState_e& connectionState) = 0;
+ /// Sends a broadcast event for mainSinkSoundPropertyChanged.
+ virtual void fireMainSinkSoundPropertyChangedEvent(const am_sinkID_t& sinkID, const am_MainSoundProperty_s& soundProperty) = 0;
+ /// Sends a broadcast event for mainSourceSoundPropertyChanged.
+ virtual void fireMainSourceSoundPropertyChangedEvent(const am_sourceID_t& sourceID, const am_MainSoundProperty_s& soundProperty) = 0;
+ /// Sends a broadcast event for sinkAvailabilityChanged.
+ virtual void fireSinkAvailabilityChangedEvent(const am_sinkID_t& sinkID, const am_Availability_s& availability) = 0;
+ /// Sends a broadcast event for sourceAvailabilityChanged.
+ virtual void fireSourceAvailabilityChangedEvent(const am_sourceID_t& sourceID, const am_Availability_s& availability) = 0;
+ /// Sends a broadcast event for volumeChanged.
+ virtual void fireVolumeChangedEvent(const am_sinkID_t& sinkID, const am_mainVolume_t& volume) = 0;
+ /// Sends a broadcast event for sinkMuteStateChanged.
+ virtual void fireSinkMuteStateChangedEvent(const am_sinkID_t& sinkID, const am_MuteState_e& muteState) = 0;
+ /// Sends a broadcast event for systemPropertyChanged.
+ virtual void fireSystemPropertyChangedEvent(const am_SystemProperty_s& systemProperty) = 0;
+ /// Sends a broadcast event for timingInformationChanged.
+ virtual void fireTimingInformationChangedEvent(const am_mainConnectionID_t& mainConnectionID, const am_timeSync_t& time) = 0;
+ /// Sends a broadcast event for sinkUpdated.
+ virtual void fireSinkUpdatedEvent(const am_sinkID_t& sinkID, const am_sinkClass_t& sinkClassID, const am_MainSoundProperty_L& listMainSoundProperties) = 0;
+ /// Sends a broadcast event for sourceUpdated.
+ virtual void fireSourceUpdatedEvent(const am_sourceID_t& sourceID, const am_sourceClass_t& sourceClassID, const am_MainSoundProperty_L& listMainSoundProperties) = 0;
+ /// Sends a broadcast event for sinkNotification.
+ virtual void fireSinkNotificationEvent(const am_sinkID_t& sinkID, const am_NotificationPayload_s& notification) = 0;
+ /// Sends a broadcast event for sourceNotification.
+ virtual void fireSourceNotificationEvent(const am_sourceID_t& sourceID, const am_NotificationPayload_s& notification) = 0;
+ /// Sends a broadcast event for mainSinkNotificationConfigurationChanged.
+ virtual void fireMainSinkNotificationConfigurationChangedEvent(const am_sinkID_t& sinkID, const am_NotificationConfiguration_s& mainNotificationConfiguration) = 0;
+ /// Sends a broadcast event for mainSourceNotificationConfigurationChanged.
+ virtual void fireMainSourceNotificationConfigurationChangedEvent(const am_sourceID_t& sourceID, const am_NotificationConfiguration_s& mainNotificationConfiguration) = 0;
+};
+
+} // namespace am
+} // namespace genivi
+} // namespace org
+
+#endif // ORG_GENIVI_AM_Command_Control_STUB_H_
diff --git a/PluginCommandInterfaceCAPI/src-gen/org/genivi/am/CommandControlStubDefault.cpp b/PluginCommandInterfaceCAPI/src-gen/org/genivi/am/CommandControlStubDefault.cpp
new file mode 100644
index 0000000..a1185ec
--- /dev/null
+++ b/PluginCommandInterfaceCAPI/src-gen/org/genivi/am/CommandControlStubDefault.cpp
@@ -0,0 +1,185 @@
+/*
+* This file was generated by the CommonAPI Generators.
+*
+ * Copyright (C) 2013, BMW AG
+ *
+ * \author Christian Linke, christian.linke@bmw.de BMW 2012,2013
+*/
+#include <org/genivi/am/CommandControlStubDefault.h>
+
+namespace org {
+namespace genivi {
+namespace am {
+
+CommandControlStubDefault::CommandControlStubDefault():
+ remoteEventHandler_(this) {
+}
+
+CommandControlStubRemoteEvent* CommandControlStubDefault::initStubAdapter(const std::shared_ptr<CommandControlStubAdapter>& stubAdapter) {
+ stubAdapter_ = stubAdapter;
+ return &remoteEventHandler_;
+}
+
+
+void CommandControlStubDefault::connect(am_sourceID_t sourceID, am_sinkID_t sinkID, am_mainConnectionID_t& mainConnectionID, am_Error_e& error) {
+ // No operation in default
+}
+
+void CommandControlStubDefault::disconnect(am_mainConnectionID_t mainConnectionID, am_Error_e& error) {
+ // No operation in default
+}
+
+void CommandControlStubDefault::setVolume(am_sinkID_t sinkID, am_mainVolume_t volume, am_Error_e& error) {
+ // No operation in default
+}
+
+void CommandControlStubDefault::volumeStep(am_sinkID_t sinkID, int16_t volumeStep, am_Error_e& error) {
+ // No operation in default
+}
+
+void CommandControlStubDefault::setSinkMuteState(am_sinkID_t sinkID, am_MuteState_e muteState, am_Error_e& error) {
+ // No operation in default
+}
+
+void CommandControlStubDefault::setMainSinkSoundProperty(am_sinkID_t sinkID, am_MainSoundProperty_s soundProperty, am_Error_e& error) {
+ // No operation in default
+}
+
+void CommandControlStubDefault::setMainSourceSoundProperty(am_sourceID_t sourceID, am_MainSoundProperty_s soundProperty, am_Error_e& error) {
+ // No operation in default
+}
+
+void CommandControlStubDefault::setSystemProperty(am_SystemProperty_s property, am_Error_e& error) {
+ // No operation in default
+}
+
+void CommandControlStubDefault::getListMainConnections(am_Error_e& error, am_MainConnection_L& listConnections) {
+ // No operation in default
+}
+
+void CommandControlStubDefault::getListMainSinks(am_SinkType_L& listMainSinks, am_Error_e& error) {
+ // No operation in default
+}
+
+void CommandControlStubDefault::getListMainSources(am_SourceType_L& listMainSources, am_Error_e& error) {
+ // No operation in default
+}
+
+void CommandControlStubDefault::getListMainSinkSoundProperties(am_sinkID_t sinkID, am_MainSoundProperty_L& listSoundProperties, am_Error_e& error) {
+ // No operation in default
+}
+
+void CommandControlStubDefault::getListMainSourceSoundProperties(am_sourceID_t sourceID, am_MainSoundProperty_L& listSourceProperties, am_Error_e& error) {
+ // No operation in default
+}
+
+void CommandControlStubDefault::getListSourceClasses(am_SourceClass_L& listSourceClasses, am_Error_e& error) {
+ // No operation in default
+}
+
+void CommandControlStubDefault::getListSinkClasses(am_SinkClass_L& listSinkClasses, am_Error_e& error) {
+ // No operation in default
+}
+
+void CommandControlStubDefault::getListSystemProperties(am_SystemProperty_L& listSystemProperties, am_Error_e& error) {
+ // No operation in default
+}
+
+void CommandControlStubDefault::getTimingInformation(am_mainConnectionID_t mainConnectionID, am_timeSync_t& delay, am_Error_e& error) {
+ // No operation in default
+}
+
+void CommandControlStubDefault::getListMainSinkNotificationConfigurations(am_sinkID_t sinkID, am_NotificationConfiguration_L& listMainNotificationConfigurations, am_Error_e& error) {
+ // No operation in default
+}
+
+void CommandControlStubDefault::getListMainSourceNotificationConfigurations(am_sourceID_t sourceID, am_NotificationConfiguration_L& listMainNotificationConfigurations, am_Error_e& error) {
+ // No operation in default
+}
+
+void CommandControlStubDefault::setMainSinkNotificationConfiguration(am_sinkID_t sinkID, am_NotificationConfiguration_s mainNotificationConfiguration, am_Error_e& error) {
+ // No operation in default
+}
+
+void CommandControlStubDefault::setMainSourceNotificationConfiguration(am_sourceID_t sourceID, am_NotificationConfiguration_s mainNotificationConfiguration, am_Error_e& error) {
+ // No operation in default
+}
+
+
+void CommandControlStubDefault::fireNewMainConnectionEvent(const am_MainConnectionType_s& mainConnection) {
+ stubAdapter_->fireNewMainConnectionEvent(mainConnection);
+}
+void CommandControlStubDefault::fireRemovedMainConnectionEvent(const am_mainConnectionID_t& mainConnection) {
+ stubAdapter_->fireRemovedMainConnectionEvent(mainConnection);
+}
+void CommandControlStubDefault::fireNewSinkEvent(const am_SinkType_s& sink) {
+ stubAdapter_->fireNewSinkEvent(sink);
+}
+void CommandControlStubDefault::fireRemovedSinkEvent(const am_sinkID_t& sinkID) {
+ stubAdapter_->fireRemovedSinkEvent(sinkID);
+}
+void CommandControlStubDefault::fireNewSourceEvent(const am_SourceType_s& source) {
+ stubAdapter_->fireNewSourceEvent(source);
+}
+void CommandControlStubDefault::fireRemovedSourceEvent(const am_sourceID_t& source) {
+ stubAdapter_->fireRemovedSourceEvent(source);
+}
+void CommandControlStubDefault::fireNumberOfSinkClassesChangedEvent() {
+ stubAdapter_->fireNumberOfSinkClassesChangedEvent();
+}
+void CommandControlStubDefault::fireNumberOfSourceClassesChangedEvent() {
+ stubAdapter_->fireNumberOfSourceClassesChangedEvent();
+}
+void CommandControlStubDefault::fireMainConnectionStateChangedEvent(const am_mainConnectionID_t& connectionID, const am_ConnectionState_e& connectionState) {
+ stubAdapter_->fireMainConnectionStateChangedEvent(connectionID, connectionState);
+}
+void CommandControlStubDefault::fireMainSinkSoundPropertyChangedEvent(const am_sinkID_t& sinkID, const am_MainSoundProperty_s& soundProperty) {
+ stubAdapter_->fireMainSinkSoundPropertyChangedEvent(sinkID, soundProperty);
+}
+void CommandControlStubDefault::fireMainSourceSoundPropertyChangedEvent(const am_sourceID_t& sourceID, const am_MainSoundProperty_s& soundProperty) {
+ stubAdapter_->fireMainSourceSoundPropertyChangedEvent(sourceID, soundProperty);
+}
+void CommandControlStubDefault::fireSinkAvailabilityChangedEvent(const am_sinkID_t& sinkID, const am_Availability_s& availability) {
+ stubAdapter_->fireSinkAvailabilityChangedEvent(sinkID, availability);
+}
+void CommandControlStubDefault::fireSourceAvailabilityChangedEvent(const am_sourceID_t& sourceID, const am_Availability_s& availability) {
+ stubAdapter_->fireSourceAvailabilityChangedEvent(sourceID, availability);
+}
+void CommandControlStubDefault::fireVolumeChangedEvent(const am_sinkID_t& sinkID, const am_mainVolume_t& volume) {
+ stubAdapter_->fireVolumeChangedEvent(sinkID, volume);
+}
+void CommandControlStubDefault::fireSinkMuteStateChangedEvent(const am_sinkID_t& sinkID, const am_MuteState_e& muteState) {
+ stubAdapter_->fireSinkMuteStateChangedEvent(sinkID, muteState);
+}
+void CommandControlStubDefault::fireSystemPropertyChangedEvent(const am_SystemProperty_s& systemProperty) {
+ stubAdapter_->fireSystemPropertyChangedEvent(systemProperty);
+}
+void CommandControlStubDefault::fireTimingInformationChangedEvent(const am_mainConnectionID_t& mainConnectionID, const am_timeSync_t& time) {
+ stubAdapter_->fireTimingInformationChangedEvent(mainConnectionID, time);
+}
+void CommandControlStubDefault::fireSinkUpdatedEvent(const am_sinkID_t& sinkID, const am_sinkClass_t& sinkClassID, const am_MainSoundProperty_L& listMainSoundProperties) {
+ stubAdapter_->fireSinkUpdatedEvent(sinkID, sinkClassID, listMainSoundProperties);
+}
+void CommandControlStubDefault::fireSourceUpdatedEvent(const am_sourceID_t& sourceID, const am_sourceClass_t& sourceClassID, const am_MainSoundProperty_L& listMainSoundProperties) {
+ stubAdapter_->fireSourceUpdatedEvent(sourceID, sourceClassID, listMainSoundProperties);
+}
+void CommandControlStubDefault::fireSinkNotificationEvent(const am_sinkID_t& sinkID, const am_NotificationPayload_s& notification) {
+ stubAdapter_->fireSinkNotificationEvent(sinkID, notification);
+}
+void CommandControlStubDefault::fireSourceNotificationEvent(const am_sourceID_t& sourceID, const am_NotificationPayload_s& notification) {
+ stubAdapter_->fireSourceNotificationEvent(sourceID, notification);
+}
+void CommandControlStubDefault::fireMainSinkNotificationConfigurationChangedEvent(const am_sinkID_t& sinkID, const am_NotificationConfiguration_s& mainNotificationConfiguration) {
+ stubAdapter_->fireMainSinkNotificationConfigurationChangedEvent(sinkID, mainNotificationConfiguration);
+}
+void CommandControlStubDefault::fireMainSourceNotificationConfigurationChangedEvent(const am_sourceID_t& sourceID, const am_NotificationConfiguration_s& mainNotificationConfiguration) {
+ stubAdapter_->fireMainSourceNotificationConfigurationChangedEvent(sourceID, mainNotificationConfiguration);
+}
+
+CommandControlStubDefault::RemoteEventHandler::RemoteEventHandler(CommandControlStubDefault* defaultStub):
+ defaultStub_(defaultStub) {
+}
+
+} // namespace am
+} // namespace genivi
+} // namespace org
diff --git a/PluginCommandInterfaceCAPI/src-gen/org/genivi/am/CommandControlStubDefault.h b/PluginCommandInterfaceCAPI/src-gen/org/genivi/am/CommandControlStubDefault.h
new file mode 100644
index 0000000..e718d76
--- /dev/null
+++ b/PluginCommandInterfaceCAPI/src-gen/org/genivi/am/CommandControlStubDefault.h
@@ -0,0 +1,122 @@
+/*
+* This file was generated by the CommonAPI Generators.
+*
+ * Copyright (C) 2013, BMW AG
+ *
+ * \author Christian Linke, christian.linke@bmw.de BMW 2012,2013
+*/
+#ifndef ORG_GENIVI_AM_Command_Control_STUB_DEFAULT_H_
+#define ORG_GENIVI_AM_Command_Control_STUB_DEFAULT_H_
+
+#include <org/genivi/am/CommandControlStub.h>
+
+namespace org {
+namespace genivi {
+namespace am {
+
+/**
+ * Provides a default implementation for CommandControlStubRemoteEvent and
+ * CommandControlStub. Method callbacks have an empty implementation,
+ * remote set calls on attributes will always change the value of the attribute
+ * to the one received.
+ *
+ * Override this stub if you only want to provide a subset of the functionality
+ * that would be defined for this service, and/or if you do not need any non-default
+ * behaviour.
+ */
+class CommandControlStubDefault : public CommandControlStub {
+ public:
+ CommandControlStubDefault();
+
+ CommandControlStubRemoteEvent* initStubAdapter(const std::shared_ptr<CommandControlStubAdapter>& stubAdapter);
+
+
+ virtual void connect(am_sourceID_t sourceID, am_sinkID_t sinkID, am_mainConnectionID_t& mainConnectionID, am_Error_e& error);
+
+ virtual void disconnect(am_mainConnectionID_t mainConnectionID, am_Error_e& error);
+
+ virtual void setVolume(am_sinkID_t sinkID, am_mainVolume_t volume, am_Error_e& error);
+
+ virtual void volumeStep(am_sinkID_t sinkID, int16_t volumeStep, am_Error_e& error);
+
+ virtual void setSinkMuteState(am_sinkID_t sinkID, am_MuteState_e muteState, am_Error_e& error);
+
+ virtual void setMainSinkSoundProperty(am_sinkID_t sinkID, am_MainSoundProperty_s soundProperty, am_Error_e& error);
+
+ virtual void setMainSourceSoundProperty(am_sourceID_t sourceID, am_MainSoundProperty_s soundProperty, am_Error_e& error);
+
+ virtual void setSystemProperty(am_SystemProperty_s property, am_Error_e& error);
+
+ virtual void getListMainConnections(am_Error_e& error, am_MainConnection_L& listConnections);
+
+ virtual void getListMainSinks(am_SinkType_L& listMainSinks, am_Error_e& error);
+
+ virtual void getListMainSources(am_SourceType_L& listMainSources, am_Error_e& error);
+
+ virtual void getListMainSinkSoundProperties(am_sinkID_t sinkID, am_MainSoundProperty_L& listSoundProperties, am_Error_e& error);
+
+ virtual void getListMainSourceSoundProperties(am_sourceID_t sourceID, am_MainSoundProperty_L& listSourceProperties, am_Error_e& error);
+
+ virtual void getListSourceClasses(am_SourceClass_L& listSourceClasses, am_Error_e& error);
+
+ virtual void getListSinkClasses(am_SinkClass_L& listSinkClasses, am_Error_e& error);
+
+ virtual void getListSystemProperties(am_SystemProperty_L& listSystemProperties, am_Error_e& error);
+
+ virtual void getTimingInformation(am_mainConnectionID_t mainConnectionID, am_timeSync_t& delay, am_Error_e& error);
+
+ virtual void getListMainSinkNotificationConfigurations(am_sinkID_t sinkID, am_NotificationConfiguration_L& listMainNotificationConfigurations, am_Error_e& error);
+
+ virtual void getListMainSourceNotificationConfigurations(am_sourceID_t sourceID, am_NotificationConfiguration_L& listMainNotificationConfigurations, am_Error_e& error);
+
+ virtual void setMainSinkNotificationConfiguration(am_sinkID_t sinkID, am_NotificationConfiguration_s mainNotificationConfiguration, am_Error_e& error);
+
+ virtual void setMainSourceNotificationConfiguration(am_sourceID_t sourceID, am_NotificationConfiguration_s mainNotificationConfiguration, am_Error_e& error);
+
+
+ virtual void fireNewMainConnectionEvent(const am_MainConnectionType_s& mainConnection);
+ virtual void fireRemovedMainConnectionEvent(const am_mainConnectionID_t& mainConnection);
+ virtual void fireNewSinkEvent(const am_SinkType_s& sink);
+ virtual void fireRemovedSinkEvent(const am_sinkID_t& sinkID);
+ virtual void fireNewSourceEvent(const am_SourceType_s& source);
+ virtual void fireRemovedSourceEvent(const am_sourceID_t& source);
+ virtual void fireNumberOfSinkClassesChangedEvent();
+ virtual void fireNumberOfSourceClassesChangedEvent();
+ virtual void fireMainConnectionStateChangedEvent(const am_mainConnectionID_t& connectionID, const am_ConnectionState_e& connectionState);
+ virtual void fireMainSinkSoundPropertyChangedEvent(const am_sinkID_t& sinkID, const am_MainSoundProperty_s& soundProperty);
+ virtual void fireMainSourceSoundPropertyChangedEvent(const am_sourceID_t& sourceID, const am_MainSoundProperty_s& soundProperty);
+ virtual void fireSinkAvailabilityChangedEvent(const am_sinkID_t& sinkID, const am_Availability_s& availability);
+ virtual void fireSourceAvailabilityChangedEvent(const am_sourceID_t& sourceID, const am_Availability_s& availability);
+ virtual void fireVolumeChangedEvent(const am_sinkID_t& sinkID, const am_mainVolume_t& volume);
+ virtual void fireSinkMuteStateChangedEvent(const am_sinkID_t& sinkID, const am_MuteState_e& muteState);
+ virtual void fireSystemPropertyChangedEvent(const am_SystemProperty_s& systemProperty);
+ virtual void fireTimingInformationChangedEvent(const am_mainConnectionID_t& mainConnectionID, const am_timeSync_t& time);
+ virtual void fireSinkUpdatedEvent(const am_sinkID_t& sinkID, const am_sinkClass_t& sinkClassID, const am_MainSoundProperty_L& listMainSoundProperties);
+ virtual void fireSourceUpdatedEvent(const am_sourceID_t& sourceID, const am_sourceClass_t& sourceClassID, const am_MainSoundProperty_L& listMainSoundProperties);
+ virtual void fireSinkNotificationEvent(const am_sinkID_t& sinkID, const am_NotificationPayload_s& notification);
+ virtual void fireSourceNotificationEvent(const am_sourceID_t& sourceID, const am_NotificationPayload_s& notification);
+ virtual void fireMainSinkNotificationConfigurationChangedEvent(const am_sinkID_t& sinkID, const am_NotificationConfiguration_s& mainNotificationConfiguration);
+ virtual void fireMainSourceNotificationConfigurationChangedEvent(const am_sourceID_t& sourceID, const am_NotificationConfiguration_s& mainNotificationConfiguration);
+
+ protected:
+
+ private:
+ class RemoteEventHandler: public CommandControlStubRemoteEvent {
+ public:
+ RemoteEventHandler(CommandControlStubDefault* defaultStub);
+
+
+ private:
+ CommandControlStubDefault* defaultStub_;
+ };
+
+ RemoteEventHandler remoteEventHandler_;
+ std::shared_ptr<CommandControlStubAdapter> stubAdapter_;
+
+};
+
+} // namespace am
+} // namespace genivi
+} // namespace org
+
+#endif // ORG_GENIVI_AM_Command_Control_STUB_DEFAULT_H_
diff --git a/PluginCommandInterfaceCAPI/src-gen/org/genivi/audiomanager/CommandInterface.cpp b/PluginCommandInterfaceCAPI/src-gen/org/genivi/audiomanager/CommandInterface.cpp
deleted file mode 100644
index d0e10bd..0000000
--- a/PluginCommandInterfaceCAPI/src-gen/org/genivi/audiomanager/CommandInterface.cpp
+++ /dev/null
@@ -1,332 +0,0 @@
-/*
-* This file was generated by the CommonAPI Generators.
-*
- * Copyright (c) 2012 BMW
- *
- * \author Aleksandar Donchev, aleksander.donchev@partner.bmw.de BMW 2013
- *
- * \copyright
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction,
- * including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
- * subject to the following conditions:
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
- * THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- *
- * For further information see http://www.genivi.org/.
-*/
-#include "CommandInterface.h"
-
-namespace org {
-namespace genivi {
-namespace audiomanager {
-
-CommandInterface::am_MainSoundProperty_s::am_MainSoundProperty_s(const am_MainSoundPropertyType_e& typeValue, const int16_t& valueValue):
- type(typeValue),
- value(valueValue)
-{
-}
-
-
-bool operator==(const CommandInterface::am_MainSoundProperty_s& lhs, const CommandInterface::am_MainSoundProperty_s& rhs) {
- if (&lhs == &rhs)
- return true;
-
- return
- lhs.type == rhs.type &&
- lhs.value == rhs.value
- ;
-}
-
-void CommandInterface::am_MainSoundProperty_s::readFromInputStream(CommonAPI::InputStream& inputStream) {
- inputStream >> type;
- inputStream >> value;
-}
-
-void CommandInterface::am_MainSoundProperty_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const {
- outputStream << type;
- outputStream << value;
-}
-CommandInterface::am_SystemProperty_s::am_SystemProperty_s(const am_SystemPropertyType_e& typeValue, const int16_t& valueValue):
- type(typeValue),
- value(valueValue)
-{
-}
-
-
-bool operator==(const CommandInterface::am_SystemProperty_s& lhs, const CommandInterface::am_SystemProperty_s& rhs) {
- if (&lhs == &rhs)
- return true;
-
- return
- lhs.type == rhs.type &&
- lhs.value == rhs.value
- ;
-}
-
-void CommandInterface::am_SystemProperty_s::readFromInputStream(CommonAPI::InputStream& inputStream) {
- inputStream >> type;
- inputStream >> value;
-}
-
-void CommandInterface::am_SystemProperty_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const {
- outputStream << type;
- outputStream << value;
-}
-CommandInterface::am_MainConnectionType_s::am_MainConnectionType_s(const am_mainConnectionID_t& mainConnectionIDValue, const am_sourceID_t& sourceIDValue, const am_sinkID_t& sinkIDValue, const am_timeSync_t& delayValue, const am_ConnectionState_e& connectionStateValue):
- mainConnectionID(mainConnectionIDValue),
- sourceID(sourceIDValue),
- sinkID(sinkIDValue),
- delay(delayValue),
- connectionState(connectionStateValue)
-{
-}
-
-
-bool operator==(const CommandInterface::am_MainConnectionType_s& lhs, const CommandInterface::am_MainConnectionType_s& rhs) {
- if (&lhs == &rhs)
- return true;
-
- return
- lhs.mainConnectionID == rhs.mainConnectionID &&
- lhs.sourceID == rhs.sourceID &&
- lhs.sinkID == rhs.sinkID &&
- lhs.delay == rhs.delay &&
- lhs.connectionState == rhs.connectionState
- ;
-}
-
-void CommandInterface::am_MainConnectionType_s::readFromInputStream(CommonAPI::InputStream& inputStream) {
- inputStream >> mainConnectionID;
- inputStream >> sourceID;
- inputStream >> sinkID;
- inputStream >> delay;
- inputStream >> connectionState;
-}
-
-void CommandInterface::am_MainConnectionType_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const {
- outputStream << mainConnectionID;
- outputStream << sourceID;
- outputStream << sinkID;
- outputStream << delay;
- outputStream << connectionState;
-}
-CommandInterface::am_Availability_s::am_Availability_s(const am_Availablility_e& availabilityValue, const am_AvailabilityReason_e& availabilityReasonValue):
- availability(availabilityValue),
- availabilityReason(availabilityReasonValue)
-{
-}
-
-
-bool operator==(const CommandInterface::am_Availability_s& lhs, const CommandInterface::am_Availability_s& rhs) {
- if (&lhs == &rhs)
- return true;
-
- return
- lhs.availability == rhs.availability &&
- lhs.availabilityReason == rhs.availabilityReason
- ;
-}
-
-void CommandInterface::am_Availability_s::readFromInputStream(CommonAPI::InputStream& inputStream) {
- inputStream >> availability;
- inputStream >> availabilityReason;
-}
-
-void CommandInterface::am_Availability_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const {
- outputStream << availability;
- outputStream << availabilityReason;
-}
-CommandInterface::am_SourceType_s::am_SourceType_s(const am_sourceID_t& sourceIDValue, const std::string& nameValue, const am_Availability_s& availabilityValue, const am_sourceClass_t& sourceClassIDValue):
- sourceID(sourceIDValue),
- name(nameValue),
- availability(availabilityValue),
- sourceClassID(sourceClassIDValue)
-{
-}
-
-
-bool operator==(const CommandInterface::am_SourceType_s& lhs, const CommandInterface::am_SourceType_s& rhs) {
- if (&lhs == &rhs)
- return true;
-
- return
- lhs.sourceID == rhs.sourceID &&
- lhs.name == rhs.name &&
- lhs.availability == rhs.availability &&
- lhs.sourceClassID == rhs.sourceClassID
- ;
-}
-
-void CommandInterface::am_SourceType_s::readFromInputStream(CommonAPI::InputStream& inputStream) {
- inputStream >> sourceID;
- inputStream >> name;
- inputStream >> availability;
- inputStream >> sourceClassID;
-}
-
-void CommandInterface::am_SourceType_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const {
- outputStream << sourceID;
- outputStream << name;
- outputStream << availability;
- outputStream << sourceClassID;
-}
-CommandInterface::am_SinkType_s::am_SinkType_s(const am_sinkID_t& sinkIDValue, const std::string& nameValue, const am_Availability_s& availabilityValue, const am_mainVolume_t& volumeValue, const am_MuteState_e& muteStateValue, const am_sinkClass_t& sinkClassIDValue):
- sinkID(sinkIDValue),
- name(nameValue),
- availability(availabilityValue),
- volume(volumeValue),
- muteState(muteStateValue),
- sinkClassID(sinkClassIDValue)
-{
-}
-
-
-bool operator==(const CommandInterface::am_SinkType_s& lhs, const CommandInterface::am_SinkType_s& rhs) {
- if (&lhs == &rhs)
- return true;
-
- return
- lhs.sinkID == rhs.sinkID &&
- lhs.name == rhs.name &&
- lhs.availability == rhs.availability &&
- lhs.volume == rhs.volume &&
- lhs.muteState == rhs.muteState &&
- lhs.sinkClassID == rhs.sinkClassID
- ;
-}
-
-void CommandInterface::am_SinkType_s::readFromInputStream(CommonAPI::InputStream& inputStream) {
- inputStream >> sinkID;
- inputStream >> name;
- inputStream >> availability;
- inputStream >> volume;
- inputStream >> muteState;
- inputStream >> sinkClassID;
-}
-
-void CommandInterface::am_SinkType_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const {
- outputStream << sinkID;
- outputStream << name;
- outputStream << availability;
- outputStream << volume;
- outputStream << muteState;
- outputStream << sinkClassID;
-}
-CommandInterface::am_ClassProperty_s::am_ClassProperty_s(const am_ClassProperty_e& classPropertyValue, const int16_t& valueValue):
- classProperty(classPropertyValue),
- value(valueValue)
-{
-}
-
-
-bool operator==(const CommandInterface::am_ClassProperty_s& lhs, const CommandInterface::am_ClassProperty_s& rhs) {
- if (&lhs == &rhs)
- return true;
-
- return
- lhs.classProperty == rhs.classProperty &&
- lhs.value == rhs.value
- ;
-}
-
-void CommandInterface::am_ClassProperty_s::readFromInputStream(CommonAPI::InputStream& inputStream) {
- inputStream >> classProperty;
- inputStream >> value;
-}
-
-void CommandInterface::am_ClassProperty_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const {
- outputStream << classProperty;
- outputStream << value;
-}
-CommandInterface::am_SourceClass_s::am_SourceClass_s(const am_sourceClass_t& sourceClassIDValue, const std::string& nameValue, const am_ClassProperty_l& listClassPropertiesValue):
- sourceClassID(sourceClassIDValue),
- name(nameValue),
- listClassProperties(listClassPropertiesValue)
-{
-}
-
-
-bool operator==(const CommandInterface::am_SourceClass_s& lhs, const CommandInterface::am_SourceClass_s& rhs) {
- if (&lhs == &rhs)
- return true;
-
- return
- lhs.sourceClassID == rhs.sourceClassID &&
- lhs.name == rhs.name &&
- lhs.listClassProperties == rhs.listClassProperties
- ;
-}
-
-void CommandInterface::am_SourceClass_s::readFromInputStream(CommonAPI::InputStream& inputStream) {
- inputStream >> sourceClassID;
- inputStream >> name;
- inputStream >> listClassProperties;
-}
-
-void CommandInterface::am_SourceClass_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const {
- outputStream << sourceClassID;
- outputStream << name;
- outputStream << listClassProperties;
-}
-CommandInterface::am_SinkClass_s::am_SinkClass_s(const am_sinkClass_t& sinkClassIDValue, const std::string& nameValue, const am_ClassProperty_l& listClassPropertiesValue):
- sinkClassID(sinkClassIDValue),
- name(nameValue),
- listClassProperties(listClassPropertiesValue)
-{
-}
-
-
-bool operator==(const CommandInterface::am_SinkClass_s& lhs, const CommandInterface::am_SinkClass_s& rhs) {
- if (&lhs == &rhs)
- return true;
-
- return
- lhs.sinkClassID == rhs.sinkClassID &&
- lhs.name == rhs.name &&
- lhs.listClassProperties == rhs.listClassProperties
- ;
-}
-
-void CommandInterface::am_SinkClass_s::readFromInputStream(CommonAPI::InputStream& inputStream) {
- inputStream >> sinkClassID;
- inputStream >> name;
- inputStream >> listClassProperties;
-}
-
-void CommandInterface::am_SinkClass_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const {
- outputStream << sinkClassID;
- outputStream << name;
- outputStream << listClassProperties;
-}
-CommandInterface::am_NotificationPayload_s::am_NotificationPayload_s(const am::am_NotificationType_e& typeValue, const int16_t& valueValue):
- type(typeValue),
- value(valueValue)
-{
-}
-
-
-bool operator==(const CommandInterface::am_NotificationPayload_s& lhs, const CommandInterface::am_NotificationPayload_s& rhs) {
- if (&lhs == &rhs)
- return true;
-
- return
- lhs.type == rhs.type &&
- lhs.value == rhs.value
- ;
-}
-
-void CommandInterface::am_NotificationPayload_s::readFromInputStream(CommonAPI::InputStream& inputStream) {
- inputStream >> type;
- inputStream >> value;
-}
-
-void CommandInterface::am_NotificationPayload_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const {
- outputStream << type;
- outputStream << value;
-}
-
-} // namespace audiomanager
-} // namespace genivi
-} // namespace org
diff --git a/PluginCommandInterfaceCAPI/src-gen/org/genivi/audiomanager/CommandInterface.h b/PluginCommandInterfaceCAPI/src-gen/org/genivi/audiomanager/CommandInterface.h
deleted file mode 100644
index 252c0ef..0000000
--- a/PluginCommandInterfaceCAPI/src-gen/org/genivi/audiomanager/CommandInterface.h
+++ /dev/null
@@ -1,820 +0,0 @@
-/*
-* This file was generated by the CommonAPI Generators.
-*
- * Copyright (c) 2012 BMW
- *
- * \author Aleksandar Donchev, aleksander.donchev@partner.bmw.de BMW 2013
- *
- * \copyright
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction,
- * including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
- * subject to the following conditions:
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
- * THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- *
- * For further information see http://www.genivi.org/.
-*/
-#ifndef ORG_GENIVI_AUDIOMANAGER_Command_Interface_H_
-#define ORG_GENIVI_AUDIOMANAGER_Command_Interface_H_
-
-
-#include <org/genivi/audiomanager/am.h>
-
-#define COMMONAPI_INTERNAL_COMPILATION
-
-#include <CommonAPI/InputStream.h>
-#include <CommonAPI/OutputStream.h>
-#include <CommonAPI/SerializableStruct.h>
-#include <CommonAPI/types.h>
-#include <cstdint>
-#include <string>
-#include <vector>
-
-#undef COMMONAPI_INTERNAL_COMPILATION
-
-namespace org {
-namespace genivi {
-namespace audiomanager {
-
-class CommandInterface {
- public:
- virtual ~CommandInterface() { }
-
- static inline const char* getInterfaceId();
- static inline CommonAPI::Version getInterfaceVersion();
- typedef uint16_t am_sourceID_t;
-
- typedef uint16_t am_sinkID_t;
-
- typedef uint16_t am_mainConnectionID_t;
-
- typedef int16_t am_timeSync_t;
-
- typedef int16_t am_mainVolume_t;
-
- typedef uint16_t am_sourceClass_t;
-
- typedef uint16_t am_sinkClass_t;
-
- enum class am_Error_e: int32_t {
- E_OK = 0x0,
- E_OUT_OF_RANGE = 0x1,
- E_NOT_USED = 0x2,
- E_DATABASE_ERROR = 0x3,
- E_ALREADY_EXISTS = 0x4,
- E_NO_CHANGE = 0x5,
- E_NOT_POSSIBLE = 0x6,
- E_NON_EXISTENT = 0x7,
- E_ABORTED = 0x8,
- E_WRONG_FORMAT = 0x9,
- E_MAX = 0xa
- };
-
- // XXX Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1
- struct am_Error_eComparator;
-
- enum class am_MuteState_e: int32_t {
- MS_UNKNOWN = 0x0,
- MS_MUTED = 0x1,
- MS_UNMUTED = 0x2,
- MS_MAX = 0x3
- };
-
- // XXX Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1
- struct am_MuteState_eComparator;
-
- enum class am_MainSoundPropertyType_e: int32_t {
- MSP_UNKNOWN = 0x0,
- MSP_EXAMPLE_TREBLE = 0x1,
- MSP_EXAMPLE_MID = 0x2,
- MSP_EXAMPLE_BASS = 0x3,
- MSP_SOURCE_TYPE = 0x4,
- MSP_MAX = 0x5
- };
-
- // XXX Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1
- struct am_MainSoundPropertyType_eComparator;
-
- enum class am_SystemPropertyType_e: int32_t {
- SYP_UNKNOWN = 0x0,
- SYP_MAX = 0x1
- };
-
- // XXX Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1
- struct am_SystemPropertyType_eComparator;
-
- enum class am_ConnectionState_e: int32_t {
- CS_UNKNOWN = 0x0,
- CS_CONNECTING = 0x1,
- CS_CONNECTED = 0x2,
- CS_DISCONNECTING = 0x3,
- CS_DISCONNECTED = 0x4,
- CS_SUSPENDED = 0x5,
- CS_MAX = 0x6
- };
-
- // XXX Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1
- struct am_ConnectionState_eComparator;
-
- enum class am_Availablility_e: int32_t {
- A_UNKNOWN = 0x0,
- A_AVAILABLE = 0x1,
- A_UNAVAILABLE = 0x2,
- A_MAX = 0x3
- };
-
- // XXX Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1
- struct am_Availablility_eComparator;
-
- enum class am_AvailabilityReason_e: int32_t {
- AR_UNKNOWN = 0x0,
- AR_GENIVI_NEWMEDIA = 0x1,
- AR_GENIVI_SAMEMEDIA = 0x2,
- AR_GENIVI_NOMEDIA = 0x3,
- AR_GENIVI_TEMPERATURE = 0x4,
- AR_GENIVI_VOLTAGE = 0x5,
- AR_GENIVI_ERRORMEDIA = 0x6,
- AR_MAX = 0x7
- };
-
- // XXX Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1
- struct am_AvailabilityReason_eComparator;
-
- enum class am_ClassProperty_e: int32_t {
- CP_UNKNOWN = 0x0,
- CP_GENIVI_SOURCE_TYPE = 0x1,
- CP_GENIVI_SINK_TYPE = 0x2,
- CP_MAX = 0x3
- };
-
- // XXX Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1
- struct am_ClassProperty_eComparator;
-
- enum class am_InterruptState_e: int32_t {
- IS_UNKNOWN = 0x0,
- IS_OFF = 0x1,
- IS_INTERRUPTED = 0x2,
- IS_MAX = 0x3
- };
-
- // XXX Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1
- struct am_InterruptState_eComparator;
-
- struct am_MainSoundProperty_s: CommonAPI::SerializableStruct {
- am_MainSoundPropertyType_e type;
- int16_t value;
-
- am_MainSoundProperty_s() = default;
- am_MainSoundProperty_s(const am_MainSoundPropertyType_e& type, const int16_t& value);
-
-
- virtual void readFromInputStream(CommonAPI::InputStream& inputStream);
- virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const;
-
- static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) {
- typeOutputStream.writeInt32Type();
- typeOutputStream.writeInt16Type();
- }
- };
-
- typedef std::vector<am_MainSoundProperty_s> am_MainSoundProperty_l;
-
- struct am_SystemProperty_s: CommonAPI::SerializableStruct {
- am_SystemPropertyType_e type;
- int16_t value;
-
- am_SystemProperty_s() = default;
- am_SystemProperty_s(const am_SystemPropertyType_e& type, const int16_t& value);
-
-
- virtual void readFromInputStream(CommonAPI::InputStream& inputStream);
- virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const;
-
- static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) {
- typeOutputStream.writeInt32Type();
- typeOutputStream.writeInt16Type();
- }
- };
-
- typedef std::vector<am_SystemProperty_s> am_SystemProperty_l;
-
- struct am_MainConnectionType_s: CommonAPI::SerializableStruct {
- am_mainConnectionID_t mainConnectionID;
- am_sourceID_t sourceID;
- am_sinkID_t sinkID;
- am_timeSync_t delay;
- am_ConnectionState_e connectionState;
-
- am_MainConnectionType_s() = default;
- am_MainConnectionType_s(const am_mainConnectionID_t& mainConnectionID, const am_sourceID_t& sourceID, const am_sinkID_t& sinkID, const am_timeSync_t& delay, const am_ConnectionState_e& connectionState);
-
-
- virtual void readFromInputStream(CommonAPI::InputStream& inputStream);
- virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const;
-
- static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) {
- typeOutputStream.writeUInt16Type();
- typeOutputStream.writeUInt16Type();
- typeOutputStream.writeUInt16Type();
- typeOutputStream.writeInt16Type();
- typeOutputStream.writeInt32Type();
- }
- };
-
- typedef std::vector<am_MainConnectionType_s> am_MainConnectionType_l;
-
- struct am_Availability_s: CommonAPI::SerializableStruct {
- am_Availablility_e availability;
- am_AvailabilityReason_e availabilityReason;
-
- am_Availability_s() = default;
- am_Availability_s(const am_Availablility_e& availability, const am_AvailabilityReason_e& availabilityReason);
-
-
- virtual void readFromInputStream(CommonAPI::InputStream& inputStream);
- virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const;
-
- static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) {
- typeOutputStream.writeInt32Type();
- typeOutputStream.writeInt32Type();
- }
- };
-
- struct am_SourceType_s: CommonAPI::SerializableStruct {
- am_sourceID_t sourceID;
- std::string name;
- am_Availability_s availability;
- am_sourceClass_t sourceClassID;
-
- am_SourceType_s() = default;
- am_SourceType_s(const am_sourceID_t& sourceID, const std::string& name, const am_Availability_s& availability, const am_sourceClass_t& sourceClassID);
-
-
- virtual void readFromInputStream(CommonAPI::InputStream& inputStream);
- virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const;
-
- static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) {
- typeOutputStream.writeUInt16Type();
- typeOutputStream.writeStringType();
- typeOutputStream.beginWriteStructType();
- typeOutputStream.writeInt32Type();typeOutputStream.writeInt32Type();
- typeOutputStream.endWriteStructType();
- typeOutputStream.writeUInt16Type();
- }
- };
-
- typedef std::vector<am_SourceType_s> am_SourceType_l;
-
- struct am_SinkType_s: CommonAPI::SerializableStruct {
- am_sinkID_t sinkID;
- std::string name;
- am_Availability_s availability;
- am_mainVolume_t volume;
- am_MuteState_e muteState;
- am_sinkClass_t sinkClassID;
-
- am_SinkType_s() = default;
- am_SinkType_s(const am_sinkID_t& sinkID, const std::string& name, const am_Availability_s& availability, const am_mainVolume_t& volume, const am_MuteState_e& muteState, const am_sinkClass_t& sinkClassID);
-
-
- virtual void readFromInputStream(CommonAPI::InputStream& inputStream);
- virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const;
-
- static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) {
- typeOutputStream.writeUInt16Type();
- typeOutputStream.writeStringType();
- typeOutputStream.beginWriteStructType();
- typeOutputStream.writeInt32Type();typeOutputStream.writeInt32Type();
- typeOutputStream.endWriteStructType();
- typeOutputStream.writeInt16Type();
- typeOutputStream.writeInt32Type();
- typeOutputStream.writeUInt16Type();
- }
- };
-
- typedef std::vector<am_SinkType_s> am_SinkType_l;
-
- struct am_ClassProperty_s: CommonAPI::SerializableStruct {
- am_ClassProperty_e classProperty;
- int16_t value;
-
- am_ClassProperty_s() = default;
- am_ClassProperty_s(const am_ClassProperty_e& classProperty, const int16_t& value);
-
-
- virtual void readFromInputStream(CommonAPI::InputStream& inputStream);
- virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const;
-
- static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) {
- typeOutputStream.writeInt32Type();
- typeOutputStream.writeInt16Type();
- }
- };
-
- typedef std::vector<am_ClassProperty_s> am_ClassProperty_l;
-
- struct am_SourceClass_s: CommonAPI::SerializableStruct {
- am_sourceClass_t sourceClassID;
- std::string name;
- am_ClassProperty_l listClassProperties;
-
- am_SourceClass_s() = default;
- am_SourceClass_s(const am_sourceClass_t& sourceClassID, const std::string& name, const am_ClassProperty_l& listClassProperties);
-
-
- virtual void readFromInputStream(CommonAPI::InputStream& inputStream);
- virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const;
-
- static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) {
- typeOutputStream.writeUInt16Type();
- typeOutputStream.writeStringType();
- typeOutputStream.beginWriteVectorType();
- typeOutputStream.beginWriteStructType();
- typeOutputStream.writeInt32Type();typeOutputStream.writeInt16Type();
- typeOutputStream.endWriteStructType();
- typeOutputStream.endWriteVectorType();
- }
- };
-
- typedef std::vector<am_SourceClass_s> am_SourceClass_l;
-
- struct am_SinkClass_s: CommonAPI::SerializableStruct {
- am_sinkClass_t sinkClassID;
- std::string name;
- am_ClassProperty_l listClassProperties;
-
- am_SinkClass_s() = default;
- am_SinkClass_s(const am_sinkClass_t& sinkClassID, const std::string& name, const am_ClassProperty_l& listClassProperties);
-
-
- virtual void readFromInputStream(CommonAPI::InputStream& inputStream);
- virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const;
-
- static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) {
- typeOutputStream.writeUInt16Type();
- typeOutputStream.writeStringType();
- typeOutputStream.beginWriteVectorType();
- typeOutputStream.beginWriteStructType();
- typeOutputStream.writeInt32Type();typeOutputStream.writeInt16Type();
- typeOutputStream.endWriteStructType();
- typeOutputStream.endWriteVectorType();
- }
- };
-
- typedef std::vector<am_SinkClass_s> am_SinkClass_l;
-
- struct am_NotificationPayload_s: CommonAPI::SerializableStruct {
- am::am_NotificationType_e type;
- int16_t value;
-
- am_NotificationPayload_s() = default;
- am_NotificationPayload_s(const am::am_NotificationType_e& type, const int16_t& value);
-
-
- virtual void readFromInputStream(CommonAPI::InputStream& inputStream);
- virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const;
-
- static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) {
- typeOutputStream.writeInt32Type();
- typeOutputStream.writeInt16Type();
- }
- };
-
-};
-
-const char* CommandInterface::getInterfaceId() {
- return "org.genivi.audiomanager.CommandInterface";
-}
-
-CommonAPI::Version CommandInterface::getInterfaceVersion() {
- return CommonAPI::Version(0, 1);
-}
-
-inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, CommandInterface::am_Error_e& enumValue) {
- return inputStream.readEnumValue<int32_t>(enumValue);
-}
-
-inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const CommandInterface::am_Error_e& enumValue) {
- return outputStream.writeEnumValue(static_cast<int32_t>(enumValue));
-}
-
-struct CommandInterface::am_Error_eComparator {
- inline bool operator()(const am_Error_e& lhs, const am_Error_e& rhs) const {
- return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs);
- }
-};
-
-inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, CommandInterface::am_MuteState_e& enumValue) {
- return inputStream.readEnumValue<int32_t>(enumValue);
-}
-
-inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const CommandInterface::am_MuteState_e& enumValue) {
- return outputStream.writeEnumValue(static_cast<int32_t>(enumValue));
-}
-
-struct CommandInterface::am_MuteState_eComparator {
- inline bool operator()(const am_MuteState_e& lhs, const am_MuteState_e& rhs) const {
- return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs);
- }
-};
-
-inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, CommandInterface::am_MainSoundPropertyType_e& enumValue) {
- return inputStream.readEnumValue<int32_t>(enumValue);
-}
-
-inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const CommandInterface::am_MainSoundPropertyType_e& enumValue) {
- return outputStream.writeEnumValue(static_cast<int32_t>(enumValue));
-}
-
-struct CommandInterface::am_MainSoundPropertyType_eComparator {
- inline bool operator()(const am_MainSoundPropertyType_e& lhs, const am_MainSoundPropertyType_e& rhs) const {
- return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs);
- }
-};
-
-inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, CommandInterface::am_SystemPropertyType_e& enumValue) {
- return inputStream.readEnumValue<int32_t>(enumValue);
-}
-
-inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const CommandInterface::am_SystemPropertyType_e& enumValue) {
- return outputStream.writeEnumValue(static_cast<int32_t>(enumValue));
-}
-
-struct CommandInterface::am_SystemPropertyType_eComparator {
- inline bool operator()(const am_SystemPropertyType_e& lhs, const am_SystemPropertyType_e& rhs) const {
- return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs);
- }
-};
-
-inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, CommandInterface::am_ConnectionState_e& enumValue) {
- return inputStream.readEnumValue<int32_t>(enumValue);
-}
-
-inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const CommandInterface::am_ConnectionState_e& enumValue) {
- return outputStream.writeEnumValue(static_cast<int32_t>(enumValue));
-}
-
-struct CommandInterface::am_ConnectionState_eComparator {
- inline bool operator()(const am_ConnectionState_e& lhs, const am_ConnectionState_e& rhs) const {
- return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs);
- }
-};
-
-inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, CommandInterface::am_Availablility_e& enumValue) {
- return inputStream.readEnumValue<int32_t>(enumValue);
-}
-
-inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const CommandInterface::am_Availablility_e& enumValue) {
- return outputStream.writeEnumValue(static_cast<int32_t>(enumValue));
-}
-
-struct CommandInterface::am_Availablility_eComparator {
- inline bool operator()(const am_Availablility_e& lhs, const am_Availablility_e& rhs) const {
- return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs);
- }
-};
-
-inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, CommandInterface::am_AvailabilityReason_e& enumValue) {
- return inputStream.readEnumValue<int32_t>(enumValue);
-}
-
-inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const CommandInterface::am_AvailabilityReason_e& enumValue) {
- return outputStream.writeEnumValue(static_cast<int32_t>(enumValue));
-}
-
-struct CommandInterface::am_AvailabilityReason_eComparator {
- inline bool operator()(const am_AvailabilityReason_e& lhs, const am_AvailabilityReason_e& rhs) const {
- return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs);
- }
-};
-
-inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, CommandInterface::am_ClassProperty_e& enumValue) {
- return inputStream.readEnumValue<int32_t>(enumValue);
-}
-
-inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const CommandInterface::am_ClassProperty_e& enumValue) {
- return outputStream.writeEnumValue(static_cast<int32_t>(enumValue));
-}
-
-struct CommandInterface::am_ClassProperty_eComparator {
- inline bool operator()(const am_ClassProperty_e& lhs, const am_ClassProperty_e& rhs) const {
- return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs);
- }
-};
-
-inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, CommandInterface::am_InterruptState_e& enumValue) {
- return inputStream.readEnumValue<int32_t>(enumValue);
-}
-
-inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const CommandInterface::am_InterruptState_e& enumValue) {
- return outputStream.writeEnumValue(static_cast<int32_t>(enumValue));
-}
-
-struct CommandInterface::am_InterruptState_eComparator {
- inline bool operator()(const am_InterruptState_e& lhs, const am_InterruptState_e& rhs) const {
- return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs);
- }
-};
-
-bool operator==(const CommandInterface::am_MainSoundProperty_s& lhs, const CommandInterface::am_MainSoundProperty_s& rhs);
-inline bool operator!=(const CommandInterface::am_MainSoundProperty_s& lhs, const CommandInterface::am_MainSoundProperty_s& rhs) {
- return !(lhs == rhs);
-}
-bool operator==(const CommandInterface::am_SystemProperty_s& lhs, const CommandInterface::am_SystemProperty_s& rhs);
-inline bool operator!=(const CommandInterface::am_SystemProperty_s& lhs, const CommandInterface::am_SystemProperty_s& rhs) {
- return !(lhs == rhs);
-}
-bool operator==(const CommandInterface::am_MainConnectionType_s& lhs, const CommandInterface::am_MainConnectionType_s& rhs);
-inline bool operator!=(const CommandInterface::am_MainConnectionType_s& lhs, const CommandInterface::am_MainConnectionType_s& rhs) {
- return !(lhs == rhs);
-}
-bool operator==(const CommandInterface::am_Availability_s& lhs, const CommandInterface::am_Availability_s& rhs);
-inline bool operator!=(const CommandInterface::am_Availability_s& lhs, const CommandInterface::am_Availability_s& rhs) {
- return !(lhs == rhs);
-}
-bool operator==(const CommandInterface::am_SourceType_s& lhs, const CommandInterface::am_SourceType_s& rhs);
-inline bool operator!=(const CommandInterface::am_SourceType_s& lhs, const CommandInterface::am_SourceType_s& rhs) {
- return !(lhs == rhs);
-}
-bool operator==(const CommandInterface::am_SinkType_s& lhs, const CommandInterface::am_SinkType_s& rhs);
-inline bool operator!=(const CommandInterface::am_SinkType_s& lhs, const CommandInterface::am_SinkType_s& rhs) {
- return !(lhs == rhs);
-}
-bool operator==(const CommandInterface::am_ClassProperty_s& lhs, const CommandInterface::am_ClassProperty_s& rhs);
-inline bool operator!=(const CommandInterface::am_ClassProperty_s& lhs, const CommandInterface::am_ClassProperty_s& rhs) {
- return !(lhs == rhs);
-}
-bool operator==(const CommandInterface::am_SourceClass_s& lhs, const CommandInterface::am_SourceClass_s& rhs);
-inline bool operator!=(const CommandInterface::am_SourceClass_s& lhs, const CommandInterface::am_SourceClass_s& rhs) {
- return !(lhs == rhs);
-}
-bool operator==(const CommandInterface::am_SinkClass_s& lhs, const CommandInterface::am_SinkClass_s& rhs);
-inline bool operator!=(const CommandInterface::am_SinkClass_s& lhs, const CommandInterface::am_SinkClass_s& rhs) {
- return !(lhs == rhs);
-}
-bool operator==(const CommandInterface::am_NotificationPayload_s& lhs, const CommandInterface::am_NotificationPayload_s& rhs);
-inline bool operator!=(const CommandInterface::am_NotificationPayload_s& lhs, const CommandInterface::am_NotificationPayload_s& rhs) {
- return !(lhs == rhs);
-}
-
-} // namespace audiomanager
-} // namespace genivi
-} // namespace org
-
-namespace CommonAPI {
- template<>
- struct BasicTypeWriter<org::genivi::audiomanager::CommandInterface::am_Error_e> {
- inline static void writeType (CommonAPI::TypeOutputStream& typeStream) {
- typeStream.writeInt32EnumType();
- }
- };
-
- template<>
- struct InputStreamVectorHelper<org::genivi::audiomanager::CommandInterface::am_Error_e> {
- static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::audiomanager::CommandInterface::am_Error_e>& vectorValue) {
- inputStream.beginReadInt32EnumVector();
- }
- };
-
- template <>
- struct OutputStreamVectorHelper<org::genivi::audiomanager::CommandInterface::am_Error_e> {
- static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::audiomanager::CommandInterface::am_Error_e>& vectorValue) {
- outputStream.beginWriteInt32EnumVector(vectorValue.size());
- }
- };
- template<>
- struct BasicTypeWriter<org::genivi::audiomanager::CommandInterface::am_MuteState_e> {
- inline static void writeType (CommonAPI::TypeOutputStream& typeStream) {
- typeStream.writeInt32EnumType();
- }
- };
-
- template<>
- struct InputStreamVectorHelper<org::genivi::audiomanager::CommandInterface::am_MuteState_e> {
- static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::audiomanager::CommandInterface::am_MuteState_e>& vectorValue) {
- inputStream.beginReadInt32EnumVector();
- }
- };
-
- template <>
- struct OutputStreamVectorHelper<org::genivi::audiomanager::CommandInterface::am_MuteState_e> {
- static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::audiomanager::CommandInterface::am_MuteState_e>& vectorValue) {
- outputStream.beginWriteInt32EnumVector(vectorValue.size());
- }
- };
- template<>
- struct BasicTypeWriter<org::genivi::audiomanager::CommandInterface::am_MainSoundPropertyType_e> {
- inline static void writeType (CommonAPI::TypeOutputStream& typeStream) {
- typeStream.writeInt32EnumType();
- }
- };
-
- template<>
- struct InputStreamVectorHelper<org::genivi::audiomanager::CommandInterface::am_MainSoundPropertyType_e> {
- static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::audiomanager::CommandInterface::am_MainSoundPropertyType_e>& vectorValue) {
- inputStream.beginReadInt32EnumVector();
- }
- };
-
- template <>
- struct OutputStreamVectorHelper<org::genivi::audiomanager::CommandInterface::am_MainSoundPropertyType_e> {
- static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::audiomanager::CommandInterface::am_MainSoundPropertyType_e>& vectorValue) {
- outputStream.beginWriteInt32EnumVector(vectorValue.size());
- }
- };
- template<>
- struct BasicTypeWriter<org::genivi::audiomanager::CommandInterface::am_SystemPropertyType_e> {
- inline static void writeType (CommonAPI::TypeOutputStream& typeStream) {
- typeStream.writeInt32EnumType();
- }
- };
-
- template<>
- struct InputStreamVectorHelper<org::genivi::audiomanager::CommandInterface::am_SystemPropertyType_e> {
- static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::audiomanager::CommandInterface::am_SystemPropertyType_e>& vectorValue) {
- inputStream.beginReadInt32EnumVector();
- }
- };
-
- template <>
- struct OutputStreamVectorHelper<org::genivi::audiomanager::CommandInterface::am_SystemPropertyType_e> {
- static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::audiomanager::CommandInterface::am_SystemPropertyType_e>& vectorValue) {
- outputStream.beginWriteInt32EnumVector(vectorValue.size());
- }
- };
- template<>
- struct BasicTypeWriter<org::genivi::audiomanager::CommandInterface::am_ConnectionState_e> {
- inline static void writeType (CommonAPI::TypeOutputStream& typeStream) {
- typeStream.writeInt32EnumType();
- }
- };
-
- template<>
- struct InputStreamVectorHelper<org::genivi::audiomanager::CommandInterface::am_ConnectionState_e> {
- static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::audiomanager::CommandInterface::am_ConnectionState_e>& vectorValue) {
- inputStream.beginReadInt32EnumVector();
- }
- };
-
- template <>
- struct OutputStreamVectorHelper<org::genivi::audiomanager::CommandInterface::am_ConnectionState_e> {
- static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::audiomanager::CommandInterface::am_ConnectionState_e>& vectorValue) {
- outputStream.beginWriteInt32EnumVector(vectorValue.size());
- }
- };
- template<>
- struct BasicTypeWriter<org::genivi::audiomanager::CommandInterface::am_Availablility_e> {
- inline static void writeType (CommonAPI::TypeOutputStream& typeStream) {
- typeStream.writeInt32EnumType();
- }
- };
-
- template<>
- struct InputStreamVectorHelper<org::genivi::audiomanager::CommandInterface::am_Availablility_e> {
- static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::audiomanager::CommandInterface::am_Availablility_e>& vectorValue) {
- inputStream.beginReadInt32EnumVector();
- }
- };
-
- template <>
- struct OutputStreamVectorHelper<org::genivi::audiomanager::CommandInterface::am_Availablility_e> {
- static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::audiomanager::CommandInterface::am_Availablility_e>& vectorValue) {
- outputStream.beginWriteInt32EnumVector(vectorValue.size());
- }
- };
- template<>
- struct BasicTypeWriter<org::genivi::audiomanager::CommandInterface::am_AvailabilityReason_e> {
- inline static void writeType (CommonAPI::TypeOutputStream& typeStream) {
- typeStream.writeInt32EnumType();
- }
- };
-
- template<>
- struct InputStreamVectorHelper<org::genivi::audiomanager::CommandInterface::am_AvailabilityReason_e> {
- static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::audiomanager::CommandInterface::am_AvailabilityReason_e>& vectorValue) {
- inputStream.beginReadInt32EnumVector();
- }
- };
-
- template <>
- struct OutputStreamVectorHelper<org::genivi::audiomanager::CommandInterface::am_AvailabilityReason_e> {
- static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::audiomanager::CommandInterface::am_AvailabilityReason_e>& vectorValue) {
- outputStream.beginWriteInt32EnumVector(vectorValue.size());
- }
- };
- template<>
- struct BasicTypeWriter<org::genivi::audiomanager::CommandInterface::am_ClassProperty_e> {
- inline static void writeType (CommonAPI::TypeOutputStream& typeStream) {
- typeStream.writeInt32EnumType();
- }
- };
-
- template<>
- struct InputStreamVectorHelper<org::genivi::audiomanager::CommandInterface::am_ClassProperty_e> {
- static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::audiomanager::CommandInterface::am_ClassProperty_e>& vectorValue) {
- inputStream.beginReadInt32EnumVector();
- }
- };
-
- template <>
- struct OutputStreamVectorHelper<org::genivi::audiomanager::CommandInterface::am_ClassProperty_e> {
- static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::audiomanager::CommandInterface::am_ClassProperty_e>& vectorValue) {
- outputStream.beginWriteInt32EnumVector(vectorValue.size());
- }
- };
- template<>
- struct BasicTypeWriter<org::genivi::audiomanager::CommandInterface::am_InterruptState_e> {
- inline static void writeType (CommonAPI::TypeOutputStream& typeStream) {
- typeStream.writeInt32EnumType();
- }
- };
-
- template<>
- struct InputStreamVectorHelper<org::genivi::audiomanager::CommandInterface::am_InterruptState_e> {
- static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::audiomanager::CommandInterface::am_InterruptState_e>& vectorValue) {
- inputStream.beginReadInt32EnumVector();
- }
- };
-
- template <>
- struct OutputStreamVectorHelper<org::genivi::audiomanager::CommandInterface::am_InterruptState_e> {
- static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::audiomanager::CommandInterface::am_InterruptState_e>& vectorValue) {
- outputStream.beginWriteInt32EnumVector(vectorValue.size());
- }
- };
-
-}
-
-
-namespace std {
- //hashes for types
- //Hash for am_Error_e
- template<>
- struct hash<org::genivi::audiomanager::CommandInterface::am_Error_e> {
- inline size_t operator()(const org::genivi::audiomanager::CommandInterface::am_Error_e& am_Error_e) const {
- return static_cast<int32_t>(am_Error_e);
- }
- };
- //Hash for am_MuteState_e
- template<>
- struct hash<org::genivi::audiomanager::CommandInterface::am_MuteState_e> {
- inline size_t operator()(const org::genivi::audiomanager::CommandInterface::am_MuteState_e& am_MuteState_e) const {
- return static_cast<int32_t>(am_MuteState_e);
- }
- };
- //Hash for am_MainSoundPropertyType_e
- template<>
- struct hash<org::genivi::audiomanager::CommandInterface::am_MainSoundPropertyType_e> {
- inline size_t operator()(const org::genivi::audiomanager::CommandInterface::am_MainSoundPropertyType_e& am_MainSoundPropertyType_e) const {
- return static_cast<int32_t>(am_MainSoundPropertyType_e);
- }
- };
- //Hash for am_SystemPropertyType_e
- template<>
- struct hash<org::genivi::audiomanager::CommandInterface::am_SystemPropertyType_e> {
- inline size_t operator()(const org::genivi::audiomanager::CommandInterface::am_SystemPropertyType_e& am_SystemPropertyType_e) const {
- return static_cast<int32_t>(am_SystemPropertyType_e);
- }
- };
- //Hash for am_ConnectionState_e
- template<>
- struct hash<org::genivi::audiomanager::CommandInterface::am_ConnectionState_e> {
- inline size_t operator()(const org::genivi::audiomanager::CommandInterface::am_ConnectionState_e& am_ConnectionState_e) const {
- return static_cast<int32_t>(am_ConnectionState_e);
- }
- };
- //Hash for am_Availablility_e
- template<>
- struct hash<org::genivi::audiomanager::CommandInterface::am_Availablility_e> {
- inline size_t operator()(const org::genivi::audiomanager::CommandInterface::am_Availablility_e& am_Availablility_e) const {
- return static_cast<int32_t>(am_Availablility_e);
- }
- };
- //Hash for am_AvailabilityReason_e
- template<>
- struct hash<org::genivi::audiomanager::CommandInterface::am_AvailabilityReason_e> {
- inline size_t operator()(const org::genivi::audiomanager::CommandInterface::am_AvailabilityReason_e& am_AvailabilityReason_e) const {
- return static_cast<int32_t>(am_AvailabilityReason_e);
- }
- };
- //Hash for am_ClassProperty_e
- template<>
- struct hash<org::genivi::audiomanager::CommandInterface::am_ClassProperty_e> {
- inline size_t operator()(const org::genivi::audiomanager::CommandInterface::am_ClassProperty_e& am_ClassProperty_e) const {
- return static_cast<int32_t>(am_ClassProperty_e);
- }
- };
- //Hash for am_InterruptState_e
- template<>
- struct hash<org::genivi::audiomanager::CommandInterface::am_InterruptState_e> {
- inline size_t operator()(const org::genivi::audiomanager::CommandInterface::am_InterruptState_e& am_InterruptState_e) const {
- return static_cast<int32_t>(am_InterruptState_e);
- }
- };
-
- //hashes for error types
-}
-
-#endif // ORG_GENIVI_AUDIOMANAGER_Command_Interface_H_
diff --git a/PluginCommandInterfaceCAPI/src-gen/org/genivi/audiomanager/CommandInterfaceDBusProxy.cpp b/PluginCommandInterfaceCAPI/src-gen/org/genivi/audiomanager/CommandInterfaceDBusProxy.cpp
deleted file mode 100644
index b178ee7..0000000
--- a/PluginCommandInterfaceCAPI/src-gen/org/genivi/audiomanager/CommandInterfaceDBusProxy.cpp
+++ /dev/null
@@ -1,458 +0,0 @@
-/*
-* This file was generated by the CommonAPI Generators.
-*
- * Copyright (c) 2012 BMW
- *
- * \author Aleksandar Donchev, aleksander.donchev@partner.bmw.de BMW 2013
- *
- * \copyright
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction,
- * including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
- * subject to the following conditions:
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
- * THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- *
- * For further information see http://www.genivi.org/.
-*/
-#include "CommandInterfaceDBusProxy.h"
-
-namespace org {
-namespace genivi {
-namespace audiomanager {
-
-std::shared_ptr<CommonAPI::DBus::DBusProxy> createCommandInterfaceDBusProxy(
- const std::string& commonApiAddress,
- const std::string& interfaceName,
- const std::string& busName,
- const std::string& objectPath,
- const std::shared_ptr<CommonAPI::DBus::DBusProxyConnection>& dbusProxyConnection) {
- return std::make_shared<CommandInterfaceDBusProxy>(commonApiAddress, interfaceName, busName, objectPath, dbusProxyConnection);
-}
-
-__attribute__((constructor)) void registerCommandInterfaceDBusProxy(void) {
- CommonAPI::DBus::DBusFactory::registerProxyFactoryMethod(CommandInterface::getInterfaceId(),
- &createCommandInterfaceDBusProxy);
-}
-
-CommandInterfaceDBusProxy::CommandInterfaceDBusProxy(
- const std::string& commonApiAddress,
- const std::string& interfaceName,
- const std::string& busName,
- const std::string& objectPath,
- const std::shared_ptr<CommonAPI::DBus::DBusProxyConnection>& dbusProxyconnection):
- CommonAPI::DBus::DBusProxy(commonApiAddress, interfaceName, busName, objectPath, dbusProxyconnection)
-, numberOfMainConnectionsChanged_(*this, "NumberOfMainConnectionsChanged", ""),
- mainConnectionStateChanged_(*this, "MainConnectionStateChanged", "qi"),
- numberOfSourceClassesChanged_(*this, "NumberOfSourceClassesChanged", ""),
- sourceAdded_(*this, "SourceAdded", "(qs(ii)q)"),
- sourceRemoved_(*this, "SourceRemoved", "q"),
- mainSourceSoundPropertyChanged_(*this, "MainSourceSoundPropertyChanged", "q(in)"),
- sourceAvailabilityChanged_(*this, "SourceAvailabilityChanged", "q(ii)"),
- numberOfSinkClassesChanged_(*this, "NumberOfSinkClassesChanged", ""),
- sinkAdded_(*this, "SinkAdded", "(qs(ii)niq)"),
- sinkRemoved_(*this, "SinkRemoved", "q"),
- mainSinkSoundPropertyChanged_(*this, "MainSinkSoundPropertyChanged", "q(in)"),
- sinkAvailabilityChanged_(*this, "SinkAvailabilityChanged", "q(ii)"),
- volumeChanged_(*this, "VolumeChanged", "qn"),
- sinkMuteStateChanged_(*this, "SinkMuteStateChanged", "qi"),
- systemPropertyChanged_(*this, "SystemPropertyChanged", "(in)"),
- timingInformationChanged_(*this, "TimingInformationChanged", "qn"),
- sinkUpdated_(*this, "SinkUpdated", "qqa(in)"),
- sourceUpdated_(*this, "SourceUpdated", "qqa(in)"),
- sinkNotification_(*this, "SinkNotification", "q(in)"),
- sourceNotification_(*this, "SourceNotification", "q(in)"),
- mainSinkNotificationConfigurationChanged_(*this, "MainSinkNotificationConfigurationChanged", "q(iin)"),
- mainSourceNotificationConfigurationChanged_(*this, "MainSourceNotificationConfigurationChanged", "q(iin)")
- {
-}
-
-
-CommandInterfaceDBusProxy::NumberOfMainConnectionsChangedEvent& CommandInterfaceDBusProxy::getNumberOfMainConnectionsChangedEvent() {
- return numberOfMainConnectionsChanged_;
-}
-CommandInterfaceDBusProxy::MainConnectionStateChangedEvent& CommandInterfaceDBusProxy::getMainConnectionStateChangedEvent() {
- return mainConnectionStateChanged_;
-}
-CommandInterfaceDBusProxy::NumberOfSourceClassesChangedEvent& CommandInterfaceDBusProxy::getNumberOfSourceClassesChangedEvent() {
- return numberOfSourceClassesChanged_;
-}
-CommandInterfaceDBusProxy::SourceAddedEvent& CommandInterfaceDBusProxy::getSourceAddedEvent() {
- return sourceAdded_;
-}
-CommandInterfaceDBusProxy::SourceRemovedEvent& CommandInterfaceDBusProxy::getSourceRemovedEvent() {
- return sourceRemoved_;
-}
-CommandInterfaceDBusProxy::MainSourceSoundPropertyChangedEvent& CommandInterfaceDBusProxy::getMainSourceSoundPropertyChangedEvent() {
- return mainSourceSoundPropertyChanged_;
-}
-CommandInterfaceDBusProxy::SourceAvailabilityChangedEvent& CommandInterfaceDBusProxy::getSourceAvailabilityChangedEvent() {
- return sourceAvailabilityChanged_;
-}
-CommandInterfaceDBusProxy::NumberOfSinkClassesChangedEvent& CommandInterfaceDBusProxy::getNumberOfSinkClassesChangedEvent() {
- return numberOfSinkClassesChanged_;
-}
-CommandInterfaceDBusProxy::SinkAddedEvent& CommandInterfaceDBusProxy::getSinkAddedEvent() {
- return sinkAdded_;
-}
-CommandInterfaceDBusProxy::SinkRemovedEvent& CommandInterfaceDBusProxy::getSinkRemovedEvent() {
- return sinkRemoved_;
-}
-CommandInterfaceDBusProxy::MainSinkSoundPropertyChangedEvent& CommandInterfaceDBusProxy::getMainSinkSoundPropertyChangedEvent() {
- return mainSinkSoundPropertyChanged_;
-}
-CommandInterfaceDBusProxy::SinkAvailabilityChangedEvent& CommandInterfaceDBusProxy::getSinkAvailabilityChangedEvent() {
- return sinkAvailabilityChanged_;
-}
-CommandInterfaceDBusProxy::VolumeChangedEvent& CommandInterfaceDBusProxy::getVolumeChangedEvent() {
- return volumeChanged_;
-}
-CommandInterfaceDBusProxy::SinkMuteStateChangedEvent& CommandInterfaceDBusProxy::getSinkMuteStateChangedEvent() {
- return sinkMuteStateChanged_;
-}
-CommandInterfaceDBusProxy::SystemPropertyChangedEvent& CommandInterfaceDBusProxy::getSystemPropertyChangedEvent() {
- return systemPropertyChanged_;
-}
-CommandInterfaceDBusProxy::TimingInformationChangedEvent& CommandInterfaceDBusProxy::getTimingInformationChangedEvent() {
- return timingInformationChanged_;
-}
-CommandInterfaceDBusProxy::SinkUpdatedEvent& CommandInterfaceDBusProxy::getSinkUpdatedEvent() {
- return sinkUpdated_;
-}
-CommandInterfaceDBusProxy::SourceUpdatedEvent& CommandInterfaceDBusProxy::getSourceUpdatedEvent() {
- return sourceUpdated_;
-}
-CommandInterfaceDBusProxy::SinkNotificationEvent& CommandInterfaceDBusProxy::getSinkNotificationEvent() {
- return sinkNotification_;
-}
-CommandInterfaceDBusProxy::SourceNotificationEvent& CommandInterfaceDBusProxy::getSourceNotificationEvent() {
- return sourceNotification_;
-}
-CommandInterfaceDBusProxy::MainSinkNotificationConfigurationChangedEvent& CommandInterfaceDBusProxy::getMainSinkNotificationConfigurationChangedEvent() {
- return mainSinkNotificationConfigurationChanged_;
-}
-CommandInterfaceDBusProxy::MainSourceNotificationConfigurationChangedEvent& CommandInterfaceDBusProxy::getMainSourceNotificationConfigurationChangedEvent() {
- return mainSourceNotificationConfigurationChanged_;
-}
-
-void CommandInterfaceDBusProxy::Connect(const CommandInterface::am_sourceID_t& sourceID, const CommandInterface::am_sinkID_t& sinkID, CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result, CommandInterface::am_mainConnectionID_t& mainConnectionID) {
- CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<CommandInterface::am_sourceID_t, CommandInterface::am_sinkID_t>,
- CommonAPI::DBus::DBusSerializableArguments<CommandInterface::am_Error_e, CommandInterface::am_mainConnectionID_t> >::callMethodWithReply(
- *this,
- "Connect",
- "qq",
- sourceID, sinkID,
- callStatus
- , result, mainConnectionID);
-}
-std::future<CommonAPI::CallStatus> CommandInterfaceDBusProxy::ConnectAsync(const CommandInterface::am_sourceID_t& sourceID, const CommandInterface::am_sinkID_t& sinkID, ConnectAsyncCallback callback) {
- return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<CommandInterface::am_sourceID_t, CommandInterface::am_sinkID_t>,
- CommonAPI::DBus::DBusSerializableArguments<CommandInterface::am_Error_e, CommandInterface::am_mainConnectionID_t> >::callMethodAsync(
- *this,
- "Connect",
- "qq",
- sourceID, sinkID,
- std::move(callback));
-}
-void CommandInterfaceDBusProxy::Disconnect(const CommandInterface::am_mainConnectionID_t& mainConnectionID, CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result) {
- CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<CommandInterface::am_mainConnectionID_t>,
- CommonAPI::DBus::DBusSerializableArguments<CommandInterface::am_Error_e> >::callMethodWithReply(
- *this,
- "Disconnect",
- "q",
- mainConnectionID,
- callStatus
- , result);
-}
-std::future<CommonAPI::CallStatus> CommandInterfaceDBusProxy::DisconnectAsync(const CommandInterface::am_mainConnectionID_t& mainConnectionID, DisconnectAsyncCallback callback) {
- return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<CommandInterface::am_mainConnectionID_t>,
- CommonAPI::DBus::DBusSerializableArguments<CommandInterface::am_Error_e> >::callMethodAsync(
- *this,
- "Disconnect",
- "q",
- mainConnectionID,
- std::move(callback));
-}
-void CommandInterfaceDBusProxy::SetVolume(const CommandInterface::am_sinkID_t& sinkID, const CommandInterface::am_mainVolume_t& volume, CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result) {
- CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<CommandInterface::am_sinkID_t, CommandInterface::am_mainVolume_t>,
- CommonAPI::DBus::DBusSerializableArguments<CommandInterface::am_Error_e> >::callMethodWithReply(
- *this,
- "SetVolume",
- "qn",
- sinkID, volume,
- callStatus
- , result);
-}
-std::future<CommonAPI::CallStatus> CommandInterfaceDBusProxy::SetVolumeAsync(const CommandInterface::am_sinkID_t& sinkID, const CommandInterface::am_mainVolume_t& volume, SetVolumeAsyncCallback callback) {
- return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<CommandInterface::am_sinkID_t, CommandInterface::am_mainVolume_t>,
- CommonAPI::DBus::DBusSerializableArguments<CommandInterface::am_Error_e> >::callMethodAsync(
- *this,
- "SetVolume",
- "qn",
- sinkID, volume,
- std::move(callback));
-}
-void CommandInterfaceDBusProxy::VolumeStep(const CommandInterface::am_sinkID_t& sinkID, const CommandInterface::am_mainVolume_t& volumeStep, CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result) {
- CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<CommandInterface::am_sinkID_t, CommandInterface::am_mainVolume_t>,
- CommonAPI::DBus::DBusSerializableArguments<CommandInterface::am_Error_e> >::callMethodWithReply(
- *this,
- "VolumeStep",
- "qn",
- sinkID, volumeStep,
- callStatus
- , result);
-}
-std::future<CommonAPI::CallStatus> CommandInterfaceDBusProxy::VolumeStepAsync(const CommandInterface::am_sinkID_t& sinkID, const CommandInterface::am_mainVolume_t& volumeStep, VolumeStepAsyncCallback callback) {
- return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<CommandInterface::am_sinkID_t, CommandInterface::am_mainVolume_t>,
- CommonAPI::DBus::DBusSerializableArguments<CommandInterface::am_Error_e> >::callMethodAsync(
- *this,
- "VolumeStep",
- "qn",
- sinkID, volumeStep,
- std::move(callback));
-}
-void CommandInterfaceDBusProxy::SetSinkMuteState(const CommandInterface::am_sinkID_t& sinkID, const CommandInterface::am_MuteState_e& muteState, CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result) {
- CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<CommandInterface::am_sinkID_t, CommandInterface::am_MuteState_e>,
- CommonAPI::DBus::DBusSerializableArguments<CommandInterface::am_Error_e> >::callMethodWithReply(
- *this,
- "SetSinkMuteState",
- "qi",
- sinkID, muteState,
- callStatus
- , result);
-}
-std::future<CommonAPI::CallStatus> CommandInterfaceDBusProxy::SetSinkMuteStateAsync(const CommandInterface::am_sinkID_t& sinkID, const CommandInterface::am_MuteState_e& muteState, SetSinkMuteStateAsyncCallback callback) {
- return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<CommandInterface::am_sinkID_t, CommandInterface::am_MuteState_e>,
- CommonAPI::DBus::DBusSerializableArguments<CommandInterface::am_Error_e> >::callMethodAsync(
- *this,
- "SetSinkMuteState",
- "qi",
- sinkID, muteState,
- std::move(callback));
-}
-void CommandInterfaceDBusProxy::SetMainSinkSoundProperty(const CommandInterface::am_sinkID_t& sinkID, const CommandInterface::am_MainSoundProperty_s& soundProperty, CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result) {
- CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<CommandInterface::am_sinkID_t, CommandInterface::am_MainSoundProperty_s>,
- CommonAPI::DBus::DBusSerializableArguments<CommandInterface::am_Error_e> >::callMethodWithReply(
- *this,
- "SetMainSinkSoundProperty",
- "q(in)",
- sinkID, soundProperty,
- callStatus
- , result);
-}
-std::future<CommonAPI::CallStatus> CommandInterfaceDBusProxy::SetMainSinkSoundPropertyAsync(const CommandInterface::am_sinkID_t& sinkID, const CommandInterface::am_MainSoundProperty_s& soundProperty, SetMainSinkSoundPropertyAsyncCallback callback) {
- return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<CommandInterface::am_sinkID_t, CommandInterface::am_MainSoundProperty_s>,
- CommonAPI::DBus::DBusSerializableArguments<CommandInterface::am_Error_e> >::callMethodAsync(
- *this,
- "SetMainSinkSoundProperty",
- "q(in)",
- sinkID, soundProperty,
- std::move(callback));
-}
-void CommandInterfaceDBusProxy::SetMainSourceSoundProperty(const CommandInterface::am_sourceID_t& sourceID, const CommandInterface::am_MainSoundProperty_s& soundProperty, CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result) {
- CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<CommandInterface::am_sourceID_t, CommandInterface::am_MainSoundProperty_s>,
- CommonAPI::DBus::DBusSerializableArguments<CommandInterface::am_Error_e> >::callMethodWithReply(
- *this,
- "SetMainSourceSoundProperty",
- "q(in)",
- sourceID, soundProperty,
- callStatus
- , result);
-}
-std::future<CommonAPI::CallStatus> CommandInterfaceDBusProxy::SetMainSourceSoundPropertyAsync(const CommandInterface::am_sourceID_t& sourceID, const CommandInterface::am_MainSoundProperty_s& soundProperty, SetMainSourceSoundPropertyAsyncCallback callback) {
- return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<CommandInterface::am_sourceID_t, CommandInterface::am_MainSoundProperty_s>,
- CommonAPI::DBus::DBusSerializableArguments<CommandInterface::am_Error_e> >::callMethodAsync(
- *this,
- "SetMainSourceSoundProperty",
- "q(in)",
- sourceID, soundProperty,
- std::move(callback));
-}
-void CommandInterfaceDBusProxy::SetSystemProperty(const CommandInterface::am_SystemProperty_s& soundProperty, CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result) {
- CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<CommandInterface::am_SystemProperty_s>,
- CommonAPI::DBus::DBusSerializableArguments<CommandInterface::am_Error_e> >::callMethodWithReply(
- *this,
- "SetSystemProperty",
- "(in)",
- soundProperty,
- callStatus
- , result);
-}
-std::future<CommonAPI::CallStatus> CommandInterfaceDBusProxy::SetSystemPropertyAsync(const CommandInterface::am_SystemProperty_s& soundProperty, SetSystemPropertyAsyncCallback callback) {
- return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<CommandInterface::am_SystemProperty_s>,
- CommonAPI::DBus::DBusSerializableArguments<CommandInterface::am_Error_e> >::callMethodAsync(
- *this,
- "SetSystemProperty",
- "(in)",
- soundProperty,
- std::move(callback));
-}
-void CommandInterfaceDBusProxy::GetListMainConnections(CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result, CommandInterface::am_MainConnectionType_l& listConnections) {
- CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<>,
- CommonAPI::DBus::DBusSerializableArguments<CommandInterface::am_Error_e, CommandInterface::am_MainConnectionType_l> >::callMethodWithReply(
- *this,
- "GetListMainConnections",
- "",
- callStatus
- , result, listConnections);
-}
-std::future<CommonAPI::CallStatus> CommandInterfaceDBusProxy::GetListMainConnectionsAsync(GetListMainConnectionsAsyncCallback callback) {
- return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<>,
- CommonAPI::DBus::DBusSerializableArguments<CommandInterface::am_Error_e, CommandInterface::am_MainConnectionType_l> >::callMethodAsync(
- *this,
- "GetListMainConnections",
- "",
- std::move(callback));
-}
-void CommandInterfaceDBusProxy::GetListMainSinks(CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result, CommandInterface::am_SinkType_l& listMainSinks) {
- CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<>,
- CommonAPI::DBus::DBusSerializableArguments<CommandInterface::am_Error_e, CommandInterface::am_SinkType_l> >::callMethodWithReply(
- *this,
- "GetListMainSinks",
- "",
- callStatus
- , result, listMainSinks);
-}
-std::future<CommonAPI::CallStatus> CommandInterfaceDBusProxy::GetListMainSinksAsync(GetListMainSinksAsyncCallback callback) {
- return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<>,
- CommonAPI::DBus::DBusSerializableArguments<CommandInterface::am_Error_e, CommandInterface::am_SinkType_l> >::callMethodAsync(
- *this,
- "GetListMainSinks",
- "",
- std::move(callback));
-}
-void CommandInterfaceDBusProxy::GetListMainSources(CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result, CommandInterface::am_SourceType_l& listMainSources) {
- CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<>,
- CommonAPI::DBus::DBusSerializableArguments<CommandInterface::am_Error_e, CommandInterface::am_SourceType_l> >::callMethodWithReply(
- *this,
- "GetListMainSources",
- "",
- callStatus
- , result, listMainSources);
-}
-std::future<CommonAPI::CallStatus> CommandInterfaceDBusProxy::GetListMainSourcesAsync(GetListMainSourcesAsyncCallback callback) {
- return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<>,
- CommonAPI::DBus::DBusSerializableArguments<CommandInterface::am_Error_e, CommandInterface::am_SourceType_l> >::callMethodAsync(
- *this,
- "GetListMainSources",
- "",
- std::move(callback));
-}
-void CommandInterfaceDBusProxy::GetListMainSinkSoundProperties(const CommandInterface::am_sinkID_t& sinkID, CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result, CommandInterface::am_MainSoundProperty_l& listSoundProperties) {
- CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<CommandInterface::am_sinkID_t>,
- CommonAPI::DBus::DBusSerializableArguments<CommandInterface::am_Error_e, CommandInterface::am_MainSoundProperty_l> >::callMethodWithReply(
- *this,
- "GetListMainSinkSoundProperties",
- "q",
- sinkID,
- callStatus
- , result, listSoundProperties);
-}
-std::future<CommonAPI::CallStatus> CommandInterfaceDBusProxy::GetListMainSinkSoundPropertiesAsync(const CommandInterface::am_sinkID_t& sinkID, GetListMainSinkSoundPropertiesAsyncCallback callback) {
- return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<CommandInterface::am_sinkID_t>,
- CommonAPI::DBus::DBusSerializableArguments<CommandInterface::am_Error_e, CommandInterface::am_MainSoundProperty_l> >::callMethodAsync(
- *this,
- "GetListMainSinkSoundProperties",
- "q",
- sinkID,
- std::move(callback));
-}
-void CommandInterfaceDBusProxy::GetListMainSourceSoundProperties(const CommandInterface::am_sourceID_t& sourceID, CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result, CommandInterface::am_MainSoundProperty_l& listSourceProperties) {
- CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<CommandInterface::am_sourceID_t>,
- CommonAPI::DBus::DBusSerializableArguments<CommandInterface::am_Error_e, CommandInterface::am_MainSoundProperty_l> >::callMethodWithReply(
- *this,
- "GetListMainSourceSoundProperties",
- "q",
- sourceID,
- callStatus
- , result, listSourceProperties);
-}
-std::future<CommonAPI::CallStatus> CommandInterfaceDBusProxy::GetListMainSourceSoundPropertiesAsync(const CommandInterface::am_sourceID_t& sourceID, GetListMainSourceSoundPropertiesAsyncCallback callback) {
- return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<CommandInterface::am_sourceID_t>,
- CommonAPI::DBus::DBusSerializableArguments<CommandInterface::am_Error_e, CommandInterface::am_MainSoundProperty_l> >::callMethodAsync(
- *this,
- "GetListMainSourceSoundProperties",
- "q",
- sourceID,
- std::move(callback));
-}
-void CommandInterfaceDBusProxy::GetListSourceClasses(CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result, CommandInterface::am_SourceClass_l& listSourceClasses) {
- CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<>,
- CommonAPI::DBus::DBusSerializableArguments<CommandInterface::am_Error_e, CommandInterface::am_SourceClass_l> >::callMethodWithReply(
- *this,
- "GetListSourceClasses",
- "",
- callStatus
- , result, listSourceClasses);
-}
-std::future<CommonAPI::CallStatus> CommandInterfaceDBusProxy::GetListSourceClassesAsync(GetListSourceClassesAsyncCallback callback) {
- return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<>,
- CommonAPI::DBus::DBusSerializableArguments<CommandInterface::am_Error_e, CommandInterface::am_SourceClass_l> >::callMethodAsync(
- *this,
- "GetListSourceClasses",
- "",
- std::move(callback));
-}
-void CommandInterfaceDBusProxy::GetListSinkClasses(CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result, CommandInterface::am_SinkClass_l& listSinkClasses) {
- CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<>,
- CommonAPI::DBus::DBusSerializableArguments<CommandInterface::am_Error_e, CommandInterface::am_SinkClass_l> >::callMethodWithReply(
- *this,
- "GetListSinkClasses",
- "",
- callStatus
- , result, listSinkClasses);
-}
-std::future<CommonAPI::CallStatus> CommandInterfaceDBusProxy::GetListSinkClassesAsync(GetListSinkClassesAsyncCallback callback) {
- return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<>,
- CommonAPI::DBus::DBusSerializableArguments<CommandInterface::am_Error_e, CommandInterface::am_SinkClass_l> >::callMethodAsync(
- *this,
- "GetListSinkClasses",
- "",
- std::move(callback));
-}
-void CommandInterfaceDBusProxy::GetListSystemProperties(CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result, CommandInterface::am_SystemProperty_l& listSystemProperties) {
- CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<>,
- CommonAPI::DBus::DBusSerializableArguments<CommandInterface::am_Error_e, CommandInterface::am_SystemProperty_l> >::callMethodWithReply(
- *this,
- "GetListSystemProperties",
- "",
- callStatus
- , result, listSystemProperties);
-}
-std::future<CommonAPI::CallStatus> CommandInterfaceDBusProxy::GetListSystemPropertiesAsync(GetListSystemPropertiesAsyncCallback callback) {
- return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<>,
- CommonAPI::DBus::DBusSerializableArguments<CommandInterface::am_Error_e, CommandInterface::am_SystemProperty_l> >::callMethodAsync(
- *this,
- "GetListSystemProperties",
- "",
- std::move(callback));
-}
-void CommandInterfaceDBusProxy::GetTimingInformation(const CommandInterface::am_mainConnectionID_t& mainConnectionID, CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result, CommandInterface::am_timeSync_t& delay) {
- CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<CommandInterface::am_mainConnectionID_t>,
- CommonAPI::DBus::DBusSerializableArguments<CommandInterface::am_Error_e, CommandInterface::am_timeSync_t> >::callMethodWithReply(
- *this,
- "GetTimingInformation",
- "q",
- mainConnectionID,
- callStatus
- , result, delay);
-}
-std::future<CommonAPI::CallStatus> CommandInterfaceDBusProxy::GetTimingInformationAsync(const CommandInterface::am_mainConnectionID_t& mainConnectionID, GetTimingInformationAsyncCallback callback) {
- return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<CommandInterface::am_mainConnectionID_t>,
- CommonAPI::DBus::DBusSerializableArguments<CommandInterface::am_Error_e, CommandInterface::am_timeSync_t> >::callMethodAsync(
- *this,
- "GetTimingInformation",
- "q",
- mainConnectionID,
- std::move(callback));
-}
-
-void CommandInterfaceDBusProxy::getOwnVersion(uint16_t& ownVersionMajor, uint16_t& ownVersionMinor) const {
- ownVersionMajor = 0;
- ownVersionMinor = 1;
-}
-
-} // namespace audiomanager
-} // namespace genivi
-} // namespace org
diff --git a/PluginCommandInterfaceCAPI/src-gen/org/genivi/audiomanager/CommandInterfaceDBusProxy.h b/PluginCommandInterfaceCAPI/src-gen/org/genivi/audiomanager/CommandInterfaceDBusProxy.h
deleted file mode 100644
index 719692b..0000000
--- a/PluginCommandInterfaceCAPI/src-gen/org/genivi/audiomanager/CommandInterfaceDBusProxy.h
+++ /dev/null
@@ -1,157 +0,0 @@
-/*
-* This file was generated by the CommonAPI Generators.
-*
- * Copyright (c) 2012 BMW
- *
- * \author Aleksandar Donchev, aleksander.donchev@partner.bmw.de BMW 2013
- *
- * \copyright
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction,
- * including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
- * subject to the following conditions:
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
- * THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- *
- * For further information see http://www.genivi.org/.
-*/
-#ifndef ORG_GENIVI_AUDIOMANAGER_Command_Interface_DBUS_PROXY_H_
-#define ORG_GENIVI_AUDIOMANAGER_Command_Interface_DBUS_PROXY_H_
-
-#include <org/genivi/audiomanager/CommandInterfaceProxyBase.h>
-
-#define COMMONAPI_INTERNAL_COMPILATION
-
-#include <CommonAPI/DBus/DBusFactory.h>
-#include <CommonAPI/DBus/DBusProxy.h>
-#include <CommonAPI/DBus/DBusEvent.h>
-
-#undef COMMONAPI_INTERNAL_COMPILATION
-
-#include <string>
-
-namespace org {
-namespace genivi {
-namespace audiomanager {
-
-class CommandInterfaceDBusProxy: virtual public CommandInterfaceProxyBase, virtual public CommonAPI::DBus::DBusProxy {
- public:
- CommandInterfaceDBusProxy(
- const std::string& commonApiAddress,
- const std::string& interfaceName,
- const std::string& busName,
- const std::string& objectPath,
- const std::shared_ptr<CommonAPI::DBus::DBusProxyConnection>& dbusProxyconnection);
-
- virtual ~CommandInterfaceDBusProxy() { }
-
-
- virtual NumberOfMainConnectionsChangedEvent& getNumberOfMainConnectionsChangedEvent();
- virtual MainConnectionStateChangedEvent& getMainConnectionStateChangedEvent();
- virtual NumberOfSourceClassesChangedEvent& getNumberOfSourceClassesChangedEvent();
- virtual SourceAddedEvent& getSourceAddedEvent();
- virtual SourceRemovedEvent& getSourceRemovedEvent();
- virtual MainSourceSoundPropertyChangedEvent& getMainSourceSoundPropertyChangedEvent();
- virtual SourceAvailabilityChangedEvent& getSourceAvailabilityChangedEvent();
- virtual NumberOfSinkClassesChangedEvent& getNumberOfSinkClassesChangedEvent();
- virtual SinkAddedEvent& getSinkAddedEvent();
- virtual SinkRemovedEvent& getSinkRemovedEvent();
- virtual MainSinkSoundPropertyChangedEvent& getMainSinkSoundPropertyChangedEvent();
- virtual SinkAvailabilityChangedEvent& getSinkAvailabilityChangedEvent();
- virtual VolumeChangedEvent& getVolumeChangedEvent();
- virtual SinkMuteStateChangedEvent& getSinkMuteStateChangedEvent();
- virtual SystemPropertyChangedEvent& getSystemPropertyChangedEvent();
- virtual TimingInformationChangedEvent& getTimingInformationChangedEvent();
- virtual SinkUpdatedEvent& getSinkUpdatedEvent();
- virtual SourceUpdatedEvent& getSourceUpdatedEvent();
- virtual SinkNotificationEvent& getSinkNotificationEvent();
- virtual SourceNotificationEvent& getSourceNotificationEvent();
- virtual MainSinkNotificationConfigurationChangedEvent& getMainSinkNotificationConfigurationChangedEvent();
- virtual MainSourceNotificationConfigurationChangedEvent& getMainSourceNotificationConfigurationChangedEvent();
-
-
- virtual void Connect(const CommandInterface::am_sourceID_t& sourceID, const CommandInterface::am_sinkID_t& sinkID, CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result, CommandInterface::am_mainConnectionID_t& mainConnectionID);
- virtual std::future<CommonAPI::CallStatus> ConnectAsync(const CommandInterface::am_sourceID_t& sourceID, const CommandInterface::am_sinkID_t& sinkID, ConnectAsyncCallback callback);
-
- virtual void Disconnect(const CommandInterface::am_mainConnectionID_t& mainConnectionID, CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result);
- virtual std::future<CommonAPI::CallStatus> DisconnectAsync(const CommandInterface::am_mainConnectionID_t& mainConnectionID, DisconnectAsyncCallback callback);
-
- virtual void SetVolume(const CommandInterface::am_sinkID_t& sinkID, const CommandInterface::am_mainVolume_t& volume, CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result);
- virtual std::future<CommonAPI::CallStatus> SetVolumeAsync(const CommandInterface::am_sinkID_t& sinkID, const CommandInterface::am_mainVolume_t& volume, SetVolumeAsyncCallback callback);
-
- virtual void VolumeStep(const CommandInterface::am_sinkID_t& sinkID, const CommandInterface::am_mainVolume_t& volumeStep, CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result);
- virtual std::future<CommonAPI::CallStatus> VolumeStepAsync(const CommandInterface::am_sinkID_t& sinkID, const CommandInterface::am_mainVolume_t& volumeStep, VolumeStepAsyncCallback callback);
-
- virtual void SetSinkMuteState(const CommandInterface::am_sinkID_t& sinkID, const CommandInterface::am_MuteState_e& muteState, CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result);
- virtual std::future<CommonAPI::CallStatus> SetSinkMuteStateAsync(const CommandInterface::am_sinkID_t& sinkID, const CommandInterface::am_MuteState_e& muteState, SetSinkMuteStateAsyncCallback callback);
-
- virtual void SetMainSinkSoundProperty(const CommandInterface::am_sinkID_t& sinkID, const CommandInterface::am_MainSoundProperty_s& soundProperty, CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result);
- virtual std::future<CommonAPI::CallStatus> SetMainSinkSoundPropertyAsync(const CommandInterface::am_sinkID_t& sinkID, const CommandInterface::am_MainSoundProperty_s& soundProperty, SetMainSinkSoundPropertyAsyncCallback callback);
-
- virtual void SetMainSourceSoundProperty(const CommandInterface::am_sourceID_t& sourceID, const CommandInterface::am_MainSoundProperty_s& soundProperty, CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result);
- virtual std::future<CommonAPI::CallStatus> SetMainSourceSoundPropertyAsync(const CommandInterface::am_sourceID_t& sourceID, const CommandInterface::am_MainSoundProperty_s& soundProperty, SetMainSourceSoundPropertyAsyncCallback callback);
-
- virtual void SetSystemProperty(const CommandInterface::am_SystemProperty_s& soundProperty, CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result);
- virtual std::future<CommonAPI::CallStatus> SetSystemPropertyAsync(const CommandInterface::am_SystemProperty_s& soundProperty, SetSystemPropertyAsyncCallback callback);
-
- virtual void GetListMainConnections(CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result, CommandInterface::am_MainConnectionType_l& listConnections);
- virtual std::future<CommonAPI::CallStatus> GetListMainConnectionsAsync(GetListMainConnectionsAsyncCallback callback);
-
- virtual void GetListMainSinks(CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result, CommandInterface::am_SinkType_l& listMainSinks);
- virtual std::future<CommonAPI::CallStatus> GetListMainSinksAsync(GetListMainSinksAsyncCallback callback);
-
- virtual void GetListMainSources(CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result, CommandInterface::am_SourceType_l& listMainSources);
- virtual std::future<CommonAPI::CallStatus> GetListMainSourcesAsync(GetListMainSourcesAsyncCallback callback);
-
- virtual void GetListMainSinkSoundProperties(const CommandInterface::am_sinkID_t& sinkID, CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result, CommandInterface::am_MainSoundProperty_l& listSoundProperties);
- virtual std::future<CommonAPI::CallStatus> GetListMainSinkSoundPropertiesAsync(const CommandInterface::am_sinkID_t& sinkID, GetListMainSinkSoundPropertiesAsyncCallback callback);
-
- virtual void GetListMainSourceSoundProperties(const CommandInterface::am_sourceID_t& sourceID, CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result, CommandInterface::am_MainSoundProperty_l& listSourceProperties);
- virtual std::future<CommonAPI::CallStatus> GetListMainSourceSoundPropertiesAsync(const CommandInterface::am_sourceID_t& sourceID, GetListMainSourceSoundPropertiesAsyncCallback callback);
-
- virtual void GetListSourceClasses(CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result, CommandInterface::am_SourceClass_l& listSourceClasses);
- virtual std::future<CommonAPI::CallStatus> GetListSourceClassesAsync(GetListSourceClassesAsyncCallback callback);
-
- virtual void GetListSinkClasses(CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result, CommandInterface::am_SinkClass_l& listSinkClasses);
- virtual std::future<CommonAPI::CallStatus> GetListSinkClassesAsync(GetListSinkClassesAsyncCallback callback);
-
- virtual void GetListSystemProperties(CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result, CommandInterface::am_SystemProperty_l& listSystemProperties);
- virtual std::future<CommonAPI::CallStatus> GetListSystemPropertiesAsync(GetListSystemPropertiesAsyncCallback callback);
-
- virtual void GetTimingInformation(const CommandInterface::am_mainConnectionID_t& mainConnectionID, CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result, CommandInterface::am_timeSync_t& delay);
- virtual std::future<CommonAPI::CallStatus> GetTimingInformationAsync(const CommandInterface::am_mainConnectionID_t& mainConnectionID, GetTimingInformationAsyncCallback callback);
-
- virtual void getOwnVersion(uint16_t& ownVersionMajor, uint16_t& ownVersionMinor) const;
-
- private:
-
- CommonAPI::DBus::DBusEvent<NumberOfMainConnectionsChangedEvent> numberOfMainConnectionsChanged_;
- CommonAPI::DBus::DBusEvent<MainConnectionStateChangedEvent> mainConnectionStateChanged_;
- CommonAPI::DBus::DBusEvent<NumberOfSourceClassesChangedEvent> numberOfSourceClassesChanged_;
- CommonAPI::DBus::DBusEvent<SourceAddedEvent> sourceAdded_;
- CommonAPI::DBus::DBusEvent<SourceRemovedEvent> sourceRemoved_;
- CommonAPI::DBus::DBusEvent<MainSourceSoundPropertyChangedEvent> mainSourceSoundPropertyChanged_;
- CommonAPI::DBus::DBusEvent<SourceAvailabilityChangedEvent> sourceAvailabilityChanged_;
- CommonAPI::DBus::DBusEvent<NumberOfSinkClassesChangedEvent> numberOfSinkClassesChanged_;
- CommonAPI::DBus::DBusEvent<SinkAddedEvent> sinkAdded_;
- CommonAPI::DBus::DBusEvent<SinkRemovedEvent> sinkRemoved_;
- CommonAPI::DBus::DBusEvent<MainSinkSoundPropertyChangedEvent> mainSinkSoundPropertyChanged_;
- CommonAPI::DBus::DBusEvent<SinkAvailabilityChangedEvent> sinkAvailabilityChanged_;
- CommonAPI::DBus::DBusEvent<VolumeChangedEvent> volumeChanged_;
- CommonAPI::DBus::DBusEvent<SinkMuteStateChangedEvent> sinkMuteStateChanged_;
- CommonAPI::DBus::DBusEvent<SystemPropertyChangedEvent> systemPropertyChanged_;
- CommonAPI::DBus::DBusEvent<TimingInformationChangedEvent> timingInformationChanged_;
- CommonAPI::DBus::DBusEvent<SinkUpdatedEvent> sinkUpdated_;
- CommonAPI::DBus::DBusEvent<SourceUpdatedEvent> sourceUpdated_;
- CommonAPI::DBus::DBusEvent<SinkNotificationEvent> sinkNotification_;
- CommonAPI::DBus::DBusEvent<SourceNotificationEvent> sourceNotification_;
- CommonAPI::DBus::DBusEvent<MainSinkNotificationConfigurationChangedEvent> mainSinkNotificationConfigurationChanged_;
- CommonAPI::DBus::DBusEvent<MainSourceNotificationConfigurationChangedEvent> mainSourceNotificationConfigurationChanged_;
-};
-
-} // namespace audiomanager
-} // namespace genivi
-} // namespace org
-
-#endif // ORG_GENIVI_AUDIOMANAGER_Command_Interface_DBUS_PROXY_H_
diff --git a/PluginCommandInterfaceCAPI/src-gen/org/genivi/audiomanager/CommandInterfaceDBusStubAdapter.cpp b/PluginCommandInterfaceCAPI/src-gen/org/genivi/audiomanager/CommandInterfaceDBusStubAdapter.cpp
deleted file mode 100644
index d796464..0000000
--- a/PluginCommandInterfaceCAPI/src-gen/org/genivi/audiomanager/CommandInterfaceDBusStubAdapter.cpp
+++ /dev/null
@@ -1,521 +0,0 @@
-/*
-* This file was generated by the CommonAPI Generators.
-*
- * Copyright (c) 2012 BMW
- *
- * \author Aleksandar Donchev, aleksander.donchev@partner.bmw.de BMW 2013
- *
- * \copyright
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction,
- * including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
- * subject to the following conditions:
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
- * THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- *
- * For further information see http://www.genivi.org/.
-*/
-#include "CommandInterfaceDBusStubAdapter.h"
-#include <org/genivi/audiomanager/CommandInterface.h>
-
-namespace org {
-namespace genivi {
-namespace audiomanager {
-
-std::shared_ptr<CommonAPI::DBus::DBusStubAdapter> createCommandInterfaceDBusStubAdapter(
- const std::string& commonApiAddress,
- const std::string& interfaceName,
- const std::string& busName,
- const std::string& objectPath,
- const std::shared_ptr<CommonAPI::DBus::DBusProxyConnection>& dbusProxyConnection,
- const std::shared_ptr<CommonAPI::StubBase>& stubBase) {
- return std::make_shared<CommandInterfaceDBusStubAdapter>(commonApiAddress, interfaceName, busName, objectPath, dbusProxyConnection, stubBase);
-}
-
-__attribute__((constructor)) void registerCommandInterfaceDBusStubAdapter(void) {
- CommonAPI::DBus::DBusFactory::registerAdapterFactoryMethod(CommandInterface::getInterfaceId(),
- &createCommandInterfaceDBusStubAdapter);
-}
-
-CommandInterfaceDBusStubAdapter::CommandInterfaceDBusStubAdapter(
- const std::string& commonApiAddress,
- const std::string& dbusInterfaceName,
- const std::string& dbusBusName,
- const std::string& dbusObjectPath,
- const std::shared_ptr<CommonAPI::DBus::DBusProxyConnection>& dbusConnection,
- const std::shared_ptr<CommonAPI::StubBase>& stub):
- CommandInterfaceDBusStubAdapterHelper(commonApiAddress, dbusInterfaceName, dbusBusName, dbusObjectPath, dbusConnection, std::dynamic_pointer_cast<CommandInterfaceStub>(stub)) {
-}
-
-const char* CommandInterfaceDBusStubAdapter::getMethodsDBusIntrospectionXmlData() const {
- return
- "<signal name=\"NumberOfMainConnectionsChanged\">\n"
- "</signal>\n"
- "<signal name=\"MainConnectionStateChanged\">\n"
- "<arg name=\"connectionID\" type=\"q\" />\n"
- "<arg name=\"connectionState\" type=\"i\" />\n"
- "</signal>\n"
- "<signal name=\"NumberOfSourceClassesChanged\">\n"
- "</signal>\n"
- "<signal name=\"SourceAdded\">\n"
- "<arg name=\"newSource\" type=\"(qs(ii)q)\" />\n"
- "</signal>\n"
- "<signal name=\"SourceRemoved\">\n"
- "<arg name=\"removedSourceID\" type=\"q\" />\n"
- "</signal>\n"
- "<signal name=\"MainSourceSoundPropertyChanged\">\n"
- "<arg name=\"sourceID\" type=\"q\" />\n"
- "<arg name=\"SoundProperty\" type=\"(in)\" />\n"
- "</signal>\n"
- "<signal name=\"SourceAvailabilityChanged\">\n"
- "<arg name=\"sourceID\" type=\"q\" />\n"
- "<arg name=\"availability\" type=\"(ii)\" />\n"
- "</signal>\n"
- "<signal name=\"NumberOfSinkClassesChanged\">\n"
- "</signal>\n"
- "<signal name=\"SinkAdded\">\n"
- "<arg name=\"newSink\" type=\"(qs(ii)niq)\" />\n"
- "</signal>\n"
- "<signal name=\"SinkRemoved\">\n"
- "<arg name=\"removedSinkID\" type=\"q\" />\n"
- "</signal>\n"
- "<signal name=\"MainSinkSoundPropertyChanged\">\n"
- "<arg name=\"sinkID\" type=\"q\" />\n"
- "<arg name=\"SoundProperty\" type=\"(in)\" />\n"
- "</signal>\n"
- "<signal name=\"SinkAvailabilityChanged\">\n"
- "<arg name=\"sinkID\" type=\"q\" />\n"
- "<arg name=\"availability\" type=\"(ii)\" />\n"
- "</signal>\n"
- "<signal name=\"VolumeChanged\">\n"
- "<arg name=\"sinkID\" type=\"q\" />\n"
- "<arg name=\"volume\" type=\"n\" />\n"
- "</signal>\n"
- "<signal name=\"SinkMuteStateChanged\">\n"
- "<arg name=\"sinkID\" type=\"q\" />\n"
- "<arg name=\"muteState\" type=\"i\" />\n"
- "</signal>\n"
- "<signal name=\"SystemPropertyChanged\">\n"
- "<arg name=\"SystemProperty\" type=\"(in)\" />\n"
- "</signal>\n"
- "<signal name=\"TimingInformationChanged\">\n"
- "<arg name=\"mainConnection\" type=\"q\" />\n"
- "<arg name=\"time\" type=\"n\" />\n"
- "</signal>\n"
- "<signal name=\"SinkUpdated\">\n"
- "<arg name=\"sinkID\" type=\"q\" />\n"
- "<arg name=\"sinkClassID\" type=\"q\" />\n"
- "<arg name=\"listMainSoundProperties\" type=\"a(in)\" />\n"
- "</signal>\n"
- "<signal name=\"SourceUpdated\">\n"
- "<arg name=\"sourceID\" type=\"q\" />\n"
- "<arg name=\"sourceClassID\" type=\"q\" />\n"
- "<arg name=\"listMainSoundProperties\" type=\"a(in)\" />\n"
- "</signal>\n"
- "<signal name=\"SinkNotification\">\n"
- "<arg name=\"sinkID\" type=\"q\" />\n"
- "<arg name=\"notification\" type=\"(in)\" />\n"
- "</signal>\n"
- "<signal name=\"SourceNotification\">\n"
- "<arg name=\"sourceID\" type=\"q\" />\n"
- "<arg name=\"notification\" type=\"(in)\" />\n"
- "</signal>\n"
- "<signal name=\"MainSinkNotificationConfigurationChanged\">\n"
- "<arg name=\"sinkID\" type=\"q\" />\n"
- "<arg name=\"mainNotificationConfiguration\" type=\"(iin)\" />\n"
- "</signal>\n"
- "<signal name=\"MainSourceNotificationConfigurationChanged\">\n"
- "<arg name=\"sourceID\" type=\"q\" />\n"
- "<arg name=\"mainNotificationConfiguration\" type=\"(iin)\" />\n"
- "</signal>\n"
- "<method name=\"Connect\">\n"
- "<arg name=\"sourceID\" type=\"q\" direction=\"in\" />\n"
- "<arg name=\"sinkID\" type=\"q\" direction=\"in\" />\n"
- "<arg name=\"result\" type=\"i\" direction=\"out\" />\n"
- "<arg name=\"mainConnectionID\" type=\"q\" direction=\"out\" />\n"
- "</method>\n"
- "<method name=\"Disconnect\">\n"
- "<arg name=\"mainConnectionID\" type=\"q\" direction=\"in\" />\n"
- "<arg name=\"result\" type=\"i\" direction=\"out\" />\n"
- "</method>\n"
- "<method name=\"SetVolume\">\n"
- "<arg name=\"sinkID\" type=\"q\" direction=\"in\" />\n"
- "<arg name=\"volume\" type=\"n\" direction=\"in\" />\n"
- "<arg name=\"result\" type=\"i\" direction=\"out\" />\n"
- "</method>\n"
- "<method name=\"VolumeStep\">\n"
- "<arg name=\"sinkID\" type=\"q\" direction=\"in\" />\n"
- "<arg name=\"volumeStep\" type=\"n\" direction=\"in\" />\n"
- "<arg name=\"result\" type=\"i\" direction=\"out\" />\n"
- "</method>\n"
- "<method name=\"SetSinkMuteState\">\n"
- "<arg name=\"sinkID\" type=\"q\" direction=\"in\" />\n"
- "<arg name=\"muteState\" type=\"i\" direction=\"in\" />\n"
- "<arg name=\"result\" type=\"i\" direction=\"out\" />\n"
- "</method>\n"
- "<method name=\"SetMainSinkSoundProperty\">\n"
- "<arg name=\"sinkID\" type=\"q\" direction=\"in\" />\n"
- "<arg name=\"soundProperty\" type=\"(in)\" direction=\"in\" />\n"
- "<arg name=\"result\" type=\"i\" direction=\"out\" />\n"
- "</method>\n"
- "<method name=\"SetMainSourceSoundProperty\">\n"
- "<arg name=\"sourceID\" type=\"q\" direction=\"in\" />\n"
- "<arg name=\"soundProperty\" type=\"(in)\" direction=\"in\" />\n"
- "<arg name=\"result\" type=\"i\" direction=\"out\" />\n"
- "</method>\n"
- "<method name=\"SetSystemProperty\">\n"
- "<arg name=\"soundProperty\" type=\"(in)\" direction=\"in\" />\n"
- "<arg name=\"result\" type=\"i\" direction=\"out\" />\n"
- "</method>\n"
- "<method name=\"GetListMainConnections\">\n"
- "<arg name=\"result\" type=\"i\" direction=\"out\" />\n"
- "<arg name=\"listConnections\" type=\"a(qqqni)\" direction=\"out\" />\n"
- "</method>\n"
- "<method name=\"GetListMainSinks\">\n"
- "<arg name=\"result\" type=\"i\" direction=\"out\" />\n"
- "<arg name=\"listMainSinks\" type=\"a(qs(ii)niq)\" direction=\"out\" />\n"
- "</method>\n"
- "<method name=\"GetListMainSources\">\n"
- "<arg name=\"result\" type=\"i\" direction=\"out\" />\n"
- "<arg name=\"listMainSources\" type=\"a(qs(ii)q)\" direction=\"out\" />\n"
- "</method>\n"
- "<method name=\"GetListMainSinkSoundProperties\">\n"
- "<arg name=\"sinkID\" type=\"q\" direction=\"in\" />\n"
- "<arg name=\"result\" type=\"i\" direction=\"out\" />\n"
- "<arg name=\"listSoundProperties\" type=\"a(in)\" direction=\"out\" />\n"
- "</method>\n"
- "<method name=\"GetListMainSourceSoundProperties\">\n"
- "<arg name=\"sourceID\" type=\"q\" direction=\"in\" />\n"
- "<arg name=\"result\" type=\"i\" direction=\"out\" />\n"
- "<arg name=\"listSourceProperties\" type=\"a(in)\" direction=\"out\" />\n"
- "</method>\n"
- "<method name=\"GetListSourceClasses\">\n"
- "<arg name=\"result\" type=\"i\" direction=\"out\" />\n"
- "<arg name=\"listSourceClasses\" type=\"a(qsa(in))\" direction=\"out\" />\n"
- "</method>\n"
- "<method name=\"GetListSinkClasses\">\n"
- "<arg name=\"result\" type=\"i\" direction=\"out\" />\n"
- "<arg name=\"listSinkClasses\" type=\"a(qsa(in))\" direction=\"out\" />\n"
- "</method>\n"
- "<method name=\"GetListSystemProperties\">\n"
- "<arg name=\"result\" type=\"i\" direction=\"out\" />\n"
- "<arg name=\"listSystemProperties\" type=\"a(in)\" direction=\"out\" />\n"
- "</method>\n"
- "<method name=\"GetTimingInformation\">\n"
- "<arg name=\"mainConnectionID\" type=\"q\" direction=\"in\" />\n"
- "<arg name=\"result\" type=\"i\" direction=\"out\" />\n"
- "<arg name=\"delay\" type=\"n\" direction=\"out\" />\n"
- "</method>\n"
- ;
-}
-
-
-
-static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
- CommandInterfaceStub,
- std::tuple<CommandInterface::am_sourceID_t, CommandInterface::am_sinkID_t>,
- std::tuple<CommandInterface::am_Error_e, CommandInterface::am_mainConnectionID_t>
- > connectStubDispatcher(&CommandInterfaceStub::Connect, "iq");
-static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
- CommandInterfaceStub,
- std::tuple<CommandInterface::am_mainConnectionID_t>,
- std::tuple<CommandInterface::am_Error_e>
- > disconnectStubDispatcher(&CommandInterfaceStub::Disconnect, "i");
-static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
- CommandInterfaceStub,
- std::tuple<CommandInterface::am_sinkID_t, CommandInterface::am_mainVolume_t>,
- std::tuple<CommandInterface::am_Error_e>
- > setVolumeStubDispatcher(&CommandInterfaceStub::SetVolume, "i");
-static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
- CommandInterfaceStub,
- std::tuple<CommandInterface::am_sinkID_t, CommandInterface::am_mainVolume_t>,
- std::tuple<CommandInterface::am_Error_e>
- > volumeStepStubDispatcher(&CommandInterfaceStub::VolumeStep, "i");
-static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
- CommandInterfaceStub,
- std::tuple<CommandInterface::am_sinkID_t, CommandInterface::am_MuteState_e>,
- std::tuple<CommandInterface::am_Error_e>
- > setSinkMuteStateStubDispatcher(&CommandInterfaceStub::SetSinkMuteState, "i");
-static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
- CommandInterfaceStub,
- std::tuple<CommandInterface::am_sinkID_t, CommandInterface::am_MainSoundProperty_s>,
- std::tuple<CommandInterface::am_Error_e>
- > setMainSinkSoundPropertyStubDispatcher(&CommandInterfaceStub::SetMainSinkSoundProperty, "i");
-static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
- CommandInterfaceStub,
- std::tuple<CommandInterface::am_sourceID_t, CommandInterface::am_MainSoundProperty_s>,
- std::tuple<CommandInterface::am_Error_e>
- > setMainSourceSoundPropertyStubDispatcher(&CommandInterfaceStub::SetMainSourceSoundProperty, "i");
-static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
- CommandInterfaceStub,
- std::tuple<CommandInterface::am_SystemProperty_s>,
- std::tuple<CommandInterface::am_Error_e>
- > setSystemPropertyStubDispatcher(&CommandInterfaceStub::SetSystemProperty, "i");
-static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
- CommandInterfaceStub,
- std::tuple<>,
- std::tuple<CommandInterface::am_Error_e, CommandInterface::am_MainConnectionType_l>
- > getListMainConnectionsStubDispatcher(&CommandInterfaceStub::GetListMainConnections, "ia(qqqni)");
-static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
- CommandInterfaceStub,
- std::tuple<>,
- std::tuple<CommandInterface::am_Error_e, CommandInterface::am_SinkType_l>
- > getListMainSinksStubDispatcher(&CommandInterfaceStub::GetListMainSinks, "ia(qs(ii)niq)");
-static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
- CommandInterfaceStub,
- std::tuple<>,
- std::tuple<CommandInterface::am_Error_e, CommandInterface::am_SourceType_l>
- > getListMainSourcesStubDispatcher(&CommandInterfaceStub::GetListMainSources, "ia(qs(ii)q)");
-static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
- CommandInterfaceStub,
- std::tuple<CommandInterface::am_sinkID_t>,
- std::tuple<CommandInterface::am_Error_e, CommandInterface::am_MainSoundProperty_l>
- > getListMainSinkSoundPropertiesStubDispatcher(&CommandInterfaceStub::GetListMainSinkSoundProperties, "ia(in)");
-static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
- CommandInterfaceStub,
- std::tuple<CommandInterface::am_sourceID_t>,
- std::tuple<CommandInterface::am_Error_e, CommandInterface::am_MainSoundProperty_l>
- > getListMainSourceSoundPropertiesStubDispatcher(&CommandInterfaceStub::GetListMainSourceSoundProperties, "ia(in)");
-static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
- CommandInterfaceStub,
- std::tuple<>,
- std::tuple<CommandInterface::am_Error_e, CommandInterface::am_SourceClass_l>
- > getListSourceClassesStubDispatcher(&CommandInterfaceStub::GetListSourceClasses, "ia(qsa(in))");
-static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
- CommandInterfaceStub,
- std::tuple<>,
- std::tuple<CommandInterface::am_Error_e, CommandInterface::am_SinkClass_l>
- > getListSinkClassesStubDispatcher(&CommandInterfaceStub::GetListSinkClasses, "ia(qsa(in))");
-static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
- CommandInterfaceStub,
- std::tuple<>,
- std::tuple<CommandInterface::am_Error_e, CommandInterface::am_SystemProperty_l>
- > getListSystemPropertiesStubDispatcher(&CommandInterfaceStub::GetListSystemProperties, "ia(in)");
-static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
- CommandInterfaceStub,
- std::tuple<CommandInterface::am_mainConnectionID_t>,
- std::tuple<CommandInterface::am_Error_e, CommandInterface::am_timeSync_t>
- > getTimingInformationStubDispatcher(&CommandInterfaceStub::GetTimingInformation, "in");
-
-
-void CommandInterfaceDBusStubAdapter::fireNumberOfMainConnectionsChangedEvent() {
- CommonAPI::DBus::DBusStubSignalHelper<CommonAPI::DBus::DBusSerializableArguments<>>
- ::sendSignal(
- *this,
- "NumberOfMainConnectionsChanged",
- ""
- );
-}
-void CommandInterfaceDBusStubAdapter::fireMainConnectionStateChangedEvent(const CommandInterface::am_mainConnectionID_t& connectionID, const CommandInterface::am_ConnectionState_e& connectionState) {
- CommonAPI::DBus::DBusStubSignalHelper<CommonAPI::DBus::DBusSerializableArguments<CommandInterface::am_mainConnectionID_t, CommandInterface::am_ConnectionState_e>>
- ::sendSignal(
- *this,
- "MainConnectionStateChanged",
- "qi",
- connectionID, connectionState
- );
-}
-void CommandInterfaceDBusStubAdapter::fireNumberOfSourceClassesChangedEvent() {
- CommonAPI::DBus::DBusStubSignalHelper<CommonAPI::DBus::DBusSerializableArguments<>>
- ::sendSignal(
- *this,
- "NumberOfSourceClassesChanged",
- ""
- );
-}
-void CommandInterfaceDBusStubAdapter::fireSourceAddedEvent(const CommandInterface::am_SourceType_s& newSource) {
- CommonAPI::DBus::DBusStubSignalHelper<CommonAPI::DBus::DBusSerializableArguments<CommandInterface::am_SourceType_s>>
- ::sendSignal(
- *this,
- "SourceAdded",
- "(qs(ii)q)",
- newSource
- );
-}
-void CommandInterfaceDBusStubAdapter::fireSourceRemovedEvent(const CommandInterface::am_sourceID_t& removedSourceID) {
- CommonAPI::DBus::DBusStubSignalHelper<CommonAPI::DBus::DBusSerializableArguments<CommandInterface::am_sourceID_t>>
- ::sendSignal(
- *this,
- "SourceRemoved",
- "q",
- removedSourceID
- );
-}
-void CommandInterfaceDBusStubAdapter::fireMainSourceSoundPropertyChangedEvent(const CommandInterface::am_sourceID_t& sourceID, const CommandInterface::am_MainSoundProperty_s& SoundProperty) {
- CommonAPI::DBus::DBusStubSignalHelper<CommonAPI::DBus::DBusSerializableArguments<CommandInterface::am_sourceID_t, CommandInterface::am_MainSoundProperty_s>>
- ::sendSignal(
- *this,
- "MainSourceSoundPropertyChanged",
- "q(in)",
- sourceID, SoundProperty
- );
-}
-void CommandInterfaceDBusStubAdapter::fireSourceAvailabilityChangedEvent(const CommandInterface::am_sourceID_t& sourceID, const CommandInterface::am_Availability_s& availability) {
- CommonAPI::DBus::DBusStubSignalHelper<CommonAPI::DBus::DBusSerializableArguments<CommandInterface::am_sourceID_t, CommandInterface::am_Availability_s>>
- ::sendSignal(
- *this,
- "SourceAvailabilityChanged",
- "q(ii)",
- sourceID, availability
- );
-}
-void CommandInterfaceDBusStubAdapter::fireNumberOfSinkClassesChangedEvent() {
- CommonAPI::DBus::DBusStubSignalHelper<CommonAPI::DBus::DBusSerializableArguments<>>
- ::sendSignal(
- *this,
- "NumberOfSinkClassesChanged",
- ""
- );
-}
-void CommandInterfaceDBusStubAdapter::fireSinkAddedEvent(const CommandInterface::am_SinkType_s& newSink) {
- CommonAPI::DBus::DBusStubSignalHelper<CommonAPI::DBus::DBusSerializableArguments<CommandInterface::am_SinkType_s>>
- ::sendSignal(
- *this,
- "SinkAdded",
- "(qs(ii)niq)",
- newSink
- );
-}
-void CommandInterfaceDBusStubAdapter::fireSinkRemovedEvent(const CommandInterface::am_sinkID_t& removedSinkID) {
- CommonAPI::DBus::DBusStubSignalHelper<CommonAPI::DBus::DBusSerializableArguments<CommandInterface::am_sinkID_t>>
- ::sendSignal(
- *this,
- "SinkRemoved",
- "q",
- removedSinkID
- );
-}
-void CommandInterfaceDBusStubAdapter::fireMainSinkSoundPropertyChangedEvent(const CommandInterface::am_sinkID_t& sinkID, const CommandInterface::am_MainSoundProperty_s& SoundProperty) {
- CommonAPI::DBus::DBusStubSignalHelper<CommonAPI::DBus::DBusSerializableArguments<CommandInterface::am_sinkID_t, CommandInterface::am_MainSoundProperty_s>>
- ::sendSignal(
- *this,
- "MainSinkSoundPropertyChanged",
- "q(in)",
- sinkID, SoundProperty
- );
-}
-void CommandInterfaceDBusStubAdapter::fireSinkAvailabilityChangedEvent(const CommandInterface::am_sinkID_t& sinkID, const CommandInterface::am_Availability_s& availability) {
- CommonAPI::DBus::DBusStubSignalHelper<CommonAPI::DBus::DBusSerializableArguments<CommandInterface::am_sinkID_t, CommandInterface::am_Availability_s>>
- ::sendSignal(
- *this,
- "SinkAvailabilityChanged",
- "q(ii)",
- sinkID, availability
- );
-}
-void CommandInterfaceDBusStubAdapter::fireVolumeChangedEvent(const CommandInterface::am_sinkID_t& sinkID, const CommandInterface::am_mainVolume_t& volume) {
- CommonAPI::DBus::DBusStubSignalHelper<CommonAPI::DBus::DBusSerializableArguments<CommandInterface::am_sinkID_t, CommandInterface::am_mainVolume_t>>
- ::sendSignal(
- *this,
- "VolumeChanged",
- "qn",
- sinkID, volume
- );
-}
-void CommandInterfaceDBusStubAdapter::fireSinkMuteStateChangedEvent(const CommandInterface::am_sinkID_t& sinkID, const CommandInterface::am_MuteState_e& muteState) {
- CommonAPI::DBus::DBusStubSignalHelper<CommonAPI::DBus::DBusSerializableArguments<CommandInterface::am_sinkID_t, CommandInterface::am_MuteState_e>>
- ::sendSignal(
- *this,
- "SinkMuteStateChanged",
- "qi",
- sinkID, muteState
- );
-}
-void CommandInterfaceDBusStubAdapter::fireSystemPropertyChangedEvent(const CommandInterface::am_SystemProperty_s& SystemProperty) {
- CommonAPI::DBus::DBusStubSignalHelper<CommonAPI::DBus::DBusSerializableArguments<CommandInterface::am_SystemProperty_s>>
- ::sendSignal(
- *this,
- "SystemPropertyChanged",
- "(in)",
- SystemProperty
- );
-}
-void CommandInterfaceDBusStubAdapter::fireTimingInformationChangedEvent(const CommandInterface::am_mainConnectionID_t& mainConnection, const CommandInterface::am_timeSync_t& time) {
- CommonAPI::DBus::DBusStubSignalHelper<CommonAPI::DBus::DBusSerializableArguments<CommandInterface::am_mainConnectionID_t, CommandInterface::am_timeSync_t>>
- ::sendSignal(
- *this,
- "TimingInformationChanged",
- "qn",
- mainConnection, time
- );
-}
-void CommandInterfaceDBusStubAdapter::fireSinkUpdatedEvent(const CommandInterface::am_sinkID_t& sinkID, const CommandInterface::am_sinkClass_t& sinkClassID, const CommandInterface::am_MainSoundProperty_l& listMainSoundProperties) {
- CommonAPI::DBus::DBusStubSignalHelper<CommonAPI::DBus::DBusSerializableArguments<CommandInterface::am_sinkID_t, CommandInterface::am_sinkClass_t, CommandInterface::am_MainSoundProperty_l>>
- ::sendSignal(
- *this,
- "SinkUpdated",
- "qqa(in)",
- sinkID, sinkClassID, listMainSoundProperties
- );
-}
-void CommandInterfaceDBusStubAdapter::fireSourceUpdatedEvent(const CommandInterface::am_sourceID_t& sourceID, const CommandInterface::am_sourceClass_t& sourceClassID, const CommandInterface::am_MainSoundProperty_l& listMainSoundProperties) {
- CommonAPI::DBus::DBusStubSignalHelper<CommonAPI::DBus::DBusSerializableArguments<CommandInterface::am_sourceID_t, CommandInterface::am_sourceClass_t, CommandInterface::am_MainSoundProperty_l>>
- ::sendSignal(
- *this,
- "SourceUpdated",
- "qqa(in)",
- sourceID, sourceClassID, listMainSoundProperties
- );
-}
-void CommandInterfaceDBusStubAdapter::fireSinkNotificationEvent(const CommandInterface::am_sinkID_t& sinkID, const CommandInterface::am_NotificationPayload_s& notification) {
- CommonAPI::DBus::DBusStubSignalHelper<CommonAPI::DBus::DBusSerializableArguments<CommandInterface::am_sinkID_t, CommandInterface::am_NotificationPayload_s>>
- ::sendSignal(
- *this,
- "SinkNotification",
- "q(in)",
- sinkID, notification
- );
-}
-void CommandInterfaceDBusStubAdapter::fireSourceNotificationEvent(const CommandInterface::am_sourceID_t& sourceID, const CommandInterface::am_NotificationPayload_s& notification) {
- CommonAPI::DBus::DBusStubSignalHelper<CommonAPI::DBus::DBusSerializableArguments<CommandInterface::am_sourceID_t, CommandInterface::am_NotificationPayload_s>>
- ::sendSignal(
- *this,
- "SourceNotification",
- "q(in)",
- sourceID, notification
- );
-}
-void CommandInterfaceDBusStubAdapter::fireMainSinkNotificationConfigurationChangedEvent(const CommandInterface::am_sinkID_t& sinkID, const am::am_NotificationConfiguration_s& mainNotificationConfiguration) {
- CommonAPI::DBus::DBusStubSignalHelper<CommonAPI::DBus::DBusSerializableArguments<CommandInterface::am_sinkID_t, am::am_NotificationConfiguration_s>>
- ::sendSignal(
- *this,
- "MainSinkNotificationConfigurationChanged",
- "q(iin)",
- sinkID, mainNotificationConfiguration
- );
-}
-void CommandInterfaceDBusStubAdapter::fireMainSourceNotificationConfigurationChangedEvent(const CommandInterface::am_sourceID_t& sourceID, const am::am_NotificationConfiguration_s& mainNotificationConfiguration) {
- CommonAPI::DBus::DBusStubSignalHelper<CommonAPI::DBus::DBusSerializableArguments<CommandInterface::am_sourceID_t, am::am_NotificationConfiguration_s>>
- ::sendSignal(
- *this,
- "MainSourceNotificationConfigurationChanged",
- "q(iin)",
- sourceID, mainNotificationConfiguration
- );
-}
-
-} // namespace audiomanager
-} // namespace genivi
-} // namespace org
-
-template<>
-const org::genivi::audiomanager::CommandInterfaceDBusStubAdapterHelper::StubDispatcherTable org::genivi::audiomanager::CommandInterfaceDBusStubAdapterHelper::stubDispatcherTable_ = {
- { { "Connect", "qq" }, &org::genivi::audiomanager::connectStubDispatcher },
- { { "Disconnect", "q" }, &org::genivi::audiomanager::disconnectStubDispatcher },
- { { "SetVolume", "qn" }, &org::genivi::audiomanager::setVolumeStubDispatcher },
- { { "VolumeStep", "qn" }, &org::genivi::audiomanager::volumeStepStubDispatcher },
- { { "SetSinkMuteState", "qi" }, &org::genivi::audiomanager::setSinkMuteStateStubDispatcher },
- { { "SetMainSinkSoundProperty", "q(in)" }, &org::genivi::audiomanager::setMainSinkSoundPropertyStubDispatcher },
- { { "SetMainSourceSoundProperty", "q(in)" }, &org::genivi::audiomanager::setMainSourceSoundPropertyStubDispatcher },
- { { "SetSystemProperty", "(in)" }, &org::genivi::audiomanager::setSystemPropertyStubDispatcher },
- { { "GetListMainConnections", "" }, &org::genivi::audiomanager::getListMainConnectionsStubDispatcher },
- { { "GetListMainSinks", "" }, &org::genivi::audiomanager::getListMainSinksStubDispatcher },
- { { "GetListMainSources", "" }, &org::genivi::audiomanager::getListMainSourcesStubDispatcher },
- { { "GetListMainSinkSoundProperties", "q" }, &org::genivi::audiomanager::getListMainSinkSoundPropertiesStubDispatcher },
- { { "GetListMainSourceSoundProperties", "q" }, &org::genivi::audiomanager::getListMainSourceSoundPropertiesStubDispatcher },
- { { "GetListSourceClasses", "" }, &org::genivi::audiomanager::getListSourceClassesStubDispatcher },
- { { "GetListSinkClasses", "" }, &org::genivi::audiomanager::getListSinkClassesStubDispatcher },
- { { "GetListSystemProperties", "" }, &org::genivi::audiomanager::getListSystemPropertiesStubDispatcher },
- { { "GetTimingInformation", "q" }, &org::genivi::audiomanager::getTimingInformationStubDispatcher }
-};
diff --git a/PluginCommandInterfaceCAPI/src-gen/org/genivi/audiomanager/CommandInterfaceDBusStubAdapter.h b/PluginCommandInterfaceCAPI/src-gen/org/genivi/audiomanager/CommandInterfaceDBusStubAdapter.h
deleted file mode 100644
index 06dd676..0000000
--- a/PluginCommandInterfaceCAPI/src-gen/org/genivi/audiomanager/CommandInterfaceDBusStubAdapter.h
+++ /dev/null
@@ -1,79 +0,0 @@
-/*
-* This file was generated by the CommonAPI Generators.
-*
- * Copyright (c) 2012 BMW
- *
- * \author Aleksandar Donchev, aleksander.donchev@partner.bmw.de BMW 2013
- *
- * \copyright
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction,
- * including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
- * subject to the following conditions:
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
- * THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- *
- * For further information see http://www.genivi.org/.
-*/
-#ifndef ORG_GENIVI_AUDIOMANAGER_Command_Interface_DBUS_STUB_ADAPTER_H_
-#define ORG_GENIVI_AUDIOMANAGER_Command_Interface_DBUS_STUB_ADAPTER_H_
-
-#include <org/genivi/audiomanager/CommandInterfaceStub.h>
-
-#define COMMONAPI_INTERNAL_COMPILATION
-
-#include <CommonAPI/DBus/DBusStubAdapterHelper.h>
-#include <CommonAPI/DBus/DBusFactory.h>
-
-#undef COMMONAPI_INTERNAL_COMPILATION
-
-namespace org {
-namespace genivi {
-namespace audiomanager {
-
-typedef CommonAPI::DBus::DBusStubAdapterHelper<CommandInterfaceStub> CommandInterfaceDBusStubAdapterHelper;
-
-class CommandInterfaceDBusStubAdapter: public CommandInterfaceStubAdapter, public CommandInterfaceDBusStubAdapterHelper {
- public:
- CommandInterfaceDBusStubAdapter(
- const std::string& commonApiAddress,
- const std::string& dbusInterfaceName,
- const std::string& dbusBusName,
- const std::string& dbusObjectPath,
- const std::shared_ptr<CommonAPI::DBus::DBusProxyConnection>& dbusConnection,
- const std::shared_ptr<CommonAPI::StubBase>& stub);
-
-
- void fireNumberOfMainConnectionsChangedEvent();
- void fireMainConnectionStateChangedEvent(const CommandInterface::am_mainConnectionID_t& connectionID, const CommandInterface::am_ConnectionState_e& connectionState);
- void fireNumberOfSourceClassesChangedEvent();
- void fireSourceAddedEvent(const CommandInterface::am_SourceType_s& newSource);
- void fireSourceRemovedEvent(const CommandInterface::am_sourceID_t& removedSourceID);
- void fireMainSourceSoundPropertyChangedEvent(const CommandInterface::am_sourceID_t& sourceID, const CommandInterface::am_MainSoundProperty_s& SoundProperty);
- void fireSourceAvailabilityChangedEvent(const CommandInterface::am_sourceID_t& sourceID, const CommandInterface::am_Availability_s& availability);
- void fireNumberOfSinkClassesChangedEvent();
- void fireSinkAddedEvent(const CommandInterface::am_SinkType_s& newSink);
- void fireSinkRemovedEvent(const CommandInterface::am_sinkID_t& removedSinkID);
- void fireMainSinkSoundPropertyChangedEvent(const CommandInterface::am_sinkID_t& sinkID, const CommandInterface::am_MainSoundProperty_s& SoundProperty);
- void fireSinkAvailabilityChangedEvent(const CommandInterface::am_sinkID_t& sinkID, const CommandInterface::am_Availability_s& availability);
- void fireVolumeChangedEvent(const CommandInterface::am_sinkID_t& sinkID, const CommandInterface::am_mainVolume_t& volume);
- void fireSinkMuteStateChangedEvent(const CommandInterface::am_sinkID_t& sinkID, const CommandInterface::am_MuteState_e& muteState);
- void fireSystemPropertyChangedEvent(const CommandInterface::am_SystemProperty_s& SystemProperty);
- void fireTimingInformationChangedEvent(const CommandInterface::am_mainConnectionID_t& mainConnection, const CommandInterface::am_timeSync_t& time);
- void fireSinkUpdatedEvent(const CommandInterface::am_sinkID_t& sinkID, const CommandInterface::am_sinkClass_t& sinkClassID, const CommandInterface::am_MainSoundProperty_l& listMainSoundProperties);
- void fireSourceUpdatedEvent(const CommandInterface::am_sourceID_t& sourceID, const CommandInterface::am_sourceClass_t& sourceClassID, const CommandInterface::am_MainSoundProperty_l& listMainSoundProperties);
- void fireSinkNotificationEvent(const CommandInterface::am_sinkID_t& sinkID, const CommandInterface::am_NotificationPayload_s& notification);
- void fireSourceNotificationEvent(const CommandInterface::am_sourceID_t& sourceID, const CommandInterface::am_NotificationPayload_s& notification);
- void fireMainSinkNotificationConfigurationChangedEvent(const CommandInterface::am_sinkID_t& sinkID, const am::am_NotificationConfiguration_s& mainNotificationConfiguration);
- void fireMainSourceNotificationConfigurationChangedEvent(const CommandInterface::am_sourceID_t& sourceID, const am::am_NotificationConfiguration_s& mainNotificationConfiguration);
-
- protected:
- virtual const char* getMethodsDBusIntrospectionXmlData() const;
-};
-
-} // namespace audiomanager
-} // namespace genivi
-} // namespace org
-
-#endif // ORG_GENIVI_AUDIOMANAGER_Command_Interface_DBUS_STUB_ADAPTER_H_
diff --git a/PluginCommandInterfaceCAPI/src-gen/org/genivi/audiomanager/CommandInterfaceProxy.h b/PluginCommandInterfaceCAPI/src-gen/org/genivi/audiomanager/CommandInterfaceProxy.h
deleted file mode 100644
index 437fefd..0000000
--- a/PluginCommandInterfaceCAPI/src-gen/org/genivi/audiomanager/CommandInterfaceProxy.h
+++ /dev/null
@@ -1,794 +0,0 @@
-/*
-* This file was generated by the CommonAPI Generators.
-*
- * Copyright (c) 2012 BMW
- *
- * \author Aleksandar Donchev, aleksander.donchev@partner.bmw.de BMW 2013
- *
- * \copyright
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction,
- * including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
- * subject to the following conditions:
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
- * THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- *
- * For further information see http://www.genivi.org/.
-*/
-#ifndef ORG_GENIVI_AUDIOMANAGER_Command_Interface_PROXY_H_
-#define ORG_GENIVI_AUDIOMANAGER_Command_Interface_PROXY_H_
-
-#include "CommandInterfaceProxyBase.h"
-
-#define COMMONAPI_INTERNAL_COMPILATION
-
-
-#undef COMMONAPI_INTERNAL_COMPILATION
-
-namespace org {
-namespace genivi {
-namespace audiomanager {
-
-template <typename ... _AttributeExtensions>
-class CommandInterfaceProxy: virtual public CommandInterface, virtual public CommandInterfaceProxyBase, public _AttributeExtensions... {
- public:
- CommandInterfaceProxy(std::shared_ptr<CommonAPI::Proxy> delegate);
- ~CommandInterfaceProxy();
-
-
- /// Returns the wrapper class that provides access to the broadcast NumberOfMainConnectionsChanged.
- virtual NumberOfMainConnectionsChangedEvent& getNumberOfMainConnectionsChangedEvent() {
- return delegate_->getNumberOfMainConnectionsChangedEvent();
- }
-
- /// Returns the wrapper class that provides access to the broadcast MainConnectionStateChanged.
- virtual MainConnectionStateChangedEvent& getMainConnectionStateChangedEvent() {
- return delegate_->getMainConnectionStateChangedEvent();
- }
-
- /// Returns the wrapper class that provides access to the broadcast NumberOfSourceClassesChanged.
- virtual NumberOfSourceClassesChangedEvent& getNumberOfSourceClassesChangedEvent() {
- return delegate_->getNumberOfSourceClassesChangedEvent();
- }
-
- /// Returns the wrapper class that provides access to the broadcast SourceAdded.
- virtual SourceAddedEvent& getSourceAddedEvent() {
- return delegate_->getSourceAddedEvent();
- }
-
- /// Returns the wrapper class that provides access to the broadcast SourceRemoved.
- virtual SourceRemovedEvent& getSourceRemovedEvent() {
- return delegate_->getSourceRemovedEvent();
- }
-
- /// Returns the wrapper class that provides access to the broadcast MainSourceSoundPropertyChanged.
- virtual MainSourceSoundPropertyChangedEvent& getMainSourceSoundPropertyChangedEvent() {
- return delegate_->getMainSourceSoundPropertyChangedEvent();
- }
-
- /// Returns the wrapper class that provides access to the broadcast SourceAvailabilityChanged.
- virtual SourceAvailabilityChangedEvent& getSourceAvailabilityChangedEvent() {
- return delegate_->getSourceAvailabilityChangedEvent();
- }
-
- /// Returns the wrapper class that provides access to the broadcast NumberOfSinkClassesChanged.
- virtual NumberOfSinkClassesChangedEvent& getNumberOfSinkClassesChangedEvent() {
- return delegate_->getNumberOfSinkClassesChangedEvent();
- }
-
- /// Returns the wrapper class that provides access to the broadcast SinkAdded.
- virtual SinkAddedEvent& getSinkAddedEvent() {
- return delegate_->getSinkAddedEvent();
- }
-
- /// Returns the wrapper class that provides access to the broadcast SinkRemoved.
- virtual SinkRemovedEvent& getSinkRemovedEvent() {
- return delegate_->getSinkRemovedEvent();
- }
-
- /// Returns the wrapper class that provides access to the broadcast MainSinkSoundPropertyChanged.
- virtual MainSinkSoundPropertyChangedEvent& getMainSinkSoundPropertyChangedEvent() {
- return delegate_->getMainSinkSoundPropertyChangedEvent();
- }
-
- /// Returns the wrapper class that provides access to the broadcast SinkAvailabilityChanged.
- virtual SinkAvailabilityChangedEvent& getSinkAvailabilityChangedEvent() {
- return delegate_->getSinkAvailabilityChangedEvent();
- }
-
- /// Returns the wrapper class that provides access to the broadcast VolumeChanged.
- virtual VolumeChangedEvent& getVolumeChangedEvent() {
- return delegate_->getVolumeChangedEvent();
- }
-
- /// Returns the wrapper class that provides access to the broadcast SinkMuteStateChanged.
- virtual SinkMuteStateChangedEvent& getSinkMuteStateChangedEvent() {
- return delegate_->getSinkMuteStateChangedEvent();
- }
-
- /// Returns the wrapper class that provides access to the broadcast SystemPropertyChanged.
- virtual SystemPropertyChangedEvent& getSystemPropertyChangedEvent() {
- return delegate_->getSystemPropertyChangedEvent();
- }
-
- /// Returns the wrapper class that provides access to the broadcast TimingInformationChanged.
- virtual TimingInformationChangedEvent& getTimingInformationChangedEvent() {
- return delegate_->getTimingInformationChangedEvent();
- }
-
- /// Returns the wrapper class that provides access to the broadcast SinkUpdated.
- virtual SinkUpdatedEvent& getSinkUpdatedEvent() {
- return delegate_->getSinkUpdatedEvent();
- }
-
- /// Returns the wrapper class that provides access to the broadcast SourceUpdated.
- virtual SourceUpdatedEvent& getSourceUpdatedEvent() {
- return delegate_->getSourceUpdatedEvent();
- }
-
- /// Returns the wrapper class that provides access to the broadcast SinkNotification.
- virtual SinkNotificationEvent& getSinkNotificationEvent() {
- return delegate_->getSinkNotificationEvent();
- }
-
- /// Returns the wrapper class that provides access to the broadcast SourceNotification.
- virtual SourceNotificationEvent& getSourceNotificationEvent() {
- return delegate_->getSourceNotificationEvent();
- }
-
- /// Returns the wrapper class that provides access to the broadcast MainSinkNotificationConfigurationChanged.
- virtual MainSinkNotificationConfigurationChangedEvent& getMainSinkNotificationConfigurationChangedEvent() {
- return delegate_->getMainSinkNotificationConfigurationChangedEvent();
- }
-
- /// Returns the wrapper class that provides access to the broadcast MainSourceNotificationConfigurationChanged.
- virtual MainSourceNotificationConfigurationChangedEvent& getMainSourceNotificationConfigurationChangedEvent() {
- return delegate_->getMainSourceNotificationConfigurationChangedEvent();
- }
-
-
-
- /**
- * Calls Connect with synchronous semantics.
- *
- * All const parameters are input parameters to this method.
- * All non-const parameters will be filled with the returned values.
- * The CallStatus will be filled when the method returns and indicate either
- * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus
- * will be set.
- * Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
- */
- virtual void Connect(const CommandInterface::am_sourceID_t& sourceID, const CommandInterface::am_sinkID_t& sinkID, CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result, CommandInterface::am_mainConnectionID_t& mainConnectionID);
- /**
- * Calls Connect with asynchronous semantics.
- *
- * The provided callback will be called when the reply to this call arrives or
- * an error occurs during the call. The CallStatus will indicate either "SUCCESS"
- * or which type of error has occurred. In case of any error, ONLY the CallStatus
- * will have a defined value.
- * The std::future returned by this method will be fulfilled at arrival of the reply.
- * It will provide the same value for CallStatus as will be handed to the callback.
- */
- virtual std::future<CommonAPI::CallStatus> ConnectAsync(const CommandInterface::am_sourceID_t& sourceID, const CommandInterface::am_sinkID_t& sinkID, ConnectAsyncCallback callback);
-
- /**
- * Calls Disconnect with synchronous semantics.
- *
- * All const parameters are input parameters to this method.
- * All non-const parameters will be filled with the returned values.
- * The CallStatus will be filled when the method returns and indicate either
- * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus
- * will be set.
- * Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
- */
- virtual void Disconnect(const CommandInterface::am_mainConnectionID_t& mainConnectionID, CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result);
- /**
- * Calls Disconnect with asynchronous semantics.
- *
- * The provided callback will be called when the reply to this call arrives or
- * an error occurs during the call. The CallStatus will indicate either "SUCCESS"
- * or which type of error has occurred. In case of any error, ONLY the CallStatus
- * will have a defined value.
- * The std::future returned by this method will be fulfilled at arrival of the reply.
- * It will provide the same value for CallStatus as will be handed to the callback.
- */
- virtual std::future<CommonAPI::CallStatus> DisconnectAsync(const CommandInterface::am_mainConnectionID_t& mainConnectionID, DisconnectAsyncCallback callback);
-
- /**
- * Calls SetVolume with synchronous semantics.
- *
- * All const parameters are input parameters to this method.
- * All non-const parameters will be filled with the returned values.
- * The CallStatus will be filled when the method returns and indicate either
- * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus
- * will be set.
- * Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
- */
- virtual void SetVolume(const CommandInterface::am_sinkID_t& sinkID, const CommandInterface::am_mainVolume_t& volume, CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result);
- /**
- * Calls SetVolume with asynchronous semantics.
- *
- * The provided callback will be called when the reply to this call arrives or
- * an error occurs during the call. The CallStatus will indicate either "SUCCESS"
- * or which type of error has occurred. In case of any error, ONLY the CallStatus
- * will have a defined value.
- * The std::future returned by this method will be fulfilled at arrival of the reply.
- * It will provide the same value for CallStatus as will be handed to the callback.
- */
- virtual std::future<CommonAPI::CallStatus> SetVolumeAsync(const CommandInterface::am_sinkID_t& sinkID, const CommandInterface::am_mainVolume_t& volume, SetVolumeAsyncCallback callback);
-
- /**
- * Calls VolumeStep with synchronous semantics.
- *
- * All const parameters are input parameters to this method.
- * All non-const parameters will be filled with the returned values.
- * The CallStatus will be filled when the method returns and indicate either
- * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus
- * will be set.
- * Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
- */
- virtual void VolumeStep(const CommandInterface::am_sinkID_t& sinkID, const CommandInterface::am_mainVolume_t& volumeStep, CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result);
- /**
- * Calls VolumeStep with asynchronous semantics.
- *
- * The provided callback will be called when the reply to this call arrives or
- * an error occurs during the call. The CallStatus will indicate either "SUCCESS"
- * or which type of error has occurred. In case of any error, ONLY the CallStatus
- * will have a defined value.
- * The std::future returned by this method will be fulfilled at arrival of the reply.
- * It will provide the same value for CallStatus as will be handed to the callback.
- */
- virtual std::future<CommonAPI::CallStatus> VolumeStepAsync(const CommandInterface::am_sinkID_t& sinkID, const CommandInterface::am_mainVolume_t& volumeStep, VolumeStepAsyncCallback callback);
-
- /**
- * Calls SetSinkMuteState with synchronous semantics.
- *
- * All const parameters are input parameters to this method.
- * All non-const parameters will be filled with the returned values.
- * The CallStatus will be filled when the method returns and indicate either
- * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus
- * will be set.
- * Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
- */
- virtual void SetSinkMuteState(const CommandInterface::am_sinkID_t& sinkID, const CommandInterface::am_MuteState_e& muteState, CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result);
- /**
- * Calls SetSinkMuteState with asynchronous semantics.
- *
- * The provided callback will be called when the reply to this call arrives or
- * an error occurs during the call. The CallStatus will indicate either "SUCCESS"
- * or which type of error has occurred. In case of any error, ONLY the CallStatus
- * will have a defined value.
- * The std::future returned by this method will be fulfilled at arrival of the reply.
- * It will provide the same value for CallStatus as will be handed to the callback.
- */
- virtual std::future<CommonAPI::CallStatus> SetSinkMuteStateAsync(const CommandInterface::am_sinkID_t& sinkID, const CommandInterface::am_MuteState_e& muteState, SetSinkMuteStateAsyncCallback callback);
-
- /**
- * Calls SetMainSinkSoundProperty with synchronous semantics.
- *
- * All const parameters are input parameters to this method.
- * All non-const parameters will be filled with the returned values.
- * The CallStatus will be filled when the method returns and indicate either
- * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus
- * will be set.
- * Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
- */
- virtual void SetMainSinkSoundProperty(const CommandInterface::am_sinkID_t& sinkID, const CommandInterface::am_MainSoundProperty_s& soundProperty, CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result);
- /**
- * Calls SetMainSinkSoundProperty with asynchronous semantics.
- *
- * The provided callback will be called when the reply to this call arrives or
- * an error occurs during the call. The CallStatus will indicate either "SUCCESS"
- * or which type of error has occurred. In case of any error, ONLY the CallStatus
- * will have a defined value.
- * The std::future returned by this method will be fulfilled at arrival of the reply.
- * It will provide the same value for CallStatus as will be handed to the callback.
- */
- virtual std::future<CommonAPI::CallStatus> SetMainSinkSoundPropertyAsync(const CommandInterface::am_sinkID_t& sinkID, const CommandInterface::am_MainSoundProperty_s& soundProperty, SetMainSinkSoundPropertyAsyncCallback callback);
-
- /**
- * Calls SetMainSourceSoundProperty with synchronous semantics.
- *
- * All const parameters are input parameters to this method.
- * All non-const parameters will be filled with the returned values.
- * The CallStatus will be filled when the method returns and indicate either
- * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus
- * will be set.
- * Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
- */
- virtual void SetMainSourceSoundProperty(const CommandInterface::am_sourceID_t& sourceID, const CommandInterface::am_MainSoundProperty_s& soundProperty, CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result);
- /**
- * Calls SetMainSourceSoundProperty with asynchronous semantics.
- *
- * The provided callback will be called when the reply to this call arrives or
- * an error occurs during the call. The CallStatus will indicate either "SUCCESS"
- * or which type of error has occurred. In case of any error, ONLY the CallStatus
- * will have a defined value.
- * The std::future returned by this method will be fulfilled at arrival of the reply.
- * It will provide the same value for CallStatus as will be handed to the callback.
- */
- virtual std::future<CommonAPI::CallStatus> SetMainSourceSoundPropertyAsync(const CommandInterface::am_sourceID_t& sourceID, const CommandInterface::am_MainSoundProperty_s& soundProperty, SetMainSourceSoundPropertyAsyncCallback callback);
-
- /**
- * Calls SetSystemProperty with synchronous semantics.
- *
- * All const parameters are input parameters to this method.
- * All non-const parameters will be filled with the returned values.
- * The CallStatus will be filled when the method returns and indicate either
- * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus
- * will be set.
- * Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
- */
- virtual void SetSystemProperty(const CommandInterface::am_SystemProperty_s& soundProperty, CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result);
- /**
- * Calls SetSystemProperty with asynchronous semantics.
- *
- * The provided callback will be called when the reply to this call arrives or
- * an error occurs during the call. The CallStatus will indicate either "SUCCESS"
- * or which type of error has occurred. In case of any error, ONLY the CallStatus
- * will have a defined value.
- * The std::future returned by this method will be fulfilled at arrival of the reply.
- * It will provide the same value for CallStatus as will be handed to the callback.
- */
- virtual std::future<CommonAPI::CallStatus> SetSystemPropertyAsync(const CommandInterface::am_SystemProperty_s& soundProperty, SetSystemPropertyAsyncCallback callback);
-
- /**
- * Calls GetListMainConnections with synchronous semantics.
- *
- * All non-const parameters will be filled with the returned values.
- * The CallStatus will be filled when the method returns and indicate either
- * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus
- * will be set.
- * Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
- */
- virtual void GetListMainConnections(CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result, CommandInterface::am_MainConnectionType_l& listConnections);
- /**
- * Calls GetListMainConnections with asynchronous semantics.
- *
- * The provided callback will be called when the reply to this call arrives or
- * an error occurs during the call. The CallStatus will indicate either "SUCCESS"
- * or which type of error has occurred. In case of any error, ONLY the CallStatus
- * will have a defined value.
- * The std::future returned by this method will be fulfilled at arrival of the reply.
- * It will provide the same value for CallStatus as will be handed to the callback.
- */
- virtual std::future<CommonAPI::CallStatus> GetListMainConnectionsAsync(GetListMainConnectionsAsyncCallback callback);
-
- /**
- * Calls GetListMainSinks with synchronous semantics.
- *
- * All non-const parameters will be filled with the returned values.
- * The CallStatus will be filled when the method returns and indicate either
- * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus
- * will be set.
- * Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
- */
- virtual void GetListMainSinks(CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result, CommandInterface::am_SinkType_l& listMainSinks);
- /**
- * Calls GetListMainSinks with asynchronous semantics.
- *
- * The provided callback will be called when the reply to this call arrives or
- * an error occurs during the call. The CallStatus will indicate either "SUCCESS"
- * or which type of error has occurred. In case of any error, ONLY the CallStatus
- * will have a defined value.
- * The std::future returned by this method will be fulfilled at arrival of the reply.
- * It will provide the same value for CallStatus as will be handed to the callback.
- */
- virtual std::future<CommonAPI::CallStatus> GetListMainSinksAsync(GetListMainSinksAsyncCallback callback);
-
- /**
- * Calls GetListMainSources with synchronous semantics.
- *
- * All non-const parameters will be filled with the returned values.
- * The CallStatus will be filled when the method returns and indicate either
- * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus
- * will be set.
- * Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
- */
- virtual void GetListMainSources(CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result, CommandInterface::am_SourceType_l& listMainSources);
- /**
- * Calls GetListMainSources with asynchronous semantics.
- *
- * The provided callback will be called when the reply to this call arrives or
- * an error occurs during the call. The CallStatus will indicate either "SUCCESS"
- * or which type of error has occurred. In case of any error, ONLY the CallStatus
- * will have a defined value.
- * The std::future returned by this method will be fulfilled at arrival of the reply.
- * It will provide the same value for CallStatus as will be handed to the callback.
- */
- virtual std::future<CommonAPI::CallStatus> GetListMainSourcesAsync(GetListMainSourcesAsyncCallback callback);
-
- /**
- * Calls GetListMainSinkSoundProperties with synchronous semantics.
- *
- * All const parameters are input parameters to this method.
- * All non-const parameters will be filled with the returned values.
- * The CallStatus will be filled when the method returns and indicate either
- * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus
- * will be set.
- * Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
- */
- virtual void GetListMainSinkSoundProperties(const CommandInterface::am_sinkID_t& sinkID, CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result, CommandInterface::am_MainSoundProperty_l& listSoundProperties);
- /**
- * Calls GetListMainSinkSoundProperties with asynchronous semantics.
- *
- * The provided callback will be called when the reply to this call arrives or
- * an error occurs during the call. The CallStatus will indicate either "SUCCESS"
- * or which type of error has occurred. In case of any error, ONLY the CallStatus
- * will have a defined value.
- * The std::future returned by this method will be fulfilled at arrival of the reply.
- * It will provide the same value for CallStatus as will be handed to the callback.
- */
- virtual std::future<CommonAPI::CallStatus> GetListMainSinkSoundPropertiesAsync(const CommandInterface::am_sinkID_t& sinkID, GetListMainSinkSoundPropertiesAsyncCallback callback);
-
- /**
- * Calls GetListMainSourceSoundProperties with synchronous semantics.
- *
- * All const parameters are input parameters to this method.
- * All non-const parameters will be filled with the returned values.
- * The CallStatus will be filled when the method returns and indicate either
- * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus
- * will be set.
- * Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
- */
- virtual void GetListMainSourceSoundProperties(const CommandInterface::am_sourceID_t& sourceID, CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result, CommandInterface::am_MainSoundProperty_l& listSourceProperties);
- /**
- * Calls GetListMainSourceSoundProperties with asynchronous semantics.
- *
- * The provided callback will be called when the reply to this call arrives or
- * an error occurs during the call. The CallStatus will indicate either "SUCCESS"
- * or which type of error has occurred. In case of any error, ONLY the CallStatus
- * will have a defined value.
- * The std::future returned by this method will be fulfilled at arrival of the reply.
- * It will provide the same value for CallStatus as will be handed to the callback.
- */
- virtual std::future<CommonAPI::CallStatus> GetListMainSourceSoundPropertiesAsync(const CommandInterface::am_sourceID_t& sourceID, GetListMainSourceSoundPropertiesAsyncCallback callback);
-
- /**
- * Calls GetListSourceClasses with synchronous semantics.
- *
- * All non-const parameters will be filled with the returned values.
- * The CallStatus will be filled when the method returns and indicate either
- * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus
- * will be set.
- * Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
- */
- virtual void GetListSourceClasses(CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result, CommandInterface::am_SourceClass_l& listSourceClasses);
- /**
- * Calls GetListSourceClasses with asynchronous semantics.
- *
- * The provided callback will be called when the reply to this call arrives or
- * an error occurs during the call. The CallStatus will indicate either "SUCCESS"
- * or which type of error has occurred. In case of any error, ONLY the CallStatus
- * will have a defined value.
- * The std::future returned by this method will be fulfilled at arrival of the reply.
- * It will provide the same value for CallStatus as will be handed to the callback.
- */
- virtual std::future<CommonAPI::CallStatus> GetListSourceClassesAsync(GetListSourceClassesAsyncCallback callback);
-
- /**
- * Calls GetListSinkClasses with synchronous semantics.
- *
- * All non-const parameters will be filled with the returned values.
- * The CallStatus will be filled when the method returns and indicate either
- * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus
- * will be set.
- * Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
- */
- virtual void GetListSinkClasses(CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result, CommandInterface::am_SinkClass_l& listSinkClasses);
- /**
- * Calls GetListSinkClasses with asynchronous semantics.
- *
- * The provided callback will be called when the reply to this call arrives or
- * an error occurs during the call. The CallStatus will indicate either "SUCCESS"
- * or which type of error has occurred. In case of any error, ONLY the CallStatus
- * will have a defined value.
- * The std::future returned by this method will be fulfilled at arrival of the reply.
- * It will provide the same value for CallStatus as will be handed to the callback.
- */
- virtual std::future<CommonAPI::CallStatus> GetListSinkClassesAsync(GetListSinkClassesAsyncCallback callback);
-
- /**
- * Calls GetListSystemProperties with synchronous semantics.
- *
- * All non-const parameters will be filled with the returned values.
- * The CallStatus will be filled when the method returns and indicate either
- * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus
- * will be set.
- * Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
- */
- virtual void GetListSystemProperties(CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result, CommandInterface::am_SystemProperty_l& listSystemProperties);
- /**
- * Calls GetListSystemProperties with asynchronous semantics.
- *
- * The provided callback will be called when the reply to this call arrives or
- * an error occurs during the call. The CallStatus will indicate either "SUCCESS"
- * or which type of error has occurred. In case of any error, ONLY the CallStatus
- * will have a defined value.
- * The std::future returned by this method will be fulfilled at arrival of the reply.
- * It will provide the same value for CallStatus as will be handed to the callback.
- */
- virtual std::future<CommonAPI::CallStatus> GetListSystemPropertiesAsync(GetListSystemPropertiesAsyncCallback callback);
-
- /**
- * Calls GetTimingInformation with synchronous semantics.
- *
- * All const parameters are input parameters to this method.
- * All non-const parameters will be filled with the returned values.
- * The CallStatus will be filled when the method returns and indicate either
- * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus
- * will be set.
- * Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
- */
- virtual void GetTimingInformation(const CommandInterface::am_mainConnectionID_t& mainConnectionID, CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result, CommandInterface::am_timeSync_t& delay);
- /**
- * Calls GetTimingInformation with asynchronous semantics.
- *
- * The provided callback will be called when the reply to this call arrives or
- * an error occurs during the call. The CallStatus will indicate either "SUCCESS"
- * or which type of error has occurred. In case of any error, ONLY the CallStatus
- * will have a defined value.
- * The std::future returned by this method will be fulfilled at arrival of the reply.
- * It will provide the same value for CallStatus as will be handed to the callback.
- */
- virtual std::future<CommonAPI::CallStatus> GetTimingInformationAsync(const CommandInterface::am_mainConnectionID_t& mainConnectionID, GetTimingInformationAsyncCallback callback);
-
- /// Returns the CommonAPI address of the remote partner this proxy communicates with.
- virtual std::string getAddress() const;
-
- /// Returns the domain of the remote partner this proxy communicates with.
- virtual const std::string& getDomain() const;
-
- /// Returns the service ID of the remote partner this proxy communicates with.
- virtual const std::string& getServiceId() const;
-
- /// Returns the instance ID of the remote partner this proxy communicates with.
- virtual const std::string& getInstanceId() const;
-
- /// Returns true if the remote partner for this proxy is available.
- virtual bool isAvailable() const;
-
- /**
- * Returns the wrapper class that is used to (de-)register for notifications about
- * the availability of the remote partner of this proxy.
- */
- virtual CommonAPI::ProxyStatusEvent& getProxyStatusEvent();
-
- /**
- * Returns the wrapper class that is used to access version information of the remote
- * partner of this proxy.
- */
- virtual CommonAPI::InterfaceVersionAttribute& getInterfaceVersionAttribute();
-
- private:
- std::shared_ptr<CommandInterfaceProxyBase> delegate_;
-};
-
-
-//
-// CommandInterfaceProxy Implementation
-//
-template <typename ... _AttributeExtensions>
-CommandInterfaceProxy<_AttributeExtensions...>::CommandInterfaceProxy(std::shared_ptr<CommonAPI::Proxy> delegate):
- delegate_(std::dynamic_pointer_cast<CommandInterfaceProxyBase>(delegate)),
- _AttributeExtensions(*(std::dynamic_pointer_cast<CommandInterfaceProxyBase>(delegate)))... {
-}
-
-template <typename ... _AttributeExtensions>
-CommandInterfaceProxy<_AttributeExtensions...>::~CommandInterfaceProxy() {
-}
-
-template <typename ... _AttributeExtensions>
-void CommandInterfaceProxy<_AttributeExtensions...>::Connect(const CommandInterface::am_sourceID_t& sourceID, const CommandInterface::am_sinkID_t& sinkID, CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result, CommandInterface::am_mainConnectionID_t& mainConnectionID) {
- delegate_->Connect(sourceID, sinkID, callStatus, result, mainConnectionID);
-}
-
-template <typename ... _AttributeExtensions>
-std::future<CommonAPI::CallStatus> CommandInterfaceProxy<_AttributeExtensions...>::ConnectAsync(const CommandInterface::am_sourceID_t& sourceID, const CommandInterface::am_sinkID_t& sinkID, ConnectAsyncCallback callback) {
- return delegate_->ConnectAsync(sourceID, sinkID, callback);
-}
-
-template <typename ... _AttributeExtensions>
-void CommandInterfaceProxy<_AttributeExtensions...>::Disconnect(const CommandInterface::am_mainConnectionID_t& mainConnectionID, CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result) {
- delegate_->Disconnect(mainConnectionID, callStatus, result);
-}
-
-template <typename ... _AttributeExtensions>
-std::future<CommonAPI::CallStatus> CommandInterfaceProxy<_AttributeExtensions...>::DisconnectAsync(const CommandInterface::am_mainConnectionID_t& mainConnectionID, DisconnectAsyncCallback callback) {
- return delegate_->DisconnectAsync(mainConnectionID, callback);
-}
-
-template <typename ... _AttributeExtensions>
-void CommandInterfaceProxy<_AttributeExtensions...>::SetVolume(const CommandInterface::am_sinkID_t& sinkID, const CommandInterface::am_mainVolume_t& volume, CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result) {
- delegate_->SetVolume(sinkID, volume, callStatus, result);
-}
-
-template <typename ... _AttributeExtensions>
-std::future<CommonAPI::CallStatus> CommandInterfaceProxy<_AttributeExtensions...>::SetVolumeAsync(const CommandInterface::am_sinkID_t& sinkID, const CommandInterface::am_mainVolume_t& volume, SetVolumeAsyncCallback callback) {
- return delegate_->SetVolumeAsync(sinkID, volume, callback);
-}
-
-template <typename ... _AttributeExtensions>
-void CommandInterfaceProxy<_AttributeExtensions...>::VolumeStep(const CommandInterface::am_sinkID_t& sinkID, const CommandInterface::am_mainVolume_t& volumeStep, CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result) {
- delegate_->VolumeStep(sinkID, volumeStep, callStatus, result);
-}
-
-template <typename ... _AttributeExtensions>
-std::future<CommonAPI::CallStatus> CommandInterfaceProxy<_AttributeExtensions...>::VolumeStepAsync(const CommandInterface::am_sinkID_t& sinkID, const CommandInterface::am_mainVolume_t& volumeStep, VolumeStepAsyncCallback callback) {
- return delegate_->VolumeStepAsync(sinkID, volumeStep, callback);
-}
-
-template <typename ... _AttributeExtensions>
-void CommandInterfaceProxy<_AttributeExtensions...>::SetSinkMuteState(const CommandInterface::am_sinkID_t& sinkID, const CommandInterface::am_MuteState_e& muteState, CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result) {
- delegate_->SetSinkMuteState(sinkID, muteState, callStatus, result);
-}
-
-template <typename ... _AttributeExtensions>
-std::future<CommonAPI::CallStatus> CommandInterfaceProxy<_AttributeExtensions...>::SetSinkMuteStateAsync(const CommandInterface::am_sinkID_t& sinkID, const CommandInterface::am_MuteState_e& muteState, SetSinkMuteStateAsyncCallback callback) {
- return delegate_->SetSinkMuteStateAsync(sinkID, muteState, callback);
-}
-
-template <typename ... _AttributeExtensions>
-void CommandInterfaceProxy<_AttributeExtensions...>::SetMainSinkSoundProperty(const CommandInterface::am_sinkID_t& sinkID, const CommandInterface::am_MainSoundProperty_s& soundProperty, CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result) {
- delegate_->SetMainSinkSoundProperty(sinkID, soundProperty, callStatus, result);
-}
-
-template <typename ... _AttributeExtensions>
-std::future<CommonAPI::CallStatus> CommandInterfaceProxy<_AttributeExtensions...>::SetMainSinkSoundPropertyAsync(const CommandInterface::am_sinkID_t& sinkID, const CommandInterface::am_MainSoundProperty_s& soundProperty, SetMainSinkSoundPropertyAsyncCallback callback) {
- return delegate_->SetMainSinkSoundPropertyAsync(sinkID, soundProperty, callback);
-}
-
-template <typename ... _AttributeExtensions>
-void CommandInterfaceProxy<_AttributeExtensions...>::SetMainSourceSoundProperty(const CommandInterface::am_sourceID_t& sourceID, const CommandInterface::am_MainSoundProperty_s& soundProperty, CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result) {
- delegate_->SetMainSourceSoundProperty(sourceID, soundProperty, callStatus, result);
-}
-
-template <typename ... _AttributeExtensions>
-std::future<CommonAPI::CallStatus> CommandInterfaceProxy<_AttributeExtensions...>::SetMainSourceSoundPropertyAsync(const CommandInterface::am_sourceID_t& sourceID, const CommandInterface::am_MainSoundProperty_s& soundProperty, SetMainSourceSoundPropertyAsyncCallback callback) {
- return delegate_->SetMainSourceSoundPropertyAsync(sourceID, soundProperty, callback);
-}
-
-template <typename ... _AttributeExtensions>
-void CommandInterfaceProxy<_AttributeExtensions...>::SetSystemProperty(const CommandInterface::am_SystemProperty_s& soundProperty, CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result) {
- delegate_->SetSystemProperty(soundProperty, callStatus, result);
-}
-
-template <typename ... _AttributeExtensions>
-std::future<CommonAPI::CallStatus> CommandInterfaceProxy<_AttributeExtensions...>::SetSystemPropertyAsync(const CommandInterface::am_SystemProperty_s& soundProperty, SetSystemPropertyAsyncCallback callback) {
- return delegate_->SetSystemPropertyAsync(soundProperty, callback);
-}
-
-template <typename ... _AttributeExtensions>
-void CommandInterfaceProxy<_AttributeExtensions...>::GetListMainConnections(CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result, CommandInterface::am_MainConnectionType_l& listConnections) {
- delegate_->GetListMainConnections(callStatus, result, listConnections);
-}
-
-template <typename ... _AttributeExtensions>
-std::future<CommonAPI::CallStatus> CommandInterfaceProxy<_AttributeExtensions...>::GetListMainConnectionsAsync(GetListMainConnectionsAsyncCallback callback) {
- return delegate_->GetListMainConnectionsAsync(callback);
-}
-
-template <typename ... _AttributeExtensions>
-void CommandInterfaceProxy<_AttributeExtensions...>::GetListMainSinks(CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result, CommandInterface::am_SinkType_l& listMainSinks) {
- delegate_->GetListMainSinks(callStatus, result, listMainSinks);
-}
-
-template <typename ... _AttributeExtensions>
-std::future<CommonAPI::CallStatus> CommandInterfaceProxy<_AttributeExtensions...>::GetListMainSinksAsync(GetListMainSinksAsyncCallback callback) {
- return delegate_->GetListMainSinksAsync(callback);
-}
-
-template <typename ... _AttributeExtensions>
-void CommandInterfaceProxy<_AttributeExtensions...>::GetListMainSources(CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result, CommandInterface::am_SourceType_l& listMainSources) {
- delegate_->GetListMainSources(callStatus, result, listMainSources);
-}
-
-template <typename ... _AttributeExtensions>
-std::future<CommonAPI::CallStatus> CommandInterfaceProxy<_AttributeExtensions...>::GetListMainSourcesAsync(GetListMainSourcesAsyncCallback callback) {
- return delegate_->GetListMainSourcesAsync(callback);
-}
-
-template <typename ... _AttributeExtensions>
-void CommandInterfaceProxy<_AttributeExtensions...>::GetListMainSinkSoundProperties(const CommandInterface::am_sinkID_t& sinkID, CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result, CommandInterface::am_MainSoundProperty_l& listSoundProperties) {
- delegate_->GetListMainSinkSoundProperties(sinkID, callStatus, result, listSoundProperties);
-}
-
-template <typename ... _AttributeExtensions>
-std::future<CommonAPI::CallStatus> CommandInterfaceProxy<_AttributeExtensions...>::GetListMainSinkSoundPropertiesAsync(const CommandInterface::am_sinkID_t& sinkID, GetListMainSinkSoundPropertiesAsyncCallback callback) {
- return delegate_->GetListMainSinkSoundPropertiesAsync(sinkID, callback);
-}
-
-template <typename ... _AttributeExtensions>
-void CommandInterfaceProxy<_AttributeExtensions...>::GetListMainSourceSoundProperties(const CommandInterface::am_sourceID_t& sourceID, CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result, CommandInterface::am_MainSoundProperty_l& listSourceProperties) {
- delegate_->GetListMainSourceSoundProperties(sourceID, callStatus, result, listSourceProperties);
-}
-
-template <typename ... _AttributeExtensions>
-std::future<CommonAPI::CallStatus> CommandInterfaceProxy<_AttributeExtensions...>::GetListMainSourceSoundPropertiesAsync(const CommandInterface::am_sourceID_t& sourceID, GetListMainSourceSoundPropertiesAsyncCallback callback) {
- return delegate_->GetListMainSourceSoundPropertiesAsync(sourceID, callback);
-}
-
-template <typename ... _AttributeExtensions>
-void CommandInterfaceProxy<_AttributeExtensions...>::GetListSourceClasses(CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result, CommandInterface::am_SourceClass_l& listSourceClasses) {
- delegate_->GetListSourceClasses(callStatus, result, listSourceClasses);
-}
-
-template <typename ... _AttributeExtensions>
-std::future<CommonAPI::CallStatus> CommandInterfaceProxy<_AttributeExtensions...>::GetListSourceClassesAsync(GetListSourceClassesAsyncCallback callback) {
- return delegate_->GetListSourceClassesAsync(callback);
-}
-
-template <typename ... _AttributeExtensions>
-void CommandInterfaceProxy<_AttributeExtensions...>::GetListSinkClasses(CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result, CommandInterface::am_SinkClass_l& listSinkClasses) {
- delegate_->GetListSinkClasses(callStatus, result, listSinkClasses);
-}
-
-template <typename ... _AttributeExtensions>
-std::future<CommonAPI::CallStatus> CommandInterfaceProxy<_AttributeExtensions...>::GetListSinkClassesAsync(GetListSinkClassesAsyncCallback callback) {
- return delegate_->GetListSinkClassesAsync(callback);
-}
-
-template <typename ... _AttributeExtensions>
-void CommandInterfaceProxy<_AttributeExtensions...>::GetListSystemProperties(CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result, CommandInterface::am_SystemProperty_l& listSystemProperties) {
- delegate_->GetListSystemProperties(callStatus, result, listSystemProperties);
-}
-
-template <typename ... _AttributeExtensions>
-std::future<CommonAPI::CallStatus> CommandInterfaceProxy<_AttributeExtensions...>::GetListSystemPropertiesAsync(GetListSystemPropertiesAsyncCallback callback) {
- return delegate_->GetListSystemPropertiesAsync(callback);
-}
-
-template <typename ... _AttributeExtensions>
-void CommandInterfaceProxy<_AttributeExtensions...>::GetTimingInformation(const CommandInterface::am_mainConnectionID_t& mainConnectionID, CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result, CommandInterface::am_timeSync_t& delay) {
- delegate_->GetTimingInformation(mainConnectionID, callStatus, result, delay);
-}
-
-template <typename ... _AttributeExtensions>
-std::future<CommonAPI::CallStatus> CommandInterfaceProxy<_AttributeExtensions...>::GetTimingInformationAsync(const CommandInterface::am_mainConnectionID_t& mainConnectionID, GetTimingInformationAsyncCallback callback) {
- return delegate_->GetTimingInformationAsync(mainConnectionID, callback);
-}
-
-
-template <typename ... _AttributeExtensions>
-std::string CommandInterfaceProxy<_AttributeExtensions...>::getAddress() const {
- return delegate_->getAddress();
-}
-
-template <typename ... _AttributeExtensions>
-const std::string& CommandInterfaceProxy<_AttributeExtensions...>::getDomain() const {
- return delegate_->getDomain();
-}
-
-template <typename ... _AttributeExtensions>
-const std::string& CommandInterfaceProxy<_AttributeExtensions...>::getServiceId() const {
- return delegate_->getServiceId();
-}
-
-template <typename ... _AttributeExtensions>
-const std::string& CommandInterfaceProxy<_AttributeExtensions...>::getInstanceId() const {
- return delegate_->getInstanceId();
-}
-
-template <typename ... _AttributeExtensions>
-bool CommandInterfaceProxy<_AttributeExtensions...>::isAvailable() const {
- return delegate_->isAvailable();
-}
-
-template <typename ... _AttributeExtensions>
-CommonAPI::ProxyStatusEvent& CommandInterfaceProxy<_AttributeExtensions...>::getProxyStatusEvent() {
- return delegate_->getProxyStatusEvent();
-}
-
-template <typename ... _AttributeExtensions>
-CommonAPI::InterfaceVersionAttribute& CommandInterfaceProxy<_AttributeExtensions...>::getInterfaceVersionAttribute() {
- return delegate_->getInterfaceVersionAttribute();
-}
-
-} // namespace audiomanager
-} // namespace genivi
-} // namespace org
-
-
-
-#endif // ORG_GENIVI_AUDIOMANAGER_Command_Interface_PROXY_H_
diff --git a/PluginCommandInterfaceCAPI/src-gen/org/genivi/audiomanager/CommandInterfaceProxyBase.h b/PluginCommandInterfaceCAPI/src-gen/org/genivi/audiomanager/CommandInterfaceProxyBase.h
deleted file mode 100644
index f7615a0..0000000
--- a/PluginCommandInterfaceCAPI/src-gen/org/genivi/audiomanager/CommandInterfaceProxyBase.h
+++ /dev/null
@@ -1,170 +0,0 @@
- /*
- * This file was generated by the CommonAPI Generators.
- *
- * Copyright (c) 2012 BMW
- *
- * \author Aleksandar Donchev, aleksander.donchev@partner.bmw.de BMW 2013
- *
- * \copyright
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction,
- * including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
- * subject to the following conditions:
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
- * THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- *
- * For further information see http://www.genivi.org/.
- */
- #ifndef ORG_GENIVI_AUDIOMANAGER_Command_Interface_PROXY_BASE_H_
- #define ORG_GENIVI_AUDIOMANAGER_Command_Interface_PROXY_BASE_H_
-
- #include "CommandInterface.h"
-
-
- #include <org/genivi/audiomanager/am.h>
-
- #define COMMONAPI_INTERNAL_COMPILATION
-
- #include <CommonAPI/InputStream.h>
- #include <CommonAPI/OutputStream.h>
- #include <CommonAPI/SerializableStruct.h>
- #include <cstdint>
- #include <string>
- #include <vector>
-
- #include <CommonAPI/Event.h>
- #include <CommonAPI/Proxy.h>
- #include <functional>
- #include <future>
-
- #undef COMMONAPI_INTERNAL_COMPILATION
-
- namespace org {
- namespace genivi {
- namespace audiomanager {
-
- class CommandInterfaceProxyBase: virtual public CommonAPI::Proxy {
- public:
- typedef CommonAPI::Event<> NumberOfMainConnectionsChangedEvent;
- typedef CommonAPI::Event<CommandInterface::am_mainConnectionID_t, CommandInterface::am_ConnectionState_e> MainConnectionStateChangedEvent;
- typedef CommonAPI::Event<> NumberOfSourceClassesChangedEvent;
- typedef CommonAPI::Event<CommandInterface::am_SourceType_s> SourceAddedEvent;
- typedef CommonAPI::Event<CommandInterface::am_sourceID_t> SourceRemovedEvent;
- typedef CommonAPI::Event<CommandInterface::am_sourceID_t, CommandInterface::am_MainSoundProperty_s> MainSourceSoundPropertyChangedEvent;
- typedef CommonAPI::Event<CommandInterface::am_sourceID_t, CommandInterface::am_Availability_s> SourceAvailabilityChangedEvent;
- typedef CommonAPI::Event<> NumberOfSinkClassesChangedEvent;
- typedef CommonAPI::Event<CommandInterface::am_SinkType_s> SinkAddedEvent;
- typedef CommonAPI::Event<CommandInterface::am_sinkID_t> SinkRemovedEvent;
- typedef CommonAPI::Event<CommandInterface::am_sinkID_t, CommandInterface::am_MainSoundProperty_s> MainSinkSoundPropertyChangedEvent;
- typedef CommonAPI::Event<CommandInterface::am_sinkID_t, CommandInterface::am_Availability_s> SinkAvailabilityChangedEvent;
- typedef CommonAPI::Event<CommandInterface::am_sinkID_t, CommandInterface::am_mainVolume_t> VolumeChangedEvent;
- typedef CommonAPI::Event<CommandInterface::am_sinkID_t, CommandInterface::am_MuteState_e> SinkMuteStateChangedEvent;
- typedef CommonAPI::Event<CommandInterface::am_SystemProperty_s> SystemPropertyChangedEvent;
- typedef CommonAPI::Event<CommandInterface::am_mainConnectionID_t, CommandInterface::am_timeSync_t> TimingInformationChangedEvent;
- typedef CommonAPI::Event<CommandInterface::am_sinkID_t, CommandInterface::am_sinkClass_t, CommandInterface::am_MainSoundProperty_l> SinkUpdatedEvent;
- typedef CommonAPI::Event<CommandInterface::am_sourceID_t, CommandInterface::am_sourceClass_t, CommandInterface::am_MainSoundProperty_l> SourceUpdatedEvent;
- typedef CommonAPI::Event<CommandInterface::am_sinkID_t, CommandInterface::am_NotificationPayload_s> SinkNotificationEvent;
- typedef CommonAPI::Event<CommandInterface::am_sourceID_t, CommandInterface::am_NotificationPayload_s> SourceNotificationEvent;
- typedef CommonAPI::Event<CommandInterface::am_sinkID_t, am::am_NotificationConfiguration_s> MainSinkNotificationConfigurationChangedEvent;
- typedef CommonAPI::Event<CommandInterface::am_sourceID_t, am::am_NotificationConfiguration_s> MainSourceNotificationConfigurationChangedEvent;
- typedef std::function<void(const CommonAPI::CallStatus&, const CommandInterface::am_Error_e&, const CommandInterface::am_mainConnectionID_t&)> ConnectAsyncCallback;
- typedef std::function<void(const CommonAPI::CallStatus&, const CommandInterface::am_Error_e&)> DisconnectAsyncCallback;
- typedef std::function<void(const CommonAPI::CallStatus&, const CommandInterface::am_Error_e&)> SetVolumeAsyncCallback;
- typedef std::function<void(const CommonAPI::CallStatus&, const CommandInterface::am_Error_e&)> VolumeStepAsyncCallback;
- typedef std::function<void(const CommonAPI::CallStatus&, const CommandInterface::am_Error_e&)> SetSinkMuteStateAsyncCallback;
- typedef std::function<void(const CommonAPI::CallStatus&, const CommandInterface::am_Error_e&)> SetMainSinkSoundPropertyAsyncCallback;
- typedef std::function<void(const CommonAPI::CallStatus&, const CommandInterface::am_Error_e&)> SetMainSourceSoundPropertyAsyncCallback;
- typedef std::function<void(const CommonAPI::CallStatus&, const CommandInterface::am_Error_e&)> SetSystemPropertyAsyncCallback;
- typedef std::function<void(const CommonAPI::CallStatus&, const CommandInterface::am_Error_e&, const CommandInterface::am_MainConnectionType_l&)> GetListMainConnectionsAsyncCallback;
- typedef std::function<void(const CommonAPI::CallStatus&, const CommandInterface::am_Error_e&, const CommandInterface::am_SinkType_l&)> GetListMainSinksAsyncCallback;
- typedef std::function<void(const CommonAPI::CallStatus&, const CommandInterface::am_Error_e&, const CommandInterface::am_SourceType_l&)> GetListMainSourcesAsyncCallback;
- typedef std::function<void(const CommonAPI::CallStatus&, const CommandInterface::am_Error_e&, const CommandInterface::am_MainSoundProperty_l&)> GetListMainSinkSoundPropertiesAsyncCallback;
- typedef std::function<void(const CommonAPI::CallStatus&, const CommandInterface::am_Error_e&, const CommandInterface::am_MainSoundProperty_l&)> GetListMainSourceSoundPropertiesAsyncCallback;
- typedef std::function<void(const CommonAPI::CallStatus&, const CommandInterface::am_Error_e&, const CommandInterface::am_SourceClass_l&)> GetListSourceClassesAsyncCallback;
- typedef std::function<void(const CommonAPI::CallStatus&, const CommandInterface::am_Error_e&, const CommandInterface::am_SinkClass_l&)> GetListSinkClassesAsyncCallback;
- typedef std::function<void(const CommonAPI::CallStatus&, const CommandInterface::am_Error_e&, const CommandInterface::am_SystemProperty_l&)> GetListSystemPropertiesAsyncCallback;
- typedef std::function<void(const CommonAPI::CallStatus&, const CommandInterface::am_Error_e&, const CommandInterface::am_timeSync_t&)> GetTimingInformationAsyncCallback;
-
-
- virtual NumberOfMainConnectionsChangedEvent& getNumberOfMainConnectionsChangedEvent() = 0;
- virtual MainConnectionStateChangedEvent& getMainConnectionStateChangedEvent() = 0;
- virtual NumberOfSourceClassesChangedEvent& getNumberOfSourceClassesChangedEvent() = 0;
- virtual SourceAddedEvent& getSourceAddedEvent() = 0;
- virtual SourceRemovedEvent& getSourceRemovedEvent() = 0;
- virtual MainSourceSoundPropertyChangedEvent& getMainSourceSoundPropertyChangedEvent() = 0;
- virtual SourceAvailabilityChangedEvent& getSourceAvailabilityChangedEvent() = 0;
- virtual NumberOfSinkClassesChangedEvent& getNumberOfSinkClassesChangedEvent() = 0;
- virtual SinkAddedEvent& getSinkAddedEvent() = 0;
- virtual SinkRemovedEvent& getSinkRemovedEvent() = 0;
- virtual MainSinkSoundPropertyChangedEvent& getMainSinkSoundPropertyChangedEvent() = 0;
- virtual SinkAvailabilityChangedEvent& getSinkAvailabilityChangedEvent() = 0;
- virtual VolumeChangedEvent& getVolumeChangedEvent() = 0;
- virtual SinkMuteStateChangedEvent& getSinkMuteStateChangedEvent() = 0;
- virtual SystemPropertyChangedEvent& getSystemPropertyChangedEvent() = 0;
- virtual TimingInformationChangedEvent& getTimingInformationChangedEvent() = 0;
- virtual SinkUpdatedEvent& getSinkUpdatedEvent() = 0;
- virtual SourceUpdatedEvent& getSourceUpdatedEvent() = 0;
- virtual SinkNotificationEvent& getSinkNotificationEvent() = 0;
- virtual SourceNotificationEvent& getSourceNotificationEvent() = 0;
- virtual MainSinkNotificationConfigurationChangedEvent& getMainSinkNotificationConfigurationChangedEvent() = 0;
- virtual MainSourceNotificationConfigurationChangedEvent& getMainSourceNotificationConfigurationChangedEvent() = 0;
-
-
- virtual void Connect(const CommandInterface::am_sourceID_t& sourceID, const CommandInterface::am_sinkID_t& sinkID, CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result, CommandInterface::am_mainConnectionID_t& mainConnectionID) = 0;
- virtual std::future<CommonAPI::CallStatus> ConnectAsync(const CommandInterface::am_sourceID_t& sourceID, const CommandInterface::am_sinkID_t& sinkID, ConnectAsyncCallback callback) = 0;
-
- virtual void Disconnect(const CommandInterface::am_mainConnectionID_t& mainConnectionID, CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result) = 0;
- virtual std::future<CommonAPI::CallStatus> DisconnectAsync(const CommandInterface::am_mainConnectionID_t& mainConnectionID, DisconnectAsyncCallback callback) = 0;
-
- virtual void SetVolume(const CommandInterface::am_sinkID_t& sinkID, const CommandInterface::am_mainVolume_t& volume, CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result) = 0;
- virtual std::future<CommonAPI::CallStatus> SetVolumeAsync(const CommandInterface::am_sinkID_t& sinkID, const CommandInterface::am_mainVolume_t& volume, SetVolumeAsyncCallback callback) = 0;
-
- virtual void VolumeStep(const CommandInterface::am_sinkID_t& sinkID, const CommandInterface::am_mainVolume_t& volumeStep, CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result) = 0;
- virtual std::future<CommonAPI::CallStatus> VolumeStepAsync(const CommandInterface::am_sinkID_t& sinkID, const CommandInterface::am_mainVolume_t& volumeStep, VolumeStepAsyncCallback callback) = 0;
-
- virtual void SetSinkMuteState(const CommandInterface::am_sinkID_t& sinkID, const CommandInterface::am_MuteState_e& muteState, CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result) = 0;
- virtual std::future<CommonAPI::CallStatus> SetSinkMuteStateAsync(const CommandInterface::am_sinkID_t& sinkID, const CommandInterface::am_MuteState_e& muteState, SetSinkMuteStateAsyncCallback callback) = 0;
-
- virtual void SetMainSinkSoundProperty(const CommandInterface::am_sinkID_t& sinkID, const CommandInterface::am_MainSoundProperty_s& soundProperty, CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result) = 0;
- virtual std::future<CommonAPI::CallStatus> SetMainSinkSoundPropertyAsync(const CommandInterface::am_sinkID_t& sinkID, const CommandInterface::am_MainSoundProperty_s& soundProperty, SetMainSinkSoundPropertyAsyncCallback callback) = 0;
-
- virtual void SetMainSourceSoundProperty(const CommandInterface::am_sourceID_t& sourceID, const CommandInterface::am_MainSoundProperty_s& soundProperty, CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result) = 0;
- virtual std::future<CommonAPI::CallStatus> SetMainSourceSoundPropertyAsync(const CommandInterface::am_sourceID_t& sourceID, const CommandInterface::am_MainSoundProperty_s& soundProperty, SetMainSourceSoundPropertyAsyncCallback callback) = 0;
-
- virtual void SetSystemProperty(const CommandInterface::am_SystemProperty_s& soundProperty, CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result) = 0;
- virtual std::future<CommonAPI::CallStatus> SetSystemPropertyAsync(const CommandInterface::am_SystemProperty_s& soundProperty, SetSystemPropertyAsyncCallback callback) = 0;
-
- virtual void GetListMainConnections(CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result, CommandInterface::am_MainConnectionType_l& listConnections) = 0;
- virtual std::future<CommonAPI::CallStatus> GetListMainConnectionsAsync(GetListMainConnectionsAsyncCallback callback) = 0;
-
- virtual void GetListMainSinks(CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result, CommandInterface::am_SinkType_l& listMainSinks) = 0;
- virtual std::future<CommonAPI::CallStatus> GetListMainSinksAsync(GetListMainSinksAsyncCallback callback) = 0;
-
- virtual void GetListMainSources(CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result, CommandInterface::am_SourceType_l& listMainSources) = 0;
- virtual std::future<CommonAPI::CallStatus> GetListMainSourcesAsync(GetListMainSourcesAsyncCallback callback) = 0;
-
- virtual void GetListMainSinkSoundProperties(const CommandInterface::am_sinkID_t& sinkID, CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result, CommandInterface::am_MainSoundProperty_l& listSoundProperties) = 0;
- virtual std::future<CommonAPI::CallStatus> GetListMainSinkSoundPropertiesAsync(const CommandInterface::am_sinkID_t& sinkID, GetListMainSinkSoundPropertiesAsyncCallback callback) = 0;
-
- virtual void GetListMainSourceSoundProperties(const CommandInterface::am_sourceID_t& sourceID, CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result, CommandInterface::am_MainSoundProperty_l& listSourceProperties) = 0;
- virtual std::future<CommonAPI::CallStatus> GetListMainSourceSoundPropertiesAsync(const CommandInterface::am_sourceID_t& sourceID, GetListMainSourceSoundPropertiesAsyncCallback callback) = 0;
-
- virtual void GetListSourceClasses(CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result, CommandInterface::am_SourceClass_l& listSourceClasses) = 0;
- virtual std::future<CommonAPI::CallStatus> GetListSourceClassesAsync(GetListSourceClassesAsyncCallback callback) = 0;
-
- virtual void GetListSinkClasses(CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result, CommandInterface::am_SinkClass_l& listSinkClasses) = 0;
- virtual std::future<CommonAPI::CallStatus> GetListSinkClassesAsync(GetListSinkClassesAsyncCallback callback) = 0;
-
- virtual void GetListSystemProperties(CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result, CommandInterface::am_SystemProperty_l& listSystemProperties) = 0;
- virtual std::future<CommonAPI::CallStatus> GetListSystemPropertiesAsync(GetListSystemPropertiesAsyncCallback callback) = 0;
-
- virtual void GetTimingInformation(const CommandInterface::am_mainConnectionID_t& mainConnectionID, CommonAPI::CallStatus& callStatus, CommandInterface::am_Error_e& result, CommandInterface::am_timeSync_t& delay) = 0;
- virtual std::future<CommonAPI::CallStatus> GetTimingInformationAsync(const CommandInterface::am_mainConnectionID_t& mainConnectionID, GetTimingInformationAsyncCallback callback) = 0;
- };
-
- } // namespace audiomanager
- } // namespace genivi
- } // namespace org
-
- #endif // ORG_GENIVI_AUDIOMANAGER_Command_Interface_PROXY_BASE_H_
diff --git a/PluginCommandInterfaceCAPI/src-gen/org/genivi/audiomanager/CommandInterfaceStub.h b/PluginCommandInterfaceCAPI/src-gen/org/genivi/audiomanager/CommandInterfaceStub.h
deleted file mode 100644
index 2e26869..0000000
--- a/PluginCommandInterfaceCAPI/src-gen/org/genivi/audiomanager/CommandInterfaceStub.h
+++ /dev/null
@@ -1,282 +0,0 @@
-/*
-* This file was generated by the CommonAPI Generators.
-*
- * Copyright (c) 2012 BMW
- *
- * \author Aleksandar Donchev, aleksander.donchev@partner.bmw.de BMW 2013
- *
- * \copyright
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction,
- * including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
- * subject to the following conditions:
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
- * THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- *
- * For further information see http://www.genivi.org/.
-*/
-#ifndef ORG_GENIVI_AUDIOMANAGER_Command_Interface_STUB_H_
-#define ORG_GENIVI_AUDIOMANAGER_Command_Interface_STUB_H_
-
-
-
-#include <org/genivi/audiomanager/am.h>
-
-#include "CommandInterface.h"
-
-#define COMMONAPI_INTERNAL_COMPILATION
-
-#include <CommonAPI/InputStream.h>
-#include <CommonAPI/OutputStream.h>
-#include <CommonAPI/SerializableStruct.h>
-#include <cstdint>
-#include <string>
-#include <vector>
-
-#include <CommonAPI/Stub.h>
-
-#undef COMMONAPI_INTERNAL_COMPILATION
-
-namespace org {
-namespace genivi {
-namespace audiomanager {
-
-/**
- * Receives messages from remote and handles all dispatching of deserialized calls
- * to a stub for the service CommandInterface. Also provides means to send broadcasts
- * and attribute-changed-notifications of observable attributes as defined by this service.
- * An application developer should not need to bother with this class.
- */
-class CommandInterfaceStubAdapter: virtual public CommonAPI::StubAdapter, public CommandInterface {
- public:
-
- /**
- * Sends a broadcast event for NumberOfMainConnectionsChanged. Should not be called directly.
- * Instead, the "fire<broadcastName>Event" methods of the stub should be used.
- */
- virtual void fireNumberOfMainConnectionsChangedEvent() = 0;
- /**
- * Sends a broadcast event for MainConnectionStateChanged. Should not be called directly.
- * Instead, the "fire<broadcastName>Event" methods of the stub should be used.
- */
- virtual void fireMainConnectionStateChangedEvent(const CommandInterface::am_mainConnectionID_t& connectionID, const CommandInterface::am_ConnectionState_e& connectionState) = 0;
- /**
- * Sends a broadcast event for NumberOfSourceClassesChanged. Should not be called directly.
- * Instead, the "fire<broadcastName>Event" methods of the stub should be used.
- */
- virtual void fireNumberOfSourceClassesChangedEvent() = 0;
- /**
- * Sends a broadcast event for SourceAdded. Should not be called directly.
- * Instead, the "fire<broadcastName>Event" methods of the stub should be used.
- */
- virtual void fireSourceAddedEvent(const CommandInterface::am_SourceType_s& newSource) = 0;
- /**
- * Sends a broadcast event for SourceRemoved. Should not be called directly.
- * Instead, the "fire<broadcastName>Event" methods of the stub should be used.
- */
- virtual void fireSourceRemovedEvent(const CommandInterface::am_sourceID_t& removedSourceID) = 0;
- /**
- * Sends a broadcast event for MainSourceSoundPropertyChanged. Should not be called directly.
- * Instead, the "fire<broadcastName>Event" methods of the stub should be used.
- */
- virtual void fireMainSourceSoundPropertyChangedEvent(const CommandInterface::am_sourceID_t& sourceID, const CommandInterface::am_MainSoundProperty_s& SoundProperty) = 0;
- /**
- * Sends a broadcast event for SourceAvailabilityChanged. Should not be called directly.
- * Instead, the "fire<broadcastName>Event" methods of the stub should be used.
- */
- virtual void fireSourceAvailabilityChangedEvent(const CommandInterface::am_sourceID_t& sourceID, const CommandInterface::am_Availability_s& availability) = 0;
- /**
- * Sends a broadcast event for NumberOfSinkClassesChanged. Should not be called directly.
- * Instead, the "fire<broadcastName>Event" methods of the stub should be used.
- */
- virtual void fireNumberOfSinkClassesChangedEvent() = 0;
- /**
- * Sends a broadcast event for SinkAdded. Should not be called directly.
- * Instead, the "fire<broadcastName>Event" methods of the stub should be used.
- */
- virtual void fireSinkAddedEvent(const CommandInterface::am_SinkType_s& newSink) = 0;
- /**
- * Sends a broadcast event for SinkRemoved. Should not be called directly.
- * Instead, the "fire<broadcastName>Event" methods of the stub should be used.
- */
- virtual void fireSinkRemovedEvent(const CommandInterface::am_sinkID_t& removedSinkID) = 0;
- /**
- * Sends a broadcast event for MainSinkSoundPropertyChanged. Should not be called directly.
- * Instead, the "fire<broadcastName>Event" methods of the stub should be used.
- */
- virtual void fireMainSinkSoundPropertyChangedEvent(const CommandInterface::am_sinkID_t& sinkID, const CommandInterface::am_MainSoundProperty_s& SoundProperty) = 0;
- /**
- * Sends a broadcast event for SinkAvailabilityChanged. Should not be called directly.
- * Instead, the "fire<broadcastName>Event" methods of the stub should be used.
- */
- virtual void fireSinkAvailabilityChangedEvent(const CommandInterface::am_sinkID_t& sinkID, const CommandInterface::am_Availability_s& availability) = 0;
- /**
- * Sends a broadcast event for VolumeChanged. Should not be called directly.
- * Instead, the "fire<broadcastName>Event" methods of the stub should be used.
- */
- virtual void fireVolumeChangedEvent(const CommandInterface::am_sinkID_t& sinkID, const CommandInterface::am_mainVolume_t& volume) = 0;
- /**
- * Sends a broadcast event for SinkMuteStateChanged. Should not be called directly.
- * Instead, the "fire<broadcastName>Event" methods of the stub should be used.
- */
- virtual void fireSinkMuteStateChangedEvent(const CommandInterface::am_sinkID_t& sinkID, const CommandInterface::am_MuteState_e& muteState) = 0;
- /**
- * Sends a broadcast event for SystemPropertyChanged. Should not be called directly.
- * Instead, the "fire<broadcastName>Event" methods of the stub should be used.
- */
- virtual void fireSystemPropertyChangedEvent(const CommandInterface::am_SystemProperty_s& SystemProperty) = 0;
- /**
- * Sends a broadcast event for TimingInformationChanged. Should not be called directly.
- * Instead, the "fire<broadcastName>Event" methods of the stub should be used.
- */
- virtual void fireTimingInformationChangedEvent(const CommandInterface::am_mainConnectionID_t& mainConnection, const CommandInterface::am_timeSync_t& time) = 0;
- /**
- * Sends a broadcast event for SinkUpdated. Should not be called directly.
- * Instead, the "fire<broadcastName>Event" methods of the stub should be used.
- */
- virtual void fireSinkUpdatedEvent(const CommandInterface::am_sinkID_t& sinkID, const CommandInterface::am_sinkClass_t& sinkClassID, const CommandInterface::am_MainSoundProperty_l& listMainSoundProperties) = 0;
- /**
- * Sends a broadcast event for SourceUpdated. Should not be called directly.
- * Instead, the "fire<broadcastName>Event" methods of the stub should be used.
- */
- virtual void fireSourceUpdatedEvent(const CommandInterface::am_sourceID_t& sourceID, const CommandInterface::am_sourceClass_t& sourceClassID, const CommandInterface::am_MainSoundProperty_l& listMainSoundProperties) = 0;
- /**
- * Sends a broadcast event for SinkNotification. Should not be called directly.
- * Instead, the "fire<broadcastName>Event" methods of the stub should be used.
- */
- virtual void fireSinkNotificationEvent(const CommandInterface::am_sinkID_t& sinkID, const CommandInterface::am_NotificationPayload_s& notification) = 0;
- /**
- * Sends a broadcast event for SourceNotification. Should not be called directly.
- * Instead, the "fire<broadcastName>Event" methods of the stub should be used.
- */
- virtual void fireSourceNotificationEvent(const CommandInterface::am_sourceID_t& sourceID, const CommandInterface::am_NotificationPayload_s& notification) = 0;
- /**
- * Sends a broadcast event for MainSinkNotificationConfigurationChanged. Should not be called directly.
- * Instead, the "fire<broadcastName>Event" methods of the stub should be used.
- */
- virtual void fireMainSinkNotificationConfigurationChangedEvent(const CommandInterface::am_sinkID_t& sinkID, const am::am_NotificationConfiguration_s& mainNotificationConfiguration) = 0;
- /**
- * Sends a broadcast event for MainSourceNotificationConfigurationChanged. Should not be called directly.
- * Instead, the "fire<broadcastName>Event" methods of the stub should be used.
- */
- virtual void fireMainSourceNotificationConfigurationChangedEvent(const CommandInterface::am_sourceID_t& sourceID, const am::am_NotificationConfiguration_s& mainNotificationConfiguration) = 0;
-};
-
-
-/**
- * Defines the necessary callbacks to handle remote set events related to the attributes
- * defined in the IDL description for CommandInterface.
- * For each attribute two callbacks are defined:
- * - a verification callback that allows to verify the requested value and to prevent setting
- * e.g. an invalid value ("onRemoteSet<AttributeName>").
- * - an action callback to do local work after the attribute value has been changed
- * ("onRemote<AttributeName>Changed").
- *
- * This class and the one below are the ones an application developer needs to have
- * a look at if he wants to implement a service.
- */
-class CommandInterfaceStubRemoteEvent {
- public:
- virtual ~CommandInterfaceStubRemoteEvent() { }
-
-};
-
-
-/**
- * Defines the interface that must be implemented by any class that should provide
- * the service CommandInterface to remote clients.
- * This class and the one above are the ones an application developer needs to have
- * a look at if he wants to implement a service.
- */
-class CommandInterfaceStub : public CommonAPI::Stub<CommandInterfaceStubAdapter , CommandInterfaceStubRemoteEvent> {
- public:
- virtual ~CommandInterfaceStub() { }
-
-
- /// This is the method that will be called on remote calls on the method Connect.
- virtual void Connect(CommandInterface::am_sourceID_t sourceID, CommandInterface::am_sinkID_t sinkID, CommandInterface::am_Error_e& result, CommandInterface::am_mainConnectionID_t& mainConnectionID) = 0;
- /// This is the method that will be called on remote calls on the method Disconnect.
- virtual void Disconnect(CommandInterface::am_mainConnectionID_t mainConnectionID, CommandInterface::am_Error_e& result) = 0;
- /// This is the method that will be called on remote calls on the method SetVolume.
- virtual void SetVolume(CommandInterface::am_sinkID_t sinkID, CommandInterface::am_mainVolume_t volume, CommandInterface::am_Error_e& result) = 0;
- /// This is the method that will be called on remote calls on the method VolumeStep.
- virtual void VolumeStep(CommandInterface::am_sinkID_t sinkID, CommandInterface::am_mainVolume_t volumeStep, CommandInterface::am_Error_e& result) = 0;
- /// This is the method that will be called on remote calls on the method SetSinkMuteState.
- virtual void SetSinkMuteState(CommandInterface::am_sinkID_t sinkID, CommandInterface::am_MuteState_e muteState, CommandInterface::am_Error_e& result) = 0;
- /// This is the method that will be called on remote calls on the method SetMainSinkSoundProperty.
- virtual void SetMainSinkSoundProperty(CommandInterface::am_sinkID_t sinkID, CommandInterface::am_MainSoundProperty_s soundProperty, CommandInterface::am_Error_e& result) = 0;
- /// This is the method that will be called on remote calls on the method SetMainSourceSoundProperty.
- virtual void SetMainSourceSoundProperty(CommandInterface::am_sourceID_t sourceID, CommandInterface::am_MainSoundProperty_s soundProperty, CommandInterface::am_Error_e& result) = 0;
- /// This is the method that will be called on remote calls on the method SetSystemProperty.
- virtual void SetSystemProperty(CommandInterface::am_SystemProperty_s soundProperty, CommandInterface::am_Error_e& result) = 0;
- /// This is the method that will be called on remote calls on the method GetListMainConnections.
- virtual void GetListMainConnections(CommandInterface::am_Error_e& result, CommandInterface::am_MainConnectionType_l& listConnections) = 0;
- /// This is the method that will be called on remote calls on the method GetListMainSinks.
- virtual void GetListMainSinks(CommandInterface::am_Error_e& result, CommandInterface::am_SinkType_l& listMainSinks) = 0;
- /// This is the method that will be called on remote calls on the method GetListMainSources.
- virtual void GetListMainSources(CommandInterface::am_Error_e& result, CommandInterface::am_SourceType_l& listMainSources) = 0;
- /// This is the method that will be called on remote calls on the method GetListMainSinkSoundProperties.
- virtual void GetListMainSinkSoundProperties(CommandInterface::am_sinkID_t sinkID, CommandInterface::am_Error_e& result, CommandInterface::am_MainSoundProperty_l& listSoundProperties) = 0;
- /// This is the method that will be called on remote calls on the method GetListMainSourceSoundProperties.
- virtual void GetListMainSourceSoundProperties(CommandInterface::am_sourceID_t sourceID, CommandInterface::am_Error_e& result, CommandInterface::am_MainSoundProperty_l& listSourceProperties) = 0;
- /// This is the method that will be called on remote calls on the method GetListSourceClasses.
- virtual void GetListSourceClasses(CommandInterface::am_Error_e& result, CommandInterface::am_SourceClass_l& listSourceClasses) = 0;
- /// This is the method that will be called on remote calls on the method GetListSinkClasses.
- virtual void GetListSinkClasses(CommandInterface::am_Error_e& result, CommandInterface::am_SinkClass_l& listSinkClasses) = 0;
- /// This is the method that will be called on remote calls on the method GetListSystemProperties.
- virtual void GetListSystemProperties(CommandInterface::am_Error_e& result, CommandInterface::am_SystemProperty_l& listSystemProperties) = 0;
- /// This is the method that will be called on remote calls on the method GetTimingInformation.
- virtual void GetTimingInformation(CommandInterface::am_mainConnectionID_t mainConnectionID, CommandInterface::am_Error_e& result, CommandInterface::am_timeSync_t& delay) = 0;
-
- /// Sends a broadcast event for NumberOfMainConnectionsChanged.
- virtual void fireNumberOfMainConnectionsChangedEvent() = 0;
- /// Sends a broadcast event for MainConnectionStateChanged.
- virtual void fireMainConnectionStateChangedEvent(const CommandInterface::am_mainConnectionID_t& connectionID, const CommandInterface::am_ConnectionState_e& connectionState) = 0;
- /// Sends a broadcast event for NumberOfSourceClassesChanged.
- virtual void fireNumberOfSourceClassesChangedEvent() = 0;
- /// Sends a broadcast event for SourceAdded.
- virtual void fireSourceAddedEvent(const CommandInterface::am_SourceType_s& newSource) = 0;
- /// Sends a broadcast event for SourceRemoved.
- virtual void fireSourceRemovedEvent(const CommandInterface::am_sourceID_t& removedSourceID) = 0;
- /// Sends a broadcast event for MainSourceSoundPropertyChanged.
- virtual void fireMainSourceSoundPropertyChangedEvent(const CommandInterface::am_sourceID_t& sourceID, const CommandInterface::am_MainSoundProperty_s& SoundProperty) = 0;
- /// Sends a broadcast event for SourceAvailabilityChanged.
- virtual void fireSourceAvailabilityChangedEvent(const CommandInterface::am_sourceID_t& sourceID, const CommandInterface::am_Availability_s& availability) = 0;
- /// Sends a broadcast event for NumberOfSinkClassesChanged.
- virtual void fireNumberOfSinkClassesChangedEvent() = 0;
- /// Sends a broadcast event for SinkAdded.
- virtual void fireSinkAddedEvent(const CommandInterface::am_SinkType_s& newSink) = 0;
- /// Sends a broadcast event for SinkRemoved.
- virtual void fireSinkRemovedEvent(const CommandInterface::am_sinkID_t& removedSinkID) = 0;
- /// Sends a broadcast event for MainSinkSoundPropertyChanged.
- virtual void fireMainSinkSoundPropertyChangedEvent(const CommandInterface::am_sinkID_t& sinkID, const CommandInterface::am_MainSoundProperty_s& SoundProperty) = 0;
- /// Sends a broadcast event for SinkAvailabilityChanged.
- virtual void fireSinkAvailabilityChangedEvent(const CommandInterface::am_sinkID_t& sinkID, const CommandInterface::am_Availability_s& availability) = 0;
- /// Sends a broadcast event for VolumeChanged.
- virtual void fireVolumeChangedEvent(const CommandInterface::am_sinkID_t& sinkID, const CommandInterface::am_mainVolume_t& volume) = 0;
- /// Sends a broadcast event for SinkMuteStateChanged.
- virtual void fireSinkMuteStateChangedEvent(const CommandInterface::am_sinkID_t& sinkID, const CommandInterface::am_MuteState_e& muteState) = 0;
- /// Sends a broadcast event for SystemPropertyChanged.
- virtual void fireSystemPropertyChangedEvent(const CommandInterface::am_SystemProperty_s& SystemProperty) = 0;
- /// Sends a broadcast event for TimingInformationChanged.
- virtual void fireTimingInformationChangedEvent(const CommandInterface::am_mainConnectionID_t& mainConnection, const CommandInterface::am_timeSync_t& time) = 0;
- /// Sends a broadcast event for SinkUpdated.
- virtual void fireSinkUpdatedEvent(const CommandInterface::am_sinkID_t& sinkID, const CommandInterface::am_sinkClass_t& sinkClassID, const CommandInterface::am_MainSoundProperty_l& listMainSoundProperties) = 0;
- /// Sends a broadcast event for SourceUpdated.
- virtual void fireSourceUpdatedEvent(const CommandInterface::am_sourceID_t& sourceID, const CommandInterface::am_sourceClass_t& sourceClassID, const CommandInterface::am_MainSoundProperty_l& listMainSoundProperties) = 0;
- /// Sends a broadcast event for SinkNotification.
- virtual void fireSinkNotificationEvent(const CommandInterface::am_sinkID_t& sinkID, const CommandInterface::am_NotificationPayload_s& notification) = 0;
- /// Sends a broadcast event for SourceNotification.
- virtual void fireSourceNotificationEvent(const CommandInterface::am_sourceID_t& sourceID, const CommandInterface::am_NotificationPayload_s& notification) = 0;
- /// Sends a broadcast event for MainSinkNotificationConfigurationChanged.
- virtual void fireMainSinkNotificationConfigurationChangedEvent(const CommandInterface::am_sinkID_t& sinkID, const am::am_NotificationConfiguration_s& mainNotificationConfiguration) = 0;
- /// Sends a broadcast event for MainSourceNotificationConfigurationChanged.
- virtual void fireMainSourceNotificationConfigurationChangedEvent(const CommandInterface::am_sourceID_t& sourceID, const am::am_NotificationConfiguration_s& mainNotificationConfiguration) = 0;
-};
-
-} // namespace audiomanager
-} // namespace genivi
-} // namespace org
-
-#endif // ORG_GENIVI_AUDIOMANAGER_Command_Interface_STUB_H_
diff --git a/PluginCommandInterfaceCAPI/src-gen/org/genivi/audiomanager/CommandInterfaceStubDefault.cpp b/PluginCommandInterfaceCAPI/src-gen/org/genivi/audiomanager/CommandInterfaceStubDefault.cpp
deleted file mode 100644
index 0f44b08..0000000
--- a/PluginCommandInterfaceCAPI/src-gen/org/genivi/audiomanager/CommandInterfaceStubDefault.cpp
+++ /dev/null
@@ -1,177 +0,0 @@
-/*
-* This file was generated by the CommonAPI Generators.
-*
- * Copyright (c) 2012 BMW
- *
- * \author Aleksandar Donchev, aleksander.donchev@partner.bmw.de BMW 2013
- *
- * \copyright
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction,
- * including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
- * subject to the following conditions:
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
- * THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- *
- * For further information see http://www.genivi.org/.
-*/
-#include <org/genivi/audiomanager/CommandInterfaceStubDefault.h>
-
-namespace org {
-namespace genivi {
-namespace audiomanager {
-
-CommandInterfaceStubDefault::CommandInterfaceStubDefault():
- remoteEventHandler_(this) {
-}
-
-CommandInterfaceStubRemoteEvent* CommandInterfaceStubDefault::initStubAdapter(const std::shared_ptr<CommandInterfaceStubAdapter>& stubAdapter) {
- stubAdapter_ = stubAdapter;
- return &remoteEventHandler_;
-}
-
-
-void CommandInterfaceStubDefault::Connect(CommandInterface::am_sourceID_t sourceID, CommandInterface::am_sinkID_t sinkID, CommandInterface::am_Error_e& result, CommandInterface::am_mainConnectionID_t& mainConnectionID) {
- // No operation in default
-}
-
-void CommandInterfaceStubDefault::Disconnect(CommandInterface::am_mainConnectionID_t mainConnectionID, CommandInterface::am_Error_e& result) {
- // No operation in default
-}
-
-void CommandInterfaceStubDefault::SetVolume(CommandInterface::am_sinkID_t sinkID, CommandInterface::am_mainVolume_t volume, CommandInterface::am_Error_e& result) {
- // No operation in default
-}
-
-void CommandInterfaceStubDefault::VolumeStep(CommandInterface::am_sinkID_t sinkID, CommandInterface::am_mainVolume_t volumeStep, CommandInterface::am_Error_e& result) {
- // No operation in default
-}
-
-void CommandInterfaceStubDefault::SetSinkMuteState(CommandInterface::am_sinkID_t sinkID, CommandInterface::am_MuteState_e muteState, CommandInterface::am_Error_e& result) {
- // No operation in default
-}
-
-void CommandInterfaceStubDefault::SetMainSinkSoundProperty(CommandInterface::am_sinkID_t sinkID, CommandInterface::am_MainSoundProperty_s soundProperty, CommandInterface::am_Error_e& result) {
- // No operation in default
-}
-
-void CommandInterfaceStubDefault::SetMainSourceSoundProperty(CommandInterface::am_sourceID_t sourceID, CommandInterface::am_MainSoundProperty_s soundProperty, CommandInterface::am_Error_e& result) {
- // No operation in default
-}
-
-void CommandInterfaceStubDefault::SetSystemProperty(CommandInterface::am_SystemProperty_s soundProperty, CommandInterface::am_Error_e& result) {
- // No operation in default
-}
-
-void CommandInterfaceStubDefault::GetListMainConnections(CommandInterface::am_Error_e& result, CommandInterface::am_MainConnectionType_l& listConnections) {
- // No operation in default
-}
-
-void CommandInterfaceStubDefault::GetListMainSinks(CommandInterface::am_Error_e& result, CommandInterface::am_SinkType_l& listMainSinks) {
- // No operation in default
-}
-
-void CommandInterfaceStubDefault::GetListMainSources(CommandInterface::am_Error_e& result, CommandInterface::am_SourceType_l& listMainSources) {
- // No operation in default
-}
-
-void CommandInterfaceStubDefault::GetListMainSinkSoundProperties(CommandInterface::am_sinkID_t sinkID, CommandInterface::am_Error_e& result, CommandInterface::am_MainSoundProperty_l& listSoundProperties) {
- // No operation in default
-}
-
-void CommandInterfaceStubDefault::GetListMainSourceSoundProperties(CommandInterface::am_sourceID_t sourceID, CommandInterface::am_Error_e& result, CommandInterface::am_MainSoundProperty_l& listSourceProperties) {
- // No operation in default
-}
-
-void CommandInterfaceStubDefault::GetListSourceClasses(CommandInterface::am_Error_e& result, CommandInterface::am_SourceClass_l& listSourceClasses) {
- // No operation in default
-}
-
-void CommandInterfaceStubDefault::GetListSinkClasses(CommandInterface::am_Error_e& result, CommandInterface::am_SinkClass_l& listSinkClasses) {
- // No operation in default
-}
-
-void CommandInterfaceStubDefault::GetListSystemProperties(CommandInterface::am_Error_e& result, CommandInterface::am_SystemProperty_l& listSystemProperties) {
- // No operation in default
-}
-
-void CommandInterfaceStubDefault::GetTimingInformation(CommandInterface::am_mainConnectionID_t mainConnectionID, CommandInterface::am_Error_e& result, CommandInterface::am_timeSync_t& delay) {
- // No operation in default
-}
-
-
-void CommandInterfaceStubDefault::fireNumberOfMainConnectionsChangedEvent() {
- stubAdapter_->fireNumberOfMainConnectionsChangedEvent();
-}
-void CommandInterfaceStubDefault::fireMainConnectionStateChangedEvent(const CommandInterface::am_mainConnectionID_t& connectionID, const CommandInterface::am_ConnectionState_e& connectionState) {
- stubAdapter_->fireMainConnectionStateChangedEvent(connectionID, connectionState);
-}
-void CommandInterfaceStubDefault::fireNumberOfSourceClassesChangedEvent() {
- stubAdapter_->fireNumberOfSourceClassesChangedEvent();
-}
-void CommandInterfaceStubDefault::fireSourceAddedEvent(const CommandInterface::am_SourceType_s& newSource) {
- stubAdapter_->fireSourceAddedEvent(newSource);
-}
-void CommandInterfaceStubDefault::fireSourceRemovedEvent(const CommandInterface::am_sourceID_t& removedSourceID) {
- stubAdapter_->fireSourceRemovedEvent(removedSourceID);
-}
-void CommandInterfaceStubDefault::fireMainSourceSoundPropertyChangedEvent(const CommandInterface::am_sourceID_t& sourceID, const CommandInterface::am_MainSoundProperty_s& SoundProperty) {
- stubAdapter_->fireMainSourceSoundPropertyChangedEvent(sourceID, SoundProperty);
-}
-void CommandInterfaceStubDefault::fireSourceAvailabilityChangedEvent(const CommandInterface::am_sourceID_t& sourceID, const CommandInterface::am_Availability_s& availability) {
- stubAdapter_->fireSourceAvailabilityChangedEvent(sourceID, availability);
-}
-void CommandInterfaceStubDefault::fireNumberOfSinkClassesChangedEvent() {
- stubAdapter_->fireNumberOfSinkClassesChangedEvent();
-}
-void CommandInterfaceStubDefault::fireSinkAddedEvent(const CommandInterface::am_SinkType_s& newSink) {
- stubAdapter_->fireSinkAddedEvent(newSink);
-}
-void CommandInterfaceStubDefault::fireSinkRemovedEvent(const CommandInterface::am_sinkID_t& removedSinkID) {
- stubAdapter_->fireSinkRemovedEvent(removedSinkID);
-}
-void CommandInterfaceStubDefault::fireMainSinkSoundPropertyChangedEvent(const CommandInterface::am_sinkID_t& sinkID, const CommandInterface::am_MainSoundProperty_s& SoundProperty) {
- stubAdapter_->fireMainSinkSoundPropertyChangedEvent(sinkID, SoundProperty);
-}
-void CommandInterfaceStubDefault::fireSinkAvailabilityChangedEvent(const CommandInterface::am_sinkID_t& sinkID, const CommandInterface::am_Availability_s& availability) {
- stubAdapter_->fireSinkAvailabilityChangedEvent(sinkID, availability);
-}
-void CommandInterfaceStubDefault::fireVolumeChangedEvent(const CommandInterface::am_sinkID_t& sinkID, const CommandInterface::am_mainVolume_t& volume) {
- stubAdapter_->fireVolumeChangedEvent(sinkID, volume);
-}
-void CommandInterfaceStubDefault::fireSinkMuteStateChangedEvent(const CommandInterface::am_sinkID_t& sinkID, const CommandInterface::am_MuteState_e& muteState) {
- stubAdapter_->fireSinkMuteStateChangedEvent(sinkID, muteState);
-}
-void CommandInterfaceStubDefault::fireSystemPropertyChangedEvent(const CommandInterface::am_SystemProperty_s& SystemProperty) {
- stubAdapter_->fireSystemPropertyChangedEvent(SystemProperty);
-}
-void CommandInterfaceStubDefault::fireTimingInformationChangedEvent(const CommandInterface::am_mainConnectionID_t& mainConnection, const CommandInterface::am_timeSync_t& time) {
- stubAdapter_->fireTimingInformationChangedEvent(mainConnection, time);
-}
-void CommandInterfaceStubDefault::fireSinkUpdatedEvent(const CommandInterface::am_sinkID_t& sinkID, const CommandInterface::am_sinkClass_t& sinkClassID, const CommandInterface::am_MainSoundProperty_l& listMainSoundProperties) {
- stubAdapter_->fireSinkUpdatedEvent(sinkID, sinkClassID, listMainSoundProperties);
-}
-void CommandInterfaceStubDefault::fireSourceUpdatedEvent(const CommandInterface::am_sourceID_t& sourceID, const CommandInterface::am_sourceClass_t& sourceClassID, const CommandInterface::am_MainSoundProperty_l& listMainSoundProperties) {
- stubAdapter_->fireSourceUpdatedEvent(sourceID, sourceClassID, listMainSoundProperties);
-}
-void CommandInterfaceStubDefault::fireSinkNotificationEvent(const CommandInterface::am_sinkID_t& sinkID, const CommandInterface::am_NotificationPayload_s& notification) {
- stubAdapter_->fireSinkNotificationEvent(sinkID, notification);
-}
-void CommandInterfaceStubDefault::fireSourceNotificationEvent(const CommandInterface::am_sourceID_t& sourceID, const CommandInterface::am_NotificationPayload_s& notification) {
- stubAdapter_->fireSourceNotificationEvent(sourceID, notification);
-}
-void CommandInterfaceStubDefault::fireMainSinkNotificationConfigurationChangedEvent(const CommandInterface::am_sinkID_t& sinkID, const am::am_NotificationConfiguration_s& mainNotificationConfiguration) {
- stubAdapter_->fireMainSinkNotificationConfigurationChangedEvent(sinkID, mainNotificationConfiguration);
-}
-void CommandInterfaceStubDefault::fireMainSourceNotificationConfigurationChangedEvent(const CommandInterface::am_sourceID_t& sourceID, const am::am_NotificationConfiguration_s& mainNotificationConfiguration) {
- stubAdapter_->fireMainSourceNotificationConfigurationChangedEvent(sourceID, mainNotificationConfiguration);
-}
-
-CommandInterfaceStubDefault::RemoteEventHandler::RemoteEventHandler(CommandInterfaceStubDefault* defaultStub):
- defaultStub_(defaultStub) {
-}
-
-} // namespace audiomanager
-} // namespace genivi
-} // namespace org
diff --git a/PluginCommandInterfaceCAPI/src-gen/org/genivi/audiomanager/CommandInterfaceStubDefault.h b/PluginCommandInterfaceCAPI/src-gen/org/genivi/audiomanager/CommandInterfaceStubDefault.h
deleted file mode 100644
index a2610c2..0000000
--- a/PluginCommandInterfaceCAPI/src-gen/org/genivi/audiomanager/CommandInterfaceStubDefault.h
+++ /dev/null
@@ -1,124 +0,0 @@
-/*
-* This file was generated by the CommonAPI Generators.
-*
- * Copyright (c) 2012 BMW
- *
- * \author Aleksandar Donchev, aleksander.donchev@partner.bmw.de BMW 2013
- *
- * \copyright
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction,
- * including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
- * subject to the following conditions:
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
- * THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- *
- * For further information see http://www.genivi.org/.
-*/
-#ifndef ORG_GENIVI_AUDIOMANAGER_Command_Interface_STUB_DEFAULT_H_
-#define ORG_GENIVI_AUDIOMANAGER_Command_Interface_STUB_DEFAULT_H_
-
-#include <org/genivi/audiomanager/CommandInterfaceStub.h>
-
-namespace org {
-namespace genivi {
-namespace audiomanager {
-
-/**
- * Provides a default implementation for CommandInterfaceStubRemoteEvent and
- * CommandInterfaceStub. Method callbacks have an empty implementation,
- * remote set calls on attributes will always change the value of the attribute
- * to the one received.
- *
- * Override this stub if you only want to provide a subset of the functionality
- * that would be defined for this service, and/or if you do not need any non-default
- * behaviour.
- */
-class CommandInterfaceStubDefault : public CommandInterfaceStub {
- public:
- CommandInterfaceStubDefault();
-
- CommandInterfaceStubRemoteEvent* initStubAdapter(const std::shared_ptr<CommandInterfaceStubAdapter>& stubAdapter);
-
-
- virtual void Connect(CommandInterface::am_sourceID_t sourceID, CommandInterface::am_sinkID_t sinkID, CommandInterface::am_Error_e& result, CommandInterface::am_mainConnectionID_t& mainConnectionID);
-
- virtual void Disconnect(CommandInterface::am_mainConnectionID_t mainConnectionID, CommandInterface::am_Error_e& result);
-
- virtual void SetVolume(CommandInterface::am_sinkID_t sinkID, CommandInterface::am_mainVolume_t volume, CommandInterface::am_Error_e& result);
-
- virtual void VolumeStep(CommandInterface::am_sinkID_t sinkID, CommandInterface::am_mainVolume_t volumeStep, CommandInterface::am_Error_e& result);
-
- virtual void SetSinkMuteState(CommandInterface::am_sinkID_t sinkID, CommandInterface::am_MuteState_e muteState, CommandInterface::am_Error_e& result);
-
- virtual void SetMainSinkSoundProperty(CommandInterface::am_sinkID_t sinkID, CommandInterface::am_MainSoundProperty_s soundProperty, CommandInterface::am_Error_e& result);
-
- virtual void SetMainSourceSoundProperty(CommandInterface::am_sourceID_t sourceID, CommandInterface::am_MainSoundProperty_s soundProperty, CommandInterface::am_Error_e& result);
-
- virtual void SetSystemProperty(CommandInterface::am_SystemProperty_s soundProperty, CommandInterface::am_Error_e& result);
-
- virtual void GetListMainConnections(CommandInterface::am_Error_e& result, CommandInterface::am_MainConnectionType_l& listConnections);
-
- virtual void GetListMainSinks(CommandInterface::am_Error_e& result, CommandInterface::am_SinkType_l& listMainSinks);
-
- virtual void GetListMainSources(CommandInterface::am_Error_e& result, CommandInterface::am_SourceType_l& listMainSources);
-
- virtual void GetListMainSinkSoundProperties(CommandInterface::am_sinkID_t sinkID, CommandInterface::am_Error_e& result, CommandInterface::am_MainSoundProperty_l& listSoundProperties);
-
- virtual void GetListMainSourceSoundProperties(CommandInterface::am_sourceID_t sourceID, CommandInterface::am_Error_e& result, CommandInterface::am_MainSoundProperty_l& listSourceProperties);
-
- virtual void GetListSourceClasses(CommandInterface::am_Error_e& result, CommandInterface::am_SourceClass_l& listSourceClasses);
-
- virtual void GetListSinkClasses(CommandInterface::am_Error_e& result, CommandInterface::am_SinkClass_l& listSinkClasses);
-
- virtual void GetListSystemProperties(CommandInterface::am_Error_e& result, CommandInterface::am_SystemProperty_l& listSystemProperties);
-
- virtual void GetTimingInformation(CommandInterface::am_mainConnectionID_t mainConnectionID, CommandInterface::am_Error_e& result, CommandInterface::am_timeSync_t& delay);
-
-
- virtual void fireNumberOfMainConnectionsChangedEvent();
- virtual void fireMainConnectionStateChangedEvent(const CommandInterface::am_mainConnectionID_t& connectionID, const CommandInterface::am_ConnectionState_e& connectionState);
- virtual void fireNumberOfSourceClassesChangedEvent();
- virtual void fireSourceAddedEvent(const CommandInterface::am_SourceType_s& newSource);
- virtual void fireSourceRemovedEvent(const CommandInterface::am_sourceID_t& removedSourceID);
- virtual void fireMainSourceSoundPropertyChangedEvent(const CommandInterface::am_sourceID_t& sourceID, const CommandInterface::am_MainSoundProperty_s& SoundProperty);
- virtual void fireSourceAvailabilityChangedEvent(const CommandInterface::am_sourceID_t& sourceID, const CommandInterface::am_Availability_s& availability);
- virtual void fireNumberOfSinkClassesChangedEvent();
- virtual void fireSinkAddedEvent(const CommandInterface::am_SinkType_s& newSink);
- virtual void fireSinkRemovedEvent(const CommandInterface::am_sinkID_t& removedSinkID);
- virtual void fireMainSinkSoundPropertyChangedEvent(const CommandInterface::am_sinkID_t& sinkID, const CommandInterface::am_MainSoundProperty_s& SoundProperty);
- virtual void fireSinkAvailabilityChangedEvent(const CommandInterface::am_sinkID_t& sinkID, const CommandInterface::am_Availability_s& availability);
- virtual void fireVolumeChangedEvent(const CommandInterface::am_sinkID_t& sinkID, const CommandInterface::am_mainVolume_t& volume);
- virtual void fireSinkMuteStateChangedEvent(const CommandInterface::am_sinkID_t& sinkID, const CommandInterface::am_MuteState_e& muteState);
- virtual void fireSystemPropertyChangedEvent(const CommandInterface::am_SystemProperty_s& SystemProperty);
- virtual void fireTimingInformationChangedEvent(const CommandInterface::am_mainConnectionID_t& mainConnection, const CommandInterface::am_timeSync_t& time);
- virtual void fireSinkUpdatedEvent(const CommandInterface::am_sinkID_t& sinkID, const CommandInterface::am_sinkClass_t& sinkClassID, const CommandInterface::am_MainSoundProperty_l& listMainSoundProperties);
- virtual void fireSourceUpdatedEvent(const CommandInterface::am_sourceID_t& sourceID, const CommandInterface::am_sourceClass_t& sourceClassID, const CommandInterface::am_MainSoundProperty_l& listMainSoundProperties);
- virtual void fireSinkNotificationEvent(const CommandInterface::am_sinkID_t& sinkID, const CommandInterface::am_NotificationPayload_s& notification);
- virtual void fireSourceNotificationEvent(const CommandInterface::am_sourceID_t& sourceID, const CommandInterface::am_NotificationPayload_s& notification);
- virtual void fireMainSinkNotificationConfigurationChangedEvent(const CommandInterface::am_sinkID_t& sinkID, const am::am_NotificationConfiguration_s& mainNotificationConfiguration);
- virtual void fireMainSourceNotificationConfigurationChangedEvent(const CommandInterface::am_sourceID_t& sourceID, const am::am_NotificationConfiguration_s& mainNotificationConfiguration);
-
- protected:
-
- private:
- class RemoteEventHandler: public CommandInterfaceStubRemoteEvent {
- public:
- RemoteEventHandler(CommandInterfaceStubDefault* defaultStub);
-
-
- private:
- CommandInterfaceStubDefault* defaultStub_;
- };
-
- RemoteEventHandler remoteEventHandler_;
- std::shared_ptr<CommandInterfaceStubAdapter> stubAdapter_;
-
-};
-
-} // namespace audiomanager
-} // namespace genivi
-} // namespace org
-
-#endif // ORG_GENIVI_AUDIOMANAGER_Command_Interface_STUB_DEFAULT_H_
diff --git a/PluginCommandInterfaceCAPI/src-gen/org/genivi/audiomanager/am.cpp b/PluginCommandInterfaceCAPI/src-gen/org/genivi/audiomanager/am.cpp
deleted file mode 100644
index 94e18a9..0000000
--- a/PluginCommandInterfaceCAPI/src-gen/org/genivi/audiomanager/am.cpp
+++ /dev/null
@@ -1,477 +0,0 @@
-/*
-* This file was generated by the CommonAPI Generators.
-*
- * Copyright (c) 2012 BMW
- *
- * \author Aleksandar Donchev, aleksander.donchev@partner.bmw.de BMW 2013
- *
- * \copyright
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction,
- * including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
- * subject to the following conditions:
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
- * THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- *
- * For further information see http://www.genivi.org/.
-*/
-#include "am.h"
-
-
-namespace org {
-namespace genivi {
-namespace audiomanager {
-namespace am {
-
-distanceInformation_s::distanceInformation_s(const int32_t& FrontLeftValue, const int32_t& FrontRightValue, const int32_t& RearLeftValue, const int32_t& RearRightValue):
- FrontLeft(FrontLeftValue),
- FrontRight(FrontRightValue),
- RearLeft(RearLeftValue),
- RearRight(RearRightValue)
-{
-}
-
-
-bool operator==(const distanceInformation_s& lhs, const distanceInformation_s& rhs) {
- if (&lhs == &rhs)
- return true;
-
- return
- lhs.FrontLeft == rhs.FrontLeft &&
- lhs.FrontRight == rhs.FrontRight &&
- lhs.RearLeft == rhs.RearLeft &&
- lhs.RearRight == rhs.RearRight
- ;
-}
-
-void distanceInformation_s::readFromInputStream(CommonAPI::InputStream& inputStream) {
- inputStream >> FrontLeft;
- inputStream >> FrontRight;
- inputStream >> RearLeft;
- inputStream >> RearRight;
-}
-
-void distanceInformation_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const {
- outputStream << FrontLeft;
- outputStream << FrontRight;
- outputStream << RearLeft;
- outputStream << RearRight;
-}
-sampleNames_s::sampleNames_s(const sampleSet_e& sampleValue, const std::string& sampleNameValue):
- sample(sampleValue),
- sampleName(sampleNameValue)
-{
-}
-
-
-bool operator==(const sampleNames_s& lhs, const sampleNames_s& rhs) {
- if (&lhs == &rhs)
- return true;
-
- return
- lhs.sample == rhs.sample &&
- lhs.sampleName == rhs.sampleName
- ;
-}
-
-void sampleNames_s::readFromInputStream(CommonAPI::InputStream& inputStream) {
- inputStream >> sample;
- inputStream >> sampleName;
-}
-
-void sampleNames_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const {
- outputStream << sample;
- outputStream << sampleName;
-}
-am_Domain_s::am_Domain_s(const am_domainID_t& domainIDValue, const std::string& nameValue, const std::string& busnameValue, const std::string& nodenameValue, const bool& earlyValue, const bool& completeValue, const am_DomainState_e& stateValue):
- domainID(domainIDValue),
- name(nameValue),
- busname(busnameValue),
- nodename(nodenameValue),
- early(earlyValue),
- complete(completeValue),
- state(stateValue)
-{
-}
-
-
-bool operator==(const am_Domain_s& lhs, const am_Domain_s& rhs) {
- if (&lhs == &rhs)
- return true;
-
- return
- lhs.domainID == rhs.domainID &&
- lhs.name == rhs.name &&
- lhs.busname == rhs.busname &&
- lhs.nodename == rhs.nodename &&
- lhs.early == rhs.early &&
- lhs.complete == rhs.complete &&
- lhs.state == rhs.state
- ;
-}
-
-void am_Domain_s::readFromInputStream(CommonAPI::InputStream& inputStream) {
- inputStream >> domainID;
- inputStream >> name;
- inputStream >> busname;
- inputStream >> nodename;
- inputStream >> early;
- inputStream >> complete;
- inputStream >> state;
-}
-
-void am_Domain_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const {
- outputStream << domainID;
- outputStream << name;
- outputStream << busname;
- outputStream << nodename;
- outputStream << early;
- outputStream << complete;
- outputStream << state;
-}
-notificationPayload_s::notificationPayload_s(const int16_t& typeValue, const int16_t& payloadValue):
- type(typeValue),
- payload(payloadValue)
-{
-}
-
-
-bool operator==(const notificationPayload_s& lhs, const notificationPayload_s& rhs) {
- if (&lhs == &rhs)
- return true;
-
- return
- lhs.type == rhs.type &&
- lhs.payload == rhs.payload
- ;
-}
-
-void notificationPayload_s::readFromInputStream(CommonAPI::InputStream& inputStream) {
- inputStream >> type;
- inputStream >> payload;
-}
-
-void notificationPayload_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const {
- outputStream << type;
- outputStream << payload;
-}
-am_Availability_s::am_Availability_s(const am_Availability_e& availabilityValue, const am_AvailabilityReason_e& availabilityReasonValue):
- availability(availabilityValue),
- availabilityReason(availabilityReasonValue)
-{
-}
-
-
-bool operator==(const am_Availability_s& lhs, const am_Availability_s& rhs) {
- if (&lhs == &rhs)
- return true;
-
- return
- lhs.availability == rhs.availability &&
- lhs.availabilityReason == rhs.availabilityReason
- ;
-}
-
-void am_Availability_s::readFromInputStream(CommonAPI::InputStream& inputStream) {
- inputStream >> availability;
- inputStream >> availabilityReason;
-}
-
-void am_Availability_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const {
- outputStream << availability;
- outputStream << availabilityReason;
-}
-am_SoundProperty_s::am_SoundProperty_s(const am_SoundPropertyType_e& typeValue, const int16_t& valueValue):
- type(typeValue),
- value(valueValue)
-{
-}
-
-
-bool operator==(const am_SoundProperty_s& lhs, const am_SoundProperty_s& rhs) {
- if (&lhs == &rhs)
- return true;
-
- return
- lhs.type == rhs.type &&
- lhs.value == rhs.value
- ;
-}
-
-void am_SoundProperty_s::readFromInputStream(CommonAPI::InputStream& inputStream) {
- inputStream >> type;
- inputStream >> value;
-}
-
-void am_SoundProperty_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const {
- outputStream << type;
- outputStream << value;
-}
-am_MainSoundProperty_s::am_MainSoundProperty_s(const am_MainSoundPropertyType_e& typeValue, const int16_t& valueValue):
- type(typeValue),
- value(valueValue)
-{
-}
-
-
-bool operator==(const am_MainSoundProperty_s& lhs, const am_MainSoundProperty_s& rhs) {
- if (&lhs == &rhs)
- return true;
-
- return
- lhs.type == rhs.type &&
- lhs.value == rhs.value
- ;
-}
-
-void am_MainSoundProperty_s::readFromInputStream(CommonAPI::InputStream& inputStream) {
- inputStream >> type;
- inputStream >> value;
-}
-
-void am_MainSoundProperty_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const {
- outputStream << type;
- outputStream << value;
-}
-am_NotificationConfiguration_s::am_NotificationConfiguration_s(const am_NotificationType_e& typeValue, const am_NotificationStatus_e& statusValue, const int16_t& parameterValue):
- type(typeValue),
- status(statusValue),
- parameter(parameterValue)
-{
-}
-
-
-bool operator==(const am_NotificationConfiguration_s& lhs, const am_NotificationConfiguration_s& rhs) {
- if (&lhs == &rhs)
- return true;
-
- return
- lhs.type == rhs.type &&
- lhs.status == rhs.status &&
- lhs.parameter == rhs.parameter
- ;
-}
-
-void am_NotificationConfiguration_s::readFromInputStream(CommonAPI::InputStream& inputStream) {
- inputStream >> type;
- inputStream >> status;
- inputStream >> parameter;
-}
-
-void am_NotificationConfiguration_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const {
- outputStream << type;
- outputStream << status;
- outputStream << parameter;
-}
-sourceData_s::sourceData_s(const am_sourceID_t& sourceIDValue, const am_domainID_t& domainIDValue, const std::string& nameValue, const am_sourceClass_t& sourceClassIDValue, const am_SourceState_e& sourceStateValue, const am_volume_t& volumeValue, const bool& visibleValue, const am_Availability_s& availableValue, const am_InterruptState_e& interruptStateValue, const am_SoundProperty_L& listSoundPropertiesValue, const am_ConnectionFormat_L& listConnectionFormatsValue, const am_MainSoundProperty_L& listMainSoundPropertiesValue, const am_NotificationConfiguration_L& listMainNotificationConfigurationsValue, const am_NotificationConfiguration_L& listNotificationConfigurationsValue):
- sourceID(sourceIDValue),
- domainID(domainIDValue),
- name(nameValue),
- sourceClassID(sourceClassIDValue),
- sourceState(sourceStateValue),
- volume(volumeValue),
- visible(visibleValue),
- available(availableValue),
- interruptState(interruptStateValue),
- listSoundProperties(listSoundPropertiesValue),
- listConnectionFormats(listConnectionFormatsValue),
- listMainSoundProperties(listMainSoundPropertiesValue),
- listMainNotificationConfigurations(listMainNotificationConfigurationsValue),
- listNotificationConfigurations(listNotificationConfigurationsValue)
-{
-}
-
-
-bool operator==(const sourceData_s& lhs, const sourceData_s& rhs) {
- if (&lhs == &rhs)
- return true;
-
- return
- lhs.sourceID == rhs.sourceID &&
- lhs.domainID == rhs.domainID &&
- lhs.name == rhs.name &&
- lhs.sourceClassID == rhs.sourceClassID &&
- lhs.sourceState == rhs.sourceState &&
- lhs.volume == rhs.volume &&
- lhs.visible == rhs.visible &&
- lhs.available == rhs.available &&
- lhs.interruptState == rhs.interruptState &&
- lhs.listSoundProperties == rhs.listSoundProperties &&
- lhs.listConnectionFormats == rhs.listConnectionFormats &&
- lhs.listMainSoundProperties == rhs.listMainSoundProperties &&
- lhs.listMainNotificationConfigurations == rhs.listMainNotificationConfigurations &&
- lhs.listNotificationConfigurations == rhs.listNotificationConfigurations
- ;
-}
-
-void sourceData_s::readFromInputStream(CommonAPI::InputStream& inputStream) {
- inputStream >> sourceID;
- inputStream >> domainID;
- inputStream >> name;
- inputStream >> sourceClassID;
- inputStream >> sourceState;
- inputStream >> volume;
- inputStream >> visible;
- inputStream >> available;
- inputStream >> interruptState;
- inputStream >> listSoundProperties;
- inputStream >> listConnectionFormats;
- inputStream >> listMainSoundProperties;
- inputStream >> listMainNotificationConfigurations;
- inputStream >> listNotificationConfigurations;
-}
-
-void sourceData_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const {
- outputStream << sourceID;
- outputStream << domainID;
- outputStream << name;
- outputStream << sourceClassID;
- outputStream << sourceState;
- outputStream << volume;
- outputStream << visible;
- outputStream << available;
- outputStream << interruptState;
- outputStream << listSoundProperties;
- outputStream << listConnectionFormats;
- outputStream << listMainSoundProperties;
- outputStream << listMainNotificationConfigurations;
- outputStream << listNotificationConfigurations;
-}
-sinkData_s::sinkData_s(const am_sinkID_t& sinkIDValue, const std::string& nameValue, const am_domainID_t& domainIDValue, const am_sinkClass_t& sinkClassIDValue, const am_volume_t& volumeValue, const bool& visibleValue, const am_Availability_s& availableValue, const am_MuteState_e& muteStateValue, const am_mainVolume_t& mainVolumeValue, const am_SoundProperty_L& listSoundPropertiesValue, const am_ConnectionFormat_L& listConnectionFormatsValue, const am_MainSoundProperty_L& listMainSoundPropertiesValue, const am_NotificationConfiguration_L& listMainNotificationConfigurationsValue, const am_NotificationConfiguration_L& listNotificationConfigurationsValue):
- sinkID(sinkIDValue),
- name(nameValue),
- domainID(domainIDValue),
- sinkClassID(sinkClassIDValue),
- volume(volumeValue),
- visible(visibleValue),
- available(availableValue),
- muteState(muteStateValue),
- mainVolume(mainVolumeValue),
- listSoundProperties(listSoundPropertiesValue),
- listConnectionFormats(listConnectionFormatsValue),
- listMainSoundProperties(listMainSoundPropertiesValue),
- listMainNotificationConfigurations(listMainNotificationConfigurationsValue),
- listNotificationConfigurations(listNotificationConfigurationsValue)
-{
-}
-
-
-bool operator==(const sinkData_s& lhs, const sinkData_s& rhs) {
- if (&lhs == &rhs)
- return true;
-
- return
- lhs.sinkID == rhs.sinkID &&
- lhs.name == rhs.name &&
- lhs.domainID == rhs.domainID &&
- lhs.sinkClassID == rhs.sinkClassID &&
- lhs.volume == rhs.volume &&
- lhs.visible == rhs.visible &&
- lhs.available == rhs.available &&
- lhs.muteState == rhs.muteState &&
- lhs.mainVolume == rhs.mainVolume &&
- lhs.listSoundProperties == rhs.listSoundProperties &&
- lhs.listConnectionFormats == rhs.listConnectionFormats &&
- lhs.listMainSoundProperties == rhs.listMainSoundProperties &&
- lhs.listMainNotificationConfigurations == rhs.listMainNotificationConfigurations &&
- lhs.listNotificationConfigurations == rhs.listNotificationConfigurations
- ;
-}
-
-void sinkData_s::readFromInputStream(CommonAPI::InputStream& inputStream) {
- inputStream >> sinkID;
- inputStream >> name;
- inputStream >> domainID;
- inputStream >> sinkClassID;
- inputStream >> volume;
- inputStream >> visible;
- inputStream >> available;
- inputStream >> muteState;
- inputStream >> mainVolume;
- inputStream >> listSoundProperties;
- inputStream >> listConnectionFormats;
- inputStream >> listMainSoundProperties;
- inputStream >> listMainNotificationConfigurations;
- inputStream >> listNotificationConfigurations;
-}
-
-void sinkData_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const {
- outputStream << sinkID;
- outputStream << name;
- outputStream << domainID;
- outputStream << sinkClassID;
- outputStream << volume;
- outputStream << visible;
- outputStream << available;
- outputStream << muteState;
- outputStream << mainVolume;
- outputStream << listSoundProperties;
- outputStream << listConnectionFormats;
- outputStream << listMainSoundProperties;
- outputStream << listMainNotificationConfigurations;
- outputStream << listNotificationConfigurations;
-}
-am_Gateway_s::am_Gateway_s(const am_gatewayID_t& gatewayIDValue, const std::string& nameValue, const am_sinkID_t& sinkIDValue, const am_sourceID_t& sourceIDValue, const am_domainID_t& domainSinkIDValue, const am_domainID_t& domainSourceIDValue, const am_domainID_t& controlDomainIDValue, const am_ConnectionFormat_L& listSourceFormatsValue, const am_ConnectionFormat_L& listSinkFormatsValue, const bool_L& convertionMatrixValue):
- gatewayID(gatewayIDValue),
- name(nameValue),
- sinkID(sinkIDValue),
- sourceID(sourceIDValue),
- domainSinkID(domainSinkIDValue),
- domainSourceID(domainSourceIDValue),
- controlDomainID(controlDomainIDValue),
- listSourceFormats(listSourceFormatsValue),
- listSinkFormats(listSinkFormatsValue),
- convertionMatrix(convertionMatrixValue)
-{
-}
-
-
-bool operator==(const am_Gateway_s& lhs, const am_Gateway_s& rhs) {
- if (&lhs == &rhs)
- return true;
-
- return
- lhs.gatewayID == rhs.gatewayID &&
- lhs.name == rhs.name &&
- lhs.sinkID == rhs.sinkID &&
- lhs.sourceID == rhs.sourceID &&
- lhs.domainSinkID == rhs.domainSinkID &&
- lhs.domainSourceID == rhs.domainSourceID &&
- lhs.controlDomainID == rhs.controlDomainID &&
- lhs.listSourceFormats == rhs.listSourceFormats &&
- lhs.listSinkFormats == rhs.listSinkFormats &&
- lhs.convertionMatrix == rhs.convertionMatrix
- ;
-}
-
-void am_Gateway_s::readFromInputStream(CommonAPI::InputStream& inputStream) {
- inputStream >> gatewayID;
- inputStream >> name;
- inputStream >> sinkID;
- inputStream >> sourceID;
- inputStream >> domainSinkID;
- inputStream >> domainSourceID;
- inputStream >> controlDomainID;
- inputStream >> listSourceFormats;
- inputStream >> listSinkFormats;
- inputStream >> convertionMatrix;
-}
-
-void am_Gateway_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const {
- outputStream << gatewayID;
- outputStream << name;
- outputStream << sinkID;
- outputStream << sourceID;
- outputStream << domainSinkID;
- outputStream << domainSourceID;
- outputStream << controlDomainID;
- outputStream << listSourceFormats;
- outputStream << listSinkFormats;
- outputStream << convertionMatrix;
-}
-
-} // namespace am
-} // namespace audiomanager
-} // namespace genivi
-} // namespace org
diff --git a/PluginCommandInterfaceCAPI/src-gen/org/genivi/audiomanager/am.h b/PluginCommandInterfaceCAPI/src-gen/org/genivi/audiomanager/am.h
deleted file mode 100644
index 21a5a64..0000000
--- a/PluginCommandInterfaceCAPI/src-gen/org/genivi/audiomanager/am.h
+++ /dev/null
@@ -1,1515 +0,0 @@
-/*
-* This file was generated by the CommonAPI Generators.
-*
- * Copyright (c) 2012 BMW
- *
- * \author Aleksandar Donchev, aleksander.donchev@partner.bmw.de BMW 2013
- *
- * \copyright
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction,
- * including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
- * subject to the following conditions:
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
- * THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- *
- * For further information see http://www.genivi.org/.
-*/
-#ifndef ORG_GENIVI_AUDIOMANAGER_am_H_
-#define ORG_GENIVI_AUDIOMANAGER_am_H_
-
-
-
-#define COMMONAPI_INTERNAL_COMPILATION
-
-#include <CommonAPI/InputStream.h>
-#include <CommonAPI/OutputStream.h>
-#include <CommonAPI/SerializableStruct.h>
-#include <CommonAPI/types.h>
-#include <cstdint>
-#include <string>
-#include <vector>
-
-#undef COMMONAPI_INTERNAL_COMPILATION
-
-namespace org {
-namespace genivi {
-namespace audiomanager {
-
-namespace am {
- typedef uint16_t am_sourceID_t;
-
- typedef uint16_t am_sinkID_t;
-
- typedef uint16_t am_gatewayID_t;
-
- typedef int16_t gongHandle;
-
- typedef uint16_t am_sourceClass_t;
-
- typedef uint16_t am_sinkClass_t;
-
- typedef int16_t am_volume_t;
-
- typedef int16_t am_mainVolume_t;
-
- typedef uint16_t am_handle_t;
-
- typedef uint16_t am_time_t;
-
- enum class gp_indicatorDirection_e: int32_t {
- INDICATOR_RIGHT = 0x0,
- INDICATOR_LEFT = 0x1,
- INDICATOR_WARNING = 0x2
- };
-
- // XXX Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1
- struct gp_indicatorDirection_eComparator;
-
- enum class am_RampType_e: int32_t {
- RAMP_UNKNOWN = 0x0,
- RAMP_GENIVI_DIRECT = 0x1,
- RAMP_GENIVI_NO_PLOP = 0x2,
- RAMP_GENIVI_EXP_INV = 0x3,
- RAMP_GENIVI_LINEAR = 0x4,
- RAMP_GENIVI_EXP = 0x5,
- RAMP_MAX = 0x6
- };
-
- // XXX Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1
- struct am_RampType_eComparator;
-
- enum class am_MuteState_e: int32_t {
- MS_UNKNOWN = 0x0,
- MS_MUTED = 0x1,
- MS_UNMUTED = 0x2,
- MS_MAX = 0x3
- };
-
- // XXX Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1
- struct am_MuteState_eComparator;
-
- enum class am_SourceState_e: int32_t {
- SS_UNKNNOWN = 0x0,
- SS_ON = 0x1,
- SS_OFF = 0x2,
- SS_PAUSED = 0x3,
- SS_MAX = 0x4
- };
-
- // XXX Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1
- struct am_SourceState_eComparator;
-
- enum class am_Error_e: int32_t {
- E_OK = 0x0,
- E_UNKNOWN = 0x1,
- E_OUT_OF_RANGE = 0x2,
- E_NOT_USED = 0x3,
- E_DATABASE_ERROR = 0x4,
- E_ALREADY_EXISTS = 0x5,
- E_NO_CHANGE = 0x6,
- E_NOT_POSSIBLE = 0x7,
- E_NON_EXISTENT = 0x8,
- E_ABORTED = 0x9,
- E_WRONG_FORMAT = 0xa,
- E_MAX = 0xb
- };
-
- // XXX Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1
- struct am_Error_eComparator;
-
- enum class am_DomainState_e: int32_t {
- DS_UNKNOWN = 0,
- DS_CONTROLLED = 1,
- DS_INDEPENDENT_STARTUP = 2,
- DS_INDEPENDENT_RUNDOWN = 3,
- DS_MAX = 4
- };
-
- // XXX Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1
- struct am_DomainState_eComparator;
-
- enum class gongType_e: int32_t {
- AT_NUN = 0x1,
- AT_POC = 0x2,
- AT_QUE = 0x3,
- AT_IWA = 0x4,
- AT_WA = 0x5,
- AT_ETC_F = 0x6,
- AT_ETC_F2 = 0x7,
- AT_ETC_ST = 0x8,
- AT_ETC_S = 0x9,
- AT_REV = 0xa,
- AT_ESU = 0xb,
- AT_ESD = 0xc,
- AT_DG = 0xd,
- AT_SG = 0xe,
- AT_IDG = 0xf,
- AT_ION = 0x10,
- AT_IOFF = 0x11,
- AT_FBS = 0x12,
- AT_VFS = 0x13,
- AT_GES = 0x14,
- AT_UEE = 0x15
- };
-
- // XXX Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1
- struct gongType_eComparator;
-
- enum class gp_indicatorStatus_e: int32_t {
- IS_ON = 0x0,
- IS_OFF = 0x1
- };
-
- // XXX Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1
- struct gp_indicatorStatus_eComparator;
-
- enum class gongStatus_e: int32_t {
- NOT_PLAYING = 0x0,
- PLAYING = 0x1,
- INTERRUPTED = 0x2
- };
-
- // XXX Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1
- struct gongStatus_eComparator;
-
- enum class gongError_e: int32_t {
- SUCCESS = 0x0,
- ERROR = 0x1,
- LOW_PRIORITY = 0x2
- };
-
- // XXX Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1
- struct gongError_eComparator;
-
- enum class gongClass_e: int32_t {
- GONGCLASS_1 = 0x1,
- GONGCLASS_2 = 0x2,
- GONGCLASS_PDC = 0x3,
- GONGCLASS_TURN = 0x4,
- GONGCLASS_OBSTACLE = 0x5
- };
-
- // XXX Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1
- struct gongClass_eComparator;
-
- enum class sampleSet_e: int32_t {
- setBMW = 0x0,
- setMini = 0x1,
- setRR = 0x2
- };
-
- // XXX Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1
- struct sampleSet_eComparator;
-
- enum class am_Availability_e: int32_t {
- A_UNKNOWN = 0x0,
- A_AVAILABLE = 0x1,
- A_UNAVAILABLE = 0x2,
- A_MAX = 0x3
- };
-
- // XXX Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1
- struct am_Availability_eComparator;
-
- enum class am_AvailabilityReason_e: int32_t {
- AR_UNKNOWN = 0x0,
- AR_GENIVI_NEWMEDIA = 0x1,
- AR_GENIVI_SAMEMEDIA = 0x2,
- AR_GENIVI_NOMEDIA = 0x3,
- AR_GENIVI_TEMPERATURE = 0x4,
- AR_GENIVI_VOLTAGE = 0x5,
- AR_GENIVI_ERRORMEDIA = 0x6,
- AR_MAX = 0x7
- };
-
- // XXX Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1
- struct am_AvailabilityReason_eComparator;
-
- enum class am_InterruptState_e: int32_t {
- IS_UNKNOWN = 0x0,
- IS_OFF = 0x1,
- IS_INTERRUPTED = 0x2,
- IS_MAX = 0x3
- };
-
- // XXX Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1
- struct am_InterruptState_eComparator;
-
- enum class am_SoundPropertyType_e: int32_t {
- SP_UNKNOWN = 0x0,
- SP_EXAMPLE_TREBLE = 0x1,
- SP_EXAMPLE_MID = 0x2,
- SP_EXAMPLE_BASS = 0x3,
- SP_ENTER_SINKID = 0x4,
- SP_INTERR_SUPERSEEDINGID = 0x5,
- SP_INTERR_OVERLAYID = 0x6,
- SP_PRIORITY = 0x7,
- SP_MAX = 0x8
- };
-
- // XXX Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1
- struct am_SoundPropertyType_eComparator;
-
- enum class am_ConnectionFormat_e: int32_t {
- CF_UNKNOWN = 0x0,
- CF_GENIVI_MONO = 0x1,
- CF_GENIVI_STEREO = 0x2,
- CF_GENIVI_ANALOG = 0x3,
- CF_GENIVI_AUTO = 0x4,
- CF_MAX = 0x5
- };
-
- // XXX Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1
- struct am_ConnectionFormat_eComparator;
-
- typedef std::vector<am_ConnectionFormat_e> am_ConnectionFormat_L;
-
- enum class am_MainSoundPropertyType_e: int32_t {
- MSP_UNKNOWN = 0x0,
- MSP_EXAMPLE_TREBLE = 0x1,
- MSP_EXAMPLE_MID = 0x2,
- MSP_EXAMPLE_BASS = 0x3,
- MSP_SOURCE_TYPE = 0x4,
- MSP_MAX = 0x5
- };
-
- // XXX Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1
- struct am_MainSoundPropertyType_eComparator;
-
- enum class am_NotificationType_e: int32_t {
- NT_UNKNOWN = 0x0,
- NT_LOUDNESS = 0x1,
- NT_MAX = 0x2
- };
-
- // XXX Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1
- struct am_NotificationType_eComparator;
-
- enum class am_NotificationStatus_e: int32_t {
- NS_UNKNOWN = 0x0,
- NS_OFF = 0x1,
- NS_PERIODIC = 0x2,
- NS_MINIMUM = 0x3,
- NS_MAXIMUM = 0x4,
- NS_CHANGE = 0x5,
- NS_MAX = 0x6
- };
-
- // XXX Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1
- struct am_NotificationStatus_eComparator;
-
- struct distanceInformation_s: CommonAPI::SerializableStruct {
- int32_t FrontLeft;
- int32_t FrontRight;
- int32_t RearLeft;
- int32_t RearRight;
-
- distanceInformation_s() = default;
- distanceInformation_s(const int32_t& FrontLeft, const int32_t& FrontRight, const int32_t& RearLeft, const int32_t& RearRight);
-
-
- virtual void readFromInputStream(CommonAPI::InputStream& inputStream);
- virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const;
-
- static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) {
- typeOutputStream.writeInt32Type();
- typeOutputStream.writeInt32Type();
- typeOutputStream.writeInt32Type();
- typeOutputStream.writeInt32Type();
- }
- };
-
- struct sampleNames_s: CommonAPI::SerializableStruct {
- sampleSet_e sample;
- std::string sampleName;
-
- sampleNames_s() = default;
- sampleNames_s(const sampleSet_e& sample, const std::string& sampleName);
-
-
- virtual void readFromInputStream(CommonAPI::InputStream& inputStream);
- virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const;
-
- static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) {
- typeOutputStream.writeInt32Type();
- typeOutputStream.writeStringType();
- }
- };
-
- typedef std::vector<sampleNames_s> listSampleNamesL;
-
- typedef uint16_t am_domainID_t;
-
- struct am_Domain_s: CommonAPI::SerializableStruct {
- am_domainID_t domainID;
- std::string name;
- std::string busname;
- std::string nodename;
- bool early;
- bool complete;
- am_DomainState_e state;
-
- am_Domain_s() = default;
- am_Domain_s(const am_domainID_t& domainID, const std::string& name, const std::string& busname, const std::string& nodename, const bool& early, const bool& complete, const am_DomainState_e& state);
-
-
- virtual void readFromInputStream(CommonAPI::InputStream& inputStream);
- virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const;
-
- static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) {
- typeOutputStream.writeUInt16Type();
- typeOutputStream.writeStringType();
- typeOutputStream.writeStringType();
- typeOutputStream.writeStringType();
- typeOutputStream.writeBoolType();
- typeOutputStream.writeBoolType();
- typeOutputStream.writeInt32Type();
- }
- };
-
- struct notificationPayload_s: CommonAPI::SerializableStruct {
- int16_t type;
- int16_t payload;
-
- notificationPayload_s() = default;
- notificationPayload_s(const int16_t& type, const int16_t& payload);
-
-
- virtual void readFromInputStream(CommonAPI::InputStream& inputStream);
- virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const;
-
- static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) {
- typeOutputStream.writeInt16Type();
- typeOutputStream.writeInt16Type();
- }
- };
-
- struct am_Availability_s: CommonAPI::SerializableStruct {
- am_Availability_e availability;
- am_AvailabilityReason_e availabilityReason;
-
- am_Availability_s() = default;
- am_Availability_s(const am_Availability_e& availability, const am_AvailabilityReason_e& availabilityReason);
-
-
- virtual void readFromInputStream(CommonAPI::InputStream& inputStream);
- virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const;
-
- static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) {
- typeOutputStream.writeInt32Type();
- typeOutputStream.writeInt32Type();
- }
- };
-
- struct am_SoundProperty_s: CommonAPI::SerializableStruct {
- am_SoundPropertyType_e type;
- int16_t value;
-
- am_SoundProperty_s() = default;
- am_SoundProperty_s(const am_SoundPropertyType_e& type, const int16_t& value);
-
-
- virtual void readFromInputStream(CommonAPI::InputStream& inputStream);
- virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const;
-
- static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) {
- typeOutputStream.writeInt32Type();
- typeOutputStream.writeInt16Type();
- }
- };
-
- typedef std::vector<am_SoundProperty_s> am_SoundProperty_L;
-
- struct am_MainSoundProperty_s: CommonAPI::SerializableStruct {
- am_MainSoundPropertyType_e type;
- int16_t value;
-
- am_MainSoundProperty_s() = default;
- am_MainSoundProperty_s(const am_MainSoundPropertyType_e& type, const int16_t& value);
-
-
- virtual void readFromInputStream(CommonAPI::InputStream& inputStream);
- virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const;
-
- static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) {
- typeOutputStream.writeInt32Type();
- typeOutputStream.writeInt16Type();
- }
- };
-
- typedef std::vector<am_MainSoundProperty_s> am_MainSoundProperty_L;
-
- struct am_NotificationConfiguration_s: CommonAPI::SerializableStruct {
- am_NotificationType_e type;
- am_NotificationStatus_e status;
- int16_t parameter;
-
- am_NotificationConfiguration_s() = default;
- am_NotificationConfiguration_s(const am_NotificationType_e& type, const am_NotificationStatus_e& status, const int16_t& parameter);
-
-
- virtual void readFromInputStream(CommonAPI::InputStream& inputStream);
- virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const;
-
- static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) {
- typeOutputStream.writeInt32Type();
- typeOutputStream.writeInt32Type();
- typeOutputStream.writeInt16Type();
- }
- };
-
- typedef std::vector<am_NotificationConfiguration_s> am_NotificationConfiguration_L;
-
- typedef std::vector<bool> bool_L;
-
- struct sourceData_s: CommonAPI::SerializableStruct {
- am_sourceID_t sourceID;
- am_domainID_t domainID;
- std::string name;
- am_sourceClass_t sourceClassID;
- am_SourceState_e sourceState;
- am_volume_t volume;
- bool visible;
- am_Availability_s available;
- am_InterruptState_e interruptState;
- am_SoundProperty_L listSoundProperties;
- am_ConnectionFormat_L listConnectionFormats;
- am_MainSoundProperty_L listMainSoundProperties;
- am_NotificationConfiguration_L listMainNotificationConfigurations;
- am_NotificationConfiguration_L listNotificationConfigurations;
-
- sourceData_s() = default;
- sourceData_s(const am_sourceID_t& sourceID, const am_domainID_t& domainID, const std::string& name, const am_sourceClass_t& sourceClassID, const am_SourceState_e& sourceState, const am_volume_t& volume, const bool& visible, const am_Availability_s& available, const am_InterruptState_e& interruptState, const am_SoundProperty_L& listSoundProperties, const am_ConnectionFormat_L& listConnectionFormats, const am_MainSoundProperty_L& listMainSoundProperties, const am_NotificationConfiguration_L& listMainNotificationConfigurations, const am_NotificationConfiguration_L& listNotificationConfigurations);
-
-
- virtual void readFromInputStream(CommonAPI::InputStream& inputStream);
- virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const;
-
- static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) {
- typeOutputStream.writeUInt16Type();
- typeOutputStream.writeUInt16Type();
- typeOutputStream.writeStringType();
- typeOutputStream.writeUInt16Type();
- typeOutputStream.writeInt32Type();
- typeOutputStream.writeInt16Type();
- typeOutputStream.writeBoolType();
- typeOutputStream.beginWriteStructType();
- typeOutputStream.writeInt32Type();typeOutputStream.writeInt32Type();
- typeOutputStream.endWriteStructType();
- typeOutputStream.writeInt32Type();
- typeOutputStream.beginWriteVectorType();
- typeOutputStream.beginWriteStructType();
- typeOutputStream.writeInt32Type();typeOutputStream.writeInt16Type();
- typeOutputStream.endWriteStructType();
- typeOutputStream.endWriteVectorType();
- typeOutputStream.beginWriteVectorType();
- typeOutputStream.writeInt32Type();
- typeOutputStream.endWriteVectorType();
- typeOutputStream.beginWriteVectorType();
- typeOutputStream.beginWriteStructType();
- typeOutputStream.writeInt32Type();typeOutputStream.writeInt16Type();
- typeOutputStream.endWriteStructType();
- typeOutputStream.endWriteVectorType();
- typeOutputStream.beginWriteVectorType();
- typeOutputStream.beginWriteStructType();
- typeOutputStream.writeInt32Type();typeOutputStream.writeInt32Type();typeOutputStream.writeInt16Type();
- typeOutputStream.endWriteStructType();
- typeOutputStream.endWriteVectorType();
- typeOutputStream.beginWriteVectorType();
- typeOutputStream.beginWriteStructType();
- typeOutputStream.writeInt32Type();typeOutputStream.writeInt32Type();typeOutputStream.writeInt16Type();
- typeOutputStream.endWriteStructType();
- typeOutputStream.endWriteVectorType();
- }
- };
-
- struct sinkData_s: CommonAPI::SerializableStruct {
- am_sinkID_t sinkID;
- std::string name;
- am_domainID_t domainID;
- am_sinkClass_t sinkClassID;
- am_volume_t volume;
- bool visible;
- am_Availability_s available;
- am_MuteState_e muteState;
- am_mainVolume_t mainVolume;
- am_SoundProperty_L listSoundProperties;
- am_ConnectionFormat_L listConnectionFormats;
- am_MainSoundProperty_L listMainSoundProperties;
- am_NotificationConfiguration_L listMainNotificationConfigurations;
- am_NotificationConfiguration_L listNotificationConfigurations;
-
- sinkData_s() = default;
- sinkData_s(const am_sinkID_t& sinkID, const std::string& name, const am_domainID_t& domainID, const am_sinkClass_t& sinkClassID, const am_volume_t& volume, const bool& visible, const am_Availability_s& available, const am_MuteState_e& muteState, const am_mainVolume_t& mainVolume, const am_SoundProperty_L& listSoundProperties, const am_ConnectionFormat_L& listConnectionFormats, const am_MainSoundProperty_L& listMainSoundProperties, const am_NotificationConfiguration_L& listMainNotificationConfigurations, const am_NotificationConfiguration_L& listNotificationConfigurations);
-
-
- virtual void readFromInputStream(CommonAPI::InputStream& inputStream);
- virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const;
-
- static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) {
- typeOutputStream.writeUInt16Type();
- typeOutputStream.writeStringType();
- typeOutputStream.writeUInt16Type();
- typeOutputStream.writeUInt16Type();
- typeOutputStream.writeInt16Type();
- typeOutputStream.writeBoolType();
- typeOutputStream.beginWriteStructType();
- typeOutputStream.writeInt32Type();typeOutputStream.writeInt32Type();
- typeOutputStream.endWriteStructType();
- typeOutputStream.writeInt32Type();
- typeOutputStream.writeInt16Type();
- typeOutputStream.beginWriteVectorType();
- typeOutputStream.beginWriteStructType();
- typeOutputStream.writeInt32Type();typeOutputStream.writeInt16Type();
- typeOutputStream.endWriteStructType();
- typeOutputStream.endWriteVectorType();
- typeOutputStream.beginWriteVectorType();
- typeOutputStream.writeInt32Type();
- typeOutputStream.endWriteVectorType();
- typeOutputStream.beginWriteVectorType();
- typeOutputStream.beginWriteStructType();
- typeOutputStream.writeInt32Type();typeOutputStream.writeInt16Type();
- typeOutputStream.endWriteStructType();
- typeOutputStream.endWriteVectorType();
- typeOutputStream.beginWriteVectorType();
- typeOutputStream.beginWriteStructType();
- typeOutputStream.writeInt32Type();typeOutputStream.writeInt32Type();typeOutputStream.writeInt16Type();
- typeOutputStream.endWriteStructType();
- typeOutputStream.endWriteVectorType();
- typeOutputStream.beginWriteVectorType();
- typeOutputStream.beginWriteStructType();
- typeOutputStream.writeInt32Type();typeOutputStream.writeInt32Type();typeOutputStream.writeInt16Type();
- typeOutputStream.endWriteStructType();
- typeOutputStream.endWriteVectorType();
- }
- };
-
- struct am_Gateway_s: CommonAPI::SerializableStruct {
- am_gatewayID_t gatewayID;
- std::string name;
- am_sinkID_t sinkID;
- am_sourceID_t sourceID;
- am_domainID_t domainSinkID;
- am_domainID_t domainSourceID;
- am_domainID_t controlDomainID;
- am_ConnectionFormat_L listSourceFormats;
- am_ConnectionFormat_L listSinkFormats;
- bool_L convertionMatrix;
-
- am_Gateway_s() = default;
- am_Gateway_s(const am_gatewayID_t& gatewayID, const std::string& name, const am_sinkID_t& sinkID, const am_sourceID_t& sourceID, const am_domainID_t& domainSinkID, const am_domainID_t& domainSourceID, const am_domainID_t& controlDomainID, const am_ConnectionFormat_L& listSourceFormats, const am_ConnectionFormat_L& listSinkFormats, const bool_L& convertionMatrix);
-
-
- virtual void readFromInputStream(CommonAPI::InputStream& inputStream);
- virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const;
-
- static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) {
- typeOutputStream.writeUInt16Type();
- typeOutputStream.writeStringType();
- typeOutputStream.writeUInt16Type();
- typeOutputStream.writeUInt16Type();
- typeOutputStream.writeUInt16Type();
- typeOutputStream.writeUInt16Type();
- typeOutputStream.writeUInt16Type();
- typeOutputStream.beginWriteVectorType();
- typeOutputStream.writeInt32Type();
- typeOutputStream.endWriteVectorType();
- typeOutputStream.beginWriteVectorType();
- typeOutputStream.writeInt32Type();
- typeOutputStream.endWriteVectorType();
- typeOutputStream.beginWriteVectorType();
- typeOutputStream.writeBoolType();
- typeOutputStream.endWriteVectorType();
- }
- };
-
-
-inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, gp_indicatorDirection_e& enumValue) {
- return inputStream.readEnumValue<int32_t>(enumValue);
-}
-
-inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const gp_indicatorDirection_e& enumValue) {
- return outputStream.writeEnumValue(static_cast<int32_t>(enumValue));
-}
-
-struct gp_indicatorDirection_eComparator {
- inline bool operator()(const gp_indicatorDirection_e& lhs, const gp_indicatorDirection_e& rhs) const {
- return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs);
- }
-};
-
-inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, am_RampType_e& enumValue) {
- return inputStream.readEnumValue<int32_t>(enumValue);
-}
-
-inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const am_RampType_e& enumValue) {
- return outputStream.writeEnumValue(static_cast<int32_t>(enumValue));
-}
-
-struct am_RampType_eComparator {
- inline bool operator()(const am_RampType_e& lhs, const am_RampType_e& rhs) const {
- return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs);
- }
-};
-
-inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, am_MuteState_e& enumValue) {
- return inputStream.readEnumValue<int32_t>(enumValue);
-}
-
-inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const am_MuteState_e& enumValue) {
- return outputStream.writeEnumValue(static_cast<int32_t>(enumValue));
-}
-
-struct am_MuteState_eComparator {
- inline bool operator()(const am_MuteState_e& lhs, const am_MuteState_e& rhs) const {
- return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs);
- }
-};
-
-inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, am_SourceState_e& enumValue) {
- return inputStream.readEnumValue<int32_t>(enumValue);
-}
-
-inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const am_SourceState_e& enumValue) {
- return outputStream.writeEnumValue(static_cast<int32_t>(enumValue));
-}
-
-struct am_SourceState_eComparator {
- inline bool operator()(const am_SourceState_e& lhs, const am_SourceState_e& rhs) const {
- return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs);
- }
-};
-
-inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, am_Error_e& enumValue) {
- return inputStream.readEnumValue<int32_t>(enumValue);
-}
-
-inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const am_Error_e& enumValue) {
- return outputStream.writeEnumValue(static_cast<int32_t>(enumValue));
-}
-
-struct am_Error_eComparator {
- inline bool operator()(const am_Error_e& lhs, const am_Error_e& rhs) const {
- return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs);
- }
-};
-
-inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, am_DomainState_e& enumValue) {
- return inputStream.readEnumValue<int32_t>(enumValue);
-}
-
-inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const am_DomainState_e& enumValue) {
- return outputStream.writeEnumValue(static_cast<int32_t>(enumValue));
-}
-
-struct am_DomainState_eComparator {
- inline bool operator()(const am_DomainState_e& lhs, const am_DomainState_e& rhs) const {
- return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs);
- }
-};
-
-inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, gongType_e& enumValue) {
- return inputStream.readEnumValue<int32_t>(enumValue);
-}
-
-inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const gongType_e& enumValue) {
- return outputStream.writeEnumValue(static_cast<int32_t>(enumValue));
-}
-
-struct gongType_eComparator {
- inline bool operator()(const gongType_e& lhs, const gongType_e& rhs) const {
- return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs);
- }
-};
-
-inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, gp_indicatorStatus_e& enumValue) {
- return inputStream.readEnumValue<int32_t>(enumValue);
-}
-
-inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const gp_indicatorStatus_e& enumValue) {
- return outputStream.writeEnumValue(static_cast<int32_t>(enumValue));
-}
-
-struct gp_indicatorStatus_eComparator {
- inline bool operator()(const gp_indicatorStatus_e& lhs, const gp_indicatorStatus_e& rhs) const {
- return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs);
- }
-};
-
-inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, gongStatus_e& enumValue) {
- return inputStream.readEnumValue<int32_t>(enumValue);
-}
-
-inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const gongStatus_e& enumValue) {
- return outputStream.writeEnumValue(static_cast<int32_t>(enumValue));
-}
-
-struct gongStatus_eComparator {
- inline bool operator()(const gongStatus_e& lhs, const gongStatus_e& rhs) const {
- return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs);
- }
-};
-
-inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, gongError_e& enumValue) {
- return inputStream.readEnumValue<int32_t>(enumValue);
-}
-
-inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const gongError_e& enumValue) {
- return outputStream.writeEnumValue(static_cast<int32_t>(enumValue));
-}
-
-struct gongError_eComparator {
- inline bool operator()(const gongError_e& lhs, const gongError_e& rhs) const {
- return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs);
- }
-};
-
-inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, gongClass_e& enumValue) {
- return inputStream.readEnumValue<int32_t>(enumValue);
-}
-
-inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const gongClass_e& enumValue) {
- return outputStream.writeEnumValue(static_cast<int32_t>(enumValue));
-}
-
-struct gongClass_eComparator {
- inline bool operator()(const gongClass_e& lhs, const gongClass_e& rhs) const {
- return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs);
- }
-};
-
-inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, sampleSet_e& enumValue) {
- return inputStream.readEnumValue<int32_t>(enumValue);
-}
-
-inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const sampleSet_e& enumValue) {
- return outputStream.writeEnumValue(static_cast<int32_t>(enumValue));
-}
-
-struct sampleSet_eComparator {
- inline bool operator()(const sampleSet_e& lhs, const sampleSet_e& rhs) const {
- return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs);
- }
-};
-
-inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, am_Availability_e& enumValue) {
- return inputStream.readEnumValue<int32_t>(enumValue);
-}
-
-inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const am_Availability_e& enumValue) {
- return outputStream.writeEnumValue(static_cast<int32_t>(enumValue));
-}
-
-struct am_Availability_eComparator {
- inline bool operator()(const am_Availability_e& lhs, const am_Availability_e& rhs) const {
- return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs);
- }
-};
-
-inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, am_AvailabilityReason_e& enumValue) {
- return inputStream.readEnumValue<int32_t>(enumValue);
-}
-
-inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const am_AvailabilityReason_e& enumValue) {
- return outputStream.writeEnumValue(static_cast<int32_t>(enumValue));
-}
-
-struct am_AvailabilityReason_eComparator {
- inline bool operator()(const am_AvailabilityReason_e& lhs, const am_AvailabilityReason_e& rhs) const {
- return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs);
- }
-};
-
-inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, am_InterruptState_e& enumValue) {
- return inputStream.readEnumValue<int32_t>(enumValue);
-}
-
-inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const am_InterruptState_e& enumValue) {
- return outputStream.writeEnumValue(static_cast<int32_t>(enumValue));
-}
-
-struct am_InterruptState_eComparator {
- inline bool operator()(const am_InterruptState_e& lhs, const am_InterruptState_e& rhs) const {
- return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs);
- }
-};
-
-inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, am_SoundPropertyType_e& enumValue) {
- return inputStream.readEnumValue<int32_t>(enumValue);
-}
-
-inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const am_SoundPropertyType_e& enumValue) {
- return outputStream.writeEnumValue(static_cast<int32_t>(enumValue));
-}
-
-struct am_SoundPropertyType_eComparator {
- inline bool operator()(const am_SoundPropertyType_e& lhs, const am_SoundPropertyType_e& rhs) const {
- return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs);
- }
-};
-
-inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, am_ConnectionFormat_e& enumValue) {
- return inputStream.readEnumValue<int32_t>(enumValue);
-}
-
-inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const am_ConnectionFormat_e& enumValue) {
- return outputStream.writeEnumValue(static_cast<int32_t>(enumValue));
-}
-
-struct am_ConnectionFormat_eComparator {
- inline bool operator()(const am_ConnectionFormat_e& lhs, const am_ConnectionFormat_e& rhs) const {
- return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs);
- }
-};
-
-inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, am_MainSoundPropertyType_e& enumValue) {
- return inputStream.readEnumValue<int32_t>(enumValue);
-}
-
-inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const am_MainSoundPropertyType_e& enumValue) {
- return outputStream.writeEnumValue(static_cast<int32_t>(enumValue));
-}
-
-struct am_MainSoundPropertyType_eComparator {
- inline bool operator()(const am_MainSoundPropertyType_e& lhs, const am_MainSoundPropertyType_e& rhs) const {
- return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs);
- }
-};
-
-inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, am_NotificationType_e& enumValue) {
- return inputStream.readEnumValue<int32_t>(enumValue);
-}
-
-inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const am_NotificationType_e& enumValue) {
- return outputStream.writeEnumValue(static_cast<int32_t>(enumValue));
-}
-
-struct am_NotificationType_eComparator {
- inline bool operator()(const am_NotificationType_e& lhs, const am_NotificationType_e& rhs) const {
- return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs);
- }
-};
-
-inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, am_NotificationStatus_e& enumValue) {
- return inputStream.readEnumValue<int32_t>(enumValue);
-}
-
-inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const am_NotificationStatus_e& enumValue) {
- return outputStream.writeEnumValue(static_cast<int32_t>(enumValue));
-}
-
-struct am_NotificationStatus_eComparator {
- inline bool operator()(const am_NotificationStatus_e& lhs, const am_NotificationStatus_e& rhs) const {
- return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs);
- }
-};
-
-bool operator==(const distanceInformation_s& lhs, const distanceInformation_s& rhs);
-inline bool operator!=(const distanceInformation_s& lhs, const distanceInformation_s& rhs) {
- return !(lhs == rhs);
-}
-bool operator==(const sampleNames_s& lhs, const sampleNames_s& rhs);
-inline bool operator!=(const sampleNames_s& lhs, const sampleNames_s& rhs) {
- return !(lhs == rhs);
-}
-bool operator==(const am_Domain_s& lhs, const am_Domain_s& rhs);
-inline bool operator!=(const am_Domain_s& lhs, const am_Domain_s& rhs) {
- return !(lhs == rhs);
-}
-bool operator==(const notificationPayload_s& lhs, const notificationPayload_s& rhs);
-inline bool operator!=(const notificationPayload_s& lhs, const notificationPayload_s& rhs) {
- return !(lhs == rhs);
-}
-bool operator==(const am_Availability_s& lhs, const am_Availability_s& rhs);
-inline bool operator!=(const am_Availability_s& lhs, const am_Availability_s& rhs) {
- return !(lhs == rhs);
-}
-bool operator==(const am_SoundProperty_s& lhs, const am_SoundProperty_s& rhs);
-inline bool operator!=(const am_SoundProperty_s& lhs, const am_SoundProperty_s& rhs) {
- return !(lhs == rhs);
-}
-bool operator==(const am_MainSoundProperty_s& lhs, const am_MainSoundProperty_s& rhs);
-inline bool operator!=(const am_MainSoundProperty_s& lhs, const am_MainSoundProperty_s& rhs) {
- return !(lhs == rhs);
-}
-bool operator==(const am_NotificationConfiguration_s& lhs, const am_NotificationConfiguration_s& rhs);
-inline bool operator!=(const am_NotificationConfiguration_s& lhs, const am_NotificationConfiguration_s& rhs) {
- return !(lhs == rhs);
-}
-bool operator==(const sourceData_s& lhs, const sourceData_s& rhs);
-inline bool operator!=(const sourceData_s& lhs, const sourceData_s& rhs) {
- return !(lhs == rhs);
-}
-bool operator==(const sinkData_s& lhs, const sinkData_s& rhs);
-inline bool operator!=(const sinkData_s& lhs, const sinkData_s& rhs) {
- return !(lhs == rhs);
-}
-bool operator==(const am_Gateway_s& lhs, const am_Gateway_s& rhs);
-inline bool operator!=(const am_Gateway_s& lhs, const am_Gateway_s& rhs) {
- return !(lhs == rhs);
-}
-
-
-static inline const char* getTypeCollectionName() {
- return "org.genivi.audiomanager.am";
-}
-
-
-} // namespace am
-
-} // namespace audiomanager
-} // namespace genivi
-} // namespace org
-
-namespace CommonAPI {
-
- template<>
- struct BasicTypeWriter<org::genivi::audiomanager::am::gp_indicatorDirection_e> {
- inline static void writeType (CommonAPI::TypeOutputStream& typeStream) {
- typeStream.writeInt32EnumType();
- }
- };
-
- template<>
- struct InputStreamVectorHelper<org::genivi::audiomanager::am::gp_indicatorDirection_e> {
- static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::audiomanager::am::gp_indicatorDirection_e>& vectorValue) {
- inputStream.beginReadInt32EnumVector();
- }
- };
-
- template <>
- struct OutputStreamVectorHelper<org::genivi::audiomanager::am::gp_indicatorDirection_e> {
- static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::audiomanager::am::gp_indicatorDirection_e>& vectorValue) {
- outputStream.beginWriteInt32EnumVector(vectorValue.size());
- }
- };
- template<>
- struct BasicTypeWriter<org::genivi::audiomanager::am::am_RampType_e> {
- inline static void writeType (CommonAPI::TypeOutputStream& typeStream) {
- typeStream.writeInt32EnumType();
- }
- };
-
- template<>
- struct InputStreamVectorHelper<org::genivi::audiomanager::am::am_RampType_e> {
- static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::audiomanager::am::am_RampType_e>& vectorValue) {
- inputStream.beginReadInt32EnumVector();
- }
- };
-
- template <>
- struct OutputStreamVectorHelper<org::genivi::audiomanager::am::am_RampType_e> {
- static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::audiomanager::am::am_RampType_e>& vectorValue) {
- outputStream.beginWriteInt32EnumVector(vectorValue.size());
- }
- };
- template<>
- struct BasicTypeWriter<org::genivi::audiomanager::am::am_MuteState_e> {
- inline static void writeType (CommonAPI::TypeOutputStream& typeStream) {
- typeStream.writeInt32EnumType();
- }
- };
-
- template<>
- struct InputStreamVectorHelper<org::genivi::audiomanager::am::am_MuteState_e> {
- static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::audiomanager::am::am_MuteState_e>& vectorValue) {
- inputStream.beginReadInt32EnumVector();
- }
- };
-
- template <>
- struct OutputStreamVectorHelper<org::genivi::audiomanager::am::am_MuteState_e> {
- static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::audiomanager::am::am_MuteState_e>& vectorValue) {
- outputStream.beginWriteInt32EnumVector(vectorValue.size());
- }
- };
- template<>
- struct BasicTypeWriter<org::genivi::audiomanager::am::am_SourceState_e> {
- inline static void writeType (CommonAPI::TypeOutputStream& typeStream) {
- typeStream.writeInt32EnumType();
- }
- };
-
- template<>
- struct InputStreamVectorHelper<org::genivi::audiomanager::am::am_SourceState_e> {
- static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::audiomanager::am::am_SourceState_e>& vectorValue) {
- inputStream.beginReadInt32EnumVector();
- }
- };
-
- template <>
- struct OutputStreamVectorHelper<org::genivi::audiomanager::am::am_SourceState_e> {
- static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::audiomanager::am::am_SourceState_e>& vectorValue) {
- outputStream.beginWriteInt32EnumVector(vectorValue.size());
- }
- };
- template<>
- struct BasicTypeWriter<org::genivi::audiomanager::am::am_Error_e> {
- inline static void writeType (CommonAPI::TypeOutputStream& typeStream) {
- typeStream.writeInt32EnumType();
- }
- };
-
- template<>
- struct InputStreamVectorHelper<org::genivi::audiomanager::am::am_Error_e> {
- static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::audiomanager::am::am_Error_e>& vectorValue) {
- inputStream.beginReadInt32EnumVector();
- }
- };
-
- template <>
- struct OutputStreamVectorHelper<org::genivi::audiomanager::am::am_Error_e> {
- static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::audiomanager::am::am_Error_e>& vectorValue) {
- outputStream.beginWriteInt32EnumVector(vectorValue.size());
- }
- };
- template<>
- struct BasicTypeWriter<org::genivi::audiomanager::am::am_DomainState_e> {
- inline static void writeType (CommonAPI::TypeOutputStream& typeStream) {
- typeStream.writeInt32EnumType();
- }
- };
-
- template<>
- struct InputStreamVectorHelper<org::genivi::audiomanager::am::am_DomainState_e> {
- static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::audiomanager::am::am_DomainState_e>& vectorValue) {
- inputStream.beginReadInt32EnumVector();
- }
- };
-
- template <>
- struct OutputStreamVectorHelper<org::genivi::audiomanager::am::am_DomainState_e> {
- static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::audiomanager::am::am_DomainState_e>& vectorValue) {
- outputStream.beginWriteInt32EnumVector(vectorValue.size());
- }
- };
- template<>
- struct BasicTypeWriter<org::genivi::audiomanager::am::gongType_e> {
- inline static void writeType (CommonAPI::TypeOutputStream& typeStream) {
- typeStream.writeInt32EnumType();
- }
- };
-
- template<>
- struct InputStreamVectorHelper<org::genivi::audiomanager::am::gongType_e> {
- static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::audiomanager::am::gongType_e>& vectorValue) {
- inputStream.beginReadInt32EnumVector();
- }
- };
-
- template <>
- struct OutputStreamVectorHelper<org::genivi::audiomanager::am::gongType_e> {
- static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::audiomanager::am::gongType_e>& vectorValue) {
- outputStream.beginWriteInt32EnumVector(vectorValue.size());
- }
- };
- template<>
- struct BasicTypeWriter<org::genivi::audiomanager::am::gp_indicatorStatus_e> {
- inline static void writeType (CommonAPI::TypeOutputStream& typeStream) {
- typeStream.writeInt32EnumType();
- }
- };
-
- template<>
- struct InputStreamVectorHelper<org::genivi::audiomanager::am::gp_indicatorStatus_e> {
- static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::audiomanager::am::gp_indicatorStatus_e>& vectorValue) {
- inputStream.beginReadInt32EnumVector();
- }
- };
-
- template <>
- struct OutputStreamVectorHelper<org::genivi::audiomanager::am::gp_indicatorStatus_e> {
- static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::audiomanager::am::gp_indicatorStatus_e>& vectorValue) {
- outputStream.beginWriteInt32EnumVector(vectorValue.size());
- }
- };
- template<>
- struct BasicTypeWriter<org::genivi::audiomanager::am::gongStatus_e> {
- inline static void writeType (CommonAPI::TypeOutputStream& typeStream) {
- typeStream.writeInt32EnumType();
- }
- };
-
- template<>
- struct InputStreamVectorHelper<org::genivi::audiomanager::am::gongStatus_e> {
- static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::audiomanager::am::gongStatus_e>& vectorValue) {
- inputStream.beginReadInt32EnumVector();
- }
- };
-
- template <>
- struct OutputStreamVectorHelper<org::genivi::audiomanager::am::gongStatus_e> {
- static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::audiomanager::am::gongStatus_e>& vectorValue) {
- outputStream.beginWriteInt32EnumVector(vectorValue.size());
- }
- };
- template<>
- struct BasicTypeWriter<org::genivi::audiomanager::am::gongError_e> {
- inline static void writeType (CommonAPI::TypeOutputStream& typeStream) {
- typeStream.writeInt32EnumType();
- }
- };
-
- template<>
- struct InputStreamVectorHelper<org::genivi::audiomanager::am::gongError_e> {
- static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::audiomanager::am::gongError_e>& vectorValue) {
- inputStream.beginReadInt32EnumVector();
- }
- };
-
- template <>
- struct OutputStreamVectorHelper<org::genivi::audiomanager::am::gongError_e> {
- static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::audiomanager::am::gongError_e>& vectorValue) {
- outputStream.beginWriteInt32EnumVector(vectorValue.size());
- }
- };
- template<>
- struct BasicTypeWriter<org::genivi::audiomanager::am::gongClass_e> {
- inline static void writeType (CommonAPI::TypeOutputStream& typeStream) {
- typeStream.writeInt32EnumType();
- }
- };
-
- template<>
- struct InputStreamVectorHelper<org::genivi::audiomanager::am::gongClass_e> {
- static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::audiomanager::am::gongClass_e>& vectorValue) {
- inputStream.beginReadInt32EnumVector();
- }
- };
-
- template <>
- struct OutputStreamVectorHelper<org::genivi::audiomanager::am::gongClass_e> {
- static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::audiomanager::am::gongClass_e>& vectorValue) {
- outputStream.beginWriteInt32EnumVector(vectorValue.size());
- }
- };
- template<>
- struct BasicTypeWriter<org::genivi::audiomanager::am::sampleSet_e> {
- inline static void writeType (CommonAPI::TypeOutputStream& typeStream) {
- typeStream.writeInt32EnumType();
- }
- };
-
- template<>
- struct InputStreamVectorHelper<org::genivi::audiomanager::am::sampleSet_e> {
- static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::audiomanager::am::sampleSet_e>& vectorValue) {
- inputStream.beginReadInt32EnumVector();
- }
- };
-
- template <>
- struct OutputStreamVectorHelper<org::genivi::audiomanager::am::sampleSet_e> {
- static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::audiomanager::am::sampleSet_e>& vectorValue) {
- outputStream.beginWriteInt32EnumVector(vectorValue.size());
- }
- };
- template<>
- struct BasicTypeWriter<org::genivi::audiomanager::am::am_Availability_e> {
- inline static void writeType (CommonAPI::TypeOutputStream& typeStream) {
- typeStream.writeInt32EnumType();
- }
- };
-
- template<>
- struct InputStreamVectorHelper<org::genivi::audiomanager::am::am_Availability_e> {
- static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::audiomanager::am::am_Availability_e>& vectorValue) {
- inputStream.beginReadInt32EnumVector();
- }
- };
-
- template <>
- struct OutputStreamVectorHelper<org::genivi::audiomanager::am::am_Availability_e> {
- static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::audiomanager::am::am_Availability_e>& vectorValue) {
- outputStream.beginWriteInt32EnumVector(vectorValue.size());
- }
- };
- template<>
- struct BasicTypeWriter<org::genivi::audiomanager::am::am_AvailabilityReason_e> {
- inline static void writeType (CommonAPI::TypeOutputStream& typeStream) {
- typeStream.writeInt32EnumType();
- }
- };
-
- template<>
- struct InputStreamVectorHelper<org::genivi::audiomanager::am::am_AvailabilityReason_e> {
- static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::audiomanager::am::am_AvailabilityReason_e>& vectorValue) {
- inputStream.beginReadInt32EnumVector();
- }
- };
-
- template <>
- struct OutputStreamVectorHelper<org::genivi::audiomanager::am::am_AvailabilityReason_e> {
- static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::audiomanager::am::am_AvailabilityReason_e>& vectorValue) {
- outputStream.beginWriteInt32EnumVector(vectorValue.size());
- }
- };
- template<>
- struct BasicTypeWriter<org::genivi::audiomanager::am::am_InterruptState_e> {
- inline static void writeType (CommonAPI::TypeOutputStream& typeStream) {
- typeStream.writeInt32EnumType();
- }
- };
-
- template<>
- struct InputStreamVectorHelper<org::genivi::audiomanager::am::am_InterruptState_e> {
- static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::audiomanager::am::am_InterruptState_e>& vectorValue) {
- inputStream.beginReadInt32EnumVector();
- }
- };
-
- template <>
- struct OutputStreamVectorHelper<org::genivi::audiomanager::am::am_InterruptState_e> {
- static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::audiomanager::am::am_InterruptState_e>& vectorValue) {
- outputStream.beginWriteInt32EnumVector(vectorValue.size());
- }
- };
- template<>
- struct BasicTypeWriter<org::genivi::audiomanager::am::am_SoundPropertyType_e> {
- inline static void writeType (CommonAPI::TypeOutputStream& typeStream) {
- typeStream.writeInt32EnumType();
- }
- };
-
- template<>
- struct InputStreamVectorHelper<org::genivi::audiomanager::am::am_SoundPropertyType_e> {
- static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::audiomanager::am::am_SoundPropertyType_e>& vectorValue) {
- inputStream.beginReadInt32EnumVector();
- }
- };
-
- template <>
- struct OutputStreamVectorHelper<org::genivi::audiomanager::am::am_SoundPropertyType_e> {
- static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::audiomanager::am::am_SoundPropertyType_e>& vectorValue) {
- outputStream.beginWriteInt32EnumVector(vectorValue.size());
- }
- };
- template<>
- struct BasicTypeWriter<org::genivi::audiomanager::am::am_ConnectionFormat_e> {
- inline static void writeType (CommonAPI::TypeOutputStream& typeStream) {
- typeStream.writeInt32EnumType();
- }
- };
-
- template<>
- struct InputStreamVectorHelper<org::genivi::audiomanager::am::am_ConnectionFormat_e> {
- static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::audiomanager::am::am_ConnectionFormat_e>& vectorValue) {
- inputStream.beginReadInt32EnumVector();
- }
- };
-
- template <>
- struct OutputStreamVectorHelper<org::genivi::audiomanager::am::am_ConnectionFormat_e> {
- static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::audiomanager::am::am_ConnectionFormat_e>& vectorValue) {
- outputStream.beginWriteInt32EnumVector(vectorValue.size());
- }
- };
- template<>
- struct BasicTypeWriter<org::genivi::audiomanager::am::am_MainSoundPropertyType_e> {
- inline static void writeType (CommonAPI::TypeOutputStream& typeStream) {
- typeStream.writeInt32EnumType();
- }
- };
-
- template<>
- struct InputStreamVectorHelper<org::genivi::audiomanager::am::am_MainSoundPropertyType_e> {
- static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::audiomanager::am::am_MainSoundPropertyType_e>& vectorValue) {
- inputStream.beginReadInt32EnumVector();
- }
- };
-
- template <>
- struct OutputStreamVectorHelper<org::genivi::audiomanager::am::am_MainSoundPropertyType_e> {
- static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::audiomanager::am::am_MainSoundPropertyType_e>& vectorValue) {
- outputStream.beginWriteInt32EnumVector(vectorValue.size());
- }
- };
- template<>
- struct BasicTypeWriter<org::genivi::audiomanager::am::am_NotificationType_e> {
- inline static void writeType (CommonAPI::TypeOutputStream& typeStream) {
- typeStream.writeInt32EnumType();
- }
- };
-
- template<>
- struct InputStreamVectorHelper<org::genivi::audiomanager::am::am_NotificationType_e> {
- static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::audiomanager::am::am_NotificationType_e>& vectorValue) {
- inputStream.beginReadInt32EnumVector();
- }
- };
-
- template <>
- struct OutputStreamVectorHelper<org::genivi::audiomanager::am::am_NotificationType_e> {
- static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::audiomanager::am::am_NotificationType_e>& vectorValue) {
- outputStream.beginWriteInt32EnumVector(vectorValue.size());
- }
- };
- template<>
- struct BasicTypeWriter<org::genivi::audiomanager::am::am_NotificationStatus_e> {
- inline static void writeType (CommonAPI::TypeOutputStream& typeStream) {
- typeStream.writeInt32EnumType();
- }
- };
-
- template<>
- struct InputStreamVectorHelper<org::genivi::audiomanager::am::am_NotificationStatus_e> {
- static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::audiomanager::am::am_NotificationStatus_e>& vectorValue) {
- inputStream.beginReadInt32EnumVector();
- }
- };
-
- template <>
- struct OutputStreamVectorHelper<org::genivi::audiomanager::am::am_NotificationStatus_e> {
- static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::audiomanager::am::am_NotificationStatus_e>& vectorValue) {
- outputStream.beginWriteInt32EnumVector(vectorValue.size());
- }
- };
-
-}
-
-
-namespace std {
- //Hash for gp_indicatorDirection_e
- template<>
- struct hash<org::genivi::audiomanager::am::gp_indicatorDirection_e> {
- inline size_t operator()(const org::genivi::audiomanager::am::gp_indicatorDirection_e& gp_indicatorDirection_e) const {
- return static_cast<int32_t>(gp_indicatorDirection_e);
- }
- };
- //Hash for am_RampType_e
- template<>
- struct hash<org::genivi::audiomanager::am::am_RampType_e> {
- inline size_t operator()(const org::genivi::audiomanager::am::am_RampType_e& am_RampType_e) const {
- return static_cast<int32_t>(am_RampType_e);
- }
- };
- //Hash for am_MuteState_e
- template<>
- struct hash<org::genivi::audiomanager::am::am_MuteState_e> {
- inline size_t operator()(const org::genivi::audiomanager::am::am_MuteState_e& am_MuteState_e) const {
- return static_cast<int32_t>(am_MuteState_e);
- }
- };
- //Hash for am_SourceState_e
- template<>
- struct hash<org::genivi::audiomanager::am::am_SourceState_e> {
- inline size_t operator()(const org::genivi::audiomanager::am::am_SourceState_e& am_SourceState_e) const {
- return static_cast<int32_t>(am_SourceState_e);
- }
- };
- //Hash for am_Error_e
- template<>
- struct hash<org::genivi::audiomanager::am::am_Error_e> {
- inline size_t operator()(const org::genivi::audiomanager::am::am_Error_e& am_Error_e) const {
- return static_cast<int32_t>(am_Error_e);
- }
- };
- //Hash for am_DomainState_e
- template<>
- struct hash<org::genivi::audiomanager::am::am_DomainState_e> {
- inline size_t operator()(const org::genivi::audiomanager::am::am_DomainState_e& am_DomainState_e) const {
- return static_cast<int32_t>(am_DomainState_e);
- }
- };
- //Hash for gongType_e
- template<>
- struct hash<org::genivi::audiomanager::am::gongType_e> {
- inline size_t operator()(const org::genivi::audiomanager::am::gongType_e& gongType_e) const {
- return static_cast<int32_t>(gongType_e);
- }
- };
- //Hash for gp_indicatorStatus_e
- template<>
- struct hash<org::genivi::audiomanager::am::gp_indicatorStatus_e> {
- inline size_t operator()(const org::genivi::audiomanager::am::gp_indicatorStatus_e& gp_indicatorStatus_e) const {
- return static_cast<int32_t>(gp_indicatorStatus_e);
- }
- };
- //Hash for gongStatus_e
- template<>
- struct hash<org::genivi::audiomanager::am::gongStatus_e> {
- inline size_t operator()(const org::genivi::audiomanager::am::gongStatus_e& gongStatus_e) const {
- return static_cast<int32_t>(gongStatus_e);
- }
- };
- //Hash for gongError_e
- template<>
- struct hash<org::genivi::audiomanager::am::gongError_e> {
- inline size_t operator()(const org::genivi::audiomanager::am::gongError_e& gongError_e) const {
- return static_cast<int32_t>(gongError_e);
- }
- };
- //Hash for gongClass_e
- template<>
- struct hash<org::genivi::audiomanager::am::gongClass_e> {
- inline size_t operator()(const org::genivi::audiomanager::am::gongClass_e& gongClass_e) const {
- return static_cast<int32_t>(gongClass_e);
- }
- };
- //Hash for sampleSet_e
- template<>
- struct hash<org::genivi::audiomanager::am::sampleSet_e> {
- inline size_t operator()(const org::genivi::audiomanager::am::sampleSet_e& sampleSet_e) const {
- return static_cast<int32_t>(sampleSet_e);
- }
- };
- //Hash for am_Availability_e
- template<>
- struct hash<org::genivi::audiomanager::am::am_Availability_e> {
- inline size_t operator()(const org::genivi::audiomanager::am::am_Availability_e& am_Availability_e) const {
- return static_cast<int32_t>(am_Availability_e);
- }
- };
- //Hash for am_AvailabilityReason_e
- template<>
- struct hash<org::genivi::audiomanager::am::am_AvailabilityReason_e> {
- inline size_t operator()(const org::genivi::audiomanager::am::am_AvailabilityReason_e& am_AvailabilityReason_e) const {
- return static_cast<int32_t>(am_AvailabilityReason_e);
- }
- };
- //Hash for am_InterruptState_e
- template<>
- struct hash<org::genivi::audiomanager::am::am_InterruptState_e> {
- inline size_t operator()(const org::genivi::audiomanager::am::am_InterruptState_e& am_InterruptState_e) const {
- return static_cast<int32_t>(am_InterruptState_e);
- }
- };
- //Hash for am_SoundPropertyType_e
- template<>
- struct hash<org::genivi::audiomanager::am::am_SoundPropertyType_e> {
- inline size_t operator()(const org::genivi::audiomanager::am::am_SoundPropertyType_e& am_SoundPropertyType_e) const {
- return static_cast<int32_t>(am_SoundPropertyType_e);
- }
- };
- //Hash for am_ConnectionFormat_e
- template<>
- struct hash<org::genivi::audiomanager::am::am_ConnectionFormat_e> {
- inline size_t operator()(const org::genivi::audiomanager::am::am_ConnectionFormat_e& am_ConnectionFormat_e) const {
- return static_cast<int32_t>(am_ConnectionFormat_e);
- }
- };
- //Hash for am_MainSoundPropertyType_e
- template<>
- struct hash<org::genivi::audiomanager::am::am_MainSoundPropertyType_e> {
- inline size_t operator()(const org::genivi::audiomanager::am::am_MainSoundPropertyType_e& am_MainSoundPropertyType_e) const {
- return static_cast<int32_t>(am_MainSoundPropertyType_e);
- }
- };
- //Hash for am_NotificationType_e
- template<>
- struct hash<org::genivi::audiomanager::am::am_NotificationType_e> {
- inline size_t operator()(const org::genivi::audiomanager::am::am_NotificationType_e& am_NotificationType_e) const {
- return static_cast<int32_t>(am_NotificationType_e);
- }
- };
- //Hash for am_NotificationStatus_e
- template<>
- struct hash<org::genivi::audiomanager::am::am_NotificationStatus_e> {
- inline size_t operator()(const org::genivi::audiomanager::am::am_NotificationStatus_e& am_NotificationStatus_e) const {
- return static_cast<int32_t>(am_NotificationStatus_e);
- }
- };
-}
-
-#endif // ORG_GENIVI_AUDIOMANAGER_am_H_
diff --git a/PluginCommandInterfaceCAPI/src/CAmCommandSenderCAPI.cpp b/PluginCommandInterfaceCAPI/src/CAmCommandSenderCAPI.cpp
index 75414c2..e37f583 100644
--- a/PluginCommandInterfaceCAPI/src/CAmCommandSenderCAPI.cpp
+++ b/PluginCommandInterfaceCAPI/src/CAmCommandSenderCAPI.cpp
@@ -138,12 +138,13 @@ void CAmCommandSenderCAPI::setCommandRundown(const uint16_t handle)
mpIAmCommandReceive->confirmCommandRundown(handle,E_OK);
}
-void CAmCommandSenderCAPI::cbNewMainConnection(const am_MainConnectionType_s& )
+void CAmCommandSenderCAPI::cbNewMainConnection(const am_MainConnectionType_s& mainConnectionType)
{
RETURN_IF_NOT_READY()
assert((bool)mService);
log(&ctxCommandCAPI, DLT_LOG_INFO, "cbNumberOfMainConnectionsChanged called");
- mService->fireNumberOfMainConnectionsChangedEvent();
+ org::genivi::am::am_MainConnectionType_s mainConnection(mainConnectionType.mainConnectionID,mainConnectionType.sourceID,mainConnectionType.sinkID,mainConnectionType.delay,CAmConvert2CAPIType(mainConnectionType.connectionState));
+ mService->fireNewMainConnectionEvent(mainConnection);
}
void CAmCommandSenderCAPI::cbRemovedMainConnection(const am_mainConnectionID_t mainConnection)
@@ -151,7 +152,7 @@ void CAmCommandSenderCAPI::cbRemovedMainConnection(const am_mainConnectionID_t m
RETURN_IF_NOT_READY()
assert((bool)mService);
log(&ctxCommandCAPI, DLT_LOG_INFO, "cbNumberOfMainConnectionsChanged called");
- mService->fireNumberOfMainConnectionsChangedEvent();
+ mService->fireRemovedMainConnectionEvent(mainConnection);
}
void CAmCommandSenderCAPI::cbNewSink(const am_SinkType_s& sink)
@@ -159,10 +160,10 @@ void CAmCommandSenderCAPI::cbNewSink(const am_SinkType_s& sink)
RETURN_IF_NOT_READY()
assert((bool)mService);
log(&ctxCommandCAPI, DLT_LOG_INFO, "cbNewSink called");
- CommandInterface::am_Availability_s convAvailability;
+ org::genivi::am::am_Availability_s convAvailability;
CAmConvertAvailablility(sink.availability, convAvailability);
- CommandInterface::am_SinkType_s ciSink(sink.sinkID, sink.name, convAvailability, sink.volume, CAmConvert2CAPIType(sink.muteState), sink.sinkClassID);
- mService->fireSinkAddedEvent(ciSink);
+ org::genivi::am::am_SinkType_s ciSink(sink.sinkID, sink.name, convAvailability, sink.volume, CAmConvert2CAPIType(sink.muteState), sink.sinkClassID);
+ mService->fireNewSinkEvent(ciSink);
}
void CAmCommandSenderCAPI::cbRemovedSink(const am_sinkID_t sinkID)
@@ -170,7 +171,7 @@ void CAmCommandSenderCAPI::cbRemovedSink(const am_sinkID_t sinkID)
RETURN_IF_NOT_READY()
assert((bool)mService);
log(&ctxCommandCAPI, DLT_LOG_INFO, "cbRemovedSink called");
- mService->fireSinkRemovedEvent(sinkID);
+ mService->fireRemovedSinkEvent(sinkID);
}
void CAmCommandSenderCAPI::cbNewSource(const am_SourceType_s& source)
@@ -178,10 +179,10 @@ void CAmCommandSenderCAPI::cbNewSource(const am_SourceType_s& source)
RETURN_IF_NOT_READY()
assert((bool)mService);
log(&ctxCommandCAPI, DLT_LOG_INFO, "cbNewSource called");
- CommandInterface::am_Availability_s convAvailability;
+ org::genivi::am::am_Availability_s convAvailability;
CAmConvertAvailablility(source.availability, convAvailability);
- CommandInterface::am_SourceType_s ciSource(source.sourceID, source.name, convAvailability, source.sourceClassID);
- mService->fireSourceAddedEvent(ciSource);
+ org::genivi::am::am_SourceType_s ciSource(source.sourceID, source.name, convAvailability, source.sourceClassID);
+ mService->fireNewSourceEvent(ciSource);
}
void CAmCommandSenderCAPI::cbRemovedSource(const am_sourceID_t source)
@@ -189,7 +190,7 @@ void CAmCommandSenderCAPI::cbRemovedSource(const am_sourceID_t source)
RETURN_IF_NOT_READY()
assert((bool)mService);
log(&ctxCommandCAPI, DLT_LOG_INFO, "cbRemovedSource called");
- mService->fireSourceRemovedEvent(source);
+ mService->fireRemovedSourceEvent(source);
}
void CAmCommandSenderCAPI::cbNumberOfSinkClassesChanged()
@@ -213,8 +214,7 @@ void CAmCommandSenderCAPI::cbMainConnectionStateChanged(const am_mainConnectionI
RETURN_IF_NOT_READY()
assert((bool)mService);
log(&ctxCommandCAPI, DLT_LOG_INFO, "cbMainConnectionStateChanged called, connectionID=", connectionID, "connectionState=", connectionState);
- CommandInterface::am_mainConnectionID_t cID = connectionID;
- mService->fireMainConnectionStateChangedEvent(cID, CAmConvert2CAPIType(connectionState));
+ mService->fireMainConnectionStateChangedEvent(connectionID, CAmConvert2CAPIType(connectionState));
}
void CAmCommandSenderCAPI::cbMainSinkSoundPropertyChanged(const am_sinkID_t sinkID, const am_MainSoundProperty_s & soundProperty)
@@ -222,7 +222,7 @@ void CAmCommandSenderCAPI::cbMainSinkSoundPropertyChanged(const am_sinkID_t sink
RETURN_IF_NOT_READY()
assert((bool)mService);
log(&ctxCommandCAPI, DLT_LOG_INFO, "cbMainSinkSoundPropertyChanged called, sinkID", sinkID, "SoundProperty.type", soundProperty.type, "SoundProperty.value", soundProperty.value);
- CommandInterface::am_MainSoundProperty_s mainSoundProp(CAmConvert2CAPIType(soundProperty.type), soundProperty.value);
+ org::genivi::am::am_MainSoundProperty_s mainSoundProp(CAmConvert2CAPIType(soundProperty.type), soundProperty.value);
mService->fireMainSinkSoundPropertyChangedEvent(sinkID, mainSoundProp);
}
@@ -231,7 +231,7 @@ void CAmCommandSenderCAPI::cbMainSourceSoundPropertyChanged(const am_sourceID_t
RETURN_IF_NOT_READY()
assert((bool)mService);
log(&ctxCommandCAPI, DLT_LOG_INFO, "cbMainSourceSoundPropertyChanged called, sourceID", sourceID, "SoundProperty.type", SoundProperty.type, "SoundProperty.value", SoundProperty.value);
- CommandInterface::am_MainSoundProperty_s convValue;
+ org::genivi::am::am_MainSoundProperty_s convValue;
CAmConvertMainSoundProperty(SoundProperty, convValue);
mService->fireMainSourceSoundPropertyChangedEvent(sourceID, convValue);
}
@@ -241,7 +241,7 @@ void CAmCommandSenderCAPI::cbSinkAvailabilityChanged(const am_sinkID_t sinkID, c
RETURN_IF_NOT_READY()
assert((bool)mService);
log(&ctxCommandCAPI, DLT_LOG_INFO, "cbSinkAvailabilityChanged called, sinkID", sinkID, "availability.availability", availability.availability, "SoundProperty.reason", availability.availabilityReason);
- CommandInterface::am_Availability_s convAvailability;
+ org::genivi::am::am_Availability_s convAvailability;
CAmConvertAvailablility(availability, convAvailability);
mService->fireSinkAvailabilityChangedEvent(sinkID, convAvailability);
}
@@ -251,7 +251,7 @@ void CAmCommandSenderCAPI::cbSourceAvailabilityChanged(const am_sourceID_t sourc
RETURN_IF_NOT_READY()
assert((bool)mService);
log(&ctxCommandCAPI, DLT_LOG_INFO, "cbSourceAvailabilityChanged called, sourceID", sourceID, "availability.availability", availability.availability, "SoundProperty.reason", availability.availabilityReason);
- CommandInterface::am_Availability_s convAvailability;
+ org::genivi::am::am_Availability_s convAvailability;
CAmConvertAvailablility(availability, convAvailability);
mService->fireSourceAvailabilityChangedEvent(sourceID, convAvailability);
}
@@ -269,7 +269,7 @@ void CAmCommandSenderCAPI::cbSinkMuteStateChanged(const am_sinkID_t sinkID, cons
RETURN_IF_NOT_READY()
assert((bool)mService);
log(&ctxCommandCAPI, DLT_LOG_INFO, "cbSinkMuteStateChanged called, sinkID", sinkID, "muteState", muteState);
- CommandInterface::am_MuteState_e ciMuteState = CAmConvert2CAPIType(muteState);
+ org::genivi::am::am_MuteState_e ciMuteState = CAmConvert2CAPIType(muteState);
mService->fireSinkMuteStateChangedEvent(sinkID, ciMuteState);
}
@@ -278,7 +278,7 @@ void CAmCommandSenderCAPI::cbSystemPropertyChanged(const am_SystemProperty_s & S
RETURN_IF_NOT_READY()
assert((bool)mService);
log(&ctxCommandCAPI, DLT_LOG_INFO, "cbSystemPropertyChanged called, SystemProperty.type", SystemProperty.type, "SystemProperty.value", SystemProperty.value);
- CommandInterface::am_SystemProperty_s convValue;
+ org::genivi::am::am_SystemProperty_s convValue;
CAmConvertSystemProperty(SystemProperty, convValue);
mService->fireSystemPropertyChangedEvent(convValue);
}
@@ -288,7 +288,7 @@ void CAmCommandSenderCAPI::cbTimingInformationChanged(const am_mainConnectionID_
RETURN_IF_NOT_READY()
assert((bool)mService);
log(&ctxCommandCAPI, DLT_LOG_INFO, "cbTimingInformationChanged called, mainConnectionID=", mainConnectionID, "time=", time);
- CommandInterface::am_mainConnectionID_t ciMainConnection = mainConnectionID;
+ org::genivi::am::am_mainConnectionID_t ciMainConnection = mainConnectionID;
mService->fireTimingInformationChangedEvent(ciMainConnection, time);
}
@@ -302,9 +302,9 @@ void CAmCommandSenderCAPI::cbSinkUpdated(const am_sinkID_t sinkID, const am_sink
RETURN_IF_NOT_READY()
assert((bool)mService);
log(&ctxCommandCAPI, DLT_LOG_INFO, "cbSinkUpdated called, sinkID", sinkID);
- CommandInterface::am_MainSoundProperty_l list;
+ org::genivi::am::am_MainSoundProperty_L list;
std::for_each(listMainSoundProperties.begin(), listMainSoundProperties.end(), [&](const am_MainSoundProperty_s & ref) {
- CommandInterface::am_MainSoundProperty_s prop(CAmConvert2CAPIType(ref.type), ref.value);
+ org::genivi::am::am_MainSoundProperty_s prop(CAmConvert2CAPIType(ref.type), ref.value);
list.push_back(prop);
});
mService->fireSinkUpdatedEvent(sinkID, sinkClassID, list);
@@ -315,9 +315,9 @@ void CAmCommandSenderCAPI::cbSourceUpdated(const am_sourceID_t sourceID, const a
RETURN_IF_NOT_READY()
assert((bool)mService);
log(&ctxCommandCAPI, DLT_LOG_INFO, "cbSourceUpdated called, sourceID", sourceID);
- CommandInterface::am_MainSoundProperty_l list;
+ org::genivi::am::am_MainSoundProperty_L list;
std::for_each(listMainSoundProperties.begin(), listMainSoundProperties.end(), [&](const am_MainSoundProperty_s & ref) {
- CommandInterface::am_MainSoundProperty_s prop(CAmConvert2CAPIType(ref.type), ref.value);
+ org::genivi::am::am_MainSoundProperty_s prop(CAmConvert2CAPIType(ref.type), ref.value);
list.push_back(prop);
});
mService->fireSourceUpdatedEvent(sourceID, sourceClassID, list);
@@ -328,7 +328,7 @@ void CAmCommandSenderCAPI::cbSinkNotification(const am_sinkID_t sinkID, const am
RETURN_IF_NOT_READY()
assert((bool)mService);
log(&ctxCommandCAPI, DLT_LOG_INFO, "cbSinkNotification called, sinkID", sinkID);
- CommandInterface::am_NotificationPayload_s ciNnotif(CAmConvert2CAPIType(notification.type), notification.value);
+ org::genivi::am::am_NotificationPayload_s ciNnotif(static_cast<org::genivi::am::am_NotificationType_pe>(notification.type), notification.value);
mService->fireSinkNotificationEvent(sinkID, ciNnotif);
}
@@ -337,7 +337,7 @@ void CAmCommandSenderCAPI::cbSourceNotification(const am_sourceID_t sourceID, co
RETURN_IF_NOT_READY()
assert((bool)mService);
log(&ctxCommandCAPI, DLT_LOG_INFO, "cbSourceNotification called, sourceID", sourceID);
- CommandInterface::am_NotificationPayload_s ciNnotif(CAmConvert2CAPIType(notification.type), notification.value);
+ org::genivi::am::am_NotificationPayload_s ciNnotif(static_cast<org::genivi::am::am_NotificationType_pe>(notification.type), notification.value);
mService->fireSourceNotificationEvent(sourceID, ciNnotif);
}
@@ -346,8 +346,8 @@ void CAmCommandSenderCAPI::cbMainSinkNotificationConfigurationChanged(const am_s
RETURN_IF_NOT_READY()
assert((bool)mService);
log(&ctxCommandCAPI, DLT_LOG_INFO, "cbSinkMainNotificationConfigurationChanged called, sinkID", sinkID);
- org::genivi::audiomanager::am::am_NotificationConfiguration_s ciNotifConfig(CAmConvert2CAPIType(mainNotificationConfiguration.type),
- CAmConvert2CAPIType(mainNotificationConfiguration.status),
+ org::genivi::am::am_NotificationConfiguration_s ciNotifConfig(static_cast<org::genivi::am::am_NotificationType_pe>(mainNotificationConfiguration.type),
+ static_cast<org::genivi::am::am_NotificationStatus_e>(mainNotificationConfiguration.status),
mainNotificationConfiguration.parameter);
mService->fireMainSinkNotificationConfigurationChangedEvent(sinkID, ciNotifConfig);
}
@@ -357,8 +357,8 @@ void CAmCommandSenderCAPI::cbMainSourceNotificationConfigurationChanged(const am
RETURN_IF_NOT_READY()
assert((bool)mService);
log(&ctxCommandCAPI, DLT_LOG_INFO, "cbSourceMainNotificationConfigurationChanged called, sourceID", sourceID);
- org::genivi::audiomanager::am::am_NotificationConfiguration_s ciNotifConfig(CAmConvert2CAPIType(mainNotificationConfiguration.type),
- CAmConvert2CAPIType(mainNotificationConfiguration.status),
+ org::genivi::am::am_NotificationConfiguration_s ciNotifConfig(static_cast<org::genivi::am::am_NotificationType_pe>(mainNotificationConfiguration.type),
+ static_cast<org::genivi::am::am_NotificationStatus_e>(mainNotificationConfiguration.status),
mainNotificationConfiguration.parameter);
mService->fireMainSourceNotificationConfigurationChangedEvent(sourceID, ciNotifConfig);
}
diff --git a/PluginCommandInterfaceCAPI/src/CAmCommandSenderCommon.cpp b/PluginCommandInterfaceCAPI/src/CAmCommandSenderCommon.cpp
index dca4f50..58816ce 100644
--- a/PluginCommandInterfaceCAPI/src/CAmCommandSenderCommon.cpp
+++ b/PluginCommandInterfaceCAPI/src/CAmCommandSenderCommon.cpp
@@ -21,139 +21,110 @@
/**
* Utility functions
*/
-void CAmConvertAvailablility(const am_Availability_s & amAavailability, CommandInterface::am_Availability_s & result)
+void CAmConvertAvailablility(const am_Availability_s & amAavailability, org::genivi::am::am_Availability_s & result)
{
result.availability = CAmConvert2CAPIType(amAavailability.availability);
result.availabilityReason = CAmConvert2CAPIType(amAavailability.availabilityReason);
}
-void CAmConvertMainSoundProperty(const am_MainSoundProperty_s & amMainSoundProperty, CommandInterface::am_MainSoundProperty_s & result)
+void CAmConvertMainSoundProperty(const am_MainSoundProperty_s & amMainSoundProperty, org::genivi::am::am_MainSoundProperty_s & result)
{
result.type = CAmConvert2CAPIType(amMainSoundProperty.type);
result.value = amMainSoundProperty.value;
}
-void CAmConvertSystemProperty(const am_SystemProperty_s & amSystemProperty, CommandInterface::am_SystemProperty_s & result)
+void CAmConvertSystemProperty(const am_SystemProperty_s & amSystemProperty, org::genivi::am::am_SystemProperty_s & result)
{
result.type = CAmConvert2CAPIType(amSystemProperty.type);
result.value = amSystemProperty.value;
}
-CommandInterface::am_ClassProperty_e CAmConvert2CAPIType(const am_ClassProperty_e & property)
+org::genivi::am::am_ClassProperty_pe CAmConvert2CAPIType(const am_ClassProperty_e & property)
{
- return CP_MAX==property?
- CommandInterface::am_ClassProperty_e::CP_MAX
- :
- static_cast<CommandInterface::am_ClassProperty_e>(property);
+ return static_cast<org::genivi::am::am_ClassProperty_pe>(property);
}
-CommandInterface::am_SystemPropertyType_e CAmConvert2CAPIType(const am_SystemPropertyType_e & property)
+org::genivi::am::am_SystemPropertyType_pe CAmConvert2CAPIType(const am_SystemPropertyType_e & property)
{
- return SYP_MAX==property?
- CommandInterface::am_SystemPropertyType_e::SYP_MAX
- :
- static_cast<CommandInterface::am_SystemPropertyType_e>(property);
+ return static_cast<org::genivi::am::am_SystemPropertyType_pe>(property);
}
-CommandInterface::am_Availablility_e CAmConvert2CAPIType(const am_Availability_e & availability)
+org::genivi::am::am_Availability_e CAmConvert2CAPIType(const am_Availability_e & availability)
{
- return (A_MAX==availability)?CommandInterface::am_Availablility_e::A_MAX
+ return (A_MAX==availability)?org::genivi::am::am_Availability_e::A_MAX
:
- static_cast<CommandInterface::am_Availablility_e>(availability);
+ static_cast<org::genivi::am::am_Availability_e>(availability);
}
-CommandInterface::am_AvailabilityReason_e CAmConvert2CAPIType(const am_AvailabilityReason_e & availabilityReason)
+org::genivi::am::am_AvailabilityReason_pe CAmConvert2CAPIType(const am_AvailabilityReason_e & availabilityReason)
{
- return (AR_MAX==availabilityReason)?CommandInterface::am_AvailabilityReason_e::AR_MAX
- :
- static_cast<CommandInterface::am_AvailabilityReason_e>(availabilityReason);
+ return static_cast<org::genivi::am::am_AvailabilityReason_pe>(availabilityReason);
}
-CommandInterface::am_MuteState_e CAmConvert2CAPIType(const am_MuteState_e & muteState)
+org::genivi::am::am_MuteState_e CAmConvert2CAPIType(const am_MuteState_e & muteState)
{
return MS_MAX==muteState?
- CommandInterface::am_MuteState_e::MS_MAX
+ org::genivi::am::am_MuteState_e::MS_MAX
:
- static_cast<CommandInterface::am_MuteState_e>(muteState);
+ static_cast<org::genivi::am::am_MuteState_e>(muteState);
}
-am_MuteState_e CAmConvertFromCAPIType(const CommandInterface::am_MuteState_e & muteState)
+am_MuteState_e CAmConvertFromCAPIType(const org::genivi::am::am_MuteState_e & muteState)
{
- return CommandInterface::am_MuteState_e::MS_MAX==muteState?
+ return org::genivi::am::am_MuteState_e::MS_MAX==muteState?
MS_MAX:static_cast<am_MuteState_e>(muteState);
}
-CommandInterface::am_MainSoundPropertyType_e CAmConvert2CAPIType(const am_MainSoundPropertyType_e & type)
+org::genivi::am::am_MainSoundPropertyType_pe CAmConvert2CAPIType(const am_MainSoundPropertyType_e & type)
{
- return MSP_MAX==type?
- CommandInterface::am_MainSoundPropertyType_e::MSP_MAX
- :
- static_cast<CommandInterface::am_MainSoundPropertyType_e>(type);
+ return static_cast<org::genivi::am::am_MainSoundPropertyType_pe>(type);
}
-am_MainSoundPropertyType_e CAmConvertFromCAPIType(const CommandInterface::am_MainSoundPropertyType_e & type)
+am_MainSoundPropertyType_e CAmConvertFromCAPIType(const org::genivi::am::am_MainSoundPropertyType_pe & type)
{
- return CommandInterface::am_MainSoundPropertyType_e::MSP_MAX==type?
- MSP_MAX:static_cast<am_MainSoundPropertyType_e>(type);
+ return static_cast<am_MainSoundPropertyType_e>(type);
}
-
-
-CommandInterface::am_ConnectionState_e CAmConvert2CAPIType(const am_ConnectionState_e & connectionState)
+org::genivi::am::am_ConnectionState_e CAmConvert2CAPIType(const am_ConnectionState_e & connectionState)
{
return CS_MAX==connectionState?
- CommandInterface::am_ConnectionState_e::CS_MAX
+ org::genivi::am::am_ConnectionState_e::CS_MAX
:
- static_cast<CommandInterface::am_ConnectionState_e>(connectionState);
+ static_cast<org::genivi::am::am_ConnectionState_e>(connectionState);
}
-am_ConnectionState_e CAmConvertFromCAPIType(const CommandInterface::am_ConnectionState_e & connectionState)
+am_ConnectionState_e CAmConvertFromCAPIType(const org::genivi::am::am_ConnectionState_e & connectionState)
{
- return CommandInterface::am_ConnectionState_e::CS_MAX==connectionState?
+ return org::genivi::am::am_ConnectionState_e::CS_MAX==connectionState?
CS_MAX:static_cast<am_ConnectionState_e>(connectionState);
}
-org::genivi::audiomanager::am::am_NotificationType_e CAmConvert2CAPIType(const am_NotificationType_e & notificationType)
-{
- return NT_MAX==notificationType?
- org::genivi::audiomanager::am::am_NotificationType_e::NT_MAX
- :
- static_cast<org::genivi::audiomanager::am::am_NotificationType_e>(notificationType);
-}
-am_NotificationType_e CAmConvertFromCAPIType(const org::genivi::audiomanager::am::am_NotificationType_e & notificationType)
+org::genivi::am::am_NotificationType_pe CAmConvert2CAPIType(const am_NotificationType_e & notificationType)
{
- return org::genivi::audiomanager::am::am_NotificationType_e::NT_MAX==notificationType?
- NT_MAX:static_cast<am_NotificationType_e>(notificationType);
+ return static_cast<org::genivi::am::am_NotificationType_pe>(notificationType);
}
-org::genivi::audiomanager::am::am_NotificationStatus_e CAmConvert2CAPIType(const am_NotificationStatus_e & notificationStatus)
+org::genivi::am::am_NotificationStatus_e CAmConvert2CAPIType(const am_NotificationStatus_e & notificationStatus)
{
return NS_MAX==notificationStatus?
- org::genivi::audiomanager::am::am_NotificationStatus_e::NS_MAX
+ org::genivi::am::am_NotificationStatus_e::NS_MAX
:
- static_cast<org::genivi::audiomanager::am::am_NotificationStatus_e>(notificationStatus);
+ static_cast<org::genivi::am::am_NotificationStatus_e>(notificationStatus);
}
-am_NotificationStatus_e CAmConvertFromCAPIType(const org::genivi::audiomanager::am::am_NotificationStatus_e & notificationStatus)
+am_NotificationStatus_e CAmConvertFromCAPIType(const org::genivi::am::am_NotificationStatus_e & notificationStatus)
{
- return org::genivi::audiomanager::am::am_NotificationStatus_e::NS_MAX==notificationStatus?
+ return org::genivi::am::am_NotificationStatus_e::NS_MAX==notificationStatus?
NS_MAX:static_cast<am_NotificationStatus_e>(notificationStatus);
}
-CommandInterface::am_Error_e CAmConvert2CAPIType(const am_Error_e & error)
+org::genivi::am::am_Error_e CAmConvert2CAPIType(const am_Error_e & error)
{
return E_MAX==error?
- CommandInterface::am_Error_e::E_MAX
+ org::genivi::am::am_Error_e::E_MAX
:
- static_cast<CommandInterface::am_Error_e>(error);
+ static_cast<org::genivi::am::am_Error_e>(error);
}
-am_Error_e CAmConvertFromCAPIType(const CommandInterface::am_Error_e & error)
+am_Error_e CAmConvertFromCAPIType(const org::genivi::am::am_Error_e & error)
{
- return CommandInterface::am_Error_e::E_MAX==error?
+ return org::genivi::am::am_Error_e::E_MAX==error?
E_MAX:static_cast<am_Error_e>(error);
}
-
-am_SystemPropertyType_e CAmConvertFromCAPIType(const CommandInterface::am_SystemPropertyType_e & propType)
-{
- return CommandInterface::am_SystemPropertyType_e::SYP_MAX==propType?
- SYP_MAX:static_cast<am_SystemPropertyType_e>(propType);
-}
-
diff --git a/PluginCommandInterfaceCAPI/src/CAmCommandSenderService.cpp b/PluginCommandInterfaceCAPI/src/CAmCommandSenderService.cpp
index 4d463d2..e9f7f9a 100644
--- a/PluginCommandInterfaceCAPI/src/CAmCommandSenderService.cpp
+++ b/PluginCommandInterfaceCAPI/src/CAmCommandSenderService.cpp
@@ -37,57 +37,57 @@ CAmCommandSenderService::~CAmCommandSenderService() {
// TODO Auto-generated destructor stub
}
-void CAmCommandSenderService::Connect(CommandInterface::am_sourceID_t sourceID, CommandInterface::am_sinkID_t sinkID, CommandInterface::am_Error_e& result, CommandInterface::am_mainConnectionID_t& mainConnectionID) {
+void CAmCommandSenderService::connect(org::genivi::am::am_sourceID_t sourceID, org::genivi::am::am_sinkID_t sinkID, org::genivi::am::am_mainConnectionID_t& mainConnectionID,org::genivi::am::am_Error_e& result) {
assert(mpIAmCommandReceive);
result = CAmConvert2CAPIType(mpIAmCommandReceive->connect(sourceID, sinkID, mainConnectionID));
}
-void CAmCommandSenderService::Disconnect(CommandInterface::am_mainConnectionID_t mainConnectionID, CommandInterface::am_Error_e& result) {
+void CAmCommandSenderService::disconnect(org::genivi::am::am_mainConnectionID_t mainConnectionID, org::genivi::am::am_Error_e& result) {
assert(mpIAmCommandReceive);
result = CAmConvert2CAPIType(mpIAmCommandReceive->disconnect(mainConnectionID));
}
-void CAmCommandSenderService::SetVolume(CommandInterface::am_sinkID_t sinkID, CommandInterface::am_mainVolume_t volume, CommandInterface::am_Error_e& result) {
+void CAmCommandSenderService::setVolume(org::genivi::am::am_sinkID_t sinkID, org::genivi::am::am_mainVolume_t volume, org::genivi::am::am_Error_e& result) {
assert(mpIAmCommandReceive);
result = CAmConvert2CAPIType(mpIAmCommandReceive->setVolume(sinkID, volume));
}
-void CAmCommandSenderService::VolumeStep(CommandInterface::am_sinkID_t sinkID, CommandInterface::am_mainVolume_t volumeStep, CommandInterface::am_Error_e& result) {
+void CAmCommandSenderService::volumeStep(org::genivi::am::am_sinkID_t sinkID, org::genivi::am::am_mainVolume_t volumeStep, org::genivi::am::am_Error_e& result) {
assert(mpIAmCommandReceive);
result = CAmConvert2CAPIType(mpIAmCommandReceive->volumeStep(sinkID, volumeStep));
}
-void CAmCommandSenderService::SetSinkMuteState(CommandInterface::am_sinkID_t sinkID, CommandInterface::am_MuteState_e muteState, CommandInterface::am_Error_e& result) {
+void CAmCommandSenderService::setSinkMuteState(org::genivi::am::am_sinkID_t sinkID, org::genivi::am::am_MuteState_e muteState, org::genivi::am::am_Error_e& result) {
assert(mpIAmCommandReceive);
result = CAmConvert2CAPIType(mpIAmCommandReceive->setSinkMuteState(sinkID, CAmConvertFromCAPIType(muteState)));
}
-void CAmCommandSenderService::SetMainSinkSoundProperty(CommandInterface::am_sinkID_t sinkID, CommandInterface::am_MainSoundProperty_s soundProperty, CommandInterface::am_Error_e& result) {
+void CAmCommandSenderService::setMainSinkSoundProperty(org::genivi::am::am_sinkID_t sinkID, org::genivi::am::am_MainSoundProperty_s soundProperty, org::genivi::am::am_Error_e& result) {
assert(mpIAmCommandReceive);
- am_MainSoundProperty_s property = {CAmConvertFromCAPIType(soundProperty.type), soundProperty.value};
+ am_MainSoundProperty_s property = {static_cast<am_MainSoundPropertyType_e>(soundProperty.type), soundProperty.value};
result = CAmConvert2CAPIType(mpIAmCommandReceive->setMainSinkSoundProperty(property, sinkID));
}
-void CAmCommandSenderService::SetMainSourceSoundProperty(CommandInterface::am_sourceID_t sourceID, CommandInterface::am_MainSoundProperty_s soundProperty, CommandInterface::am_Error_e& result) {
+void CAmCommandSenderService::setMainSourceSoundProperty(org::genivi::am::am_sourceID_t sourceID, org::genivi::am::am_MainSoundProperty_s soundProperty, org::genivi::am::am_Error_e& result) {
assert(mpIAmCommandReceive);
- am_MainSoundProperty_s property = {CAmConvertFromCAPIType(soundProperty.type), soundProperty.value};
+ am_MainSoundProperty_s property = {static_cast<am_MainSoundPropertyType_e>(soundProperty.type), soundProperty.value};
result = CAmConvert2CAPIType(mpIAmCommandReceive->setMainSourceSoundProperty(property, sourceID));
}
-void CAmCommandSenderService::SetSystemProperty(CommandInterface::am_SystemProperty_s soundProperty, CommandInterface::am_Error_e& result) {
+void CAmCommandSenderService::setSystemProperty(org::genivi::am::am_SystemProperty_s soundProperty, org::genivi::am::am_Error_e& result) {
assert(mpIAmCommandReceive);
- am_SystemProperty_s property = {CAmConvertFromCAPIType(soundProperty.type), soundProperty.value};
+ am_SystemProperty_s property = {static_cast<am_SystemPropertyType_e>(soundProperty.type), soundProperty.value};
result = CAmConvert2CAPIType(mpIAmCommandReceive->setSystemProperty(property));
}
-void CAmCommandSenderService::GetListMainConnections(CommandInterface::am_Error_e& result, CommandInterface::am_MainConnectionType_l& listConnections) {
+void CAmCommandSenderService::getListMainConnections(org::genivi::am::am_Error_e& result, org::genivi::am::am_MainConnection_L& listConnections) {
assert(mpIAmCommandReceive);
std::vector<am_MainConnectionType_s> list;
result = CAmConvert2CAPIType(mpIAmCommandReceive->getListMainConnections(list));
- if(result==CommandInterface::am_Error_e::E_OK)
+ if(result==org::genivi::am::am_Error_e::E_OK)
{
- CommandInterface::am_MainConnectionType_s item;
+ org::genivi::am::am_MainConnectionType_s item;
for(std::vector<am_MainConnectionType_s>::const_iterator iter = list.begin(); iter!=list.end(); iter++)
{
item.mainConnectionID = iter->mainConnectionID;
@@ -100,13 +100,13 @@ void CAmCommandSenderService::GetListMainConnections(CommandInterface::am_Error_
}
}
-void CAmCommandSenderService::GetListMainSinks(CommandInterface::am_Error_e& result, CommandInterface::am_SinkType_l& listMainSinks) {
+void CAmCommandSenderService::getListMainSinks(org::genivi::am::am_SinkType_L& listMainSinks,org::genivi::am::am_Error_e& result) {
assert(mpIAmCommandReceive);
std::vector<am_SinkType_s> list;
result = CAmConvert2CAPIType(mpIAmCommandReceive->getListMainSinks(list));
- if(result==CommandInterface::am_Error_e::E_OK)
+ if(result==org::genivi::am::am_Error_e::E_OK)
{
- CommandInterface::am_SinkType_s item;
+ org::genivi::am::am_SinkType_s item;
for(std::vector<am_SinkType_s>::const_iterator iter = list.begin(); iter!=list.end(); iter++)
{
item.sinkID = iter->sinkID;
@@ -120,13 +120,13 @@ void CAmCommandSenderService::GetListMainSinks(CommandInterface::am_Error_e& res
}
}
-void CAmCommandSenderService::GetListMainSources(CommandInterface::am_Error_e& result, CommandInterface::am_SourceType_l& listMainSources) {
+void CAmCommandSenderService::getListMainSources(org::genivi::am::am_SourceType_L& listMainSources,org::genivi::am::am_Error_e& result) {
assert(mpIAmCommandReceive);
std::vector<am_SourceType_s> list;
result = CAmConvert2CAPIType(mpIAmCommandReceive->getListMainSources(list));
- if(result==CommandInterface::am_Error_e::E_OK)
+ if(result==org::genivi::am::am_Error_e::E_OK)
{
- CommandInterface::am_SourceType_s item;
+ org::genivi::am::am_SourceType_s item;
for(std::vector<am_SourceType_s>::const_iterator iter = list.begin(); iter!=list.end(); iter++)
{
item.sourceID = iter->sourceID;
@@ -138,13 +138,13 @@ void CAmCommandSenderService::GetListMainSources(CommandInterface::am_Error_e& r
}
}
-void CAmCommandSenderService::GetListMainSinkSoundProperties(CommandInterface::am_sinkID_t sinkID, CommandInterface::am_Error_e& result, CommandInterface::am_MainSoundProperty_l& listSoundProperties) {
+void CAmCommandSenderService::getListMainSinkSoundProperties(org::genivi::am::am_sinkID_t sinkID, org::genivi::am::am_MainSoundProperty_L& listSoundProperties,org::genivi::am::am_Error_e& result) {
assert(mpIAmCommandReceive);
std::vector<am_MainSoundProperty_s> list;
result = CAmConvert2CAPIType(mpIAmCommandReceive->getListMainSinkSoundProperties(sinkID, list));
- if(result==CommandInterface::am_Error_e::E_OK)
+ if(result==org::genivi::am::am_Error_e::E_OK)
{
- CommandInterface::am_MainSoundProperty_s item;
+ org::genivi::am::am_MainSoundProperty_s item;
for(std::vector<am_MainSoundProperty_s>::const_iterator iter = list.begin(); iter!=list.end(); iter++)
{
item.type = CAmConvert2CAPIType(iter->type);
@@ -154,13 +154,13 @@ void CAmCommandSenderService::GetListMainSinkSoundProperties(CommandInterface::a
}
}
-void CAmCommandSenderService::GetListMainSourceSoundProperties(CommandInterface::am_sourceID_t sourceID, CommandInterface::am_Error_e& result, CommandInterface::am_MainSoundProperty_l& listSourceProperties) {
+void CAmCommandSenderService::getListMainSourceSoundProperties(org::genivi::am::am_sourceID_t sourceID, org::genivi::am::am_MainSoundProperty_L& listSourceProperties,org::genivi::am::am_Error_e& result) {
assert(mpIAmCommandReceive);
std::vector<am_MainSoundProperty_s> list;
result = CAmConvert2CAPIType(mpIAmCommandReceive->getListMainSourceSoundProperties(sourceID, list));
- if(result==CommandInterface::am_Error_e::E_OK)
+ if(result==org::genivi::am::am_Error_e::E_OK)
{
- CommandInterface::am_MainSoundProperty_s item;
+ org::genivi::am::am_MainSoundProperty_s item;
for(std::vector<am_MainSoundProperty_s>::const_iterator iter = list.begin(); iter!=list.end(); iter++)
{
item.type = CAmConvert2CAPIType(iter->type);
@@ -170,20 +170,20 @@ void CAmCommandSenderService::GetListMainSourceSoundProperties(CommandInterface:
}
}
-void CAmCommandSenderService::GetListSourceClasses(CommandInterface::am_Error_e& result, CommandInterface::am_SourceClass_l& listSourceClasses) {
+void CAmCommandSenderService::getListSourceClasses(org::genivi::am::am_SourceClass_L& listSourceClasses,org::genivi::am::am_Error_e& result) {
assert(mpIAmCommandReceive);
std::vector<am_SourceClass_s> list;
result = CAmConvert2CAPIType(mpIAmCommandReceive->getListSourceClasses(list));
- if(result==CommandInterface::am_Error_e::E_OK)
+ if(result==org::genivi::am::am_Error_e::E_OK)
{
- CommandInterface::am_SourceClass_s item;
+ org::genivi::am::am_SourceClass_s item;
for(std::vector<am_SourceClass_s>::const_iterator iter = list.begin(); iter!=list.end(); iter++)
{
item.sourceClassID = iter->sourceClassID;
item.name = iter->name;
item.listClassProperties.clear();
std::for_each(iter->listClassProperties.begin(), iter->listClassProperties.end(), [&](const am_ClassProperty_s & ref) {
- CommandInterface::am_ClassProperty_s classProp(CAmConvert2CAPIType(ref.classProperty), ref.value);
+ org::genivi::am::am_ClassProperty_s classProp(CAmConvert2CAPIType(ref.classProperty), ref.value);
item.listClassProperties.push_back(classProp);
});
listSourceClasses.push_back (item);
@@ -191,20 +191,20 @@ void CAmCommandSenderService::GetListSourceClasses(CommandInterface::am_Error_e&
}
}
-void CAmCommandSenderService::GetListSinkClasses(CommandInterface::am_Error_e& result, CommandInterface::am_SinkClass_l& listSinkClasses) {
+void CAmCommandSenderService::getListSinkClasses(org::genivi::am::am_SinkClass_L& listSinkClasses,org::genivi::am::am_Error_e& result) {
assert(mpIAmCommandReceive);
std::vector<am_SinkClass_s> list;
result = CAmConvert2CAPIType(mpIAmCommandReceive->getListSinkClasses(list));
- if(result==CommandInterface::am_Error_e::E_OK)
+ if(result==org::genivi::am::am_Error_e::E_OK)
{
- CommandInterface::am_SinkClass_s item;
+ org::genivi::am::am_SinkClass_s item;
for(std::vector<am_SinkClass_s>::const_iterator iter = list.begin(); iter!=list.end(); iter++)
{
item.sinkClassID = iter->sinkClassID;
item.name = iter->name;
item.listClassProperties.clear();
std::for_each(iter->listClassProperties.begin(), iter->listClassProperties.end(), [&](const am_ClassProperty_s & ref) {
- CommandInterface::am_ClassProperty_s classProp(CAmConvert2CAPIType(ref.classProperty), ref.value);
+ org::genivi::am::am_ClassProperty_s classProp(CAmConvert2CAPIType(ref.classProperty), ref.value);
item.listClassProperties.push_back(classProp);
});
listSinkClasses.push_back (item);
@@ -212,13 +212,13 @@ void CAmCommandSenderService::GetListSinkClasses(CommandInterface::am_Error_e& r
}
}
-void CAmCommandSenderService::GetListSystemProperties(CommandInterface::am_Error_e& result, CommandInterface::am_SystemProperty_l& listSystemProperties) {
+void CAmCommandSenderService::getListSystemProperties(org::genivi::am::am_SystemProperty_L& listSystemProperties,org::genivi::am::am_Error_e& result) {
assert(mpIAmCommandReceive);
std::vector<am_SystemProperty_s> list;
result = CAmConvert2CAPIType(mpIAmCommandReceive->getListSystemProperties(list));
- if(result==CommandInterface::am_Error_e::E_OK)
+ if(result==org::genivi::am::am_Error_e::E_OK)
{
- CommandInterface::am_SystemProperty_s item;
+ org::genivi::am::am_SystemProperty_s item;
for(std::vector<am_SystemProperty_s>::const_iterator iter = list.begin(); iter!=list.end(); iter++)
{
item.type = CAmConvert2CAPIType(iter->type);
@@ -228,7 +228,7 @@ void CAmCommandSenderService::GetListSystemProperties(CommandInterface::am_Error
}
}
-void CAmCommandSenderService::GetTimingInformation(CommandInterface::am_mainConnectionID_t mainConnectionID, CommandInterface::am_Error_e& result, CommandInterface::am_timeSync_t& delay) {
+void CAmCommandSenderService::getTimingInformation(org::genivi::am::am_mainConnectionID_t mainConnectionID, org::genivi::am::am_timeSync_t& delay,org::genivi::am::am_Error_e& result) {
assert(mpIAmCommandReceive);
result = CAmConvert2CAPIType(mpIAmCommandReceive->getTimingInformation(mainConnectionID, delay));
}
diff --git a/PluginCommandInterfaceCAPI/test/CAmCommandSenderCAPITest.cpp b/PluginCommandInterfaceCAPI/test/CAmCommandSenderCAPITest.cpp
index 6f64150..8285b6e 100644
--- a/PluginCommandInterfaceCAPI/test/CAmCommandSenderCAPITest.cpp
+++ b/PluginCommandInterfaceCAPI/test/CAmCommandSenderCAPITest.cpp
@@ -27,6 +27,7 @@
#include "MockIAmCommandReceive.h"
#include "shared/CAmDltWrapper.h"
#include "../include/CAmCommandSenderCAPI.h"
+#include "../include/CAmCommandSenderCommon.h"
#include "MockNotificationsClient.h"
#include <CommonAPI/CommonAPI.h>
#include <sys/time.h>
@@ -35,7 +36,6 @@
using namespace am;
using namespace testing;
-using namespace org::genivi::audiomanager;
using namespace CommonAPI;
static CAmTestsEnvironment* env;
@@ -53,7 +53,7 @@ void* run_client(void*)
CAmTestCAPIWrapper wrapper(&socketHandler);
env->mSocketHandlerClient = &socketHandler;
std::shared_ptr<CommonAPI::Factory> factory = wrapper.factory();
- env->mProxy = factory->buildProxy<CommandInterfaceProxy>(CAmCommandSenderCAPI::COMMAND_SENDER_SERVICE);
+ env->mProxy = factory->buildProxy<org::genivi::am::CommandControlProxy>(CAmCommandSenderCAPI::COMMAND_SENDER_SERVICE);
env->mProxy->getProxyStatusEvent().subscribe(std::bind(&CAmTestsEnvironment::onServiceStatusEvent,env,std::placeholders::_1));
pthread_mutex_lock(&mutexSer);
@@ -85,9 +85,11 @@ void* run_service(void*)
}
else
{
+ EXPECT_CALL(*env->mpCommandReceive,confirmCommandReady(10,_));
plugin.setCommandReady(10);
socketHandler.start_listenting();
+ EXPECT_CALL(*env->mpCommandReceive,confirmCommandRundown(10,_));
plugin.setCommandRundown(10);
plugin.tearDownInterface(env->mpCommandReceive);
}
@@ -214,7 +216,8 @@ TEST_F(CAmCommandSenderCAPITest, ClientStartupTest)
EXPECT_TRUE(Mock::VerifyAndClearExpectations(env->mpCommandReceive));
}
-ACTION(returnClientConnect){
+ACTION(returnClientConnect)
+{
arg2=101;
}
@@ -223,18 +226,19 @@ TEST_F(CAmCommandSenderCAPITest, ConnectTest)
ASSERT_TRUE(env->mIsServiceAvailable);
if(env->mIsServiceAvailable)
{
- CommandInterface::am_sourceID_t sourceID = 500;
- CommandInterface::am_sinkID_t sinkID = 400;
+ org::genivi::am::am_sourceID_t sourceID = 500;
+ org::genivi::am::am_sinkID_t sinkID = 400;
CommonAPI::CallStatus callStatus = CommonAPI::CallStatus::NOT_AVAILABLE;
- CommandInterface::am_Error_e result = CommandInterface::am_Error_e::E_OK;
- CommandInterface::am_mainConnectionID_t mainConnectionID = 0;
+ org::genivi::am::am_Error_e result = org::genivi::am::am_Error_e::E_OK;
+ org::genivi::am::am_mainConnectionID_t mainConnectionID = 0;
EXPECT_CALL(*env->mpCommandReceive, connect(_, _, _)).WillOnce(DoAll(returnClientConnect(), Return(E_OK)));
- env->mProxy->Connect(sourceID, sinkID, callStatus,result, mainConnectionID);
+ env->mProxy->connect(sourceID, sinkID, callStatus, mainConnectionID, result);
ASSERT_EQ(mainConnectionID, 101);
- ASSERT_EQ(result, CommandInterface::am_Error_e::E_OK);
+ ASSERT_EQ(result, org::genivi::am::am_Error_e::E_OK);
EXPECT_CALL(*env->mpCommandReceive, disconnect(mainConnectionID)).WillOnce(Return(am_Error_e::E_OK));
- env->mProxy->Disconnect(mainConnectionID, callStatus, result);
+ ASSERT_EQ(result, org::genivi::am::am_Error_e::E_OK);
+ env->mProxy->disconnect(mainConnectionID, callStatus, result);
}
EXPECT_TRUE(Mock::VerifyAndClearExpectations(env->mpCommandReceive));
}
@@ -244,14 +248,14 @@ TEST_F(CAmCommandSenderCAPITest, SetVolumeTest)
ASSERT_TRUE(env->mIsServiceAvailable);
if(env->mIsServiceAvailable)
{
- CommandInterface::am_mainVolume_t volume = 100;
- CommandInterface::am_sinkID_t sinkID = 400;
+ org::genivi::am::am_mainVolume_t volume = 100;
+ org::genivi::am::am_sinkID_t sinkID = 400;
CommonAPI::CallStatus callStatus = CommonAPI::CallStatus::NOT_AVAILABLE;
- CommandInterface::am_Error_e result = CommandInterface::am_Error_e::E_OK;
+ org::genivi::am::am_Error_e result = org::genivi::am::am_Error_e::E_OK;
EXPECT_CALL(*env->mpCommandReceive, setVolume(sinkID,volume)).WillOnce(Return(E_OK));
- env->mProxy->SetVolume(sinkID, volume, callStatus, result);
- ASSERT_EQ(result, CommandInterface::am_Error_e::E_OK);
+ env->mProxy->setVolume(sinkID, volume, callStatus, result);
+ ASSERT_EQ(result, org::genivi::am::am_Error_e::E_OK);
}
EXPECT_TRUE(Mock::VerifyAndClearExpectations(env->mpCommandReceive));
}
@@ -262,14 +266,14 @@ TEST_F(CAmCommandSenderCAPITest, VolumeStepTest)
ASSERT_TRUE(env->mIsServiceAvailable);
if(env->mIsServiceAvailable)
{
- CommandInterface::am_mainVolume_t volume = 100;
- CommandInterface::am_sinkID_t sinkID = 400;
+ org::genivi::am::am_mainVolume_t volume = 100;
+ org::genivi::am::am_sinkID_t sinkID = 400;
CommonAPI::CallStatus callStatus = CommonAPI::CallStatus::NOT_AVAILABLE;
- CommandInterface::am_Error_e result = CommandInterface::am_Error_e::E_OK;
+ org::genivi::am::am_Error_e result = org::genivi::am::am_Error_e::E_OK;
EXPECT_CALL(*env->mpCommandReceive, volumeStep(sinkID,volume)).WillOnce(Return(E_OK));
- env->mProxy->VolumeStep(sinkID, volume, callStatus, result);
- ASSERT_EQ(result, CommandInterface::am_Error_e::E_OK);
+ env->mProxy->volumeStep(sinkID, volume, callStatus, result);
+ ASSERT_EQ(result, org::genivi::am::am_Error_e::E_OK);
}
EXPECT_TRUE(Mock::VerifyAndClearExpectations(env->mpCommandReceive));
}
@@ -279,14 +283,14 @@ TEST_F(CAmCommandSenderCAPITest, SetSinkMuteStateTest)
ASSERT_TRUE(env->mIsServiceAvailable);
if(env->mIsServiceAvailable)
{
- CommandInterface::am_MuteState_e value = CommandInterface::am_MuteState_e::MS_UNKNOWN;
- CommandInterface::am_sinkID_t sinkID = 400;
+ org::genivi::am::am_MuteState_e value = org::genivi::am::am_MuteState_e::MS_UNKNOWN;
+ org::genivi::am::am_sinkID_t sinkID = 400;
CommonAPI::CallStatus callStatus = CommonAPI::CallStatus::NOT_AVAILABLE;
- CommandInterface::am_Error_e result = CommandInterface::am_Error_e::E_OK;
+ org::genivi::am::am_Error_e result = org::genivi::am::am_Error_e::E_OK;
EXPECT_CALL(*env->mpCommandReceive, setSinkMuteState(sinkID, am_MuteState_e::MS_UNKNOWN)).WillOnce(Return(E_OK));
- env->mProxy->SetSinkMuteState(sinkID, value, callStatus, result);
- ASSERT_EQ(result, CommandInterface::am_Error_e::E_OK);
+ env->mProxy->setSinkMuteState(sinkID, value, callStatus, result);
+ ASSERT_EQ(result, org::genivi::am::am_Error_e::E_OK);
}
EXPECT_TRUE(Mock::VerifyAndClearExpectations(env->mpCommandReceive));
}
@@ -296,16 +300,16 @@ TEST_F(CAmCommandSenderCAPITest, SetMainSinkSoundPropertyTest)
ASSERT_TRUE(env->mIsServiceAvailable);
if(env->mIsServiceAvailable)
{
- CommandInterface::am_sinkID_t sinkID = 400;
+ org::genivi::am::am_sinkID_t sinkID = 400;
CommonAPI::CallStatus callStatus = CommonAPI::CallStatus::NOT_AVAILABLE;
- CommandInterface::am_Error_e result = CommandInterface::am_Error_e::E_OK;
+ org::genivi::am::am_Error_e result = org::genivi::am::am_Error_e::E_OK;
EXPECT_CALL(*env->mpCommandReceive, setMainSinkSoundProperty(AllOf(
Field(&am_MainSoundProperty_s::value, 3),
Field(&am_MainSoundProperty_s::type, MSP_UNKNOWN)), sinkID)).WillOnce(Return(E_OK));
- CommandInterface::am_MainSoundProperty_s value(CommandInterface::am_MainSoundPropertyType_e::MSP_UNKNOWN, (const int16_t)3);
- env->mProxy->SetMainSinkSoundProperty(sinkID, value, callStatus, result);
- ASSERT_EQ(result, CommandInterface::am_Error_e::E_OK);
+ org::genivi::am::am_MainSoundProperty_s value(static_cast<org::genivi::am::am_MainSoundPropertyType_pe>(am_MainSoundPropertyType_e::MSP_UNKNOWN), (const int16_t)3);
+ env->mProxy->setMainSinkSoundProperty(sinkID, value, callStatus, result);
+ ASSERT_EQ(result, org::genivi::am::am_Error_e::E_OK);
}
EXPECT_TRUE(Mock::VerifyAndClearExpectations(env->mpCommandReceive));
}
@@ -315,16 +319,16 @@ TEST_F(CAmCommandSenderCAPITest, SetMainSourceSoundPropertyTest)
ASSERT_TRUE(env->mIsServiceAvailable);
if(env->mIsServiceAvailable)
{
- CommandInterface::am_sourceID_t sID = 400;
+ org::genivi::am::am_sourceID_t sID = 400;
CommonAPI::CallStatus callStatus = CommonAPI::CallStatus::NOT_AVAILABLE;
- CommandInterface::am_Error_e result = CommandInterface::am_Error_e::E_OK;
+ org::genivi::am::am_Error_e result = org::genivi::am::am_Error_e::E_OK;
EXPECT_CALL(*env->mpCommandReceive, setMainSourceSoundProperty(AllOf(
Field(&am_MainSoundProperty_s::value, 3),
Field(&am_MainSoundProperty_s::type, MSP_UNKNOWN)), sID)).WillOnce(Return(E_OK));
- CommandInterface::am_MainSoundProperty_s value(CommandInterface::am_MainSoundPropertyType_e::MSP_UNKNOWN, (const int16_t)3);
- env->mProxy->SetMainSourceSoundProperty(sID, value, callStatus, result);
- ASSERT_EQ(result, CommandInterface::am_Error_e::E_OK);
+ org::genivi::am::am_MainSoundProperty_s value(static_cast<org::genivi::am::am_MainSoundPropertyType_pe>(am_MainSoundPropertyType_e::MSP_UNKNOWN), (const int16_t)3);
+ env->mProxy->setMainSourceSoundProperty(sID, value, callStatus, result);
+ ASSERT_EQ(result, org::genivi::am::am_Error_e::E_OK);
}
EXPECT_TRUE(Mock::VerifyAndClearExpectations(env->mpCommandReceive));
}
@@ -335,13 +339,13 @@ TEST_F(CAmCommandSenderCAPITest, SetSystemPropertyTest)
if(env->mIsServiceAvailable)
{
CommonAPI::CallStatus callStatus = CommonAPI::CallStatus::NOT_AVAILABLE;
- CommandInterface::am_Error_e result = CommandInterface::am_Error_e::E_OK;
+ org::genivi::am::am_Error_e result = org::genivi::am::am_Error_e::E_OK;
EXPECT_CALL(*env->mpCommandReceive, setSystemProperty(Field(&am_SystemProperty_s::value, 2))).WillOnce(Return(E_OK));
- CommandInterface::am_SystemProperty_s value(CommandInterface::am_SystemPropertyType_e::SYP_UNKNOWN, (const int16_t)2);
- env->mProxy->SetSystemProperty(value, callStatus, result);
- ASSERT_EQ(result, CommandInterface::am_Error_e::E_OK);
+ org::genivi::am::am_SystemProperty_s value(static_cast<org::genivi::am::am_SystemPropertyType_pe>(am_SystemPropertyType_e::SYP_UNKNOWN), (const int16_t)2);
+ env->mProxy->setSystemProperty(value, callStatus, result);
+ ASSERT_EQ(result, org::genivi::am::am_Error_e::E_OK);
}
EXPECT_TRUE(Mock::VerifyAndClearExpectations(env->mpCommandReceive));
}
@@ -364,12 +368,12 @@ TEST_F(CAmCommandSenderCAPITest, GetListMainConnectionsTest)
if(env->mIsServiceAvailable)
{
CommonAPI::CallStatus callStatus = CommonAPI::CallStatus::NOT_AVAILABLE;
- CommandInterface::am_Error_e result = CommandInterface::am_Error_e::E_OK;
+ org::genivi::am::am_Error_e result = org::genivi::am::am_Error_e::E_OK;
EXPECT_CALL(*env->mpCommandReceive, getListMainConnections(_)).WillOnce(DoAll(returnListConnections(), Return(E_OK)));
- CommandInterface::am_MainConnectionType_l listConnections;
- env->mProxy->GetListMainConnections(callStatus, result, listConnections);
- ASSERT_EQ(result, CommandInterface::am_Error_e::E_OK);
+ org::genivi::am::am_MainConnection_L listConnections;
+ env->mProxy->getListMainConnections(callStatus, result, listConnections);
+ ASSERT_EQ(result, org::genivi::am::am_Error_e::E_OK);
ASSERT_EQ(1, listConnections.size());
ASSERT_EQ(15, listConnections.at(0).mainConnectionID);
ASSERT_EQ(4, listConnections.at(0).sinkID);
@@ -397,17 +401,17 @@ TEST_F(CAmCommandSenderCAPITest, GetListMainSinksTest)
if(env->mIsServiceAvailable)
{
CommonAPI::CallStatus callStatus = CommonAPI::CallStatus::NOT_AVAILABLE;
- CommandInterface::am_Error_e result = CommandInterface::am_Error_e::E_OK;
+ org::genivi::am::am_Error_e result = org::genivi::am::am_Error_e::E_OK;
EXPECT_CALL(*env->mpCommandReceive, getListMainSinks(_)).WillOnce(DoAll(returnListSinks(), Return(E_OK)));
- CommandInterface::am_SinkType_l listMainSinks;
- env->mProxy->GetListMainSinks(callStatus, result, listMainSinks);
- ASSERT_EQ(result, CommandInterface::am_Error_e::E_OK);
+ org::genivi::am::am_SinkType_L listMainSinks;
+ env->mProxy->getListMainSinks(callStatus, listMainSinks,result);
+ ASSERT_EQ(result, org::genivi::am::am_Error_e::E_OK);
ASSERT_EQ(1, listMainSinks.size());
ASSERT_EQ(34, listMainSinks.at(0).sinkClassID);
ASSERT_EQ(24, listMainSinks.at(0).sinkID);
- ASSERT_EQ(CommandInterface::am_Availablility_e::A_UNAVAILABLE, listMainSinks.at(0).availability.availability);
- ASSERT_EQ(CommandInterface::am_AvailabilityReason_e::AR_GENIVI_NOMEDIA, listMainSinks.at(0).availability.availabilityReason);
+ ASSERT_EQ(org::genivi::am::am_Availability_e::A_UNAVAILABLE, listMainSinks.at(0).availability.availability);
+ ASSERT_EQ(static_cast<org::genivi::am::am_AvailabilityReason_pe>(am_AvailabilityReason_e::AR_GENIVI_NOMEDIA), listMainSinks.at(0).availability.availabilityReason);
}
EXPECT_TRUE(Mock::VerifyAndClearExpectations(env->mpCommandReceive));
}
@@ -432,17 +436,17 @@ TEST_F(CAmCommandSenderCAPITest, GetListMainSourcesTest)
if(env->mIsServiceAvailable)
{
CommonAPI::CallStatus callStatus = CommonAPI::CallStatus::NOT_AVAILABLE;
- CommandInterface::am_Error_e result = CommandInterface::am_Error_e::E_OK;
+ org::genivi::am::am_Error_e result = org::genivi::am::am_Error_e::E_OK;
EXPECT_CALL(*env->mpCommandReceive, getListMainSources(_)).WillOnce(DoAll(returnListSources(), Return(E_OK)));
- CommandInterface::am_SourceType_l list;
- env->mProxy->GetListMainSources(callStatus, result, list);
- ASSERT_EQ(result, CommandInterface::am_Error_e::E_OK);
+ org::genivi::am::am_SourceType_L list;
+ env->mProxy->getListMainSources(callStatus, list, result);
+ ASSERT_EQ(result, org::genivi::am::am_Error_e::E_OK);
ASSERT_EQ(2, list.size());
ASSERT_EQ(12, list.at(0).sourceClassID);
ASSERT_EQ(224, list.at(0).sourceID);
- ASSERT_EQ(CommandInterface::am_Availablility_e::A_MAX, list.at(0).availability.availability);
- ASSERT_EQ(CommandInterface::am_AvailabilityReason_e::AR_GENIVI_SAMEMEDIA, list.at(0).availability.availabilityReason);
+ ASSERT_EQ(org::genivi::am::am_Availability_e::A_MAX, list.at(0).availability.availability);
+ ASSERT_EQ(static_cast<org::genivi::am::am_AvailabilityReason_pe>(am_AvailabilityReason_e::AR_GENIVI_SAMEMEDIA), list.at(0).availability.availabilityReason);
ASSERT_EQ(22, list.at(1).sourceID);
}
EXPECT_TRUE(Mock::VerifyAndClearExpectations(env->mpCommandReceive));
@@ -465,19 +469,19 @@ TEST_F(CAmCommandSenderCAPITest, GetListMainSinkSoundPropertiesTest)
ASSERT_TRUE(env->mIsServiceAvailable);
if(env->mIsServiceAvailable)
{
- CommandInterface::am_sinkID_t sID = 400;
+ org::genivi::am::am_sinkID_t sID = 400;
CommonAPI::CallStatus callStatus = CommonAPI::CallStatus::NOT_AVAILABLE;
- CommandInterface::am_Error_e result = CommandInterface::am_Error_e::E_OK;
+ org::genivi::am::am_Error_e result = org::genivi::am::am_Error_e::E_OK;
EXPECT_CALL(*env->mpCommandReceive, getListMainSinkSoundProperties(sID,_)).WillOnce(DoAll(returnListMainSinkSoundProperties(), Return(E_OK)));
- CommandInterface::am_MainSoundProperty_l list;
- env->mProxy->GetListMainSinkSoundProperties(sID, callStatus, result, list);
- ASSERT_EQ(result, CommandInterface::am_Error_e::E_OK);
+ org::genivi::am::am_MainSoundProperty_L list;
+ env->mProxy->getListMainSinkSoundProperties(sID, callStatus, list, result);
+ ASSERT_EQ(result, org::genivi::am::am_Error_e::E_OK);
ASSERT_EQ(2, list.size());
ASSERT_EQ(223, list.at(0).value);
- ASSERT_EQ(CommandInterface::am_MainSoundPropertyType_e::MSP_MAX, list.at(0).type);
+ ASSERT_EQ(static_cast<org::genivi::am::am_MainSoundPropertyType_pe>(am_MainSoundPropertyType_e::MSP_MAX), list.at(0).type);
ASSERT_EQ(2, list.at(1).value);
- ASSERT_EQ(CommandInterface::am_MainSoundPropertyType_e::MSP_MAX, list.at(1).type);
+ ASSERT_EQ(static_cast<org::genivi::am::am_MainSoundPropertyType_pe>(am_MainSoundPropertyType_e::MSP_MAX), list.at(1).type);
}
EXPECT_TRUE(Mock::VerifyAndClearExpectations(env->mpCommandReceive));
}
@@ -499,19 +503,19 @@ TEST_F(CAmCommandSenderCAPITest, GetListMainSourceSoundPropertiesTest)
ASSERT_TRUE(env->mIsServiceAvailable);
if(env->mIsServiceAvailable)
{
- CommandInterface::am_sourceID_t sID = 400;
+ org::genivi::am::am_sourceID_t sID = 400;
CommonAPI::CallStatus callStatus = CommonAPI::CallStatus::NOT_AVAILABLE;
- CommandInterface::am_Error_e result = CommandInterface::am_Error_e::E_OK;
+ org::genivi::am::am_Error_e result = org::genivi::am::am_Error_e::E_OK;
EXPECT_CALL(*env->mpCommandReceive, getListMainSourceSoundProperties(sID,_)).WillOnce(DoAll(returnListMainSourceSoundProperties(), Return(E_OK)));
- CommandInterface::am_MainSoundProperty_l list;
- env->mProxy->GetListMainSourceSoundProperties(sID, callStatus, result, list);
- ASSERT_EQ(result, CommandInterface::am_Error_e::E_OK);
+ org::genivi::am::am_MainSoundProperty_L list;
+ env->mProxy->getListMainSourceSoundProperties(sID, callStatus, list, result);
+ ASSERT_EQ(result, org::genivi::am::am_Error_e::E_OK);
ASSERT_EQ(2, list.size());
ASSERT_EQ(223, list.at(0).value);
- ASSERT_EQ(CommandInterface::am_MainSoundPropertyType_e::MSP_EXAMPLE_MID, list.at(0).type);
+ ASSERT_EQ(static_cast<org::genivi::am::am_MainSoundPropertyType_pe>(am_MainSoundPropertyType_e::MSP_EXAMPLE_MID), list.at(0).type);
ASSERT_EQ(2, list.at(1).value);
- ASSERT_EQ(CommandInterface::am_MainSoundPropertyType_e::MSP_MAX, list.at(1).type);
+ ASSERT_EQ(static_cast<org::genivi::am::am_MainSoundPropertyType_pe>(am_MainSoundPropertyType_e::MSP_MAX), list.at(1).type);
}
EXPECT_TRUE(Mock::VerifyAndClearExpectations(env->mpCommandReceive));
}
@@ -539,21 +543,21 @@ TEST_F(CAmCommandSenderCAPITest, GetListSourceClassesTest)
if(env->mIsServiceAvailable)
{
CommonAPI::CallStatus callStatus = CommonAPI::CallStatus::NOT_AVAILABLE;
- CommandInterface::am_Error_e result = CommandInterface::am_Error_e::E_OK;
+ org::genivi::am::am_Error_e result = org::genivi::am::am_Error_e::E_OK;
EXPECT_CALL(*env->mpCommandReceive, getListSourceClasses(_)).WillOnce(DoAll(returnListSourceClasses(), Return(E_OK)));
- CommandInterface::am_SourceClass_l list;
- env->mProxy->GetListSourceClasses(callStatus, result, list);
- ASSERT_EQ(result, CommandInterface::am_Error_e::E_OK);
+ org::genivi::am::am_SourceClass_L list;
+ env->mProxy->getListSourceClasses(callStatus, list, result);
+ ASSERT_EQ(result, org::genivi::am::am_Error_e::E_OK);
ASSERT_EQ(2, list.size());
ASSERT_EQ(23, list.at(0).sourceClassID);
ASSERT_EQ(1, list.at(0).listClassProperties.size());
- ASSERT_EQ(CommandInterface::am_ClassProperty_e::CP_MAX, list.at(0).listClassProperties.at(0).classProperty);
+ ASSERT_EQ(static_cast<org::genivi::am::am_ClassProperty_pe>(am_ClassProperty_e::CP_MAX), list.at(0).listClassProperties.at(0).classProperty);
ASSERT_EQ(2, list.at(1).sourceClassID);
ASSERT_EQ(2, list.at(1).listClassProperties.size());
- ASSERT_EQ(CommandInterface::am_ClassProperty_e::CP_MAX, list.at(1).listClassProperties.at(0).classProperty);
+ ASSERT_EQ(static_cast<org::genivi::am::am_ClassProperty_pe>(am_ClassProperty_e::CP_MAX), list.at(1).listClassProperties.at(0).classProperty);
}
EXPECT_TRUE(Mock::VerifyAndClearExpectations(env->mpCommandReceive));
}
@@ -581,23 +585,23 @@ TEST_F(CAmCommandSenderCAPITest, GetListSinkClassesTest)
if(env->mIsServiceAvailable)
{
CommonAPI::CallStatus callStatus = CommonAPI::CallStatus::NOT_AVAILABLE;
- CommandInterface::am_Error_e result = CommandInterface::am_Error_e::E_OK;
+ org::genivi::am::am_Error_e result = org::genivi::am::am_Error_e::E_OK;
EXPECT_CALL(*env->mpCommandReceive, getListSinkClasses(_)).WillOnce(DoAll(returnListSinkClasses(), Return(E_OK)));
- CommandInterface::am_SinkClass_l list;
- env->mProxy->GetListSinkClasses(callStatus, result, list);
- ASSERT_EQ(result, CommandInterface::am_Error_e::E_OK);
+ org::genivi::am::am_SinkClass_L list;
+ env->mProxy->getListSinkClasses(callStatus, list,result);
+ ASSERT_EQ(result, org::genivi::am::am_Error_e::E_OK);
ASSERT_EQ(2, list.size());
ASSERT_EQ(0, list.at(0).name.compare("FirstCLass"));
ASSERT_EQ(23, list.at(0).sinkClassID);
ASSERT_EQ(1, list.at(0).listClassProperties.size());
- ASSERT_EQ(CommandInterface::am_ClassProperty_e::CP_MAX, list.at(0).listClassProperties.at(0).classProperty);
+ ASSERT_EQ(static_cast<org::genivi::am::am_ClassProperty_pe>(am_ClassProperty_e::CP_MAX), list.at(0).listClassProperties.at(0).classProperty);
ASSERT_EQ(0, list.at(1).name.compare("SecondCLass"));
ASSERT_EQ(2, list.at(1).sinkClassID);
ASSERT_EQ(2, list.at(1).listClassProperties.size());
- ASSERT_EQ(CommandInterface::am_ClassProperty_e::CP_MAX, list.at(1).listClassProperties.at(0).classProperty);
+ ASSERT_EQ(static_cast<org::genivi::am::am_ClassProperty_pe>(am_ClassProperty_e::CP_MAX), list.at(1).listClassProperties.at(0).classProperty);
}
EXPECT_TRUE(Mock::VerifyAndClearExpectations(env->mpCommandReceive));
}
@@ -617,16 +621,16 @@ TEST_F(CAmCommandSenderCAPITest, GetListSystemPropertiesTest)
if(env->mIsServiceAvailable)
{
CommonAPI::CallStatus callStatus = CommonAPI::CallStatus::NOT_AVAILABLE;
- CommandInterface::am_Error_e result = CommandInterface::am_Error_e::E_OK;
+ org::genivi::am::am_Error_e result = org::genivi::am::am_Error_e::E_OK;
EXPECT_CALL(*env->mpCommandReceive, getListSystemProperties(_)).WillOnce(DoAll(returnListSystemProperties(), Return(E_OK)));
- CommandInterface::am_SystemProperty_l list;
- env->mProxy->GetListSystemProperties(callStatus, result, list);
- ASSERT_EQ(result, CommandInterface::am_Error_e::E_OK);
+ org::genivi::am::am_SystemProperty_L list;
+ env->mProxy->getListSystemProperties(callStatus, list,result);
+ ASSERT_EQ(result, org::genivi::am::am_Error_e::E_OK);
ASSERT_EQ(1, list.size());
ASSERT_EQ(-2245, list.at(0).value);
- ASSERT_EQ(CommandInterface::am_SystemPropertyType_e::SYP_MAX, list.at(0).type);
+ ASSERT_EQ(static_cast<org::genivi::am::am_ClassProperty_pe>(am_SystemPropertyType_e::SYP_MAX), list.at(0).type);
}
EXPECT_TRUE(Mock::VerifyAndClearExpectations(env->mpCommandReceive));
}
@@ -638,18 +642,46 @@ TEST_F(CAmCommandSenderCAPITest, GetListSystemPropertiesTest)
#define SIMPLE_THREADS_SYNC_MICROSEC() usleep(50000)
-TEST_F(CAmCommandSenderCAPITest, onNumberOfMainConnectionsChangedEventTest)
+TEST_F(CAmCommandSenderCAPITest, onNewMainConnection)
{
ASSERT_TRUE(env->mIsServiceAvailable);
if(env->mIsServiceAvailable)
{
MockNotificationsClient mock;
- auto subscription = env->mProxy->getNumberOfMainConnectionsChangedEvent().subscribe(std::bind(&MockNotificationsClient::onNumberOfMainConnectionsChangedEvent, std::ref(mock)));
- EXPECT_CALL(mock, onNumberOfMainConnectionsChangedEvent());
+ auto subscription = env->mProxy->getNewMainConnectionEvent().subscribe(std::bind(&MockNotificationsClient::onNewMainConnection, std::ref(mock), std::placeholders::_1));
am_MainConnectionType_s mainConnection;
+ mainConnection.connectionState=am_ConnectionState_e::CS_CONNECTING;
+ mainConnection.delay=400;
+ mainConnection.mainConnectionID=3;
+ mainConnection.sinkID=4;
+ mainConnection.sourceID=5;
+ org::genivi::am::am_MainConnectionType_s mainConnectionCAPI;
+ mainConnectionCAPI.connectionState=CAmConvert2CAPIType(mainConnection.connectionState);
+ mainConnectionCAPI.delay=mainConnection.delay;
+ mainConnectionCAPI.mainConnectionID=mainConnection.mainConnectionID;
+ mainConnectionCAPI.sinkID=mainConnection.sinkID;
+ mainConnectionCAPI.sourceID=mainConnection.sourceID;
+ EXPECT_CALL(mock, onNewMainConnection(mainConnectionCAPI));
env->mpPlugin->cbNewMainConnection(mainConnection);
SIMPLE_THREADS_SYNC_MICROSEC();
- env->mProxy->getNumberOfMainConnectionsChangedEvent().unsubscribe(subscription);
+ env->mProxy->getNewMainConnectionEvent().unsubscribe(subscription);
+ }
+ EXPECT_TRUE(Mock::VerifyAndClearExpectations(env->mpCommandReceive));
+}
+
+TEST_F(CAmCommandSenderCAPITest, removedMainConnection)
+{
+ ASSERT_TRUE(env->mIsServiceAvailable);
+ if(env->mIsServiceAvailable)
+ {
+ MockNotificationsClient mock;
+ auto subscription = env->mProxy->getRemovedMainConnectionEvent().subscribe(std::bind(&MockNotificationsClient::removedMainConnection, std::ref(mock), std::placeholders::_1));
+ am_mainConnectionID_t mainConnectionID(3);
+ org::genivi::am::am_mainConnectionID_t mainConnectionIDCAPI(mainConnectionID);
+ EXPECT_CALL(mock, removedMainConnection(mainConnectionIDCAPI));
+ env->mpPlugin->cbRemovedMainConnection(mainConnectionID);
+ SIMPLE_THREADS_SYNC_MICROSEC();
+ env->mProxy->getRemovedMainConnectionEvent().unsubscribe(subscription);
}
EXPECT_TRUE(Mock::VerifyAndClearExpectations(env->mpCommandReceive));
}
@@ -665,7 +697,7 @@ TEST_F(CAmCommandSenderCAPITest, onNumberOfSourceClassesChangedEventTest)
EXPECT_CALL(mock, onNumberOfSourceClassesChangedEvent());
env->mpPlugin->cbNumberOfSourceClassesChanged();
SIMPLE_THREADS_SYNC_MICROSEC();
- env->mProxy->getNumberOfMainConnectionsChangedEvent().unsubscribe(subscription);
+ env->mProxy->getNumberOfSourceClassesChangedEvent().unsubscribe(subscription);
}
EXPECT_TRUE(Mock::VerifyAndClearExpectations(env->mpCommandReceive));
}
@@ -678,7 +710,7 @@ TEST_F(CAmCommandSenderCAPITest, onMainConnectionStateChangedEventTest)
MockNotificationsClient mock;
auto subscription = env->mProxy->getMainConnectionStateChangedEvent().subscribe(std::bind(&MockNotificationsClient::onMainConnectionStateChangedEvent, std::ref(mock),
std::placeholders::_1, std::placeholders::_2));
- EXPECT_CALL(mock, onMainConnectionStateChangedEvent(101, CommandInterface::am_ConnectionState_e::CS_SUSPENDED));
+ EXPECT_CALL(mock, onMainConnectionStateChangedEvent(101, org::genivi::am::am_ConnectionState_e::CS_SUSPENDED));
env->mpPlugin->cbMainConnectionStateChanged(101, CS_SUSPENDED);
SIMPLE_THREADS_SYNC_MICROSEC();
env->mProxy->getMainConnectionStateChangedEvent().unsubscribe(subscription);
@@ -692,13 +724,12 @@ TEST_F(CAmCommandSenderCAPITest, onSourceAddedEventTest)
if(env->mIsServiceAvailable)
{
MockNotificationsClient mock;
- auto subscription = env->mProxy->getSourceAddedEvent().subscribe(std::bind(&MockNotificationsClient::onSourceAddedEvent, std::ref(mock),
- std::placeholders::_1));
- CommandInterface::am_SourceType_s destination;
+ auto subscription = env->mProxy->getNewSourceEvent().subscribe(std::bind(&MockNotificationsClient::onSourceAddedEvent, std::ref(mock),std::placeholders::_1));
+ org::genivi::am::am_SourceType_s destination;
destination.sourceID = 100;
destination.name = "Name";
- destination.availability.availability = CommandInterface::am_Availablility_e::A_MAX;
- destination.availability.availabilityReason = CommandInterface::am_AvailabilityReason_e::AR_MAX;
+ destination.availability.availability = org::genivi::am::am_Availability_e::A_MAX;
+ destination.availability.availabilityReason = static_cast<org::genivi::am::am_AvailabilityReason_pe>(AR_MAX);
destination.sourceClassID = 200;
am_SourceType_s origin;
@@ -710,7 +741,7 @@ TEST_F(CAmCommandSenderCAPITest, onSourceAddedEventTest)
EXPECT_CALL(mock, onSourceAddedEvent(destination));
env->mpPlugin->cbNewSource(origin);
SIMPLE_THREADS_SYNC_MICROSEC();
- env->mProxy->getSourceAddedEvent().unsubscribe(subscription);
+ env->mProxy->getNewSourceEvent().unsubscribe(subscription);
}
EXPECT_TRUE(Mock::VerifyAndClearExpectations(env->mpCommandReceive));
}
@@ -721,13 +752,13 @@ TEST_F(CAmCommandSenderCAPITest, onSourceRemovedEventTest)
if(env->mIsServiceAvailable)
{
MockNotificationsClient mock;
- auto subscription = env->mProxy->getSourceRemovedEvent().subscribe(std::bind(&MockNotificationsClient::onSourceRemovedEvent, std::ref(mock),
+ auto subscription = env->mProxy->getRemovedSourceEvent().subscribe(std::bind(&MockNotificationsClient::onSourceRemovedEvent, std::ref(mock),
std::placeholders::_1));
am_sourceID_t source = 101;
EXPECT_CALL(mock, onSourceRemovedEvent(source));
env->mpPlugin->cbRemovedSource(source);
SIMPLE_THREADS_SYNC_MICROSEC();
- env->mProxy->getSourceRemovedEvent().unsubscribe(subscription);
+ env->mProxy->getRemovedSourceEvent().unsubscribe(subscription);
}
EXPECT_TRUE(Mock::VerifyAndClearExpectations(env->mpCommandReceive));
}
@@ -745,7 +776,7 @@ TEST_F(CAmCommandSenderCAPITest, onMainSourceSoundPropertyChangedEventTest)
soundProperty.value = 10;
soundProperty.type = am_MainSoundPropertyType_e::MSP_MAX;
- CommandInterface::am_MainSoundProperty_s destination(CommandInterface::am_MainSoundPropertyType_e::MSP_MAX, 10);
+ org::genivi::am::am_MainSoundProperty_s destination(static_cast<org::genivi::am::am_MainSoundPropertyType_pe>(MSP_MAX), 10);
EXPECT_CALL(mock, onMainSourceSoundPropertyChangedEvent(101, destination));
env->mpPlugin->cbMainSourceSoundPropertyChanged(101, soundProperty);
@@ -768,7 +799,7 @@ TEST_F(CAmCommandSenderCAPITest, onSourceAvailabilityChangedEventTest)
availability.availability = A_MAX;
availability.availabilityReason = AR_MAX;
- CommandInterface::am_Availability_s destination(CommandInterface::am_Availablility_e::A_MAX, CommandInterface::am_AvailabilityReason_e::AR_MAX);
+ org::genivi::am::am_Availability_s destination(org::genivi::am::am_Availability_e::A_MAX, static_cast<org::genivi::am::am_AvailabilityReason_pe>(AR_MAX));
EXPECT_CALL(mock, onSourceAvailabilityChangedEvent(101, destination));
env->mpPlugin->cbSourceAvailabilityChanged(101, availability);
@@ -799,14 +830,14 @@ TEST_F(CAmCommandSenderCAPITest, onSinkAddedEventTest)
if(env->mIsServiceAvailable)
{
MockNotificationsClient mock;
- auto subscription = env->mProxy->getSinkAddedEvent().subscribe(std::bind(&MockNotificationsClient::onSinkAddedEvent, std::ref(mock),
+ auto subscription = env->mProxy->getNewSinkEvent().subscribe(std::bind(&MockNotificationsClient::onSinkAddedEvent, std::ref(mock),
std::placeholders::_1));
- CommandInterface::am_SinkType_s destination;
+ org::genivi::am::am_SinkType_s destination;
destination.sinkID = 100;
destination.name = "Name";
- destination.availability.availability = CommandInterface::am_Availablility_e::A_MAX;
- destination.availability.availabilityReason = CommandInterface::am_AvailabilityReason_e::AR_MAX;
- destination.muteState = CommandInterface::am_MuteState_e::MS_MAX;
+ destination.availability.availability = org::genivi::am::am_Availability_e::A_MAX;
+ destination.availability.availabilityReason = static_cast<org::genivi::am::am_AvailabilityReason_pe>(AR_MAX);
+ destination.muteState = org::genivi::am::am_MuteState_e::MS_MAX;
destination.volume = 1;
destination.sinkClassID = 100;
@@ -822,7 +853,7 @@ TEST_F(CAmCommandSenderCAPITest, onSinkAddedEventTest)
EXPECT_CALL(mock, onSinkAddedEvent(destination));
env->mpPlugin->cbNewSink(origin);
SIMPLE_THREADS_SYNC_MICROSEC();
- env->mProxy->getSinkAddedEvent().unsubscribe(subscription);
+ env->mProxy->getNewSinkEvent().unsubscribe(subscription);
}
EXPECT_TRUE(Mock::VerifyAndClearExpectations(env->mpCommandReceive));
}
@@ -833,12 +864,12 @@ TEST_F(CAmCommandSenderCAPITest, onSinkRemovedEventTest)
if(env->mIsServiceAvailable)
{
MockNotificationsClient mock;
- auto subscription = env->mProxy->getSinkRemovedEvent().subscribe(std::bind(&MockNotificationsClient::onSinkRemovedEvent, std::ref(mock),
+ auto subscription = env->mProxy->getRemovedSinkEvent().subscribe(std::bind(&MockNotificationsClient::onSinkRemovedEvent, std::ref(mock),
std::placeholders::_1));
EXPECT_CALL(mock, onSinkRemovedEvent(101));
env->mpPlugin->cbRemovedSink(101);
SIMPLE_THREADS_SYNC_MICROSEC();
- env->mProxy->getSinkRemovedEvent().unsubscribe(subscription);
+ env->mProxy->getRemovedSinkEvent().unsubscribe(subscription);
}
EXPECT_TRUE(Mock::VerifyAndClearExpectations(env->mpCommandReceive));
}
@@ -856,7 +887,7 @@ TEST_F(CAmCommandSenderCAPITest, onMainSinkSoundPropertyChangedEventTest)
soundProperty.value = 10;
soundProperty.type = am_MainSoundPropertyType_e::MSP_MAX;
- CommandInterface::am_MainSoundProperty_s destination(CommandInterface::am_MainSoundPropertyType_e::MSP_MAX, 10);
+ org::genivi::am::am_MainSoundProperty_s destination(static_cast<org::genivi::am::am_MainSoundPropertyType_pe>(MSP_MAX), 10);
EXPECT_CALL(mock, onMainSinkSoundPropertyChangedEvent(101, destination));
env->mpPlugin->cbMainSinkSoundPropertyChanged(101, soundProperty);
@@ -879,7 +910,7 @@ TEST_F(CAmCommandSenderCAPITest, onSinkAvailabilityChangedEventTest)
availability.availability = A_MAX;
availability.availabilityReason = AR_MAX;
- CommandInterface::am_Availability_s destination(CommandInterface::am_Availablility_e::A_MAX, CommandInterface::am_AvailabilityReason_e::AR_MAX);
+ org::genivi::am::am_Availability_s destination(org::genivi::am::am_Availability_e::A_MAX, static_cast<org::genivi::am::am_AvailabilityReason_pe>(AR_MAX));
EXPECT_CALL(mock, onSinkAvailabilityChangedEvent(101, destination));
env->mpPlugin->cbSinkAvailabilityChanged(101, availability);
@@ -913,7 +944,7 @@ TEST_F(CAmCommandSenderCAPITest, onSinkMuteStateChangedEventTest)
MockNotificationsClient mock;
auto subscription = env->mProxy->getSinkMuteStateChangedEvent().subscribe(std::bind(&MockNotificationsClient::onSinkMuteStateChangedEvent, std::ref(mock),
std::placeholders::_1, std::placeholders::_2));
- EXPECT_CALL(mock, onSinkMuteStateChangedEvent(101, CommandInterface::am_MuteState_e::MS_MAX));
+ EXPECT_CALL(mock, onSinkMuteStateChangedEvent(101, org::genivi::am::am_MuteState_e::MS_MAX));
env->mpPlugin->cbSinkMuteStateChanged(101, am_MuteState_e::MS_MAX);
SIMPLE_THREADS_SYNC_MICROSEC();
env->mProxy->getSinkMuteStateChangedEvent().unsubscribe(subscription);
@@ -930,7 +961,7 @@ TEST_F(CAmCommandSenderCAPITest, onSystemPropertyChangedEventTest)
auto subscription = env->mProxy->getSystemPropertyChangedEvent().subscribe(std::bind(&MockNotificationsClient::onSystemPropertyChangedEvent, std::ref(mock),
std::placeholders::_1));
- CommandInterface::am_SystemProperty_s value(CommandInterface::am_SystemPropertyType_e::SYP_UNKNOWN, (const int16_t)2);
+ org::genivi::am::am_SystemProperty_s value(static_cast<org::genivi::am::am_SystemPropertyType_pe>(SYP_UNKNOWN), (const int16_t)2);
am_SystemProperty_s systemProperty;
systemProperty.value = 2;
systemProperty.type = am_SystemPropertyType_e::SYP_UNKNOWN;
@@ -1013,8 +1044,8 @@ TEST_F(CAmCommandSenderCAPITest, onSinkNotificationEventTest)
am_NotificationPayload_s orig;
orig.type = am_NotificationType_e::NT_MAX;
orig.value = 1;
- CommandInterface::am_NotificationPayload_s dest;
- dest.type = org::genivi::audiomanager::am::am_NotificationType_e::NT_MAX;
+ org::genivi::am::am_NotificationPayload_s dest;
+ dest.type = static_cast<org::genivi::am::am_NotificationType_pe>(NT_MAX);
dest.value = 1;
EXPECT_CALL(mock, onSinkNotificationEvent(1, dest));
@@ -1037,8 +1068,8 @@ TEST_F(CAmCommandSenderCAPITest, onSourceNotificationEventTest)
am_NotificationPayload_s orig;
orig.type = am_NotificationType_e::NT_MAX;
orig.value = 1;
- CommandInterface::am_NotificationPayload_s dest;
- dest.type = org::genivi::audiomanager::am::am_NotificationType_e::NT_MAX;
+ org::genivi::am::am_NotificationPayload_s dest;
+ dest.type = static_cast<org::genivi::am::am_NotificationType_pe>(NT_MAX);
dest.value = 1;
EXPECT_CALL(mock, onSourceNotificationEvent(1, dest));
@@ -1061,10 +1092,10 @@ TEST_F(CAmCommandSenderCAPITest, onMainSinkNotificationConfigurationChangedEvent
orig.type = am_NotificationType_e::NT_MAX;
orig.parameter = 1;
orig.status = am_NotificationStatus_e::NS_MAX;
- org::genivi::audiomanager::am::am_NotificationConfiguration_s dest;
- dest.type = org::genivi::audiomanager::am::am_NotificationType_e::NT_MAX;
+ org::genivi::am::am_NotificationConfiguration_s dest;
+ dest.type = static_cast<org::genivi::am::am_NotificationType_pe>(NT_MAX);
dest.parameter = 1;
- dest.status = org::genivi::audiomanager::am::am_NotificationStatus_e::NS_MAX;
+ dest.status = org::genivi::am::am_NotificationStatus_e::NS_MAX;
EXPECT_CALL(mock, onMainSinkNotificationConfigurationChangedEvent(1, dest));
env->mpPlugin->cbMainSinkNotificationConfigurationChanged(1, orig);
@@ -1086,10 +1117,10 @@ TEST_F(CAmCommandSenderCAPITest, onMainSourceNotificationConfigurationChangedEve
orig.type = am_NotificationType_e::NT_MAX;
orig.parameter = 1;
orig.status = am_NotificationStatus_e::NS_MAX;
- org::genivi::audiomanager::am::am_NotificationConfiguration_s dest;
- dest.type = org::genivi::audiomanager::am::am_NotificationType_e::NT_MAX;
+ org::genivi::am::am_NotificationConfiguration_s dest;
+ dest.type =static_cast<org::genivi::am::am_NotificationType_pe>(NT_MAX);
dest.parameter = 1;
- dest.status = org::genivi::audiomanager::am::am_NotificationStatus_e::NS_MAX;
+ dest.status = org::genivi::am::am_NotificationStatus_e::NS_MAX;
EXPECT_CALL(mock, onMainSourceNotificationConfigurationChangedEvent(1, dest));
env->mpPlugin->cbMainSourceNotificationConfigurationChanged(1, orig);
diff --git a/PluginCommandInterfaceCAPI/test/CAmCommandSenderCAPITest.h b/PluginCommandInterfaceCAPI/test/CAmCommandSenderCAPITest.h
index 21aafe8..cc5bf0c 100644
--- a/PluginCommandInterfaceCAPI/test/CAmCommandSenderCAPITest.h
+++ b/PluginCommandInterfaceCAPI/test/CAmCommandSenderCAPITest.h
@@ -24,7 +24,7 @@
#include "CAmTestCAPIWrapper.h"
#include "../include/CAmCommandSenderCAPI.h"
#include "MockIAmCommandReceive.h"
-#include <../src-gen/org/genivi/audiomanager/CommandInterfaceProxy.h>
+#include <../src-gen/org/genivi/am/CommandControlProxy.h>
#define UNIT_TEST 1
@@ -49,7 +49,7 @@ public:
MockIAmCommandReceive *mpCommandReceive;
CAmCommandSenderCAPI *mpPlugin;
- std::shared_ptr<CommandInterfaceProxy<> > mProxy;
+ std::shared_ptr<org::genivi::am::CommandControlProxy<> > mProxy;
CAmTestsEnvironment();
~CAmTestsEnvironment();
diff --git a/PluginCommandInterfaceCAPI/test/MockNotificationsClient.h b/PluginCommandInterfaceCAPI/test/MockNotificationsClient.h
index 8ab2e5e..45e692e 100644
--- a/PluginCommandInterfaceCAPI/test/MockNotificationsClient.h
+++ b/PluginCommandInterfaceCAPI/test/MockNotificationsClient.h
@@ -21,90 +21,94 @@
#include "gtest/gtest.h"
#include "gmock/gmock.h"
-#include <org/genivi/audiomanager/CommandInterfaceStubDefault.h>
+#include <org/genivi/am/CommandControlProxy.h>
namespace am {
using namespace testing;
using namespace CommonAPI;
-using namespace org::genivi::audiomanager;
class IAmNotificationsClient
{
public:
- IAmNotificationsClient()
- {}
-
- virtual ~IAmNotificationsClient()
- {}
- virtual void onNumberOfMainConnectionsChangedEvent() = 0;
- virtual void onNumberOfSourceClassesChangedEvent() = 0;
- virtual void onMainConnectionStateChangedEvent(CommandInterface::am_mainConnectionID_t, CommandInterface::am_ConnectionState_e) = 0;
- virtual void onSourceAddedEvent(const CommandInterface::am_SourceType_s &) = 0;
- virtual void onSourceRemovedEvent(CommandInterface::am_sourceID_t) = 0;
- virtual void onMainSourceSoundPropertyChangedEvent(CommandInterface::am_sourceID_t, const CommandInterface::am_MainSoundProperty_s & ) = 0;
- virtual void onSourceAvailabilityChangedEvent(CommandInterface::am_sourceID_t, const CommandInterface::am_Availability_s &) = 0;
- virtual void onNumberOfSinkClassesChangedEvent() = 0;
- virtual void onSinkAddedEvent(const CommandInterface::am_SinkType_s &) = 0;
- virtual void onSinkRemovedEvent(CommandInterface::am_sinkID_t) = 0;
- virtual void onMainSinkSoundPropertyChangedEvent(CommandInterface::am_sinkID_t, const CommandInterface::am_MainSoundProperty_s &) = 0;
- virtual void onSinkAvailabilityChangedEvent(CommandInterface::am_sinkID_t, const CommandInterface::am_Availability_s &) = 0;
- virtual void onVolumeChangedEvent(CommandInterface::am_sinkID_t, CommandInterface::am_mainVolume_t) = 0;
- virtual void onSinkMuteStateChangedEvent(CommandInterface::am_sinkID_t, CommandInterface::am_MuteState_e) = 0;
- virtual void onSystemPropertyChangedEvent(const CommandInterface::am_SystemProperty_s &) = 0;
- virtual void onTimingInformationChangedEvent(CommandInterface::am_mainConnectionID_t, CommandInterface::am_timeSync_t) = 0;
- virtual void onSinkUpdatedEvent(CommandInterface::am_sinkID_t, CommandInterface::am_sinkClass_t, const CommandInterface::am_MainSoundProperty_l &) = 0;
- virtual void onSourceUpdatedEvent(CommandInterface::am_sourceID_t, CommandInterface::am_sourceClass_t, const CommandInterface::am_MainSoundProperty_l &) = 0;
- virtual void onSinkNotificationEvent(CommandInterface::am_sinkID_t, const CommandInterface::am_NotificationPayload_s & ) = 0;
- virtual void onSourceNotificationEvent(CommandInterface::am_sourceID_t, const CommandInterface::am_NotificationPayload_s &) = 0;
- virtual void onMainSinkNotificationConfigurationChangedEvent(CommandInterface::am_sinkID_t, const org::genivi::audiomanager::am::am_NotificationConfiguration_s &) = 0;
- virtual void onMainSourceNotificationConfigurationChangedEvent(CommandInterface::am_sourceID_t, const org::genivi::audiomanager::am::am_NotificationConfiguration_s &) = 0;
+ IAmNotificationsClient() {}
+ virtual ~IAmNotificationsClient() {}
+ virtual void onNewMainConnection(const org::genivi::am::am_MainConnectionType_s &) = 0 ;
+ virtual void removedMainConnection(org::genivi::am::am_mainConnectionID_t) = 0 ;
+ virtual void onNumberOfSourceClassesChangedEvent() = 0 ;
+ virtual void onMainConnectionStateChangedEvent(org::genivi::am::am_mainConnectionID_t, org::genivi::am::am_ConnectionState_e) = 0 ;
+ virtual void onSourceAddedEvent(const org::genivi::am::am_SourceType_s &) = 0 ;
+ virtual void onSourceRemovedEvent(org::genivi::am::am_sourceID_t) = 0 ;
+ virtual void onMainSourceSoundPropertyChangedEvent(org::genivi::am::am_sourceID_t, const org::genivi::am::am_MainSoundProperty_s & ) = 0 ;
+ virtual void onSourceAvailabilityChangedEvent(org::genivi::am::am_sourceID_t, const org::genivi::am::am_Availability_s &) = 0 ;
+ virtual void onNumberOfSinkClassesChangedEvent() = 0 ;
+ virtual void onSinkAddedEvent(const org::genivi::am::am_SinkType_s &)= 0 ;
+ virtual void onSinkRemovedEvent(org::genivi::am::am_sinkID_t) = 0 ;
+ virtual void onMainSinkSoundPropertyChangedEvent(org::genivi::am::am_sinkID_t, const org::genivi::am::am_MainSoundProperty_s &) = 0 ;
+ virtual void onSinkAvailabilityChangedEvent(org::genivi::am::am_sinkID_t, const org::genivi::am::am_Availability_s &) = 0 ;
+ virtual void onVolumeChangedEvent(org::genivi::am::am_sinkID_t, org::genivi::am::am_mainVolume_t) = 0 ;
+ virtual void onSinkMuteStateChangedEvent(org::genivi::am::am_sinkID_t, org::genivi::am::am_MuteState_e) = 0 ;
+ virtual void onSystemPropertyChangedEvent(const org::genivi::am::am_SystemProperty_s &) = 0 ;
+ virtual void onTimingInformationChangedEvent(org::genivi::am::am_mainConnectionID_t, org::genivi::am::am_timeSync_t) = 0 ;
+ virtual void onSinkUpdatedEvent(org::genivi::am::am_sinkID_t, org::genivi::am::am_sinkClass_t, const org::genivi::am::am_MainSoundProperty_L &) = 0 ;
+ virtual void onSourceUpdatedEvent(org::genivi::am::am_sourceID_t, org::genivi::am::am_sourceClass_t, const org::genivi::am::am_MainSoundProperty_L &) = 0 ;
+ virtual void onSinkNotificationEvent(org::genivi::am::am_sinkID_t, const org::genivi::am::am_NotificationPayload_s & ) = 0 ;
+ virtual void onSourceNotificationEvent(org::genivi::am::am_sourceID_t, const org::genivi::am::am_NotificationPayload_s &) = 0 ;
+ virtual void onMainSinkNotificationConfigurationChangedEvent(org::genivi::am::am_sinkID_t, const org::genivi::am::am_NotificationConfiguration_s &) = 0 ;
+ virtual void onMainSourceNotificationConfigurationChangedEvent(org::genivi::am::am_sourceID_t, const org::genivi::am::am_NotificationConfiguration_s &) = 0 ;
};
class MockNotificationsClient : public IAmNotificationsClient {
- public:
- MOCK_METHOD0(onNumberOfMainConnectionsChangedEvent,
- void());
- MOCK_METHOD0(onNumberOfSourceClassesChangedEvent, void());
- MOCK_METHOD2(onMainConnectionStateChangedEvent,
- void(CommandInterface::am_mainConnectionID_t mcID, CommandInterface::am_ConnectionState_e cs));
- MOCK_METHOD1(onSourceAddedEvent, void(const CommandInterface::am_SourceType_s & st));
- MOCK_METHOD1(onSourceRemovedEvent, void(CommandInterface::am_sourceID_t sid));
- MOCK_METHOD2(onMainSourceSoundPropertyChangedEvent,
- void(CommandInterface::am_sourceID_t sid, const CommandInterface::am_MainSoundProperty_s & msp) );
- MOCK_METHOD2(onSourceAvailabilityChangedEvent,
- void(CommandInterface::am_sourceID_t st, const CommandInterface::am_Availability_s & a) );
- MOCK_METHOD0(onNumberOfSinkClassesChangedEvent,
- void());
- MOCK_METHOD1(onSinkAddedEvent,
- void(const CommandInterface::am_SinkType_s & st));
- MOCK_METHOD1(onSinkRemovedEvent,
- void(CommandInterface::am_sinkID_t sid));
- MOCK_METHOD2(onMainSinkSoundPropertyChangedEvent,
- void(CommandInterface::am_sinkID_t sid, const CommandInterface::am_MainSoundProperty_s & msp) );
- MOCK_METHOD2(onSinkAvailabilityChangedEvent,
- void(CommandInterface::am_sinkID_t sid, const CommandInterface::am_Availability_s & a) );
- MOCK_METHOD2(onVolumeChangedEvent,
- void(CommandInterface::am_sinkID_t sid, CommandInterface::am_mainVolume_t mv) );
- MOCK_METHOD2(onSinkMuteStateChangedEvent,
- void(CommandInterface::am_sinkID_t sid, CommandInterface::am_MuteState_e ms) );
- MOCK_METHOD1(onSystemPropertyChangedEvent,
- void(const CommandInterface::am_SystemProperty_s & sp));
- MOCK_METHOD2(onTimingInformationChangedEvent,
- void(CommandInterface::am_mainConnectionID_t cid, CommandInterface::am_timeSync_t ts) );
- MOCK_METHOD3(onSinkUpdatedEvent,
- void(CommandInterface::am_sinkID_t sid, CommandInterface::am_sinkClass_t sc, const CommandInterface::am_MainSoundProperty_l & msp) );
- MOCK_METHOD3(onSourceUpdatedEvent,
- void(CommandInterface::am_sourceID_t sid, CommandInterface::am_sourceClass_t sc, const CommandInterface::am_MainSoundProperty_l & msp) );
- MOCK_METHOD2(onSinkNotificationEvent,
- void(CommandInterface::am_sinkID_t sid, const CommandInterface::am_NotificationPayload_s & np));
- MOCK_METHOD2(onSourceNotificationEvent,
- void(CommandInterface::am_sourceID_t sid, const CommandInterface::am_NotificationPayload_s & np) );
- MOCK_METHOD2(onMainSinkNotificationConfigurationChangedEvent,
- void(CommandInterface::am_sinkID_t sid, const org::genivi::audiomanager::am::am_NotificationConfiguration_s & nc) );
- MOCK_METHOD2(onMainSourceNotificationConfigurationChangedEvent,
- void(CommandInterface::am_sourceID_t sid, const org::genivi::audiomanager::am::am_NotificationConfiguration_s & nc));
-};
+public:
+ MOCK_METHOD1(onNewMainConnection,
+ void(const org::genivi::am::am_MainConnectionType_s&));
+ MOCK_METHOD1(removedMainConnection,
+ void(org::genivi::am::am_mainConnectionID_t));
+ MOCK_METHOD0(onNumberOfSourceClassesChangedEvent,
+ void());
+ MOCK_METHOD2(onMainConnectionStateChangedEvent,
+ void(org::genivi::am::am_mainConnectionID_t, org::genivi::am::am_ConnectionState_e));
+ MOCK_METHOD1(onSourceAddedEvent,
+ void(const org::genivi::am::am_SourceType_s &));
+ MOCK_METHOD1(onSourceRemovedEvent,
+ void(org::genivi::am::am_sourceID_t));
+ MOCK_METHOD2(onMainSourceSoundPropertyChangedEvent,
+ void(org::genivi::am::am_sourceID_t, const org::genivi::am::am_MainSoundProperty_s&));
+ MOCK_METHOD2(onSourceAvailabilityChangedEvent,
+ void(org::genivi::am::am_sourceID_t, const org::genivi::am::am_Availability_s&));
+ MOCK_METHOD0(onNumberOfSinkClassesChangedEvent,
+ void());
+ MOCK_METHOD1(onSinkAddedEvent,
+ void(const org::genivi::am::am_SinkType_s&));
+ MOCK_METHOD1(onSinkRemovedEvent,
+ void(org::genivi::am::am_sinkID_t));
+ MOCK_METHOD2(onMainSinkSoundPropertyChangedEvent,
+ void(org::genivi::am::am_sinkID_t, const org::genivi::am::am_MainSoundProperty_s&));
+ MOCK_METHOD2(onSinkAvailabilityChangedEvent,
+ void(org::genivi::am::am_sinkID_t, const org::genivi::am::am_Availability_s&));
+ MOCK_METHOD2(onVolumeChangedEvent,
+ void(org::genivi::am::am_sinkID_t, org::genivi::am::am_mainVolume_t));
+ MOCK_METHOD2(onSinkMuteStateChangedEvent,
+ void(org::genivi::am::am_sinkID_t, org::genivi::am::am_MuteState_e));
+ MOCK_METHOD1(onSystemPropertyChangedEvent,
+ void(const org::genivi::am::am_SystemProperty_s&));
+ MOCK_METHOD2(onTimingInformationChangedEvent,
+ void(org::genivi::am::am_mainConnectionID_t, org::genivi::am::am_timeSync_t));
+ MOCK_METHOD3(onSinkUpdatedEvent,
+ void(org::genivi::am::am_sinkID_t, org::genivi::am::am_sinkClass_t, const org::genivi::am::am_MainSoundProperty_L&));
+ MOCK_METHOD3(onSourceUpdatedEvent,
+ void(org::genivi::am::am_sourceID_t, org::genivi::am::am_sourceClass_t, const org::genivi::am::am_MainSoundProperty_L&));
+ MOCK_METHOD2(onSinkNotificationEvent,
+ void(org::genivi::am::am_sinkID_t, const org::genivi::am::am_NotificationPayload_s&));
+ MOCK_METHOD2(onSourceNotificationEvent,
+ void(org::genivi::am::am_sourceID_t, const org::genivi::am::am_NotificationPayload_s&));
+ MOCK_METHOD2(onMainSinkNotificationConfigurationChangedEvent,
+ void(org::genivi::am::am_sinkID_t, const org::genivi::am::am_NotificationConfiguration_s&));
+ MOCK_METHOD2(onMainSourceNotificationConfigurationChangedEvent,
+ void(org::genivi::am::am_sourceID_t, const org::genivi::am::am_NotificationConfiguration_s&));
+ };
+
+
} // namespace am
#endif /* MOCKCOMMANDRECEIVENTERFACE_H_ */
diff --git a/PluginRoutingInterfaceCAPI/fidl/RoutingInterface.fidl b/PluginRoutingInterfaceCAPI/fidl/RoutingInterface.fidl
index 6e1346b..877b75c 100644
--- a/PluginRoutingInterfaceCAPI/fidl/RoutingInterface.fidl
+++ b/PluginRoutingInterfaceCAPI/fidl/RoutingInterface.fidl
@@ -1,462 +1,845 @@
-package org.genivi.audiomanager
-
-import org.genivi.audiomanager.am_gen.* from "amTypes.fidl"
-
-
-interface RoutingInterface
-{
- version { major 0 minor 1 }
-
- method ackConnect
- {
- in
- {
- UInt16 handle
- am_connectionID_t connectionID
- UInt16 ^error
- }
- }
- method ackDisconnect
- {
- in
- {
- UInt16 handle
- am_connectionID_t connectionID
- UInt16 ^error
- }
- }
- method ackSetSinkVolume
- {
- in
- {
- UInt16 handle
- am_volume_t volume
- UInt16 ^error
- }
- }
- method ackSetSourceVolume
- {
- in
- {
- UInt16 handle
- am_volume_t volume
- UInt16 ^error
- }
- }
- method ackSetSourceState
- {
- in
- {
- UInt16 handle
- UInt16 ^error
- }
- }
- method ackSetSinkSoundProperties
- {
- in
- {
- UInt16 handle
- UInt16 ^error
- }
- }
- method ackSetSinkSoundProperty
- {
- in
- {
- UInt16 handle
- UInt16 ^error
- }
- }
- method ackSetSourceSoundProperties
- {
- in
- {
- UInt16 handle
- UInt16 ^error
- }
- }
- method ackSetSourceSoundProperty
- {
- in
- {
- UInt16 handle
- UInt16 ^error
- }
- }
- method ackSourceVolumeTick
- {
- in
- {
- UInt16 handle
- am_sourceID_t source
- am_volume_t volume
- }
- }
- method ackSinkVolumeTick
- {
- in
- {
- UInt16 handle
- am_sinkID_t sink
- am_volume_t volume
- }
- }
- method ackCrossFading
- {
- in
- {
- UInt16 handle
- am_HotSink_e hotSink
- am_Error_e returnError
- }
- }
- method peekDomain
- {
- in
- {
- String name
- }
-
- out
- {
- am_domainID_t domainID
- am_Error_e ^error
- }
- }
- method registerDomain
- {
- in
- {
- am_Domain_s domainData
- String returnBusname
- String returnPath
- String returnInterface
- }
- out
- {
- am_domainID_t domainID
- am_Error_e ^error
- }
- }
- method deregisterDomain
- {
- in
- {
- am_domainID_t domainID
- }
- out
- {
- am_Error_e ^returnError
- }
- }
- method registerGateway
- {
- in
- {
- am_Gateway_s gatewayData
- }
- out
- {
- am_gatewayID_t gatewayID
- am_Error_e ^error
- }
- }
- method deregisterGateway
- {
- in
- {
- am_gatewayID_t gatewayID
- }
- out
- {
- am_Error_e ^returnError
- }
- }
- method peekSink
- {
- in
- {
- String name
- }
-
- out
- {
- am_sinkID_t sinkID
- am_Error_e ^error
- }
- }
- method registerSink
- {
- in
- {
- sinkData_s sinkData
- }
- out
- {
- am_sinkID_t sinkID
- am_Error_e ^error
- }
- }
- method deregisterSink
- {
- in
- {
- am_sinkID_t sinkID
- }
- out
- {
- am_Error_e ^returnError
- }
- }
- method peekSource
- {
- in
- {
- String name
- }
-
- out
- {
- am_sourceID_t sourceID
- am_Error_e ^error
- }
- }
- method registerSource
- {
- in
- {
- sourceData_s sourceData
- }
- out
- {
- am_sourceID_t sourceID
- am_Error_e ^error
- }
- }
- method deregisterSource
- {
- in
- {
- am_sourceID_t sourceID
- }
- out
- {
- am_Error_e ^returnError
- }
- }
- method registerCrossfader
- {
- in
- {
- crossfaderData_s crossfaderData
- }
- out
- {
- am_crossfaderID_t crossfaderID
- am_Error_e ^error
- }
- }
- method deregisterCrossfader
- {
- in
- {
- am_crossfaderID_t crossfaderID
- }
- out
- {
- am_Error_e ^returnError
- }
- }
- method peekSourceClassID
- {
- in
- {
- String name
- }
-
- out
- {
- am_sourceClass_t sourceClassID
- am_Error_e ^error
- }
- }
- method peekSinkClassID
- {
- in
- {
- String name
- }
-
- out
- {
- am_sinkClass_t sinkClassID
- am_Error_e ^error
- }
- }
-
- method hookInterruptStatusChange
- {
- in
- {
- am_sourceID_t sourceID
- UInt16 interruptState
- }
- }
- method hookDomainRegistrationComplete
- {
- in
- {
- am_domainID_t domainID
- }
- }
- method hookSinkAvailablityStatusChange
- {
- in
- {
- am_sinkID_t sinkID
- am_Availability_s availability
- }
- }
- method hookSourceAvailablityStatusChange
- {
- in
- {
- am_sourceID_t sourceID
- am_Availability_s availability
- }
- }
- method hookDomainStateChange
- {
- in
- {
- am_domainID_t domainID
- am_DomainState_e domainState
- }
- }
- method hookTimingInformationChanged
- {
- in
- {
- am_connectionID_t connectionID
- Int16 delay
- }
- }
- method sendChangedData
- {
- in
- {
- am_EarlyData_l earlyData_volumes
- am_EarlyData_l earlyData_soundproperties
- }
- }
- method confirmRoutingReady
- {
- in
- {
- am_domainID_t domainID
- }
- }
-
- method confirmRoutingRundown
- {
- in
- {
- am_domainID_t domainID
- }
- }
-
- method updateGateway
- {
- in
- {
- am_gatewayID_t gatewayID
- am_ConnectionFormat_L listSourceFormats
- am_ConnectionFormat_L listSinkFormats
- bool_L convertionMatrix
- }
- }
-
- method updateSink
- {
- in
- {
- am_sinkID_t sinkID
- am_sinkClass_t sinkClassID
- am_SoundProperty_L listSoundProperties
- am_ConnectionFormat_L listConnectionFormats
- am_MainSoundProperty_L listMainSoundProperties
- }
- }
- method updateSource
- {
- in
- {
- am_sourceID_t sourceID
- am_sourceClass_t sourceClassID
- am_SoundProperty_L listSoundProperties
- am_ConnectionFormat_L listConnectionFormats
- am_MainSoundProperty_L listMainSoundProperties
- }
- }
- method ackSetVolumes
- {
- in
- {
- UInt16 handle
- am_Volumes_l listVolumes
- UInt16 ^error
- }
- }
- method ackSinkNotificationConfiguration
- {
- in
- {
- UInt16 handle
- UInt16 ^error
- }
- }
- method ackSourceNotificationConfiguration
- {
- in
- {
- UInt16 handle
- UInt16 ^error
- }
- }
- method hookSinkNotificationDataChange
- {
- in
- {
- am_sinkID_t sinkID
- notificationPayload_s payload
- }
- }
-
- method hookSourceNotificationDataChange
- {
- in
- {
- am_sourceID_t sourceID
- notificationPayload_s payload
- }
- }
-
- method getRoutingReadyState
- {
- out
- {
- Boolean readyState
- }
- }
-
- broadcast setRoutingReady
- {
-
- }
-
- broadcast setRoutingRundown
- {
-
- }
-
+package org.genivi.am
+import org.genivi.am.* from "../../AudioManagerDaemon/fidls/AudioManagerTypes.fidl"
+
+<**
+ @description : This class implements everything from Audiomanager -&gt; RoutingAdapter
+ @author : Christian Mueller
+**>
+
+interface RoutingControl {
+ version {
+ major 0
+ minor 1
+ }
+
+ <**
+ @description : aborts an asynchronous action.
+(at)return E_OK on success, E_UNKNOWN on error, E_NON_EXISTENT if handle was not found
+ **>
+ method asyncAbort {
+ in {
+ am_Handle_s handle
+ }
+ }
+
+ <**
+ @description : connects a source to a sink
+(at)return E_OK on success, E_UNKNOWN on error, E_WRONG_FORMAT in case am_ConnectionFormat_e does not match
+ **>
+ method asyncConnect {
+ in {
+ am_Handle_s handle
+ am_connectionID_t connectionID
+ am_sourceID_t sourceID
+ am_sinkID_t sinkID
+ am_ConnectionFormat_pe connectionFormat
+ }
+ }
+
+ <**
+ @description : disconnect a connection with given connectionID
+(at)return E_OK on success, E_UNKNOWN on error, E_NON_EXISTENT if connection was not found
+ **>
+ method asyncDisconnect {
+ in {
+ am_Handle_s handle
+ am_connectionID_t connectionID
+ }
+ }
+
+ <**
+ @description : this method is used to set the volume of a sink. This function is used to drive ramps, to mute or unmute or directly set the value. The difference is made through the ramptype.
+(at)return E_OK on success, E_UNKNOWN on error, E_OUT_OF_RANGE if new volume is out of range
+ **>
+ method asyncSetSinkVolume {
+ in {
+ am_Handle_s handle
+ am_sinkID_t sinkID
+ am_volume_t volume
+ am_RampType_pe ramp
+ am_time_t time
+ }
+ }
+
+ <**
+ @description : sets the volume of a source. This method is used to set the volume of a sink. This function is used to drive ramps, to mute or unmute or directly set the value. The difference is made through the ramptype.
+(at)return E_OK on success, E_UNKNOWN on error, E_OUT_OF_RANGE if volume is out of range.
+triggers the acknowledge ackSourceVolumeChange
+ **>
+ method asyncSetSourceVolume {
+ in {
+ am_Handle_s handle
+ am_sourceID_t sourceID
+ am_volume_t volume
+ am_RampType_pe ramp
+ am_time_t time
+ }
+ }
+
+ <**
+ @description : This function is used to set the source state of a particular source.
+(at)return E_OK on success, E_UNKNOWN on error
+ **>
+ method asyncSetSourceState {
+ in {
+ am_Handle_s handle
+ am_sourceID_t sourceID
+ am_SourceState_e ^state
+ }
+ }
+
+ <**
+ @description : this function sets the sinksoundproperty.
+(at)return E_OK on success, E_UNKNOWN on error, E_OUT_OF_RANGE in case the propery value is out of range
+ **>
+ method asyncSetSinkSoundProperties {
+ in {
+ am_Handle_s handle
+ am_sinkID_t sinkID
+ am_SoundProperty_L listSoundProperties
+ }
+ }
+
+ <**
+ @description : this function sets the sinksoundproperty.
+(at)return E_OK on success, E_UNKNOWN on error, E_OUT_OF_RANGE in case the propery value is out of range
+ **>
+ method asyncSetSinkSoundProperty {
+ in {
+ am_Handle_s handle
+ am_sinkID_t sinkID
+ am_SoundProperty_s soundProperty
+ }
+ }
+
+ <**
+ @description : this function sets the sourcesoundproperty.
+(at)return E_OK on success, E_UNKNOWN on error, E_OUT_OF_RANGE in case the propery value is out of range
+ **>
+ method asyncSetSourceSoundProperties {
+ in {
+ am_Handle_s handle
+ am_sourceID_t sourceID
+ am_SoundProperty_L listSoundProperties
+ }
+ }
+
+ <**
+ @description : this function sets the sourcesoundproperty.
+(at)return E_OK on success, E_UNKNOWN on error, E_OUT_OF_RANGE in case the propery value is out of range
+ **>
+ method asyncSetSourceSoundProperty {
+ in {
+ am_Handle_s handle
+ am_sourceID_t sourceID
+ am_SoundProperty_s soundProperty
+ }
+ }
+
+ <**
+ @description : this function triggers crossfading.
+(at)return E_OK on success, E_UNKNOWN on error
+ **>
+ method asyncCrossFade {
+ in {
+ am_Handle_s handle
+ am_crossfaderID_t crossfaderID
+ am_HotSink_e hotSink
+ am_RampType_pe rampType
+ am_time_t time
+ }
+ }
+
+ <**
+ @description : this function is used for early and late audio functions to set the domain state
+(at)return E_OK on success, E_UNKNOWN on error
+ **>
+ method setDomainState {
+ in {
+ am_domainID_t domainID
+ am_DomainState_e domainState
+ }
+ out {
+ am_Error_e ^error
+ }
+ }
+ method asyncSetVolumes {
+ in {
+ am_Handle_s handle
+ am_Volumes_L volumes
+ }
+ }
+ method asyncSetSinkNotificationConfiguration {
+ in {
+ am_Handle_s handle
+ am_sinkID_t sinkID
+ am_NotificationConfiguration_s notificationConfiguration
+ }
+ }
+ method asyncSetSourceNotificationConfiguration {
+ in {
+ am_Handle_s handle
+ am_sourceID_t sourceID
+ am_NotificationConfiguration_s notificationConfiguration
+ }
+ }
+
+}
+
+<**
+ @description : Routing Receive sendInterface description.
+ @author : Christian Mueller
+**>
+
+interface RoutingControlObserver {
+ version {
+ major 0
+ minor 1
+ }
+
+ <**
+ @description : 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.
+ **>
+ attribute am_RoutingReady_e RoutingReady
+
+ <**
+ @description : acknowledges a asyncConnect
+ **>
+ method ackConnect {
+ in {
+ am_Handle_s handle
+ am_connectionID_t connectionID
+
+ <**
+ @description : E_OK on success, E_ABORTED if action was aborted, E_UNKNOWN on error
+ **>
+ am_Error_e ^error
+ }
+ }
+
+ <**
+ @description : acknowledges a asyncDisconnect
+ **>
+ method ackDisconnect {
+ in {
+ am_Handle_s handle
+ am_connectionID_t connectionID
+
+ <**
+ @description : E_OK on success, E_ABORTED if action was aborted, E_UNKNOWN on error
+ **>
+ am_Error_e ^error
+ }
+ }
+
+ <**
+ @description : acknowledges a asyncsetSinkVolume
+ **>
+ method ackSetSinkVolumeChange {
+ in {
+ am_Handle_s handle
+
+ <**
+ @description : The current actual value that is set
+ **>
+ am_volume_t volume
+
+ <**
+ @description : E_OK on success, E_ABORTED if action was aborted, E_UNKNOWN on error
+ **>
+ am_Error_e ^error
+ }
+ }
+
+ <**
+ @description : acknowledges a asyncsetSourceVolume
+ **>
+ method ackSetSourceVolumeChange {
+ in {
+
+ <**
+ @description : handle that belongs to the change
+ **>
+ am_Handle_s handle
+
+ <**
+ @description : the current volume
+ **>
+ am_volume_t volume
+
+ <**
+ @description : E_OK on success, E_ABORTED if action was aborted, E_UNKNOWN on error
+ **>
+ am_Error_e ^error
+ }
+ }
+
+ <**
+ @description : acknowlegde for asyncSetSourceState
+ **>
+ method ackSetSourceState {
+ in {
+ am_Handle_s handle
+
+ <**
+ @description : E_OK on success, E_ABORTED if action was aborted, E_UNKNOWN on error
+ **>
+ am_Error_e ^error
+ }
+ }
+
+ <**
+ @description : acknowledges asyncSetSinkSoundProperties
+ **>
+ method ackSetSinkSoundProperties {
+ in {
+ am_Handle_s handle
+
+ <**
+ @description : E_OK on success, E_ABORTED if action was aborted, E_UNKNOWN on error
+ **>
+ am_Error_e ^error
+ }
+ }
+
+ <**
+ @description : acknowledges asyncSetSinkSoundProperty
+ **>
+ method ackSetSinkSoundProperty {
+ in {
+ am_Handle_s handle
+
+ <**
+ @description : E_OK on success, E_ABORTED if action was aborted, E_UNKNOWN on error
+ **>
+ am_Error_e ^error
+ }
+ }
+
+ <**
+ @description : acknowledges asyncSetSourceSoundProperties
+ **>
+ method ackSetSourceSoundProperties {
+ in {
+ am_Handle_s handle
+
+ <**
+ @description : E_OK on success, E_ABORTED if action was aborted, E_UNKNOWN on error
+ **>
+ am_Error_e ^error
+ }
+ }
+
+ <**
+ @description : acknowledges asyncSetSourceSoundProperty
+ **>
+ method ackSetSourceSoundProperty {
+ in {
+ am_Handle_s handle
+
+ <**
+ @description : E_OK on success, E_ABORTED if action was aborted, E_UNKNOWN on error
+ **>
+ am_Error_e ^error
+ }
+ }
+
+ <**
+ @description : acknowledges asyncCrossFade
+ **>
+ method ackCrossFading {
+ in {
+ am_Handle_s handle
+
+ <**
+ @description : this is the current hot sink, HS_INTERMEDIATE is here when a crossfading action did not reach the end
+ **>
+ am_HotSink_e hotSink
+
+ <**
+ @description : E_OK on success, E_ABORTED if action was aborted, E_UNKNOWN on error
+ **>
+ am_Error_e ^error
+ }
+ }
+
+ <**
+ @description : acknowledges a volume tick. This can be used to display volumechanges during ramps
+ **>
+ method ackSourceVolumeTick {
+ in {
+ am_Handle_s handle
+ am_sourceID_t sourceID
+ am_volume_t volume
+ }
+ }
+
+ <**
+ @description : acknowledges a volume tick. This can be used to display volumechanges during ramps
+ **>
+ method ackSinkVolumeTick {
+ in {
+ am_Handle_s handle
+ am_sinkID_t sinkID
+ am_volume_t volume
+ }
+ }
+
+ <**
+ @description : 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
+ **>
+ method peekDomain {
+ in {
+ String name
+ }
+ out {
+ am_domainID_t domainID
+ am_Error_e ^error
+ }
+ }
+
+ <**
+ @description : registers a domain
+(at)return E_OK on succes, E_ALREADY_EXISTENT if already registered E_UNKOWN on error
+ **>
+ method registerDomain {
+ in {
+
+ <**
+ @description : domainID in am_Domain_s must be 0!
+ **>
+ am_Domain_s domainData
+ String returnInterface
+ String returnPath
+ String returnBusname
+ }
+ out {
+ am_domainID_t domainID
+ am_Error_e ^error
+ }
+ }
+
+ <**
+ @description : 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
+ **>
+ method deregisterDomain {
+ in {
+
+ <**
+ @description : < the nonde of the bus
+ **>
+ am_domainID_t domainID
+ }
+ out {
+ am_Error_e ^error
+ }
+ }
+
+ <**
+ @description : registers a gateway. (at)return E_OK on succes, E_ALREADY_EXISTENT if already registered E_UNKOWN on error
+ **>
+ method registerGateway {
+ in {
+
+ <**
+ @description : In a fixed setup, the gatewayID must be below 100. In a dynamic setup, the gatewayID shall be 0. listSourceFormats and listSinkFormats are empty at registration time. Values are taken over when sources and sinks are registered.
+
+
+ **>
+ am_Gateway_s gatewayData
+ }
+ out {
+ am_gatewayID_t gatewayID
+ am_Error_e ^error
+ }
+ }
+
+ <**
+ @description : 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
+ **>
+ method deregisterGateway {
+ in {
+
+ <**
+ @description : domainID of the control domain
+ **>
+ am_gatewayID_t gatewayID
+ }
+ out {
+ am_Error_e ^error
+ }
+ }
+
+ <**
+ @description : 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
+ **>
+ method peekSink {
+ in {
+
+ <**
+ @description : ID is not valid since not created yet
+ **>
+ String name
+ }
+ out {
+ am_sinkID_t sinkID
+ am_Error_e ^error
+ }
+ }
+
+ <**
+ @description : 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
+ **>
+ method registerSink {
+ in {
+
+ <**
+ @description : In a fixed setup, the sinkID within am_Sink_s must be below 100. In a dynamic setup the sinkID must be 0 in am_Sink_s.
+ **>
+ am_Sink_s sinkData
+ }
+ out {
+ am_sinkID_t sinkID
+ am_Error_e ^error
+ }
+ }
+
+ <**
+ @description : deregisters a sink.
+(at)return E_OK on succes, E_NON_EXISTENT if not found E_UNKOWN on error
+ **>
+ method deregisterSink {
+ in {
+ am_sinkID_t sinkID
+ }
+ out {
+ am_Error_e ^error
+ }
+ }
+
+ <**
+ @description : 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
+ **>
+ method peekSource {
+ in {
+ String name
+ }
+ out {
+ am_sourceID_t sourceID
+ am_Error_e ^error
+ }
+ }
+
+ <**
+ @description : 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
+ **>
+ method registerSource {
+ in {
+
+ <**
+ @description : In a fixed setup, the sourceID within am_Source_s must be below 100. In a dynamic setup the sourceID must be 0 in am_Source_s
+ **>
+ am_Source_s sourceData
+ }
+ out {
+ am_sourceID_t sourceID
+ am_Error_e ^error
+ }
+ }
+
+ <**
+ @description : deregisters a source
+(at)return E_OK on succes, E_NON_EXISTENT if not found E_UNKOWN on error
+ **>
+ method deregisterSource {
+ in {
+ am_sourceID_t sourceID
+ }
+ out {
+ am_Error_e ^error
+ }
+ }
+
+ <**
+ @description : this function registers a crossfader.
+(at)return E_OK on succes, E_ALREADY_EXISTENT if already registered E_UNKOWN on error
+ **>
+ method registerCrossfader {
+ in {
+
+ <**
+ @description : in a fixed setup, the crossfaderID must be below 100. In a dynamic setup the crossfasderID shall be 0
+ **>
+ am_Crossfader_s crossfaderData
+ }
+ out {
+ am_crossfaderID_t crossfaderID
+ am_Error_e ^error
+ }
+ }
+
+ <**
+ @description : 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
+ **>
+ method deregisterCrossfader {
+ in {
+ am_crossfaderID_t crossfaderID
+ }
+ out {
+ am_Error_e ^error
+ }
+ }
+
+ <**
+ @description : 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
+ **>
+ method peekSourceClassID {
+ in {
+ String name
+ }
+ out {
+ am_sourceClass_t sourceClassID
+ am_Error_e ^error
+ }
+ }
+
+ <**
+ @description : 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
+ **>
+ method peekSinkClassID {
+ in {
+ String name
+ }
+ out {
+ am_sinkClass_t sinkClassID
+ am_Error_e ^error
+ }
+ }
+
+ <**
+ @description : is called when a low level interrupt changes it status.
+ **>
+ method hookInterruptStatusChange {
+ in {
+ am_sourceID_t sourceID
+ am_InterruptState_e interruptState
+ }
+ }
+
+ <**
+ @description : 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
+ **>
+ method hookDomainRegistrationComplete {
+ in {
+ am_domainID_t domainID
+ }
+ }
+
+ <**
+ @description : is called when a sink changes its availability
+ **>
+ method hookSinkAvailablityStatusChange {
+ in {
+ am_sinkID_t sinkID
+ am_Availability_s availability
+ }
+ }
+
+ <**
+ @description : is called when a source changes its availability
+ **>
+ method hookSourceAvailablityStatusChange {
+ in {
+ am_sourceID_t sourceID
+ am_Availability_s availability
+ }
+ }
+
+ <**
+ @description : is called when a domain changes its status. This used for early domains only
+ **>
+ method hookDomainStateChange {
+ in {
+ am_domainID_t domainID
+ am_DomainState_e domainState
+ }
+ }
+
+ <**
+ @description : is called when the timinginformation (delay) changed for a connection.
+ **>
+ method hookTimingInformationChanged {
+ in {
+ am_connectionID_t connectionID
+ am_timeSync_t delay
+ }
+ }
+
+ <**
+ @description : 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
+ **>
+ method sendChangedData {
+ in {
+ am_EarlyData_L earlyData
+ }
+ }
+
+ <**
+ @description : updates data of an gateway. (at)return E_OK on success, E_NON_EXISTENT if the gatewayID is not valid.
+ **>
+ method updateGateway {
+ in {
+
+ <**
+ @description : This is the new gateway data that has been updated. Please note that changing source and sink IDs,
+
+ **>
+ am_gatewayID_t gatewayID
+ am_ConnectionFormat_L listSourceFormats
+ am_ConnectionFormat_L listSinkFormats
+ am_Convertion_L convertionMatrix
+ }
+ out {
+ am_Error_e ^error
+ }
+ }
+
+ <**
+ @description : updates data of an gateway. (at)return E_OK on success, E_NON_EXISTENT if the sinkID is not valid.
+ **>
+ method updateSink {
+ in {
+
+ <**
+ @description : The sinkID of the sink
+ **>
+ am_sinkID_t sinkID
+ am_sinkClass_t sinkClassID
+ am_SoundProperty_L listSoundProperties
+ am_ConnectionFormat_L listConnectionFormats
+ am_MainSoundProperty_L listMainSoundProperties
+ }
+ out {
+ am_Error_e ^error
+ }
+ }
+
+ <**
+ @description : 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
+ **>
+ method updateSource {
+ in {
+
+ <**
+ @description : the sourceID of the source
+ **>
+ am_sourceID_t sourceID
+ am_sourceClass_t sourceClassID
+ am_SoundProperty_L listSoundProperties
+ am_ConnectionFormat_L listConnectionFormats
+ am_MainSoundProperty_L listMainSoundProperties
+ }
+ out {
+ am_Error_e ^error
+ }
+ }
+
+ <**
+ @description : acknowledges a asyncSetSinkVolumes
+ **>
+ method ackSetVolumes {
+ in {
+ am_Handle_s handle
+
+ <**
+ @description : The list of volumes that have been set. ramp and time values have no meaning when the struct is used here.
+ **>
+ am_Volumes_L listvolumes
+
+ <**
+ @description : E_OK on success, E_ABORTED if action was aborted, E_UNKNOWN on error
+ **>
+ am_Error_e ^error
+ }
+ }
+
+ <**
+ @description : The acknowledge of the SinkNotificationConfiguration
+ **>
+ method ackSinkNotificationConfiguration {
+ in {
+ am_Handle_s handle
+ am_Error_e ^error
+ }
+ }
+
+ <**
+ @description : The acknowledge of the SourceNotificationConfiguration
+ **>
+ method ackSourceNotificationConfiguration {
+ in {
+ am_Handle_s handle
+ am_Error_e ^error
+ }
+ }
+
+ <**
+ @description : is called whenever a notified value needs to be send
+ **>
+ method hookSinkNotificationDataChange {
+ in {
+
+ <**
+ @description : The sinkID of the sink where the data changed
+ **>
+ am_sinkID_t sinkID
+
+ <**
+ @description : The payload
+ **>
+ am_NotificationPayload_s payload
+ }
+ }
+
+ <**
+ @description : is called whenever a notified value needs to be send
+ **>
+ method hookSourceNotificationDataChange {
+ in {
+
+ <**
+ @description : The sinkID of the sink where the data changed
+ **>
+ am_sourceID_t sourceID
+
+ <**
+ @description : The payload
+ **>
+ am_NotificationPayload_s payload
+ }
+ }
+ method confirmRoutingRundown {
+ in {
+ String domainName
+ }
+ }
+
} \ No newline at end of file
diff --git a/PluginRoutingInterfaceCAPI/fidl/RoutingSender.fidl b/PluginRoutingInterfaceCAPI/fidl/RoutingSender.fidl
deleted file mode 100755
index 035d96b..0000000
--- a/PluginRoutingInterfaceCAPI/fidl/RoutingSender.fidl
+++ /dev/null
@@ -1,158 +0,0 @@
-package org.genivi.audiomanager
-
-import org.genivi.audiomanager.am_gen.* from "amTypes.fidl"
-
-interface RoutingSender
-{
- version { major 0 minor 1 }
-
- method asyncSetSourceState
- {
- in
- {
- UInt16 handle
- am_sourceID_t sourceID
- am_SourceState_e sourceState
- }
- }
-
- method setDomainState
- {
- in
- {
- am_domainID_t domainID
- am_DomainState_e domainState
- }
- out
- {
- am_Error_e ^error
- }
- }
- method asyncSetSourceVolume
- {
- in
- {
- am_handle_t handle
- am_sourceID_t sourceID
- am_volume_t volume
- am_RampType_e ramp
- am_time_t time
- }
- }
- method asyncSetSinkVolume
- {
- in
- {
- am_handle_t handle
- am_sinkID_t sinkID
- am_volume_t volume
- am_RampType_e ramp
- am_time_t time
- }
- }
- method asyncConnect
- {
- in
- {
- am_handle_t handle
- am_connectionID_t connectionID
- am_sourceID_t sourceID
- am_sinkID_t sinkID
- am_ConnectionFormat_e connectionFormat
- }
- }
- method asyncDisconnect
- {
- in
- {
- am_handle_t handle
- am_connectionID_t connectionID
- }
- }
- method asyncAbort
- {
- in
- {
- am_handle_t handle
- }
- out
- {
- am_Error_e ^error
- }
- }
- method asyncSetSinkSoundProperties
- {
- in
- {
- am_handle_t handle
- am_sinkID_t sinkID
- am_SoundProperty_L listSoundProperties
- }
- }
- method asyncSetSinkSoundProperty
- {
- in
- {
- am_handle_t handle
- am_sinkID_t sinkID
- am_SoundProperty_s soundProperty
- }
- }
- method asyncSetSourceSoundProperties
- {
- in
- {
- am_handle_t handle
- am_sourceID_t sourceID
- am_SoundProperty_L listSoundProperties
- }
- }
- method asyncSetSourceSoundProperty
- {
- in
- {
- am_handle_t handle
- am_sourceID_t sourceID
- am_SoundProperty_s soundProperty
- }
-
- }
- method asyncCrossFade
- {
- in
- {
- am_handle_t handle
- am_crossfaderID_t crossfaderID
- am_HotSink_e hotSink
- am_RampType_e rampType
- am_time_t time
- }
- }
- method asyncSetVolumes
- {
- in
- {
- am_handle_t handle
- am_Volumes_l volumes
- }
- }
- method asyncSetSinkNotificationConfiguration
- {
- in
- {
- am_handle_t handle
- am_sinkID_t sinkID
- am_NotificationConfiguration_s notificationConfiguration
- }
- }
- method asyncSetSourceNotificationConfiguration
- {
- in
- {
- am_handle_t handle
- am_sourceID_t sourceID
- am_NotificationConfiguration_s notificationConfiguration
- }
- }
-}
-
diff --git a/PluginRoutingInterfaceCAPI/fidl/amTypes.fidl b/PluginRoutingInterfaceCAPI/fidl/amTypes.fidl
deleted file mode 100755
index 60791c7..0000000
--- a/PluginRoutingInterfaceCAPI/fidl/amTypes.fidl
+++ /dev/null
@@ -1,399 +0,0 @@
-package org.genivi.audiomanager
-
-typeCollection am_gen
-{
- typedef am_sourceID_t is UInt16
- typedef am_sinkID_t is UInt16
- typedef am_gatewayID_t is UInt16
- typedef gongHandle is Int16
- typedef am_sourceClass_t is UInt16
- typedef am_sinkClass_t is UInt16
- typedef am_volume_t is Int16
- typedef am_mainVolume_t is Int16
- typedef am_handle_t is UInt16
- typedef am_time_t is UInt16
- typedef am_connectionID_t is UInt16
- typedef am_crossfaderID_t is UInt16
-
-
- enumeration gp_indicatorDirection_e
- {
- INDICATOR_RIGHT ="0x00"
- INDICATOR_LEFT="0x01"
- INDICATOR_WARNING="0x02"
- }
-
- enumeration am_RampType_e
- {
- RAMP_UNKNOWN = "0x00"
- RAMP_GENIVI_DIRECT = "0x01"
- RAMP_GENIVI_NO_PLOP = "0x02"
- RAMP_GENIVI_EXP_INV = "0x03"
- RAMP_GENIVI_LINEAR = "0x04"
- RAMP_GENIVI_EXP = "0x05"
- RAMP_MAX = "0x06"
- }
-
- enumeration am_MuteState_e
- {
- MS_UNKNOWN = "0x00"
- MS_MUTED = "0x01"
- MS_UNMUTED = "0x02"
- MS_MAX = "0x03"
- }
-
- enumeration am_SourceState_e
- {
- SS_UNKNNOWN = "0x00"
- SS_ON = "0x01"
- SS_OFF = "0x02"
- SS_PAUSED = "0x03"
- SS_MAX = "0x04"
- }
- enumeration am_Error_e
- {
- E_OK = "0x00"
- E_UNKNOWN = "0x01"
- E_OUT_OF_RANGE = "0x02"
- E_NOT_USED = "0x03"
- E_DATABASE_ERROR = "0x04"
- E_ALREADY_EXISTS = "0x05"
- E_NO_CHANGE = "0x06"
- E_NOT_POSSIBLE = "0x07"
- E_NON_EXISTENT = "0x08"
- E_ABORTED = "0x09"
- E_WRONG_FORMAT = "0xA"
- E_MAX = "0xB"
- }
-
- enumeration am_DomainState_e
- {
-
- DS_UNKNOWN = "0"
- DS_CONTROLLED = "1"
- DS_INDEPENDENT_STARTUP = "2"
- DS_INDEPENDENT_RUNDOWN = "3"
- DS_MAX = "4"
- }
-
- enumeration gongType_e
- {
- AT_NUN = "0x01"
- AT_POC = "0x02"
- AT_QUE = "0x03"
- AT_IWA = "0x04"
- AT_WA = "0x05"
- AT_ETC_F = "0x06"
- AT_ETC_F2 = "0x07"
- AT_ETC_ST = "0x08"
- AT_ETC_S = "0x09"
- AT_REV = "0x0A"
- AT_ESU = "0x0B"
- AT_ESD = "0x0C"
- AT_DG = "0x0D"
- AT_SG = "0x0E"
- AT_IDG = "0x0F"
- AT_ION = "0x10"
- AT_IOFF = "0x11"
- AT_FBS = "0x12"
- AT_VFS = "0x13"
- AT_GES = "0x14"
- AT_UEE = "0x15"
- }
-
- enumeration am_EarlyDataType_e
- {
- ED_UNKNOWN = "0x00"
- ED_SOURCE_VOLUME = "0x01"
- ED_SINK_VOLUME = "0x02"
- ED_SOURCE_PROPERTY = "0x03"
- ED_SINK_PROPERTY = "0x04"
- ED_MAX = "0x05"
- }
-
- enumeration gp_indicatorStatus_e
- {
- IS_ON = "0x00"
- IS_OFF = "0x01"
- }
-
- enumeration gongStatus_e
- {
- NOT_PLAYING = "0x00"
- PLAYING = "0x01"
- INTERRUPTED = "0x02"
- }
-
- enumeration gongError_e
- {
- SUCCESS = "0x00"
- ERROR = "0x01"
- LOW_PRIORITY = "0x02"
- }
-
- enumeration gongClass_e
- {
- GONGCLASS_1 = "0x01"
- GONGCLASS_2 = "0x02"
- GONGCLASS_PDC = "0x03"
- GONGCLASS_TURN = "0x04"
- GONGCLASS_OBSTACLE = "0x05"
- }
-
- enumeration sampleSet_e
- {
- setBMW = "0x00"
- setMini = "0x01"
- setRR = "0x02"
- }
-
- enumeration am_Availability_e
- {
- A_UNKNOWN = "0x00"
- A_AVAILABLE = "0x01"
- A_UNAVAILABLE = "0x02"
- A_MAX = "0x03"
- }
- enumeration am_AvailabilityReason_e
- {
- AR_UNKNOWN = "0x00"
- AR_GENIVI_NEWMEDIA = "0x01"
- AR_GENIVI_SAMEMEDIA = "0x02"
- AR_GENIVI_NOMEDIA = "0x03"
- AR_GENIVI_TEMPERATURE = "0x04"
- AR_GENIVI_VOLTAGE = "0x05"
- AR_GENIVI_ERRORMEDIA = "0x06"
- AR_MAX = "0x07"
- }
-
- enumeration am_InterruptState_e
- {
- IS_UNKNOWN = "0x00"
- IS_OFF = "0x01"
- IS_INTERRUPTED = "0x02"
- IS_MAX = "0x03"
- }
-
- enumeration am_SoundPropertyType_e
- {
- SP_UNKNOWN = "0x00"
- SP_EXAMPLE_TREBLE = "0x01"
- SP_EXAMPLE_MID = "0x02"
- SP_EXAMPLE_BASS = "0x03"
- SP_ENTER_SINKID = "0x04"
- SP_INTERR_SUPERSEEDINGID = "0x05"
- SP_INTERR_OVERLAYID = "0x06"
- SP_PRIORITY = "0x07"
- SP_MAX = "0x08"
- }
-
- enumeration am_ConnectionFormat_e
- {
- CF_UNKNOWN = "0x00"
- CF_GENIVI_MONO = "0x01"
- CF_GENIVI_STEREO = "0x02"
- CF_GENIVI_ANALOG = "0x03"
- CF_GENIVI_AUTO = "0x04"
- CF_MAX = "0x05"
- }
- array am_ConnectionFormat_L of am_ConnectionFormat_e
-
- enumeration am_MainSoundPropertyType_e
- {
- MSP_UNKNOWN = "0x00"
- MSP_EXAMPLE_TREBLE = "0x01"
- MSP_EXAMPLE_MID = "0x02"
- MSP_EXAMPLE_BASS = "0x03"
- MSP_SOURCE_TYPE = "0x04"
- MSP_MAX = "0x05"
- }
-
- enumeration am_NotificationType_e
- {
- NT_UNKNOWN = "0x00"
- NT_LOUDNESS = "0x01"
- NT_MAX = "0x02"
- }
-
- enumeration am_NotificationStatus_e
- {
- NS_UNKNOWN = "0x00"
- NS_OFF = "0x01"
- NS_PERIODIC = "0x02"
- NS_MINIMUM = "0x03"
- NS_MAXIMUM = "0x04"
- NS_CHANGE = "0x05"
- NS_MAX = "0x06"
- }
-
- enumeration am_HotSink_e
- {
- HS_UNKNOWN = "0x00"
- HS_SINKA = "0x01"
- HS_SINKB = "0x02"
- HS_INTERMEDIATE = "0x03"
- HS_MAX = "0x04"
- }
-
- enumeration am_VolumeType_e
- {
- VT_UNKNOWN = "0x00"
- VT_SINK = "0x01"
- VT_SOURCE = "0x02"
- VT_MAX = "0x03"
- }
-
- struct distanceInformation_s
- {
- Int32 FrontLeft
- Int32 FrontRight
- Int32 RearLeft
- Int32 RearRight
- }
-
- struct sampleNames_s
- {
- sampleSet_e sample
- String sampleName
- } array listSampleNamesL of sampleNames_s
-
- typedef am_domainID_t is UInt16
-
- struct am_Domain_s
- {
- am_domainID_t domainID
- String name
- String busname
- String nodename
- Boolean early
- Boolean complete
- am_DomainState_e ^state
- }
-
- struct am_Volumes_s
- {
- am_VolumeType_e volumeType
- am_DataType_u volumeID
- am_volume_t volume
- am_RampType_e ramp
- am_time_t time
- }
- array am_Volumes_l of am_Volumes_s
-
- struct notificationPayload_s
- {
- Int16 type
- Int16 payload
- }
-
- struct am_Availability_s
- {
- am_Availability_e availability
- am_AvailabilityReason_e availabilityReason
- }
-
- struct am_SoundProperty_s
- {
- am_SoundPropertyType_e type
- Int16 value
- }
- array am_SoundProperty_L of am_SoundProperty_s
-
- struct am_MainSoundProperty_s
- {
- am_MainSoundPropertyType_e type
- Int16 value
- }
- array am_MainSoundProperty_L of am_MainSoundProperty_s
-
- struct am_NotificationConfiguration_s
- {
- am_NotificationType_e type
- am_NotificationStatus_e status
- Int16 parameter
- }
- array am_NotificationConfiguration_L of am_NotificationConfiguration_s
-
-
- array bool_L of Boolean
-
- struct sourceData_s
- {
- am_sourceID_t sourceID
- am_domainID_t domainID
- String name
- am_sourceClass_t sourceClassID
- am_SourceState_e sourceState
- am_volume_t volume
- Boolean visible
- am_Availability_s available
- am_InterruptState_e interruptState
- am_SoundProperty_L listSoundProperties
- am_ConnectionFormat_L listConnectionFormats
- am_MainSoundProperty_L listMainSoundProperties
- am_NotificationConfiguration_L listMainNotificationConfigurations
- am_NotificationConfiguration_L listNotificationConfigurations
- }
-
- struct sinkData_s
- {
- am_sinkID_t sinkID
- String name
- am_domainID_t domainID
- am_sinkClass_t sinkClassID
- am_volume_t volume
- Boolean visible
- am_Availability_s available
- am_MuteState_e muteState
- am_mainVolume_t mainVolume
- am_SoundProperty_L listSoundProperties
- am_ConnectionFormat_L listConnectionFormats
- am_MainSoundProperty_L listMainSoundProperties
- am_NotificationConfiguration_L listMainNotificationConfigurations
- am_NotificationConfiguration_L listNotificationConfigurations
- }
-
- struct crossfaderData_s
- {
- am_crossfaderID_t crossfaderID
- String name
- am_sinkID_t sinkID_A
- am_sinkID_t sinkID_B
- am_sourceID_t sourceID
- am_HotSink_e hotSink
- }
-
- struct am_Gateway_s
- {
- am_gatewayID_t gatewayID
- String name
- am_sinkID_t sinkID
- am_sourceID_t sourceID
- am_domainID_t domainSinkID
- am_domainID_t domainSourceID
- am_domainID_t controlDomainID
- am_ConnectionFormat_L listSourceFormats
- am_ConnectionFormat_L listSinkFormats
- bool_L convertionMatrix
- }
-
- struct am_EarlyData_s
- {
- am_EarlyDataType_e type
- am_DataType_u sinksource
- am_EarlyData_u data
-
- }
- array am_EarlyData_l of am_EarlyData_s
- union am_EarlyData_u
- {
- am_volume_t volume
- am_SoundProperty_s soundProperty
-
- }
- union am_DataType_u
- {
- am_sinkID_t sink
- am_sourceID_t source
- }
-} \ No newline at end of file
diff --git a/PluginRoutingInterfaceCAPI/fidl/deployment.fdepl b/PluginRoutingInterfaceCAPI/fidl/deployment.fdepl
deleted file mode 100644
index 3846ed4..0000000
--- a/PluginRoutingInterfaceCAPI/fidl/deployment.fdepl
+++ /dev/null
@@ -1,9 +0,0 @@
-specification org.genivi.commonapi.core.deployment.deployment {
- for interfaces {
- DefaultEnumBackingType: {UInt8, UInt16, UInt32, UInt64, Int8, Int16, Int32, Int64} (default: UInt32);
- }
-
- for enumerations {
- EnumBackingType: {UseDefault, UInt8, UInt16, UInt32, UInt64, Int8, Int16, Int32, Int64} (default: UseDefault);
- }
-}
diff --git a/PluginRoutingInterfaceCAPI/include/CAmLookupData.h b/PluginRoutingInterfaceCAPI/include/CAmLookupData.h
index c3bf93c..b46ba75 100644
--- a/PluginRoutingInterfaceCAPI/include/CAmLookupData.h
+++ b/PluginRoutingInterfaceCAPI/include/CAmLookupData.h
@@ -24,7 +24,7 @@
#include <memory>
#include <CommonAPI/CommonAPI.h>
#include "audiomanagertypes.h"
-#include <org/genivi/audiomanager/RoutingSenderProxy.h>
+#include <org/genivi/am/RoutingControlProxy.h>
#ifdef UNIT_TEST
#include "../test/IAmRoutingSenderBackdoor.h" //we need this for the unit test
@@ -33,7 +33,6 @@
namespace am {
using namespace CommonAPI;
-using namespace org::genivi::audiomanager;
/** A structure holding info for given domain.
* For every domain a single instance is created which is used by the lookup methods.
@@ -43,17 +42,17 @@ struct rs_lookupData_s
{
private:
bool mIsConnected; //!< bool indicating whether the domain is reachable or not
- std::shared_ptr<RoutingSenderProxy<>> mSenderProxy; //!< a pointer to the proxy object, which implements the connection out from AudioManager
+ std::shared_ptr<org::genivi::am::RoutingControlProxy<> > mSenderProxy; //!< a pointer to the proxy object, which implements the connection out from AudioManager
CommonAPI::ProxyStatusEvent::Subscription mSubscription; //!< subscription for the proxy system events
void onServiceStatusEvent(const CommonAPI::AvailabilityStatus& serviceStatus); //!< proxy status event callback
public:
- rs_lookupData_s(const std::shared_ptr<RoutingSenderProxy<> > & aProxy);
+ rs_lookupData_s(const std::shared_ptr<org::genivi::am::RoutingControlProxy<> > & aProxy);
~rs_lookupData_s();
/**
* returns the proxy object.
*/
- std::shared_ptr<RoutingSenderProxy<>> & getProxy();
+ std::shared_ptr<org::genivi::am::RoutingControlProxy<>> & getProxy();
/**
* returns whether the proxy object is connected or not.
*/
@@ -61,21 +60,21 @@ public:
/**
* proxy wrapping methods.
*/
- am_Error_e asyncAbort(const uint16_t handle, RoutingSenderProxyBase::AsyncAbortAsyncCallback);
- am_Error_e asyncConnect(const uint16_t handle, const am_connectionID_t, const am_sourceID_t, const am_sinkID_t, const am_ConnectionFormat_e, RoutingSenderProxyBase::AsyncConnectAsyncCallback);
- am_Error_e asyncDisconnect(const uint16_t handle, const am_connectionID_t, RoutingSenderProxyBase::AsyncDisconnectAsyncCallback);
- am_Error_e asyncSetSinkVolume(const uint16_t handle, const am_sinkID_t, const am_volume_t, const am_RampType_e, const am_time_t, RoutingSenderProxyBase::AsyncSetSinkVolumeAsyncCallback);
- am_Error_e asyncSetSourceVolume(const uint16_t handle, const am_sourceID_t , const am_volume_t, const am_RampType_e, const am_time_t, RoutingSenderProxyBase::AsyncSetSourceVolumeAsyncCallback);
- am_Error_e asyncSetSourceState(const uint16_t handle, const am_sourceID_t, const am_SourceState_e, RoutingSenderProxyBase::AsyncSetSourceStateAsyncCallback);
- am_Error_e asyncSetSinkSoundProperties(const uint16_t handle, const am_sinkID_t, const std::vector<am_SoundProperty_s>&, RoutingSenderProxyBase::AsyncSetSinkSoundPropertiesAsyncCallback);
- am_Error_e asyncSetSinkSoundProperty(const uint16_t handle, const am_sinkID_t, const am_SoundProperty_s&, RoutingSenderProxyBase::AsyncSetSinkSoundPropertyAsyncCallback);
- am_Error_e asyncSetSourceSoundProperties(const uint16_t handle, const am_sourceID_t, const std::vector<am_SoundProperty_s>&, RoutingSenderProxyBase::AsyncSetSourceSoundPropertiesAsyncCallback);
- am_Error_e asyncSetSourceSoundProperty(const uint16_t handle, const am_sourceID_t, const am_SoundProperty_s&, RoutingSenderProxyBase::AsyncSetSourceSoundPropertyAsyncCallback);
- am_Error_e asyncCrossFade(const uint16_t handle, const am_crossfaderID_t, const am_HotSink_e, const am_RampType_e, const am_time_t, RoutingSenderProxyBase::AsyncCrossFadeAsyncCallback);
- am_Error_e setDomainState(const am_domainID_t, const am_DomainState_e, RoutingSenderProxyBase::SetDomainStateAsyncCallback);
- am_Error_e asyncSetVolumes(const uint16_t handle, const std::vector<am_Volumes_s>&, RoutingSenderProxyBase::AsyncSetVolumesAsyncCallback);
- am_Error_e asyncSetSinkNotificationConfiguration(const uint16_t handle, const am_sinkID_t, const am_NotificationConfiguration_s&, RoutingSenderProxyBase::AsyncSetSinkNotificationConfigurationAsyncCallback);
- am_Error_e asyncSetSourceNotificationConfiguration(const uint16_t handle, const am_sourceID_t, const am_NotificationConfiguration_s&, RoutingSenderProxyBase::AsyncSetSourceNotificationConfigurationAsyncCallback);
+ am_Error_e asyncAbort(const am_Handle_s handle, org::genivi::am::RoutingControlProxyBase::AsyncAbortAsyncCallback);
+ am_Error_e asyncConnect(const am_Handle_s handle, const am_connectionID_t, const am_sourceID_t, const am_sinkID_t, const am_ConnectionFormat_e, org::genivi::am::RoutingControlProxyBase::AsyncConnectAsyncCallback);
+ am_Error_e asyncDisconnect(const am_Handle_s handle, const am_connectionID_t, org::genivi::am::RoutingControlProxyBase::AsyncDisconnectAsyncCallback);
+ am_Error_e asyncSetSinkVolume(const am_Handle_s handle, const am_sinkID_t, const am_volume_t, const am_RampType_e, const am_time_t, org::genivi::am::RoutingControlProxyBase::AsyncSetSinkVolumeAsyncCallback);
+ am_Error_e asyncSetSourceVolume(const am_Handle_s handle, const am_sourceID_t , const am_volume_t, const am_RampType_e, const am_time_t, org::genivi::am::RoutingControlProxyBase::AsyncSetSourceVolumeAsyncCallback);
+ am_Error_e asyncSetSourceState(const am_Handle_s handle, const am_sourceID_t, const am_SourceState_e, org::genivi::am::RoutingControlProxyBase::AsyncSetSourceStateAsyncCallback);
+ am_Error_e asyncSetSinkSoundProperties(const am_Handle_s handle, const am_sinkID_t, const std::vector<am_SoundProperty_s>&, org::genivi::am::RoutingControlProxyBase::AsyncSetSinkSoundPropertiesAsyncCallback);
+ am_Error_e asyncSetSinkSoundProperty(const am_Handle_s handle, const am_sinkID_t, const am_SoundProperty_s&, org::genivi::am::RoutingControlProxyBase::AsyncSetSinkSoundPropertyAsyncCallback);
+ am_Error_e asyncSetSourceSoundProperties(const am_Handle_s handle, const am_sourceID_t, const std::vector<am_SoundProperty_s>&, org::genivi::am::RoutingControlProxyBase::AsyncSetSourceSoundPropertiesAsyncCallback);
+ am_Error_e asyncSetSourceSoundProperty(const am_Handle_s handle, const am_sourceID_t, const am_SoundProperty_s&, org::genivi::am::RoutingControlProxyBase::AsyncSetSourceSoundPropertyAsyncCallback);
+ am_Error_e asyncCrossFade(const am_Handle_s handle, const am_crossfaderID_t, const am_HotSink_e, const am_RampType_e, const am_time_t, org::genivi::am::RoutingControlProxyBase::AsyncCrossFadeAsyncCallback);
+ am_Error_e setDomainState(const am_domainID_t, const am_DomainState_e, org::genivi::am::RoutingControlProxyBase::SetDomainStateAsyncCallback);
+ am_Error_e asyncSetVolumes(const am_Handle_s handle, const std::vector<am_Volumes_s>&, org::genivi::am::RoutingControlProxyBase::AsyncSetVolumesAsyncCallback);
+ am_Error_e asyncSetSinkNotificationConfiguration(const am_Handle_s handle, const am_sinkID_t, const am_NotificationConfiguration_s&, org::genivi::am::RoutingControlProxyBase::AsyncSetSinkNotificationConfigurationAsyncCallback);
+ am_Error_e asyncSetSourceNotificationConfiguration(const am_Handle_s handle, const am_sourceID_t, const am_NotificationConfiguration_s&, org::genivi::am::RoutingControlProxyBase::AsyncSetSourceNotificationConfigurationAsyncCallback);
};
@@ -125,12 +124,12 @@ public:
* @param aProxy is a proxy object constructed by registerDomain
*/
void addDomainLookup(am_domainID_t & domainID,
- std::shared_ptr<RoutingSenderProxy<>> & aProxy);
+ std::shared_ptr<org::genivi::am::RoutingControlProxy<>> & aProxy);
/** \brief removes given handle from the list.
*
*/
- void removeHandle(uint16_t handle);
+ void removeHandle(am_Handle_s handle);
/** \brief adds a lookup for given source in a given domain.
*
@@ -180,21 +179,21 @@ public:
/**
* Wrapping methods.
*/
- am_Error_e asyncAbort(const uint16_t, RoutingSenderProxyBase::AsyncAbortAsyncCallback);
- am_Error_e asyncConnect(const uint16_t , const am_connectionID_t, const am_sourceID_t, const am_sinkID_t, const am_ConnectionFormat_e, RoutingSenderProxyBase::AsyncConnectAsyncCallback);
- am_Error_e asyncDisconnect(const uint16_t , const am_connectionID_t, RoutingSenderProxyBase::AsyncDisconnectAsyncCallback);
- am_Error_e asyncSetSinkVolume(const uint16_t , const am_sinkID_t, const am_volume_t, const am_RampType_e, const am_time_t, RoutingSenderProxyBase::AsyncSetSinkVolumeAsyncCallback);
- am_Error_e asyncSetSourceVolume(const uint16_t , const am_sourceID_t , const am_volume_t, const am_RampType_e, const am_time_t, RoutingSenderProxyBase::AsyncSetSourceVolumeAsyncCallback);
- am_Error_e asyncSetSourceState(const uint16_t , const am_sourceID_t, const am_SourceState_e, RoutingSenderProxyBase::AsyncSetSourceStateAsyncCallback);
- am_Error_e asyncSetSinkSoundProperties(const uint16_t , const am_sinkID_t, const std::vector<am_SoundProperty_s>&, RoutingSenderProxyBase::AsyncSetSinkSoundPropertiesAsyncCallback);
- am_Error_e asyncSetSinkSoundProperty(const uint16_t , const am_sinkID_t, const am_SoundProperty_s&, RoutingSenderProxyBase::AsyncSetSinkSoundPropertyAsyncCallback);
- am_Error_e asyncSetSourceSoundProperties(const uint16_t , const am_sourceID_t, const std::vector<am_SoundProperty_s>&, RoutingSenderProxyBase::AsyncSetSourceSoundPropertiesAsyncCallback);
- am_Error_e asyncSetSourceSoundProperty(const uint16_t , const am_sourceID_t, const am_SoundProperty_s&, RoutingSenderProxyBase::AsyncSetSourceSoundPropertyAsyncCallback);
- am_Error_e asyncCrossFade(const uint16_t , const am_crossfaderID_t, const am_HotSink_e, const am_RampType_e, const am_time_t, RoutingSenderProxyBase::AsyncCrossFadeAsyncCallback);
- am_Error_e setDomainState(const am_domainID_t, const am_DomainState_e, RoutingSenderProxyBase::SetDomainStateAsyncCallback);
- am_Error_e asyncSetVolumes(const uint16_t , const std::vector<am_Volumes_s>&, RoutingSenderProxyBase::AsyncSetVolumesAsyncCallback);
- am_Error_e asyncSetSinkNotificationConfiguration(const uint16_t , const am_sinkID_t, const am_NotificationConfiguration_s&, RoutingSenderProxyBase::AsyncSetSinkNotificationConfigurationAsyncCallback);
- am_Error_e asyncSetSourceNotificationConfiguration(const uint16_t , const am_sourceID_t, const am_NotificationConfiguration_s&, RoutingSenderProxyBase::AsyncSetSourceNotificationConfigurationAsyncCallback);
+ am_Error_e asyncAbort(const am_Handle_s, org::genivi::am::RoutingControlProxyBase::AsyncAbortAsyncCallback);
+ am_Error_e asyncConnect(const am_Handle_s , const am_connectionID_t, const am_sourceID_t, const am_sinkID_t, const am_ConnectionFormat_e, org::genivi::am::RoutingControlProxyBase::AsyncConnectAsyncCallback);
+ am_Error_e asyncDisconnect(const am_Handle_s , const am_connectionID_t, org::genivi::am::RoutingControlProxyBase::AsyncDisconnectAsyncCallback);
+ am_Error_e asyncSetSinkVolume(const am_Handle_s , const am_sinkID_t, const am_volume_t, const am_RampType_e, const am_time_t, org::genivi::am::RoutingControlProxyBase::AsyncSetSinkVolumeAsyncCallback);
+ am_Error_e asyncSetSourceVolume(const am_Handle_s , const am_sourceID_t , const am_volume_t, const am_RampType_e, const am_time_t, org::genivi::am::RoutingControlProxyBase::AsyncSetSourceVolumeAsyncCallback);
+ am_Error_e asyncSetSourceState(const am_Handle_s , const am_sourceID_t, const am_SourceState_e, org::genivi::am::RoutingControlProxyBase::AsyncSetSourceStateAsyncCallback);
+ am_Error_e asyncSetSinkSoundProperties(const am_Handle_s , const am_sinkID_t, const std::vector<am_SoundProperty_s>&, org::genivi::am::RoutingControlProxyBase::AsyncSetSinkSoundPropertiesAsyncCallback);
+ am_Error_e asyncSetSinkSoundProperty(const am_Handle_s , const am_sinkID_t, const am_SoundProperty_s&, org::genivi::am::RoutingControlProxyBase::AsyncSetSinkSoundPropertyAsyncCallback);
+ am_Error_e asyncSetSourceSoundProperties(const am_Handle_s , const am_sourceID_t, const std::vector<am_SoundProperty_s>&, org::genivi::am::RoutingControlProxyBase::AsyncSetSourceSoundPropertiesAsyncCallback);
+ am_Error_e asyncSetSourceSoundProperty(const am_Handle_s , const am_sourceID_t, const am_SoundProperty_s&, org::genivi::am::RoutingControlProxyBase::AsyncSetSourceSoundPropertyAsyncCallback);
+ am_Error_e asyncCrossFade(const am_Handle_s , const am_crossfaderID_t, const am_HotSink_e, const am_RampType_e, const am_time_t, org::genivi::am::RoutingControlProxyBase::AsyncCrossFadeAsyncCallback);
+ am_Error_e setDomainState(const am_domainID_t, const am_DomainState_e, org::genivi::am::RoutingControlProxyBase::SetDomainStateAsyncCallback);
+ am_Error_e asyncSetVolumes(const am_Handle_s , const std::vector<am_Volumes_s>&, org::genivi::am::RoutingControlProxyBase::AsyncSetVolumesAsyncCallback);
+ am_Error_e asyncSetSinkNotificationConfiguration(const am_Handle_s , const am_sinkID_t, const am_NotificationConfiguration_s&, org::genivi::am::RoutingControlProxyBase::AsyncSetSinkNotificationConfigurationAsyncCallback);
+ am_Error_e asyncSetSourceNotificationConfiguration(const am_Handle_s , const am_sourceID_t, const am_NotificationConfiguration_s&, org::genivi::am::RoutingControlProxyBase::AsyncSetSourceNotificationConfigurationAsyncCallback);
#ifdef UNIT_TEST
friend class IAmRoutingSenderBackdoor;
#endif
diff --git a/PluginRoutingInterfaceCAPI/include/CAmRoutingSenderCAPI.h b/PluginRoutingInterfaceCAPI/include/CAmRoutingSenderCAPI.h
index dc7f081..272b962 100644
--- a/PluginRoutingInterfaceCAPI/include/CAmRoutingSenderCAPI.h
+++ b/PluginRoutingInterfaceCAPI/include/CAmRoutingSenderCAPI.h
@@ -30,14 +30,12 @@
namespace am
{
using namespace CommonAPI;
-using namespace org::genivi::audiomanager;
#define ROUTING_NODE "routinginterface"
class CAmRoutingSenderCAPI: public IAmRoutingSend
{
bool mIsServiceStarted;
- bool mReady; ///< bool indicating whether the plugin have got
CAmLookupData mLookupData; ///< an object which implements the lookup mechanism
CAmCommonAPIWrapper *mpCAmCAPIWrapper; ///< pointer to the common-api wrapper
IAmRoutingReceive *mpIAmRoutingReceive; ///< pointer to the routing receive interface
diff --git a/PluginRoutingInterfaceCAPI/include/CAmRoutingSenderCommon.h b/PluginRoutingInterfaceCAPI/include/CAmRoutingSenderCommon.h
index 63c9ea8..e30f18f 100644
--- a/PluginRoutingInterfaceCAPI/include/CAmRoutingSenderCommon.h
+++ b/PluginRoutingInterfaceCAPI/include/CAmRoutingSenderCommon.h
@@ -20,40 +20,42 @@
#include <memory>
#include "audiomanagertypes.h"
-#include <org/genivi/audiomanager/am_gen.h>
+#include <org/genivi/am.h>
using namespace am;
-using namespace org::genivi::audiomanager;
using namespace CommonAPI;
/**
* Utility functions
*/
-extern void CAmConvertCAPI2AM(const am_gen::am_Domain_s &, am_Domain_s &);
-extern void CAmConvertCAPI2AM(const am_gen::sourceData_s & , am::am_Source_s & );
-extern void CAmConvertCAPI2AM(const am_gen::sinkData_s & , am::am_Sink_s & );
-extern void CAmConvertCAPI2AM(const am_gen::am_Availability_s & , am_Availability_s & );
-extern void CAmConvertCAPI2AM(const am_gen::am_SoundProperty_s &, am::am_SoundProperty_s &);
-extern void CAmConvertCAPI2AM(const am_gen::am_MainSoundProperty_s &, am::am_MainSoundProperty_s & );
-extern void CAmConvertCAPI2AM(const am_gen::am_NotificationConfiguration_s & , am::am_NotificationConfiguration_s & );
-extern void CAmConvertCAPI2AM(const am_gen::am_Gateway_s & , am::am_Gateway_s & );
-extern void CAmConvertCAPI2AM(const am_gen::crossfaderData_s & , am::am_Crossfader_s & );
-extern void CAmConvertCAPI2AM(const am_gen::am_EarlyData_s & , am::am_EarlyData_s & );
-extern void CAmConvertCAPI2AM(const am_gen::am_EarlyData_u &, am::am_EarlyData_u & );
-extern void CAmConvertCAPI2AM(const am_gen::am_DataType_u & , am::am_DataType_u & );
-extern void CAmConvertCAPI2AM(const am_gen::am_Volumes_s &, am::am_Volumes_s &);
-extern void CAmConvertCAPI2AM(const am_gen::notificationPayload_s & , am::am_NotificationPayload_s & );
-extern void CAmConvertCAPIVector2AM(const std::vector<am_gen::am_NotificationConfiguration_s> & , std::vector<am::am_NotificationConfiguration_s> & );
-extern void CAmConvertCAPIVector2AM(const std::vector<am_gen::am_SoundProperty_s> &, std::vector<am::am_SoundProperty_s> &);
-extern void CAmConvertCAPIVector2AM(const std::vector<am_gen::am_ConnectionFormat_e> &, std::vector<am::am_ConnectionFormat_e> & );
-extern void CAmConvertCAPIVector2AM(const std::vector<am_gen::am_MainSoundProperty_s> &, std::vector<am::am_MainSoundProperty_s> & );
-extern void CAmConvertCAPIVector2AM(const std::vector<am_gen::am_Volumes_s> &, std::vector<am::am_Volumes_s> & );
+extern void CAmConvertCAPI2AM(const org::genivi::am::am_Domain_s &, am_Domain_s &);
+extern void CAmConvertCAPI2AM(const org::genivi::am::am_Source_s & , am::am_Source_s & );
+extern void CAmConvertCAPI2AM(const org::genivi::am::am_Sink_s & , am::am_Sink_s & );
+extern void CAmConvertCAPI2AM(const org::genivi::am::am_Availability_s & , am_Availability_s & );
+extern void CAmConvertCAPI2AM(const org::genivi::am::am_SoundProperty_s &, am::am_SoundProperty_s &);
+extern void CAmConvertCAPI2AM(const org::genivi::am::am_MainSoundProperty_s &, am::am_MainSoundProperty_s & );
+extern void CAmConvertCAPI2AM(const org::genivi::am::am_NotificationConfiguration_s & , am::am_NotificationConfiguration_s & );
+extern void CAmConvertCAPI2AM(const org::genivi::am::am_Gateway_s & , am::am_Gateway_s & );
+extern void CAmConvertCAPI2AM(const org::genivi::am::am_Crossfader_s & , am::am_Crossfader_s & );
+extern void CAmConvertCAPI2AM(const org::genivi::am::am_EarlyData_s & , am::am_EarlyData_s & );
+extern void CAmConvertCAPI2AM(const org::genivi::am::am_EarlyData_u &, am::am_EarlyData_u & );
+extern void CAmConvertCAPI2AM(const org::genivi::am::am_DataType_u & , am::am_DataType_u & );
+extern void CAmConvertCAPI2AM(const org::genivi::am::am_Volumes_s &, am::am_Volumes_s &);
+extern void CAmConvertCAPI2AM(const org::genivi::am::am_Handle_s &, am::am_Handle_s &);
+extern void CAmConvertCAPI2AM(const org::genivi::am::am_NotificationPayload_s & , am::am_NotificationPayload_s & );
+extern void CAmConvertCAPIVector2AM(const std::vector<org::genivi::am::am_NotificationConfiguration_s> & , std::vector<am::am_NotificationConfiguration_s> & );
+extern void CAmConvertCAPIVector2AM(const std::vector<org::genivi::am::am_SoundProperty_s> &, std::vector<am::am_SoundProperty_s> &);
+extern void CAmConvertCAPIVector2AM(const std::vector<org::genivi::am::am_ConnectionFormat_pe> &, std::vector<am::am_ConnectionFormat_e> & );
+extern void CAmConvertCAPIVector2AM(const std::vector<org::genivi::am::am_MainSoundProperty_s> &, std::vector<am::am_MainSoundProperty_s> & );
+extern void CAmConvertCAPIVector2AM(const std::vector<org::genivi::am::am_Volumes_s> &, std::vector<am::am_Volumes_s> & );
+extern void CAmConvertCAPIVector2AM(const org::genivi::am::am_EarlyData_L &, std::vector<am::am_EarlyData_s> &);
-extern void CAmConvertAM2CAPI(const am_Availability_s & , am_gen::am_Availability_s & );
-extern void CAmConvertAM2CAPI(const am::am_SoundProperty_s &, am_gen::am_SoundProperty_s &);
-extern void CAmConvertAM2CAPI(const am::am_NotificationConfiguration_s &, am_gen::am_NotificationConfiguration_s &);
-extern void CAmConvertAM2CAPI(const am::am_Volumes_s &, am_gen::am_Volumes_s &);
-extern void CAmConvertAMVector2CAPI(const std::vector<am::am_SoundProperty_s> &, std::vector<am_gen::am_SoundProperty_s> &);
-extern void CAmConvertAMVector2CAPI(const std::vector<am::am_Volumes_s> & , std::vector<am_gen::am_Volumes_s> & );
+extern void CAmConvertAM2CAPI(const am_Availability_s & , org::genivi::am::am_Availability_s & );
+extern void CAmConvertAM2CAPI(const am::am_SoundProperty_s &, org::genivi::am::am_SoundProperty_s &);
+extern void CAmConvertAM2CAPI(const am::am_NotificationConfiguration_s &, org::genivi::am::am_NotificationConfiguration_s &);
+extern void CAmConvertAM2CAPI(const am::am_Volumes_s &, org::genivi::am::am_Volumes_s &);
+extern void CAmConvertAMVector2CAPI(const std::vector<am::am_SoundProperty_s> &, std::vector<org::genivi::am::am_SoundProperty_s> &);
+extern void CAmConvertAMVector2CAPI(const std::vector<am::am_Volumes_s> & , std::vector<org::genivi::am::am_Volumes_s> & );
+extern void CAmConvertAM2CAPI(const am::am_Handle_s &, org::genivi::am::am_Handle_s &);
#endif /* CAMROUTINGSENDERCOMMON_H_ */
diff --git a/PluginRoutingInterfaceCAPI/include/CAmRoutingService.h b/PluginRoutingInterfaceCAPI/include/CAmRoutingService.h
index d4d1382..1018708 100644
--- a/PluginRoutingInterfaceCAPI/include/CAmRoutingService.h
+++ b/PluginRoutingInterfaceCAPI/include/CAmRoutingService.h
@@ -18,7 +18,7 @@
#ifndef CAMROUTINGSERVICE_H_
#define CAMROUTINGSERVICE_H_
-#include <org/genivi/audiomanager/RoutingInterfaceStubDefault.h>
+#include <org/genivi/am/RoutingControlObserverStubDefault.h>
#include "../../include/routing/IAmRoutingReceive.h"
#include "CAmLookupData.h"
@@ -27,12 +27,11 @@ namespace am {
class CAmCommonAPIWrapper;
using namespace CommonAPI;
-using namespace org::genivi::audiomanager;
/** Routing interface stub implementation.
* This class is the routing interface service for the Audio Manager.
*/
-class CAmRoutingService: public RoutingInterfaceStubDefault {
+class CAmRoutingService: public org::genivi::am::RoutingControlObserverStubDefault {
CAmCommonAPIWrapper *mpCAmCAPIWrapper; ///< pointer to common-api wrapper
IAmRoutingReceive* mpIAmRoutingReceive; ///< pointer to the routing receive interface
CAmLookupData* mpLookpData; ///< pointer to the plugin's lookup mechanism implementation
@@ -50,98 +49,94 @@ public:
*
*/
- virtual void ackConnect(uint16_t handle, am_gen::am_connectionID_t connectionID, uint16_t error);
+ void ackConnect(org::genivi::am::am_Handle_s handle, org::genivi::am::am_connectionID_t connectionID, org::genivi::am::am_Error_e error);
- virtual void ackDisconnect(uint16_t handle, am_gen::am_connectionID_t connectionID, uint16_t error);
+ void ackDisconnect(org::genivi::am::am_Handle_s handle, org::genivi::am::am_connectionID_t connectionID, org::genivi::am::am_Error_e error);
- virtual void ackSetSinkVolume(uint16_t handle, am_gen::am_volume_t volume, uint16_t error);
+ void ackSetSinkVolumeChange(org::genivi::am::am_Handle_s handle, org::genivi::am::am_volume_t volume, org::genivi::am::am_Error_e error);
- virtual void ackSetSourceVolume(uint16_t handle, am_gen::am_volume_t volume, uint16_t error);
+ void ackSetSourceVolumeChange(org::genivi::am::am_Handle_s handle, org::genivi::am::am_volume_t volume, org::genivi::am::am_Error_e error);
- virtual void ackSetSourceState(uint16_t handle, uint16_t error);
+ void ackSetSourceState(org::genivi::am::am_Handle_s handle, org::genivi::am::am_Error_e error);
- virtual void ackSetSinkSoundProperties(uint16_t handle, uint16_t error);
+ void ackSetSinkSoundProperties(org::genivi::am::am_Handle_s handle, org::genivi::am::am_Error_e error);
- virtual void ackSetSinkSoundProperty(uint16_t handle, uint16_t error);
+ void ackSetSinkSoundProperty(org::genivi::am::am_Handle_s handle, org::genivi::am::am_Error_e error);
- virtual void ackSetSourceSoundProperties(uint16_t handle, uint16_t error);
+ void ackSetSourceSoundProperties(org::genivi::am::am_Handle_s handle, org::genivi::am::am_Error_e error);
- virtual void ackSetSourceSoundProperty(uint16_t handle, uint16_t error);
+ void ackSetSourceSoundProperty(org::genivi::am::am_Handle_s handle, org::genivi::am::am_Error_e error);
- virtual void ackCrossFading(uint16_t handle, am_gen::am_HotSink_e hotSink, am_gen::am_Error_e returnError);
+ void ackCrossFading(org::genivi::am::am_Handle_s handle, org::genivi::am::am_HotSink_e hotSink, org::genivi::am::am_Error_e error);
- virtual void ackSourceVolumeTick(uint16_t handle, am_gen::am_sourceID_t source, am_gen::am_volume_t volume);
+ void ackSourceVolumeTick(org::genivi::am::am_Handle_s handle, org::genivi::am::am_sourceID_t source, org::genivi::am::am_volume_t volume);
- virtual void ackSinkVolumeTick(uint16_t handle, am_gen::am_sinkID_t sink, am_gen::am_volume_t volume);
+ void ackSinkVolumeTick(org::genivi::am::am_Handle_s handle, org::genivi::am::am_sinkID_t sink, org::genivi::am::am_volume_t volume);
- virtual void peekDomain(std::string name, am_gen::am_domainID_t& domainID, am_gen::am_Error_e& error);
+ void peekDomain(std::string name, org::genivi::am::am_domainID_t& domainID, org::genivi::am::am_Error_e& error);
- virtual void registerDomain(am_gen::am_Domain_s domainData, std::string returnBusname, std::string returnPath, std::string returnInterface, am_gen::am_domainID_t& domainID, am_gen::am_Error_e& error);
+ void registerDomain(org::genivi::am::am_Domain_s domainData, std::string returnBusname, std::string, std::string returnInterface, org::genivi::am::am_domainID_t& domainID, org::genivi::am::am_Error_e& error);
- virtual void deregisterDomain(am_gen::am_domainID_t domainID, am_gen::am_Error_e& returnError);
+ void deregisterDomain(org::genivi::am::am_domainID_t domainID, org::genivi::am::am_Error_e& returnError);
- virtual void registerGateway(am_gen::am_Gateway_s gatewayData, am_gen::am_gatewayID_t& gatewayID, am_gen::am_Error_e& error);
+ void registerGateway(org::genivi::am::am_Gateway_s gatewayData, org::genivi::am::am_gatewayID_t& gatewayID, org::genivi::am::am_Error_e& error);
- virtual void deregisterGateway(am_gen::am_gatewayID_t gatewayID, am_gen::am_Error_e& returnError);
+ void deregisterGateway(org::genivi::am::am_gatewayID_t gatewayID, org::genivi::am::am_Error_e& returnError);
- virtual void peekSink(std::string name, am_gen::am_sinkID_t& sinkID, am_gen::am_Error_e& error);
+ void peekSink(std::string name, org::genivi::am::am_sinkID_t& sinkID, org::genivi::am::am_Error_e& error);
- virtual void registerSink(am_gen::sinkData_s sinkData, am_gen::am_sinkID_t& sinkID, am_gen::am_Error_e& error);
+ void registerSink(org::genivi::am::am_Sink_s sinkData, org::genivi::am::am_sinkID_t& sinkID, org::genivi::am::am_Error_e& error);
- virtual void deregisterSink(am_gen::am_sinkID_t sinkID, am_gen::am_Error_e& returnError);
+ void deregisterSink(org::genivi::am::am_sinkID_t sinkID, org::genivi::am::am_Error_e& returnError);
- virtual void peekSource(std::string name, am_gen::am_sourceID_t& sourceID, am_gen::am_Error_e& error);
+ void peekSource(std::string name, org::genivi::am::am_sourceID_t& sourceID, org::genivi::am::am_Error_e& error);
- virtual void registerSource(am_gen::sourceData_s sourceData, am_gen::am_sourceID_t& sourceID, am_gen::am_Error_e& error);
+ void registerSource(org::genivi::am::am_Source_s sourceData, org::genivi::am::am_sourceID_t& sourceID, org::genivi::am::am_Error_e& error);
- virtual void deregisterSource(am_gen::am_sourceID_t sourceID, am_gen::am_Error_e& returnError);
+ void deregisterSource(org::genivi::am::am_sourceID_t sourceID, org::genivi::am::am_Error_e& returnError);
- virtual void registerCrossfader(am_gen::crossfaderData_s crossfaderData, am_gen::am_crossfaderID_t& crossfaderID, am_gen::am_Error_e& error);
+ void registerCrossfader(org::genivi::am::am_Crossfader_s crossfaderData, org::genivi::am::am_crossfaderID_t& crossfaderID, org::genivi::am::am_Error_e& error);
- virtual void deregisterCrossfader(am_gen::am_crossfaderID_t crossfaderID, am_gen::am_Error_e& returnError);
+ void deregisterCrossfader(org::genivi::am::am_crossfaderID_t crossfaderID, org::genivi::am::am_Error_e& returnError);
- virtual void peekSourceClassID(std::string name, am_gen::am_sourceClass_t& sourceClassID, am_gen::am_Error_e& error);
+ void peekSourceClassID(std::string name, org::genivi::am::am_sourceClass_t& sourceClassID, org::genivi::am::am_Error_e& error);
- virtual void peekSinkClassID(std::string name, am_gen::am_sinkClass_t& sinkClassID, am_gen::am_Error_e& error);
+ void peekSinkClassID(std::string name, org::genivi::am::am_sinkClass_t& sinkClassID, org::genivi::am::am_Error_e& error);
- virtual void hookInterruptStatusChange(am_gen::am_sourceID_t sourceID, uint16_t interruptState);
+ void hookInterruptStatusChange(org::genivi::am::am_sourceID_t sourceID, org::genivi::am::am_InterruptState_e InterruptState);
- virtual void hookDomainRegistrationComplete(am_gen::am_domainID_t domainID);
+ void hookDomainRegistrationComplete(org::genivi::am::am_domainID_t domainID);
- virtual void hookSinkAvailablityStatusChange(am_gen::am_sinkID_t sinkID, am_gen::am_Availability_s availability);
+ void hookSinkAvailablityStatusChange(org::genivi::am::am_sinkID_t sinkID, org::genivi::am::am_Availability_s availability);
- virtual void hookSourceAvailablityStatusChange(am_gen::am_sourceID_t sourceID, am_gen::am_Availability_s availability);
+ void hookSourceAvailablityStatusChange(org::genivi::am::am_sourceID_t sourceID, org::genivi::am::am_Availability_s availability);
- virtual void hookDomainStateChange(am_gen::am_domainID_t domainID, am_gen::am_DomainState_e domainState);
+ void hookDomainStateChange(org::genivi::am::am_domainID_t domainID, org::genivi::am::am_DomainState_e domainState);
- virtual void hookTimingInformationChanged(am_gen::am_connectionID_t connectionID, int16_t delay);
+ void hookTimingInformationChanged(org::genivi::am::am_connectionID_t connectionID, int16_t delay);
- virtual void sendChangedData(am_gen::am_EarlyData_l earlyData_volumes, am_gen::am_EarlyData_l earlyData_soundproperties);
+ void sendChangedData(org::genivi::am::am_EarlyData_L earlyData);
- virtual void confirmRoutingReady(am_gen::am_domainID_t domainID);
+ void updateGateway(org::genivi::am::am_gatewayID_t gatewayID, org::genivi::am::am_ConnectionFormat_L listSourceFormats, org::genivi::am::am_ConnectionFormat_L listSinkFormats, org::genivi::am::am_Convertion_L convertionMatrix, org::genivi::am::am_Error_e& error);
- virtual void confirmRoutingRundown(am_gen::am_domainID_t domainID);
+ void updateSink(org::genivi::am::am_sinkID_t sinkID, org::genivi::am::am_sinkClass_t sinkClassID, org::genivi::am::am_SoundProperty_L listSoundProperties, org::genivi::am::am_ConnectionFormat_L listConnectionFormats, org::genivi::am::am_MainSoundProperty_L listMainSoundProperties, org::genivi::am::am_Error_e& error);
- virtual void updateGateway(am_gen::am_gatewayID_t gatewayID, am_gen::am_ConnectionFormat_L listSourceFormats, am_gen::am_ConnectionFormat_L listSinkFormats, am_gen::bool_L convertionMatrix);
+ void updateSource(org::genivi::am::am_sourceID_t sourceID, org::genivi::am::am_sourceClass_t sourceClassID, org::genivi::am::am_SoundProperty_L listSoundProperties, org::genivi::am::am_ConnectionFormat_L listConnectionFormats, org::genivi::am::am_MainSoundProperty_L listMainSoundProperties, org::genivi::am::am_Error_e& error);
- virtual void updateSink(am_gen::am_sinkID_t sinkID, am_gen::am_sinkClass_t sinkClassID, am_gen::am_SoundProperty_L listSoundProperties, am_gen::am_ConnectionFormat_L listConnectionFormats, am_gen::am_MainSoundProperty_L listMainSoundProperties);
+ void ackSetVolumes(org::genivi::am::am_Handle_s handle , org::genivi::am::am_Volumes_L listVolumes, org::genivi::am::am_Error_e error);
- virtual void updateSource(am_gen::am_sourceID_t sourceID, am_gen::am_sourceClass_t sourceClassID, am_gen::am_SoundProperty_L listSoundProperties, am_gen::am_ConnectionFormat_L listConnectionFormats, am_gen::am_MainSoundProperty_L listMainSoundProperties);
+ void ackSinkNotificationConfiguration (org::genivi::am::am_Handle_s handle, org::genivi::am::am_Error_e error);
- virtual void ackSetVolumes(uint16_t handle, am_gen::am_Volumes_l listVolumes, uint16_t error);
+ void ackSourceNotificationConfiguration(org::genivi::am::am_Handle_s handle, org::genivi::am::am_Error_e error);
- virtual void ackSinkNotificationConfiguration(uint16_t handle, uint16_t error);
+ void hookSinkNotificationDataChange(org::genivi::am::am_sinkID_t sinkID, org::genivi::am::am_NotificationPayload_s payload);
- virtual void ackSourceNotificationConfiguration(uint16_t handle, uint16_t error);
+ void hookSourceNotificationDataChange(org::genivi::am::am_sourceID_t sourceID, org::genivi::am::am_NotificationPayload_s payload);
- virtual void hookSinkNotificationDataChange(am_gen::am_sinkID_t sinkID, am_gen::notificationPayload_s payload);
+ void confirmRoutingRundown(std::string domainName);
- virtual void hookSourceNotificationDataChange(am_gen::am_sourceID_t sourceID, am_gen::notificationPayload_s payload);
-
- virtual void getRoutingReadyState(bool& readyState);
-
- void gotReady(int16_t numberDomains, uint16_t handle);
void gotRundown(int16_t numberDomains, uint16_t handle);
+
};
} /* namespace am */
diff --git a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am.cpp b/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am.cpp
new file mode 100644
index 0000000..01169e7
--- /dev/null
+++ b/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am.cpp
@@ -0,0 +1,910 @@
+/*
+* This file was generated by the CommonAPI Generators.
+*
+ * Copyright (C) 2013, BMW AG
+ *
+ * \author Christian Linke, christian.linke@bmw.de BMW 2012,2013
+*/
+#include "am.h"
+
+
+namespace org {
+namespace genivi {
+namespace am {
+
+am_Route_s::am_Route_s(const am_sourceID_t& sourceIDValue, const am_sinkID_t& sinkIDValue, const am_RoutingElement_L& routeValue):
+ sourceID(sourceIDValue),
+ sinkID(sinkIDValue),
+ route(routeValue)
+{
+}
+
+
+bool operator==(const am_Route_s& lhs, const am_Route_s& rhs) {
+ if (&lhs == &rhs)
+ return true;
+
+ return
+ lhs.sourceID == rhs.sourceID &&
+ lhs.sinkID == rhs.sinkID &&
+ lhs.route == rhs.route
+ ;
+}
+
+void am_Route_s::readFromInputStream(CommonAPI::InputStream& inputStream) {
+ inputStream >> sourceID;
+ inputStream >> sinkID;
+ inputStream >> route;
+}
+
+void am_Route_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const {
+ outputStream << sourceID;
+ outputStream << sinkID;
+ outputStream << route;
+}
+am_Availability_s::am_Availability_s(const am_Availability_e& availabilityValue, const am_AvailabilityReason_pe& availabilityReasonValue):
+ availability(availabilityValue),
+ availabilityReason(availabilityReasonValue)
+{
+}
+
+
+bool operator==(const am_Availability_s& lhs, const am_Availability_s& rhs) {
+ if (&lhs == &rhs)
+ return true;
+
+ return
+ lhs.availability == rhs.availability &&
+ lhs.availabilityReason == rhs.availabilityReason
+ ;
+}
+
+void am_Availability_s::readFromInputStream(CommonAPI::InputStream& inputStream) {
+ inputStream >> availability;
+ inputStream >> availabilityReason;
+}
+
+void am_Availability_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const {
+ outputStream << availability;
+ outputStream << availabilityReason;
+}
+am_ClassProperty_s::am_ClassProperty_s(const am_ClassProperty_pe& classPropertyValue, const int16_t& valueValue):
+ classProperty(classPropertyValue),
+ value(valueValue)
+{
+}
+
+
+bool operator==(const am_ClassProperty_s& lhs, const am_ClassProperty_s& rhs) {
+ if (&lhs == &rhs)
+ return true;
+
+ return
+ lhs.classProperty == rhs.classProperty &&
+ lhs.value == rhs.value
+ ;
+}
+
+void am_ClassProperty_s::readFromInputStream(CommonAPI::InputStream& inputStream) {
+ inputStream >> classProperty;
+ inputStream >> value;
+}
+
+void am_ClassProperty_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const {
+ outputStream << classProperty;
+ outputStream << value;
+}
+am_Crossfader_s::am_Crossfader_s(const am_crossfaderID_t& crossfaderIDValue, const std::string& nameValue, const am_sinkID_t& sinkID_AValue, const am_sinkID_t& sinkID_BValue, const am_sourceID_t& sourceIDValue, const am_HotSink_e& hotSinkValue):
+ crossfaderID(crossfaderIDValue),
+ name(nameValue),
+ sinkID_A(sinkID_AValue),
+ sinkID_B(sinkID_BValue),
+ sourceID(sourceIDValue),
+ hotSink(hotSinkValue)
+{
+}
+
+
+bool operator==(const am_Crossfader_s& lhs, const am_Crossfader_s& rhs) {
+ if (&lhs == &rhs)
+ return true;
+
+ return
+ lhs.crossfaderID == rhs.crossfaderID &&
+ lhs.name == rhs.name &&
+ lhs.sinkID_A == rhs.sinkID_A &&
+ lhs.sinkID_B == rhs.sinkID_B &&
+ lhs.sourceID == rhs.sourceID &&
+ lhs.hotSink == rhs.hotSink
+ ;
+}
+
+void am_Crossfader_s::readFromInputStream(CommonAPI::InputStream& inputStream) {
+ inputStream >> crossfaderID;
+ inputStream >> name;
+ inputStream >> sinkID_A;
+ inputStream >> sinkID_B;
+ inputStream >> sourceID;
+ inputStream >> hotSink;
+}
+
+void am_Crossfader_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const {
+ outputStream << crossfaderID;
+ outputStream << name;
+ outputStream << sinkID_A;
+ outputStream << sinkID_B;
+ outputStream << sourceID;
+ outputStream << hotSink;
+}
+am_Gateway_s::am_Gateway_s(const am_gatewayID_t& gatewayIDValue, const std::string& nameValue, const am_sinkID_t& sinkIDValue, const am_sourceID_t& sourceIDValue, const am_domainID_t& domainSinkIDValue, const am_domainID_t& domainSourceIDValue, const am_domainID_t& controlDomainIDValue, const am_ConnectionFormat_L& listSourceFormatsValue, const am_ConnectionFormat_L& listSinkFormatsValue, const am_Convertion_L& convertionMatrixValue):
+ gatewayID(gatewayIDValue),
+ name(nameValue),
+ sinkID(sinkIDValue),
+ sourceID(sourceIDValue),
+ domainSinkID(domainSinkIDValue),
+ domainSourceID(domainSourceIDValue),
+ controlDomainID(controlDomainIDValue),
+ listSourceFormats(listSourceFormatsValue),
+ listSinkFormats(listSinkFormatsValue),
+ convertionMatrix(convertionMatrixValue)
+{
+}
+
+
+bool operator==(const am_Gateway_s& lhs, const am_Gateway_s& rhs) {
+ if (&lhs == &rhs)
+ return true;
+
+ return
+ lhs.gatewayID == rhs.gatewayID &&
+ lhs.name == rhs.name &&
+ lhs.sinkID == rhs.sinkID &&
+ lhs.sourceID == rhs.sourceID &&
+ lhs.domainSinkID == rhs.domainSinkID &&
+ lhs.domainSourceID == rhs.domainSourceID &&
+ lhs.controlDomainID == rhs.controlDomainID &&
+ lhs.listSourceFormats == rhs.listSourceFormats &&
+ lhs.listSinkFormats == rhs.listSinkFormats &&
+ lhs.convertionMatrix == rhs.convertionMatrix
+ ;
+}
+
+void am_Gateway_s::readFromInputStream(CommonAPI::InputStream& inputStream) {
+ inputStream >> gatewayID;
+ inputStream >> name;
+ inputStream >> sinkID;
+ inputStream >> sourceID;
+ inputStream >> domainSinkID;
+ inputStream >> domainSourceID;
+ inputStream >> controlDomainID;
+ inputStream >> listSourceFormats;
+ inputStream >> listSinkFormats;
+ inputStream >> convertionMatrix;
+}
+
+void am_Gateway_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const {
+ outputStream << gatewayID;
+ outputStream << name;
+ outputStream << sinkID;
+ outputStream << sourceID;
+ outputStream << domainSinkID;
+ outputStream << domainSourceID;
+ outputStream << controlDomainID;
+ outputStream << listSourceFormats;
+ outputStream << listSinkFormats;
+ outputStream << convertionMatrix;
+}
+am_RoutingElement_s::am_RoutingElement_s(const am_sourceID_t& sourceIDValue, const am_sinkID_t& sinkIDValue, const am_domainID_t& domainIDValue, const am_ConnectionFormat_pe& connectionFormatValue):
+ sourceID(sourceIDValue),
+ sinkID(sinkIDValue),
+ domainID(domainIDValue),
+ connectionFormat(connectionFormatValue)
+{
+}
+
+
+bool operator==(const am_RoutingElement_s& lhs, const am_RoutingElement_s& rhs) {
+ if (&lhs == &rhs)
+ return true;
+
+ return
+ lhs.sourceID == rhs.sourceID &&
+ lhs.sinkID == rhs.sinkID &&
+ lhs.domainID == rhs.domainID &&
+ lhs.connectionFormat == rhs.connectionFormat
+ ;
+}
+
+void am_RoutingElement_s::readFromInputStream(CommonAPI::InputStream& inputStream) {
+ inputStream >> sourceID;
+ inputStream >> sinkID;
+ inputStream >> domainID;
+ inputStream >> connectionFormat;
+}
+
+void am_RoutingElement_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const {
+ outputStream << sourceID;
+ outputStream << sinkID;
+ outputStream << domainID;
+ outputStream << connectionFormat;
+}
+am_SoundProperty_s::am_SoundProperty_s(const am_SoundPropertyType_pe& typeValue, const int16_t& valueValue):
+ type(typeValue),
+ value(valueValue)
+{
+}
+
+
+bool operator==(const am_SoundProperty_s& lhs, const am_SoundProperty_s& rhs) {
+ if (&lhs == &rhs)
+ return true;
+
+ return
+ lhs.type == rhs.type &&
+ lhs.value == rhs.value
+ ;
+}
+
+void am_SoundProperty_s::readFromInputStream(CommonAPI::InputStream& inputStream) {
+ inputStream >> type;
+ inputStream >> value;
+}
+
+void am_SoundProperty_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const {
+ outputStream << type;
+ outputStream << value;
+}
+am_SystemProperty_s::am_SystemProperty_s(const am_SystemPropertyType_pe& typeValue, const int16_t& valueValue):
+ type(typeValue),
+ value(valueValue)
+{
+}
+
+
+bool operator==(const am_SystemProperty_s& lhs, const am_SystemProperty_s& rhs) {
+ if (&lhs == &rhs)
+ return true;
+
+ return
+ lhs.type == rhs.type &&
+ lhs.value == rhs.value
+ ;
+}
+
+void am_SystemProperty_s::readFromInputStream(CommonAPI::InputStream& inputStream) {
+ inputStream >> type;
+ inputStream >> value;
+}
+
+void am_SystemProperty_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const {
+ outputStream << type;
+ outputStream << value;
+}
+am_SinkClass_s::am_SinkClass_s(const am_sinkClass_t& sinkClassIDValue, const std::string& nameValue, const am_ClassProperty_L& listClassPropertiesValue):
+ sinkClassID(sinkClassIDValue),
+ name(nameValue),
+ listClassProperties(listClassPropertiesValue)
+{
+}
+
+
+bool operator==(const am_SinkClass_s& lhs, const am_SinkClass_s& rhs) {
+ if (&lhs == &rhs)
+ return true;
+
+ return
+ lhs.sinkClassID == rhs.sinkClassID &&
+ lhs.name == rhs.name &&
+ lhs.listClassProperties == rhs.listClassProperties
+ ;
+}
+
+void am_SinkClass_s::readFromInputStream(CommonAPI::InputStream& inputStream) {
+ inputStream >> sinkClassID;
+ inputStream >> name;
+ inputStream >> listClassProperties;
+}
+
+void am_SinkClass_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const {
+ outputStream << sinkClassID;
+ outputStream << name;
+ outputStream << listClassProperties;
+}
+am_SourceClass_s::am_SourceClass_s(const am_sourceClass_t& sourceClassIDValue, const std::string& nameValue, const am_ClassProperty_L& listClassPropertiesValue):
+ sourceClassID(sourceClassIDValue),
+ name(nameValue),
+ listClassProperties(listClassPropertiesValue)
+{
+}
+
+
+bool operator==(const am_SourceClass_s& lhs, const am_SourceClass_s& rhs) {
+ if (&lhs == &rhs)
+ return true;
+
+ return
+ lhs.sourceClassID == rhs.sourceClassID &&
+ lhs.name == rhs.name &&
+ lhs.listClassProperties == rhs.listClassProperties
+ ;
+}
+
+void am_SourceClass_s::readFromInputStream(CommonAPI::InputStream& inputStream) {
+ inputStream >> sourceClassID;
+ inputStream >> name;
+ inputStream >> listClassProperties;
+}
+
+void am_SourceClass_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const {
+ outputStream << sourceClassID;
+ outputStream << name;
+ outputStream << listClassProperties;
+}
+am_SourceType_s::am_SourceType_s(const am_sourceID_t& sourceIDValue, const std::string& nameValue, const am_Availability_s& availabilityValue, const am_sourceClass_t& sourceClassIDValue):
+ sourceID(sourceIDValue),
+ name(nameValue),
+ availability(availabilityValue),
+ sourceClassID(sourceClassIDValue)
+{
+}
+
+
+bool operator==(const am_SourceType_s& lhs, const am_SourceType_s& rhs) {
+ if (&lhs == &rhs)
+ return true;
+
+ return
+ lhs.sourceID == rhs.sourceID &&
+ lhs.name == rhs.name &&
+ lhs.availability == rhs.availability &&
+ lhs.sourceClassID == rhs.sourceClassID
+ ;
+}
+
+void am_SourceType_s::readFromInputStream(CommonAPI::InputStream& inputStream) {
+ inputStream >> sourceID;
+ inputStream >> name;
+ inputStream >> availability;
+ inputStream >> sourceClassID;
+}
+
+void am_SourceType_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const {
+ outputStream << sourceID;
+ outputStream << name;
+ outputStream << availability;
+ outputStream << sourceClassID;
+}
+am_SinkType_s::am_SinkType_s(const am_sinkID_t& sinkIDValue, const std::string& nameValue, const am_Availability_s& availabilityValue, const am_mainVolume_t& volumeValue, const am_MuteState_e& muteStateValue, const am_sinkClass_t& sinkClassIDValue):
+ sinkID(sinkIDValue),
+ name(nameValue),
+ availability(availabilityValue),
+ volume(volumeValue),
+ muteState(muteStateValue),
+ sinkClassID(sinkClassIDValue)
+{
+}
+
+
+bool operator==(const am_SinkType_s& lhs, const am_SinkType_s& rhs) {
+ if (&lhs == &rhs)
+ return true;
+
+ return
+ lhs.sinkID == rhs.sinkID &&
+ lhs.name == rhs.name &&
+ lhs.availability == rhs.availability &&
+ lhs.volume == rhs.volume &&
+ lhs.muteState == rhs.muteState &&
+ lhs.sinkClassID == rhs.sinkClassID
+ ;
+}
+
+void am_SinkType_s::readFromInputStream(CommonAPI::InputStream& inputStream) {
+ inputStream >> sinkID;
+ inputStream >> name;
+ inputStream >> availability;
+ inputStream >> volume;
+ inputStream >> muteState;
+ inputStream >> sinkClassID;
+}
+
+void am_SinkType_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const {
+ outputStream << sinkID;
+ outputStream << name;
+ outputStream << availability;
+ outputStream << volume;
+ outputStream << muteState;
+ outputStream << sinkClassID;
+}
+am_Handle_s::am_Handle_s(const am_Handle_e& handleTypeValue, const uint16_t& handleValue):
+ handleType(handleTypeValue),
+ handle(handleValue)
+{
+}
+
+
+bool operator==(const am_Handle_s& lhs, const am_Handle_s& rhs) {
+ if (&lhs == &rhs)
+ return true;
+
+ return
+ lhs.handleType == rhs.handleType &&
+ lhs.handle == rhs.handle
+ ;
+}
+
+void am_Handle_s::readFromInputStream(CommonAPI::InputStream& inputStream) {
+ inputStream >> handleType;
+ inputStream >> handle;
+}
+
+void am_Handle_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const {
+ outputStream << handleType;
+ outputStream << handle;
+}
+am_MainSoundProperty_s::am_MainSoundProperty_s(const am_MainSoundPropertyType_pe& typeValue, const int16_t& valueValue):
+ type(typeValue),
+ value(valueValue)
+{
+}
+
+
+bool operator==(const am_MainSoundProperty_s& lhs, const am_MainSoundProperty_s& rhs) {
+ if (&lhs == &rhs)
+ return true;
+
+ return
+ lhs.type == rhs.type &&
+ lhs.value == rhs.value
+ ;
+}
+
+void am_MainSoundProperty_s::readFromInputStream(CommonAPI::InputStream& inputStream) {
+ inputStream >> type;
+ inputStream >> value;
+}
+
+void am_MainSoundProperty_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const {
+ outputStream << type;
+ outputStream << value;
+}
+am_MainConnectionType_s::am_MainConnectionType_s(const am_mainConnectionID_t& mainConnectionIDValue, const am_sourceID_t& sourceIDValue, const am_sinkID_t& sinkIDValue, const am_timeSync_t& delayValue, const am_ConnectionState_e& connectionStateValue):
+ mainConnectionID(mainConnectionIDValue),
+ sourceID(sourceIDValue),
+ sinkID(sinkIDValue),
+ delay(delayValue),
+ connectionState(connectionStateValue)
+{
+}
+
+
+bool operator==(const am_MainConnectionType_s& lhs, const am_MainConnectionType_s& rhs) {
+ if (&lhs == &rhs)
+ return true;
+
+ return
+ lhs.mainConnectionID == rhs.mainConnectionID &&
+ lhs.sourceID == rhs.sourceID &&
+ lhs.sinkID == rhs.sinkID &&
+ lhs.delay == rhs.delay &&
+ lhs.connectionState == rhs.connectionState
+ ;
+}
+
+void am_MainConnectionType_s::readFromInputStream(CommonAPI::InputStream& inputStream) {
+ inputStream >> mainConnectionID;
+ inputStream >> sourceID;
+ inputStream >> sinkID;
+ inputStream >> delay;
+ inputStream >> connectionState;
+}
+
+void am_MainConnectionType_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const {
+ outputStream << mainConnectionID;
+ outputStream << sourceID;
+ outputStream << sinkID;
+ outputStream << delay;
+ outputStream << connectionState;
+}
+am_MainConnection_s::am_MainConnection_s(const am_mainConnectionID_t& mainConnectionIDValue, const am_ConnectionState_e& connectionStateValue, const am_sinkID_t& sinkIDValue, const am_sourceID_t& sourceIDValue, const am_timeSync_t& delayValue, const am_ConnectionID_L& listConnectionIDValue):
+ mainConnectionID(mainConnectionIDValue),
+ connectionState(connectionStateValue),
+ sinkID(sinkIDValue),
+ sourceID(sourceIDValue),
+ delay(delayValue),
+ listConnectionID(listConnectionIDValue)
+{
+}
+
+
+bool operator==(const am_MainConnection_s& lhs, const am_MainConnection_s& rhs) {
+ if (&lhs == &rhs)
+ return true;
+
+ return
+ lhs.mainConnectionID == rhs.mainConnectionID &&
+ lhs.connectionState == rhs.connectionState &&
+ lhs.sinkID == rhs.sinkID &&
+ lhs.sourceID == rhs.sourceID &&
+ lhs.delay == rhs.delay &&
+ lhs.listConnectionID == rhs.listConnectionID
+ ;
+}
+
+void am_MainConnection_s::readFromInputStream(CommonAPI::InputStream& inputStream) {
+ inputStream >> mainConnectionID;
+ inputStream >> connectionState;
+ inputStream >> sinkID;
+ inputStream >> sourceID;
+ inputStream >> delay;
+ inputStream >> listConnectionID;
+}
+
+void am_MainConnection_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const {
+ outputStream << mainConnectionID;
+ outputStream << connectionState;
+ outputStream << sinkID;
+ outputStream << sourceID;
+ outputStream << delay;
+ outputStream << listConnectionID;
+}
+am_NotificationPayload_s::am_NotificationPayload_s(const am_NotificationType_pe& typeValue, const int16_t& valueValue):
+ type(typeValue),
+ value(valueValue)
+{
+}
+
+
+bool operator==(const am_NotificationPayload_s& lhs, const am_NotificationPayload_s& rhs) {
+ if (&lhs == &rhs)
+ return true;
+
+ return
+ lhs.type == rhs.type &&
+ lhs.value == rhs.value
+ ;
+}
+
+void am_NotificationPayload_s::readFromInputStream(CommonAPI::InputStream& inputStream) {
+ inputStream >> type;
+ inputStream >> value;
+}
+
+void am_NotificationPayload_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const {
+ outputStream << type;
+ outputStream << value;
+}
+am_NotificationConfiguration_s::am_NotificationConfiguration_s(const am_NotificationType_pe& typeValue, const am_NotificationStatus_e& statusValue, const int16_t& parameterValue):
+ type(typeValue),
+ status(statusValue),
+ parameter(parameterValue)
+{
+}
+
+
+bool operator==(const am_NotificationConfiguration_s& lhs, const am_NotificationConfiguration_s& rhs) {
+ if (&lhs == &rhs)
+ return true;
+
+ return
+ lhs.type == rhs.type &&
+ lhs.status == rhs.status &&
+ lhs.parameter == rhs.parameter
+ ;
+}
+
+void am_NotificationConfiguration_s::readFromInputStream(CommonAPI::InputStream& inputStream) {
+ inputStream >> type;
+ inputStream >> status;
+ inputStream >> parameter;
+}
+
+void am_NotificationConfiguration_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const {
+ outputStream << type;
+ outputStream << status;
+ outputStream << parameter;
+}
+am_Sink_s::am_Sink_s(const am_sinkID_t& sinkIDValue, const std::string& nameValue, const am_domainID_t& domainIDValue, const am_sinkClass_t& sinkClassIDValue, const am_volume_t& volumeValue, const bool& visibleValue, const am_Availability_s& availableValue, const am_MuteState_e& muteStateValue, const am_mainVolume_t& mainVolumeValue, const am_SoundProperty_L& listSoundPropertiesValue, const am_ConnectionFormat_L& listConnectionFormatsValue, const am_MainSoundProperty_L& listMainSoundPropertiesValue, const am_NotificationConfiguration_L& listMainNotificationConfigurationsValue, const am_NotificationConfiguration_L& listNotificationConfigurationsValue):
+ sinkID(sinkIDValue),
+ name(nameValue),
+ domainID(domainIDValue),
+ sinkClassID(sinkClassIDValue),
+ volume(volumeValue),
+ visible(visibleValue),
+ available(availableValue),
+ muteState(muteStateValue),
+ mainVolume(mainVolumeValue),
+ listSoundProperties(listSoundPropertiesValue),
+ listConnectionFormats(listConnectionFormatsValue),
+ listMainSoundProperties(listMainSoundPropertiesValue),
+ listMainNotificationConfigurations(listMainNotificationConfigurationsValue),
+ listNotificationConfigurations(listNotificationConfigurationsValue)
+{
+}
+
+
+bool operator==(const am_Sink_s& lhs, const am_Sink_s& rhs) {
+ if (&lhs == &rhs)
+ return true;
+
+ return
+ lhs.sinkID == rhs.sinkID &&
+ lhs.name == rhs.name &&
+ lhs.domainID == rhs.domainID &&
+ lhs.sinkClassID == rhs.sinkClassID &&
+ lhs.volume == rhs.volume &&
+ lhs.visible == rhs.visible &&
+ lhs.available == rhs.available &&
+ lhs.muteState == rhs.muteState &&
+ lhs.mainVolume == rhs.mainVolume &&
+ lhs.listSoundProperties == rhs.listSoundProperties &&
+ lhs.listConnectionFormats == rhs.listConnectionFormats &&
+ lhs.listMainSoundProperties == rhs.listMainSoundProperties &&
+ lhs.listMainNotificationConfigurations == rhs.listMainNotificationConfigurations &&
+ lhs.listNotificationConfigurations == rhs.listNotificationConfigurations
+ ;
+}
+
+void am_Sink_s::readFromInputStream(CommonAPI::InputStream& inputStream) {
+ inputStream >> sinkID;
+ inputStream >> name;
+ inputStream >> domainID;
+ inputStream >> sinkClassID;
+ inputStream >> volume;
+ inputStream >> visible;
+ inputStream >> available;
+ inputStream >> muteState;
+ inputStream >> mainVolume;
+ inputStream >> listSoundProperties;
+ inputStream >> listConnectionFormats;
+ inputStream >> listMainSoundProperties;
+ inputStream >> listMainNotificationConfigurations;
+ inputStream >> listNotificationConfigurations;
+}
+
+void am_Sink_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const {
+ outputStream << sinkID;
+ outputStream << name;
+ outputStream << domainID;
+ outputStream << sinkClassID;
+ outputStream << volume;
+ outputStream << visible;
+ outputStream << available;
+ outputStream << muteState;
+ outputStream << mainVolume;
+ outputStream << listSoundProperties;
+ outputStream << listConnectionFormats;
+ outputStream << listMainSoundProperties;
+ outputStream << listMainNotificationConfigurations;
+ outputStream << listNotificationConfigurations;
+}
+am_Source_s::am_Source_s(const am_sourceID_t& sourceIDValue, const am_domainID_t& domainIDValue, const std::string& nameValue, const am_sourceClass_t& sourceClassIDValue, const am_SourceState_e& sourceStateValue, const am_volume_t& volumeValue, const bool& visibleValue, const am_Availability_s& availableValue, const am_InterruptState_e& interruptStateValue, const am_SoundProperty_L& listSoundPropertiesValue, const am_ConnectionFormat_L& listConnectionFormatsValue, const am_MainSoundProperty_L& listMainSoundPropertiesValue, const am_NotificationConfiguration_L& listMainNotificationConfigurationsValue, const am_NotificationConfiguration_L& listNotificationConfigurationsValue):
+ sourceID(sourceIDValue),
+ domainID(domainIDValue),
+ name(nameValue),
+ sourceClassID(sourceClassIDValue),
+ sourceState(sourceStateValue),
+ volume(volumeValue),
+ visible(visibleValue),
+ available(availableValue),
+ interruptState(interruptStateValue),
+ listSoundProperties(listSoundPropertiesValue),
+ listConnectionFormats(listConnectionFormatsValue),
+ listMainSoundProperties(listMainSoundPropertiesValue),
+ listMainNotificationConfigurations(listMainNotificationConfigurationsValue),
+ listNotificationConfigurations(listNotificationConfigurationsValue)
+{
+}
+
+
+bool operator==(const am_Source_s& lhs, const am_Source_s& rhs) {
+ if (&lhs == &rhs)
+ return true;
+
+ return
+ lhs.sourceID == rhs.sourceID &&
+ lhs.domainID == rhs.domainID &&
+ lhs.name == rhs.name &&
+ lhs.sourceClassID == rhs.sourceClassID &&
+ lhs.sourceState == rhs.sourceState &&
+ lhs.volume == rhs.volume &&
+ lhs.visible == rhs.visible &&
+ lhs.available == rhs.available &&
+ lhs.interruptState == rhs.interruptState &&
+ lhs.listSoundProperties == rhs.listSoundProperties &&
+ lhs.listConnectionFormats == rhs.listConnectionFormats &&
+ lhs.listMainSoundProperties == rhs.listMainSoundProperties &&
+ lhs.listMainNotificationConfigurations == rhs.listMainNotificationConfigurations &&
+ lhs.listNotificationConfigurations == rhs.listNotificationConfigurations
+ ;
+}
+
+void am_Source_s::readFromInputStream(CommonAPI::InputStream& inputStream) {
+ inputStream >> sourceID;
+ inputStream >> domainID;
+ inputStream >> name;
+ inputStream >> sourceClassID;
+ inputStream >> sourceState;
+ inputStream >> volume;
+ inputStream >> visible;
+ inputStream >> available;
+ inputStream >> interruptState;
+ inputStream >> listSoundProperties;
+ inputStream >> listConnectionFormats;
+ inputStream >> listMainSoundProperties;
+ inputStream >> listMainNotificationConfigurations;
+ inputStream >> listNotificationConfigurations;
+}
+
+void am_Source_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const {
+ outputStream << sourceID;
+ outputStream << domainID;
+ outputStream << name;
+ outputStream << sourceClassID;
+ outputStream << sourceState;
+ outputStream << volume;
+ outputStream << visible;
+ outputStream << available;
+ outputStream << interruptState;
+ outputStream << listSoundProperties;
+ outputStream << listConnectionFormats;
+ outputStream << listMainSoundProperties;
+ outputStream << listMainNotificationConfigurations;
+ outputStream << listNotificationConfigurations;
+}
+am_Domain_s::am_Domain_s(const am_domainID_t& domainIDValue, const std::string& nameValue, const std::string& busnameValue, const std::string& nodenameValue, const bool& earlyValue, const bool& completeValue, const am_DomainState_e& stateValue):
+ domainID(domainIDValue),
+ name(nameValue),
+ busname(busnameValue),
+ nodename(nodenameValue),
+ early(earlyValue),
+ complete(completeValue),
+ state(stateValue)
+{
+}
+
+
+bool operator==(const am_Domain_s& lhs, const am_Domain_s& rhs) {
+ if (&lhs == &rhs)
+ return true;
+
+ return
+ lhs.domainID == rhs.domainID &&
+ lhs.name == rhs.name &&
+ lhs.busname == rhs.busname &&
+ lhs.nodename == rhs.nodename &&
+ lhs.early == rhs.early &&
+ lhs.complete == rhs.complete &&
+ lhs.state == rhs.state
+ ;
+}
+
+void am_Domain_s::readFromInputStream(CommonAPI::InputStream& inputStream) {
+ inputStream >> domainID;
+ inputStream >> name;
+ inputStream >> busname;
+ inputStream >> nodename;
+ inputStream >> early;
+ inputStream >> complete;
+ inputStream >> state;
+}
+
+void am_Domain_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const {
+ outputStream << domainID;
+ outputStream << name;
+ outputStream << busname;
+ outputStream << nodename;
+ outputStream << early;
+ outputStream << complete;
+ outputStream << state;
+}
+am_EarlyData_s::am_EarlyData_s(const am_EarlyDataType_e& typeValue, const am_DataType_u& sinksourceValue, const am_EarlyData_u& dataValue):
+ type(typeValue),
+ sinksource(sinksourceValue),
+ data(dataValue)
+{
+}
+
+
+bool operator==(const am_EarlyData_s& lhs, const am_EarlyData_s& rhs) {
+ if (&lhs == &rhs)
+ return true;
+
+ return
+ lhs.type == rhs.type &&
+ lhs.sinksource == rhs.sinksource &&
+ lhs.data == rhs.data
+ ;
+}
+
+void am_EarlyData_s::readFromInputStream(CommonAPI::InputStream& inputStream) {
+ inputStream >> type;
+ inputStream >> sinksource;
+ inputStream >> data;
+}
+
+void am_EarlyData_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const {
+ outputStream << type;
+ outputStream << sinksource;
+ outputStream << data;
+}
+am_Connection_s::am_Connection_s(const am_connectionID_t& connectionIDValue, const am_sourceID_t& sourceIDValue, const am_sinkID_t& sinkIDValue, const am_timeSync_t& delayValue, const am_ConnectionFormat_pe& connectionFormatValue):
+ connectionID(connectionIDValue),
+ sourceID(sourceIDValue),
+ sinkID(sinkIDValue),
+ delay(delayValue),
+ connectionFormat(connectionFormatValue)
+{
+}
+
+
+bool operator==(const am_Connection_s& lhs, const am_Connection_s& rhs) {
+ if (&lhs == &rhs)
+ return true;
+
+ return
+ lhs.connectionID == rhs.connectionID &&
+ lhs.sourceID == rhs.sourceID &&
+ lhs.sinkID == rhs.sinkID &&
+ lhs.delay == rhs.delay &&
+ lhs.connectionFormat == rhs.connectionFormat
+ ;
+}
+
+void am_Connection_s::readFromInputStream(CommonAPI::InputStream& inputStream) {
+ inputStream >> connectionID;
+ inputStream >> sourceID;
+ inputStream >> sinkID;
+ inputStream >> delay;
+ inputStream >> connectionFormat;
+}
+
+void am_Connection_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const {
+ outputStream << connectionID;
+ outputStream << sourceID;
+ outputStream << sinkID;
+ outputStream << delay;
+ outputStream << connectionFormat;
+}
+am_Volumes_s::am_Volumes_s(const am_VolumeType_e& volumeTypeValue, const am_DataType_u& volumeIDValue, const am_volume_t& volumeValue, const am_RampType_pe& rampValue, const am_time_t& timeValue):
+ volumeType(volumeTypeValue),
+ volumeID(volumeIDValue),
+ volume(volumeValue),
+ ramp(rampValue),
+ time(timeValue)
+{
+}
+
+
+bool operator==(const am_Volumes_s& lhs, const am_Volumes_s& rhs) {
+ if (&lhs == &rhs)
+ return true;
+
+ return
+ lhs.volumeType == rhs.volumeType &&
+ lhs.volumeID == rhs.volumeID &&
+ lhs.volume == rhs.volume &&
+ lhs.ramp == rhs.ramp &&
+ lhs.time == rhs.time
+ ;
+}
+
+void am_Volumes_s::readFromInputStream(CommonAPI::InputStream& inputStream) {
+ inputStream >> volumeType;
+ inputStream >> volumeID;
+ inputStream >> volume;
+ inputStream >> ramp;
+ inputStream >> time;
+}
+
+void am_Volumes_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const {
+ outputStream << volumeType;
+ outputStream << volumeID;
+ outputStream << volume;
+ outputStream << ramp;
+ outputStream << time;
+}
+
+} // namespace am
+} // namespace genivi
+} // namespace org
diff --git a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am.h b/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am.h
new file mode 100644
index 0000000..8e9b4be
--- /dev/null
+++ b/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am.h
@@ -0,0 +1,1532 @@
+/*
+* This file was generated by the CommonAPI Generators.
+*
+ * Copyright (C) 2013, BMW AG
+ *
+ * \author Christian Linke, christian.linke@bmw.de BMW 2012,2013
+*/
+#ifndef ORG_GENIVI_am_H_
+#define ORG_GENIVI_am_H_
+
+
+
+#define COMMONAPI_INTERNAL_COMPILATION
+
+#include <CommonAPI/InputStream.h>
+#include <CommonAPI/OutputStream.h>
+#include <CommonAPI/SerializableStruct.h>
+#include <CommonAPI/SerializableVariant.h>
+#include <CommonAPI/types.h>
+#include <cstdint>
+#include <memory>
+#include <string>
+#include <vector>
+
+#undef COMMONAPI_INTERNAL_COMPILATION
+
+namespace org {
+namespace genivi {
+
+namespace am {
+ typedef uint16_t am_sourceID_t;
+
+ typedef uint16_t am_mainConnectionID_t;
+
+ typedef int16_t am_timeSync_t;
+
+ typedef uint16_t am_sinkID_t;
+
+ enum class am_ConnectionState_e: int32_t {
+ CS_UNKNOWN = 0,
+ CS_CONNECTING = 1,
+ CS_CONNECTED = 2,
+ CS_DISCONNECTING = 3,
+ CS_DISCONNECTED = 4,
+ CS_SUSPENDED = 5,
+ CS_MAX
+ };
+
+ // XXX Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1
+ struct am_ConnectionState_eComparator;
+
+ struct am_MainConnectionType_s: CommonAPI::SerializableStruct {
+ am_mainConnectionID_t mainConnectionID;
+ am_sourceID_t sourceID;
+ am_sinkID_t sinkID;
+ am_timeSync_t delay;
+ am_ConnectionState_e connectionState;
+
+ am_MainConnectionType_s() = default;
+ am_MainConnectionType_s(const am_mainConnectionID_t& mainConnectionID, const am_sourceID_t& sourceID, const am_sinkID_t& sinkID, const am_timeSync_t& delay, const am_ConnectionState_e& connectionState);
+
+
+ virtual void readFromInputStream(CommonAPI::InputStream& inputStream);
+ virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const;
+
+ static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) {
+ typeOutputStream.writeUInt16Type();
+ typeOutputStream.writeUInt16Type();
+ typeOutputStream.writeUInt16Type();
+ typeOutputStream.writeInt16Type();
+ typeOutputStream.writeInt32Type();
+ }
+ };
+
+ typedef std::vector<am_MainConnectionType_s> am_MainConnection_L;
+
+ typedef uint16_t am_ClassProperty_pe;
+
+ struct am_ClassProperty_s: CommonAPI::SerializableStruct {
+ am_ClassProperty_pe classProperty;
+ int16_t value;
+
+ am_ClassProperty_s() = default;
+ am_ClassProperty_s(const am_ClassProperty_pe& classProperty, const int16_t& value);
+
+
+ virtual void readFromInputStream(CommonAPI::InputStream& inputStream);
+ virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const;
+
+ static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) {
+ typeOutputStream.writeUInt16Type();
+ typeOutputStream.writeInt16Type();
+ }
+ };
+
+ typedef std::vector<am_ClassProperty_s> am_ClassProperty_L;
+
+ typedef uint16_t am_sinkClass_t;
+
+ struct am_SinkClass_s: CommonAPI::SerializableStruct {
+ am_sinkClass_t sinkClassID;
+ std::string name;
+ am_ClassProperty_L listClassProperties;
+
+ am_SinkClass_s() = default;
+ am_SinkClass_s(const am_sinkClass_t& sinkClassID, const std::string& name, const am_ClassProperty_L& listClassProperties);
+
+
+ virtual void readFromInputStream(CommonAPI::InputStream& inputStream);
+ virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const;
+
+ static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) {
+ typeOutputStream.writeUInt16Type();
+ typeOutputStream.writeStringType();
+ typeOutputStream.beginWriteVectorType();
+ typeOutputStream.beginWriteStructType();
+ typeOutputStream.writeUInt16Type();typeOutputStream.writeInt16Type();
+ typeOutputStream.endWriteStructType();
+ typeOutputStream.endWriteVectorType();
+ }
+ };
+
+ typedef std::vector<am_SinkClass_s> am_SinkClass_L;
+
+ typedef int16_t am_mainVolume_t;
+
+ typedef uint16_t am_AvailabilityReason_pe;
+
+ enum class am_Availability_e: int32_t {
+ A_UNKNOWN = 0,
+ A_AVAILABLE = 1,
+ A_UNAVAILABLE = 2,
+ A_MAX
+ };
+
+ // XXX Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1
+ struct am_Availability_eComparator;
+
+ enum class am_MuteState_e: int32_t {
+ MS_UNKNOWN = 0,
+ MS_MUTED = 1,
+ MS_UNMUTED = 2,
+ MS_MAX
+ };
+
+ // XXX Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1
+ struct am_MuteState_eComparator;
+
+ struct am_Availability_s: CommonAPI::SerializableStruct {
+ am_Availability_e availability;
+ am_AvailabilityReason_pe availabilityReason;
+
+ am_Availability_s() = default;
+ am_Availability_s(const am_Availability_e& availability, const am_AvailabilityReason_pe& availabilityReason);
+
+
+ virtual void readFromInputStream(CommonAPI::InputStream& inputStream);
+ virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const;
+
+ static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) {
+ typeOutputStream.writeInt32Type();
+ typeOutputStream.writeUInt16Type();
+ }
+ };
+
+ struct am_SinkType_s: CommonAPI::SerializableStruct {
+ am_sinkID_t sinkID;
+ std::string name;
+ am_Availability_s availability;
+ am_mainVolume_t volume;
+ am_MuteState_e muteState;
+ am_sinkClass_t sinkClassID;
+
+ am_SinkType_s() = default;
+ am_SinkType_s(const am_sinkID_t& sinkID, const std::string& name, const am_Availability_s& availability, const am_mainVolume_t& volume, const am_MuteState_e& muteState, const am_sinkClass_t& sinkClassID);
+
+
+ virtual void readFromInputStream(CommonAPI::InputStream& inputStream);
+ virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const;
+
+ static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) {
+ typeOutputStream.writeUInt16Type();
+ typeOutputStream.writeStringType();
+ typeOutputStream.beginWriteStructType();
+ typeOutputStream.writeInt32Type();typeOutputStream.writeUInt16Type();
+ typeOutputStream.endWriteStructType();
+ typeOutputStream.writeInt16Type();
+ typeOutputStream.writeInt32Type();
+ typeOutputStream.writeUInt16Type();
+ }
+ };
+
+ typedef std::vector<am_SinkType_s> am_SinkType_L;
+
+ typedef uint16_t am_sourceClass_t;
+
+ struct am_SourceClass_s: CommonAPI::SerializableStruct {
+ am_sourceClass_t sourceClassID;
+ std::string name;
+ am_ClassProperty_L listClassProperties;
+
+ am_SourceClass_s() = default;
+ am_SourceClass_s(const am_sourceClass_t& sourceClassID, const std::string& name, const am_ClassProperty_L& listClassProperties);
+
+
+ virtual void readFromInputStream(CommonAPI::InputStream& inputStream);
+ virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const;
+
+ static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) {
+ typeOutputStream.writeUInt16Type();
+ typeOutputStream.writeStringType();
+ typeOutputStream.beginWriteVectorType();
+ typeOutputStream.beginWriteStructType();
+ typeOutputStream.writeUInt16Type();typeOutputStream.writeInt16Type();
+ typeOutputStream.endWriteStructType();
+ typeOutputStream.endWriteVectorType();
+ }
+ };
+
+ typedef std::vector<am_SourceClass_s> am_SourceClass_L;
+
+ struct am_SourceType_s: CommonAPI::SerializableStruct {
+ am_sourceID_t sourceID;
+ std::string name;
+ am_Availability_s availability;
+ am_sourceClass_t sourceClassID;
+
+ am_SourceType_s() = default;
+ am_SourceType_s(const am_sourceID_t& sourceID, const std::string& name, const am_Availability_s& availability, const am_sourceClass_t& sourceClassID);
+
+
+ virtual void readFromInputStream(CommonAPI::InputStream& inputStream);
+ virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const;
+
+ static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) {
+ typeOutputStream.writeUInt16Type();
+ typeOutputStream.writeStringType();
+ typeOutputStream.beginWriteStructType();
+ typeOutputStream.writeInt32Type();typeOutputStream.writeUInt16Type();
+ typeOutputStream.endWriteStructType();
+ typeOutputStream.writeUInt16Type();
+ }
+ };
+
+ typedef std::vector<am_SourceType_s> am_SourceType_L;
+
+ typedef uint16_t am_SystemPropertyType_pe;
+
+ struct am_SystemProperty_s: CommonAPI::SerializableStruct {
+ am_SystemPropertyType_pe type;
+ int16_t value;
+
+ am_SystemProperty_s() = default;
+ am_SystemProperty_s(const am_SystemPropertyType_pe& type, const int16_t& value);
+
+
+ virtual void readFromInputStream(CommonAPI::InputStream& inputStream);
+ virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const;
+
+ static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) {
+ typeOutputStream.writeUInt16Type();
+ typeOutputStream.writeInt16Type();
+ }
+ };
+
+ typedef std::vector<am_SystemProperty_s> am_SystemProperty_L;
+
+ typedef uint16_t am_connectionID_t;
+
+ typedef std::vector<am_connectionID_t> am_ConnectionID_L;
+
+ typedef int16_t am_volume_t;
+
+ typedef uint16_t am_SoundPropertyType_pe;
+
+ enum class am_EarlyDataType_e: int32_t {
+ ES_UNKNOWN = 0,
+ ED_SOURCE_VOLUME = 1,
+ ED_SINK_VOLUME = 2,
+ ED_SOURCE_PROPERTY = 3,
+ ED_SINK_PROPERTY = 4,
+ ED_MAX
+ };
+
+ // XXX Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1
+ struct am_EarlyDataType_eComparator;
+
+ struct am_SoundProperty_s: CommonAPI::SerializableStruct {
+ am_SoundPropertyType_pe type;
+ int16_t value;
+
+ am_SoundProperty_s() = default;
+ am_SoundProperty_s(const am_SoundPropertyType_pe& type, const int16_t& value);
+
+
+ virtual void readFromInputStream(CommonAPI::InputStream& inputStream);
+ virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const;
+
+ static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) {
+ typeOutputStream.writeUInt16Type();
+ typeOutputStream.writeInt16Type();
+ }
+ };
+
+ typedef CommonAPI::Variant<am_volume_t, am_SoundProperty_s> am_EarlyData_u;
+
+ typedef CommonAPI::Variant<am_sinkID_t, am_sourceID_t> am_DataType_u;
+
+ struct am_EarlyData_s: CommonAPI::SerializableStruct {
+ am_EarlyDataType_e type;
+ am_DataType_u sinksource;
+ am_EarlyData_u data;
+
+ am_EarlyData_s() = default;
+ am_EarlyData_s(const am_EarlyDataType_e& type, const am_DataType_u& sinksource, const am_EarlyData_u& data);
+
+
+ virtual void readFromInputStream(CommonAPI::InputStream& inputStream);
+ virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const;
+
+ static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) {
+ typeOutputStream.writeInt32Type();
+ typeOutputStream.writeVariantType();
+ typeOutputStream.writeVariantType();
+ }
+ };
+
+ typedef std::vector<am_EarlyData_s> am_EarlyData_L;
+
+ typedef uint16_t am_MainSoundPropertyType_pe;
+
+ struct am_MainSoundProperty_s: CommonAPI::SerializableStruct {
+ am_MainSoundPropertyType_pe type;
+ int16_t value;
+
+ am_MainSoundProperty_s() = default;
+ am_MainSoundProperty_s(const am_MainSoundPropertyType_pe& type, const int16_t& value);
+
+
+ virtual void readFromInputStream(CommonAPI::InputStream& inputStream);
+ virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const;
+
+ static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) {
+ typeOutputStream.writeUInt16Type();
+ typeOutputStream.writeInt16Type();
+ }
+ };
+
+ typedef std::vector<am_MainSoundProperty_s> am_MainSoundProperty_L;
+
+ typedef uint16_t am_NotificationType_pe;
+
+ enum class am_NotificationStatus_e: int32_t {
+ NS_UNKNOWN = 0,
+ NS_OFF = 1,
+ NS_PERIODIC = 2,
+ NS_MINIMUM = 3,
+ NS_MAXIMUM = 4,
+ NS_CHANGE_ = 5,
+ NS_MAX
+ };
+
+ // XXX Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1
+ struct am_NotificationStatus_eComparator;
+
+ struct am_NotificationConfiguration_s: CommonAPI::SerializableStruct {
+ am_NotificationType_pe type;
+ am_NotificationStatus_e status;
+ int16_t parameter;
+
+ am_NotificationConfiguration_s() = default;
+ am_NotificationConfiguration_s(const am_NotificationType_pe& type, const am_NotificationStatus_e& status, const int16_t& parameter);
+
+
+ virtual void readFromInputStream(CommonAPI::InputStream& inputStream);
+ virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const;
+
+ static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) {
+ typeOutputStream.writeUInt16Type();
+ typeOutputStream.writeInt32Type();
+ typeOutputStream.writeInt16Type();
+ }
+ };
+
+ typedef std::vector<am_NotificationConfiguration_s> am_NotificationConfiguration_L;
+
+ typedef uint16_t am_domainID_t;
+
+ typedef uint16_t am_ConnectionFormat_pe;
+
+ struct am_RoutingElement_s: CommonAPI::SerializableStruct {
+ am_sourceID_t sourceID;
+ am_sinkID_t sinkID;
+ am_domainID_t domainID;
+ am_ConnectionFormat_pe connectionFormat;
+
+ am_RoutingElement_s() = default;
+ am_RoutingElement_s(const am_sourceID_t& sourceID, const am_sinkID_t& sinkID, const am_domainID_t& domainID, const am_ConnectionFormat_pe& connectionFormat);
+
+
+ virtual void readFromInputStream(CommonAPI::InputStream& inputStream);
+ virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const;
+
+ static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) {
+ typeOutputStream.writeUInt16Type();
+ typeOutputStream.writeUInt16Type();
+ typeOutputStream.writeUInt16Type();
+ typeOutputStream.writeUInt16Type();
+ }
+ };
+
+ typedef std::vector<am_RoutingElement_s> am_RoutingElement_L;
+
+ typedef std::vector<am_SoundProperty_s> am_SoundProperty_L;
+
+ typedef int16_t am_time_t;
+
+ typedef uint16_t am_RampType_pe;
+
+ enum class am_VolumeType_e: int32_t {
+ VT_UNKNOWN = 0,
+ VT_SINK = 1,
+ VT_SOURCE = 2,
+ VT_MAX
+ };
+
+ // XXX Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1
+ struct am_VolumeType_eComparator;
+
+ struct am_Volumes_s: CommonAPI::SerializableStruct {
+ am_VolumeType_e volumeType;
+ am_DataType_u volumeID;
+ am_volume_t volume;
+ am_RampType_pe ramp;
+ am_time_t time;
+
+ am_Volumes_s() = default;
+ am_Volumes_s(const am_VolumeType_e& volumeType, const am_DataType_u& volumeID, const am_volume_t& volume, const am_RampType_pe& ramp, const am_time_t& time);
+
+
+ virtual void readFromInputStream(CommonAPI::InputStream& inputStream);
+ virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const;
+
+ static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) {
+ typeOutputStream.writeInt32Type();
+ typeOutputStream.writeVariantType();
+ typeOutputStream.writeInt16Type();
+ typeOutputStream.writeUInt16Type();
+ typeOutputStream.writeInt16Type();
+ }
+ };
+
+ typedef std::vector<am_Volumes_s> am_Volumes_L;
+
+ typedef std::vector<am_ConnectionFormat_pe> am_ConnectionFormat_L;
+
+ typedef bool am_bool_t;
+
+ typedef std::vector<am_bool_t> am_Convertion_L;
+
+ typedef uint16_t am_gatewayID_t;
+
+ typedef uint16_t am_crossfaderID_t;
+
+ typedef uint16_t am_speed_t;
+
+ enum class am_HotSink_e: int32_t {
+ HS_UNKNOWN = 0,
+ HS_SINKA = 1,
+ HS_SINKB = 2,
+ HS_INTERMEDIATE = 3,
+ HS_MAX
+ };
+
+ // XXX Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1
+ struct am_HotSink_eComparator;
+
+ enum class am_DomainState_e: int32_t {
+ DS_UNKNOWN = 0,
+ DS_CONTROLLED = 1,
+ DS_INDEPENDENT_STARTUP = 1,
+ DS_INDEPENDENT_RUNDOWN = 2,
+ DS_MAX
+ };
+
+ // XXX Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1
+ struct am_DomainState_eComparator;
+
+ enum class am_Error_e: int32_t {
+ E_OK = 0,
+ E_UNKNOWN = 1,
+ E_OUT_OF_RANGE = 2,
+ E_NOT_USED = 3,
+ E_DATABASE_ERROR = 4,
+ E_ALREADY_EXISTS = 5,
+ E_NO_CHANGE = 6,
+ E_NOT_POSSIBLE = 7,
+ E_NON_EXISTENT = 8,
+ E_ABORTED = 9,
+ E_WRONG_FORMAT = 10,
+ E_MAX
+ };
+
+ // XXX Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1
+ struct am_Error_eComparator;
+
+ enum class am_InterruptState_e: int32_t {
+ IS_UNKNOWN = 0,
+ IS_OFF = 1,
+ IS_INTERRUPTED = 2,
+ IS_MAX
+ };
+
+ // XXX Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1
+ struct am_InterruptState_eComparator;
+
+ enum class am_Handle_e: int32_t {
+ H_UNKNOWN = 0,
+ H_CONNECT = 1,
+ H_DISCONNECT = 2,
+ H_SETSOURCESTATE = 3,
+ H_SETSINKVOLUME = 4,
+ H_SETSOURCEVOLUME = 5,
+ H_SETSINKSOUNDPROPERTY = 6,
+ H_SETSOURCESOUNDPROPERTY = 7,
+ H_SETSINKSOUNDPROPERTIES = 8,
+ H_SETSOURCESOUNDPROPERTIES = 9,
+ H_CROSSFADE = 10,
+ H_SETVOLUMES = 11,
+ H_SETSINKNOTIFICATION = 12,
+ H_SETSOURCENOTIFICATION = 13,
+ H_MAX
+ };
+
+ // XXX Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1
+ struct am_Handle_eComparator;
+
+ enum class am_SourceState_e: int32_t {
+ SS_UNKNNOWN = 0,
+ SS_ON = 1,
+ SS_OFF = 2,
+ SS_PAUSED = 3,
+ SS_MAX
+ };
+
+ // XXX Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1
+ struct am_SourceState_eComparator;
+
+ enum class am_RoutingReady_e: int32_t {
+ RR_UNKNOWN = 0,
+ RR_READY = 1,
+ RR_RUNDOWN = 2
+ };
+
+ // XXX Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1
+ struct am_RoutingReady_eComparator;
+
+ struct am_Route_s: CommonAPI::SerializableStruct {
+ am_sourceID_t sourceID;
+ am_sinkID_t sinkID;
+ am_RoutingElement_L route;
+
+ am_Route_s() = default;
+ am_Route_s(const am_sourceID_t& sourceID, const am_sinkID_t& sinkID, const am_RoutingElement_L& route);
+
+
+ virtual void readFromInputStream(CommonAPI::InputStream& inputStream);
+ virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const;
+
+ static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) {
+ typeOutputStream.writeUInt16Type();
+ typeOutputStream.writeUInt16Type();
+ typeOutputStream.beginWriteVectorType();
+ typeOutputStream.beginWriteStructType();
+ typeOutputStream.writeUInt16Type();typeOutputStream.writeUInt16Type();typeOutputStream.writeUInt16Type();typeOutputStream.writeUInt16Type();
+ typeOutputStream.endWriteStructType();
+ typeOutputStream.endWriteVectorType();
+ }
+ };
+
+ struct am_Crossfader_s: CommonAPI::SerializableStruct {
+ am_crossfaderID_t crossfaderID;
+ std::string name;
+ am_sinkID_t sinkID_A;
+ am_sinkID_t sinkID_B;
+ am_sourceID_t sourceID;
+ am_HotSink_e hotSink;
+
+ am_Crossfader_s() = default;
+ am_Crossfader_s(const am_crossfaderID_t& crossfaderID, const std::string& name, const am_sinkID_t& sinkID_A, const am_sinkID_t& sinkID_B, const am_sourceID_t& sourceID, const am_HotSink_e& hotSink);
+
+
+ virtual void readFromInputStream(CommonAPI::InputStream& inputStream);
+ virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const;
+
+ static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) {
+ typeOutputStream.writeUInt16Type();
+ typeOutputStream.writeStringType();
+ typeOutputStream.writeUInt16Type();
+ typeOutputStream.writeUInt16Type();
+ typeOutputStream.writeUInt16Type();
+ typeOutputStream.writeInt32Type();
+ }
+ };
+
+ struct am_Gateway_s: CommonAPI::SerializableStruct {
+ am_gatewayID_t gatewayID;
+ std::string name;
+ am_sinkID_t sinkID;
+ am_sourceID_t sourceID;
+ am_domainID_t domainSinkID;
+ am_domainID_t domainSourceID;
+ am_domainID_t controlDomainID;
+ am_ConnectionFormat_L listSourceFormats;
+ am_ConnectionFormat_L listSinkFormats;
+ am_Convertion_L convertionMatrix;
+
+ am_Gateway_s() = default;
+ am_Gateway_s(const am_gatewayID_t& gatewayID, const std::string& name, const am_sinkID_t& sinkID, const am_sourceID_t& sourceID, const am_domainID_t& domainSinkID, const am_domainID_t& domainSourceID, const am_domainID_t& controlDomainID, const am_ConnectionFormat_L& listSourceFormats, const am_ConnectionFormat_L& listSinkFormats, const am_Convertion_L& convertionMatrix);
+
+
+ virtual void readFromInputStream(CommonAPI::InputStream& inputStream);
+ virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const;
+
+ static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) {
+ typeOutputStream.writeUInt16Type();
+ typeOutputStream.writeStringType();
+ typeOutputStream.writeUInt16Type();
+ typeOutputStream.writeUInt16Type();
+ typeOutputStream.writeUInt16Type();
+ typeOutputStream.writeUInt16Type();
+ typeOutputStream.writeUInt16Type();
+ typeOutputStream.beginWriteVectorType();
+ typeOutputStream.writeUInt16Type();
+ typeOutputStream.endWriteVectorType();
+ typeOutputStream.beginWriteVectorType();
+ typeOutputStream.writeUInt16Type();
+ typeOutputStream.endWriteVectorType();
+ typeOutputStream.beginWriteVectorType();
+ typeOutputStream.writeBoolType();
+ typeOutputStream.endWriteVectorType();
+ }
+ };
+
+ struct am_Handle_s: CommonAPI::SerializableStruct {
+ am_Handle_e handleType;
+ uint16_t handle;
+
+ am_Handle_s() = default;
+ am_Handle_s(const am_Handle_e& handleType, const uint16_t& handle);
+
+
+ virtual void readFromInputStream(CommonAPI::InputStream& inputStream);
+ virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const;
+
+ static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) {
+ typeOutputStream.writeInt32Type();
+ typeOutputStream.writeUInt16Type();
+ }
+ };
+
+ struct am_MainConnection_s: CommonAPI::SerializableStruct {
+ am_mainConnectionID_t mainConnectionID;
+ am_ConnectionState_e connectionState;
+ am_sinkID_t sinkID;
+ am_sourceID_t sourceID;
+ am_timeSync_t delay;
+ am_ConnectionID_L listConnectionID;
+
+ am_MainConnection_s() = default;
+ am_MainConnection_s(const am_mainConnectionID_t& mainConnectionID, const am_ConnectionState_e& connectionState, const am_sinkID_t& sinkID, const am_sourceID_t& sourceID, const am_timeSync_t& delay, const am_ConnectionID_L& listConnectionID);
+
+
+ virtual void readFromInputStream(CommonAPI::InputStream& inputStream);
+ virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const;
+
+ static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) {
+ typeOutputStream.writeUInt16Type();
+ typeOutputStream.writeInt32Type();
+ typeOutputStream.writeUInt16Type();
+ typeOutputStream.writeUInt16Type();
+ typeOutputStream.writeInt16Type();
+ typeOutputStream.beginWriteVectorType();
+ typeOutputStream.writeUInt16Type();
+ typeOutputStream.endWriteVectorType();
+ }
+ };
+
+ struct am_NotificationPayload_s: CommonAPI::SerializableStruct {
+ am_NotificationType_pe type;
+ int16_t value;
+
+ am_NotificationPayload_s() = default;
+ am_NotificationPayload_s(const am_NotificationType_pe& type, const int16_t& value);
+
+
+ virtual void readFromInputStream(CommonAPI::InputStream& inputStream);
+ virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const;
+
+ static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) {
+ typeOutputStream.writeUInt16Type();
+ typeOutputStream.writeInt16Type();
+ }
+ };
+
+ struct am_Sink_s: CommonAPI::SerializableStruct {
+ am_sinkID_t sinkID;
+ std::string name;
+ am_domainID_t domainID;
+ am_sinkClass_t sinkClassID;
+ am_volume_t volume;
+ bool visible;
+ am_Availability_s available;
+ am_MuteState_e muteState;
+ am_mainVolume_t mainVolume;
+ am_SoundProperty_L listSoundProperties;
+ am_ConnectionFormat_L listConnectionFormats;
+ am_MainSoundProperty_L listMainSoundProperties;
+ am_NotificationConfiguration_L listMainNotificationConfigurations;
+ am_NotificationConfiguration_L listNotificationConfigurations;
+
+ am_Sink_s() = default;
+ am_Sink_s(const am_sinkID_t& sinkID, const std::string& name, const am_domainID_t& domainID, const am_sinkClass_t& sinkClassID, const am_volume_t& volume, const bool& visible, const am_Availability_s& available, const am_MuteState_e& muteState, const am_mainVolume_t& mainVolume, const am_SoundProperty_L& listSoundProperties, const am_ConnectionFormat_L& listConnectionFormats, const am_MainSoundProperty_L& listMainSoundProperties, const am_NotificationConfiguration_L& listMainNotificationConfigurations, const am_NotificationConfiguration_L& listNotificationConfigurations);
+
+
+ virtual void readFromInputStream(CommonAPI::InputStream& inputStream);
+ virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const;
+
+ static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) {
+ typeOutputStream.writeUInt16Type();
+ typeOutputStream.writeStringType();
+ typeOutputStream.writeUInt16Type();
+ typeOutputStream.writeUInt16Type();
+ typeOutputStream.writeInt16Type();
+ typeOutputStream.writeBoolType();
+ typeOutputStream.beginWriteStructType();
+ typeOutputStream.writeInt32Type();typeOutputStream.writeUInt16Type();
+ typeOutputStream.endWriteStructType();
+ typeOutputStream.writeInt32Type();
+ typeOutputStream.writeInt16Type();
+ typeOutputStream.beginWriteVectorType();
+ typeOutputStream.beginWriteStructType();
+ typeOutputStream.writeUInt16Type();typeOutputStream.writeInt16Type();
+ typeOutputStream.endWriteStructType();
+ typeOutputStream.endWriteVectorType();
+ typeOutputStream.beginWriteVectorType();
+ typeOutputStream.writeUInt16Type();
+ typeOutputStream.endWriteVectorType();
+ typeOutputStream.beginWriteVectorType();
+ typeOutputStream.beginWriteStructType();
+ typeOutputStream.writeUInt16Type();typeOutputStream.writeInt16Type();
+ typeOutputStream.endWriteStructType();
+ typeOutputStream.endWriteVectorType();
+ typeOutputStream.beginWriteVectorType();
+ typeOutputStream.beginWriteStructType();
+ typeOutputStream.writeUInt16Type();typeOutputStream.writeInt32Type();typeOutputStream.writeInt16Type();
+ typeOutputStream.endWriteStructType();
+ typeOutputStream.endWriteVectorType();
+ typeOutputStream.beginWriteVectorType();
+ typeOutputStream.beginWriteStructType();
+ typeOutputStream.writeUInt16Type();typeOutputStream.writeInt32Type();typeOutputStream.writeInt16Type();
+ typeOutputStream.endWriteStructType();
+ typeOutputStream.endWriteVectorType();
+ }
+ };
+
+ struct am_Source_s: CommonAPI::SerializableStruct {
+ am_sourceID_t sourceID;
+ am_domainID_t domainID;
+ std::string name;
+ am_sourceClass_t sourceClassID;
+ am_SourceState_e sourceState;
+ am_volume_t volume;
+ bool visible;
+ am_Availability_s available;
+ am_InterruptState_e interruptState;
+ am_SoundProperty_L listSoundProperties;
+ am_ConnectionFormat_L listConnectionFormats;
+ am_MainSoundProperty_L listMainSoundProperties;
+ am_NotificationConfiguration_L listMainNotificationConfigurations;
+ am_NotificationConfiguration_L listNotificationConfigurations;
+
+ am_Source_s() = default;
+ am_Source_s(const am_sourceID_t& sourceID, const am_domainID_t& domainID, const std::string& name, const am_sourceClass_t& sourceClassID, const am_SourceState_e& sourceState, const am_volume_t& volume, const bool& visible, const am_Availability_s& available, const am_InterruptState_e& interruptState, const am_SoundProperty_L& listSoundProperties, const am_ConnectionFormat_L& listConnectionFormats, const am_MainSoundProperty_L& listMainSoundProperties, const am_NotificationConfiguration_L& listMainNotificationConfigurations, const am_NotificationConfiguration_L& listNotificationConfigurations);
+
+
+ virtual void readFromInputStream(CommonAPI::InputStream& inputStream);
+ virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const;
+
+ static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) {
+ typeOutputStream.writeUInt16Type();
+ typeOutputStream.writeUInt16Type();
+ typeOutputStream.writeStringType();
+ typeOutputStream.writeUInt16Type();
+ typeOutputStream.writeInt32Type();
+ typeOutputStream.writeInt16Type();
+ typeOutputStream.writeBoolType();
+ typeOutputStream.beginWriteStructType();
+ typeOutputStream.writeInt32Type();typeOutputStream.writeUInt16Type();
+ typeOutputStream.endWriteStructType();
+ typeOutputStream.writeInt32Type();
+ typeOutputStream.beginWriteVectorType();
+ typeOutputStream.beginWriteStructType();
+ typeOutputStream.writeUInt16Type();typeOutputStream.writeInt16Type();
+ typeOutputStream.endWriteStructType();
+ typeOutputStream.endWriteVectorType();
+ typeOutputStream.beginWriteVectorType();
+ typeOutputStream.writeUInt16Type();
+ typeOutputStream.endWriteVectorType();
+ typeOutputStream.beginWriteVectorType();
+ typeOutputStream.beginWriteStructType();
+ typeOutputStream.writeUInt16Type();typeOutputStream.writeInt16Type();
+ typeOutputStream.endWriteStructType();
+ typeOutputStream.endWriteVectorType();
+ typeOutputStream.beginWriteVectorType();
+ typeOutputStream.beginWriteStructType();
+ typeOutputStream.writeUInt16Type();typeOutputStream.writeInt32Type();typeOutputStream.writeInt16Type();
+ typeOutputStream.endWriteStructType();
+ typeOutputStream.endWriteVectorType();
+ typeOutputStream.beginWriteVectorType();
+ typeOutputStream.beginWriteStructType();
+ typeOutputStream.writeUInt16Type();typeOutputStream.writeInt32Type();typeOutputStream.writeInt16Type();
+ typeOutputStream.endWriteStructType();
+ typeOutputStream.endWriteVectorType();
+ }
+ };
+
+ struct am_Domain_s: CommonAPI::SerializableStruct {
+ am_domainID_t domainID;
+ std::string name;
+ std::string busname;
+ std::string nodename;
+ bool early;
+ bool complete;
+ am_DomainState_e state;
+
+ am_Domain_s() = default;
+ am_Domain_s(const am_domainID_t& domainID, const std::string& name, const std::string& busname, const std::string& nodename, const bool& early, const bool& complete, const am_DomainState_e& state);
+
+
+ virtual void readFromInputStream(CommonAPI::InputStream& inputStream);
+ virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const;
+
+ static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) {
+ typeOutputStream.writeUInt16Type();
+ typeOutputStream.writeStringType();
+ typeOutputStream.writeStringType();
+ typeOutputStream.writeStringType();
+ typeOutputStream.writeBoolType();
+ typeOutputStream.writeBoolType();
+ typeOutputStream.writeInt32Type();
+ }
+ };
+
+ struct am_Connection_s: CommonAPI::SerializableStruct {
+ am_connectionID_t connectionID;
+ am_sourceID_t sourceID;
+ am_sinkID_t sinkID;
+ am_timeSync_t delay;
+ am_ConnectionFormat_pe connectionFormat;
+
+ am_Connection_s() = default;
+ am_Connection_s(const am_connectionID_t& connectionID, const am_sourceID_t& sourceID, const am_sinkID_t& sinkID, const am_timeSync_t& delay, const am_ConnectionFormat_pe& connectionFormat);
+
+
+ virtual void readFromInputStream(CommonAPI::InputStream& inputStream);
+ virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const;
+
+ static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) {
+ typeOutputStream.writeUInt16Type();
+ typeOutputStream.writeUInt16Type();
+ typeOutputStream.writeUInt16Type();
+ typeOutputStream.writeInt16Type();
+ typeOutputStream.writeUInt16Type();
+ }
+ };
+
+
+inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, am_Availability_e& enumValue) {
+ return inputStream.readEnumValue<int32_t>(enumValue);
+}
+
+inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const am_Availability_e& enumValue) {
+ return outputStream.writeEnumValue(static_cast<int32_t>(enumValue));
+}
+
+struct am_Availability_eComparator {
+ inline bool operator()(const am_Availability_e& lhs, const am_Availability_e& rhs) const {
+ return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs);
+ }
+};
+
+inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, am_HotSink_e& enumValue) {
+ return inputStream.readEnumValue<int32_t>(enumValue);
+}
+
+inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const am_HotSink_e& enumValue) {
+ return outputStream.writeEnumValue(static_cast<int32_t>(enumValue));
+}
+
+struct am_HotSink_eComparator {
+ inline bool operator()(const am_HotSink_e& lhs, const am_HotSink_e& rhs) const {
+ return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs);
+ }
+};
+
+inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, am_ConnectionState_e& enumValue) {
+ return inputStream.readEnumValue<int32_t>(enumValue);
+}
+
+inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const am_ConnectionState_e& enumValue) {
+ return outputStream.writeEnumValue(static_cast<int32_t>(enumValue));
+}
+
+struct am_ConnectionState_eComparator {
+ inline bool operator()(const am_ConnectionState_e& lhs, const am_ConnectionState_e& rhs) const {
+ return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs);
+ }
+};
+
+inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, am_DomainState_e& enumValue) {
+ return inputStream.readEnumValue<int32_t>(enumValue);
+}
+
+inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const am_DomainState_e& enumValue) {
+ return outputStream.writeEnumValue(static_cast<int32_t>(enumValue));
+}
+
+struct am_DomainState_eComparator {
+ inline bool operator()(const am_DomainState_e& lhs, const am_DomainState_e& rhs) const {
+ return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs);
+ }
+};
+
+inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, am_EarlyDataType_e& enumValue) {
+ return inputStream.readEnumValue<int32_t>(enumValue);
+}
+
+inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const am_EarlyDataType_e& enumValue) {
+ return outputStream.writeEnumValue(static_cast<int32_t>(enumValue));
+}
+
+struct am_EarlyDataType_eComparator {
+ inline bool operator()(const am_EarlyDataType_e& lhs, const am_EarlyDataType_e& rhs) const {
+ return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs);
+ }
+};
+
+inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, am_Error_e& enumValue) {
+ return inputStream.readEnumValue<int32_t>(enumValue);
+}
+
+inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const am_Error_e& enumValue) {
+ return outputStream.writeEnumValue(static_cast<int32_t>(enumValue));
+}
+
+struct am_Error_eComparator {
+ inline bool operator()(const am_Error_e& lhs, const am_Error_e& rhs) const {
+ return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs);
+ }
+};
+
+inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, am_MuteState_e& enumValue) {
+ return inputStream.readEnumValue<int32_t>(enumValue);
+}
+
+inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const am_MuteState_e& enumValue) {
+ return outputStream.writeEnumValue(static_cast<int32_t>(enumValue));
+}
+
+struct am_MuteState_eComparator {
+ inline bool operator()(const am_MuteState_e& lhs, const am_MuteState_e& rhs) const {
+ return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs);
+ }
+};
+
+inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, am_InterruptState_e& enumValue) {
+ return inputStream.readEnumValue<int32_t>(enumValue);
+}
+
+inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const am_InterruptState_e& enumValue) {
+ return outputStream.writeEnumValue(static_cast<int32_t>(enumValue));
+}
+
+struct am_InterruptState_eComparator {
+ inline bool operator()(const am_InterruptState_e& lhs, const am_InterruptState_e& rhs) const {
+ return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs);
+ }
+};
+
+inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, am_VolumeType_e& enumValue) {
+ return inputStream.readEnumValue<int32_t>(enumValue);
+}
+
+inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const am_VolumeType_e& enumValue) {
+ return outputStream.writeEnumValue(static_cast<int32_t>(enumValue));
+}
+
+struct am_VolumeType_eComparator {
+ inline bool operator()(const am_VolumeType_e& lhs, const am_VolumeType_e& rhs) const {
+ return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs);
+ }
+};
+
+inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, am_NotificationStatus_e& enumValue) {
+ return inputStream.readEnumValue<int32_t>(enumValue);
+}
+
+inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const am_NotificationStatus_e& enumValue) {
+ return outputStream.writeEnumValue(static_cast<int32_t>(enumValue));
+}
+
+struct am_NotificationStatus_eComparator {
+ inline bool operator()(const am_NotificationStatus_e& lhs, const am_NotificationStatus_e& rhs) const {
+ return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs);
+ }
+};
+
+inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, am_Handle_e& enumValue) {
+ return inputStream.readEnumValue<int32_t>(enumValue);
+}
+
+inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const am_Handle_e& enumValue) {
+ return outputStream.writeEnumValue(static_cast<int32_t>(enumValue));
+}
+
+struct am_Handle_eComparator {
+ inline bool operator()(const am_Handle_e& lhs, const am_Handle_e& rhs) const {
+ return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs);
+ }
+};
+
+inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, am_SourceState_e& enumValue) {
+ return inputStream.readEnumValue<int32_t>(enumValue);
+}
+
+inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const am_SourceState_e& enumValue) {
+ return outputStream.writeEnumValue(static_cast<int32_t>(enumValue));
+}
+
+struct am_SourceState_eComparator {
+ inline bool operator()(const am_SourceState_e& lhs, const am_SourceState_e& rhs) const {
+ return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs);
+ }
+};
+
+inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, am_RoutingReady_e& enumValue) {
+ return inputStream.readEnumValue<int32_t>(enumValue);
+}
+
+inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const am_RoutingReady_e& enumValue) {
+ return outputStream.writeEnumValue(static_cast<int32_t>(enumValue));
+}
+
+struct am_RoutingReady_eComparator {
+ inline bool operator()(const am_RoutingReady_e& lhs, const am_RoutingReady_e& rhs) const {
+ return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs);
+ }
+};
+
+bool operator==(const am_Route_s& lhs, const am_Route_s& rhs);
+inline bool operator!=(const am_Route_s& lhs, const am_Route_s& rhs) {
+ return !(lhs == rhs);
+}
+bool operator==(const am_Availability_s& lhs, const am_Availability_s& rhs);
+inline bool operator!=(const am_Availability_s& lhs, const am_Availability_s& rhs) {
+ return !(lhs == rhs);
+}
+bool operator==(const am_ClassProperty_s& lhs, const am_ClassProperty_s& rhs);
+inline bool operator!=(const am_ClassProperty_s& lhs, const am_ClassProperty_s& rhs) {
+ return !(lhs == rhs);
+}
+bool operator==(const am_Crossfader_s& lhs, const am_Crossfader_s& rhs);
+inline bool operator!=(const am_Crossfader_s& lhs, const am_Crossfader_s& rhs) {
+ return !(lhs == rhs);
+}
+bool operator==(const am_Gateway_s& lhs, const am_Gateway_s& rhs);
+inline bool operator!=(const am_Gateway_s& lhs, const am_Gateway_s& rhs) {
+ return !(lhs == rhs);
+}
+bool operator==(const am_RoutingElement_s& lhs, const am_RoutingElement_s& rhs);
+inline bool operator!=(const am_RoutingElement_s& lhs, const am_RoutingElement_s& rhs) {
+ return !(lhs == rhs);
+}
+bool operator==(const am_SoundProperty_s& lhs, const am_SoundProperty_s& rhs);
+inline bool operator!=(const am_SoundProperty_s& lhs, const am_SoundProperty_s& rhs) {
+ return !(lhs == rhs);
+}
+bool operator==(const am_SystemProperty_s& lhs, const am_SystemProperty_s& rhs);
+inline bool operator!=(const am_SystemProperty_s& lhs, const am_SystemProperty_s& rhs) {
+ return !(lhs == rhs);
+}
+bool operator==(const am_SinkClass_s& lhs, const am_SinkClass_s& rhs);
+inline bool operator!=(const am_SinkClass_s& lhs, const am_SinkClass_s& rhs) {
+ return !(lhs == rhs);
+}
+bool operator==(const am_SourceClass_s& lhs, const am_SourceClass_s& rhs);
+inline bool operator!=(const am_SourceClass_s& lhs, const am_SourceClass_s& rhs) {
+ return !(lhs == rhs);
+}
+bool operator==(const am_SourceType_s& lhs, const am_SourceType_s& rhs);
+inline bool operator!=(const am_SourceType_s& lhs, const am_SourceType_s& rhs) {
+ return !(lhs == rhs);
+}
+bool operator==(const am_SinkType_s& lhs, const am_SinkType_s& rhs);
+inline bool operator!=(const am_SinkType_s& lhs, const am_SinkType_s& rhs) {
+ return !(lhs == rhs);
+}
+bool operator==(const am_Handle_s& lhs, const am_Handle_s& rhs);
+inline bool operator!=(const am_Handle_s& lhs, const am_Handle_s& rhs) {
+ return !(lhs == rhs);
+}
+bool operator==(const am_MainSoundProperty_s& lhs, const am_MainSoundProperty_s& rhs);
+inline bool operator!=(const am_MainSoundProperty_s& lhs, const am_MainSoundProperty_s& rhs) {
+ return !(lhs == rhs);
+}
+bool operator==(const am_MainConnectionType_s& lhs, const am_MainConnectionType_s& rhs);
+inline bool operator!=(const am_MainConnectionType_s& lhs, const am_MainConnectionType_s& rhs) {
+ return !(lhs == rhs);
+}
+bool operator==(const am_MainConnection_s& lhs, const am_MainConnection_s& rhs);
+inline bool operator!=(const am_MainConnection_s& lhs, const am_MainConnection_s& rhs) {
+ return !(lhs == rhs);
+}
+bool operator==(const am_NotificationPayload_s& lhs, const am_NotificationPayload_s& rhs);
+inline bool operator!=(const am_NotificationPayload_s& lhs, const am_NotificationPayload_s& rhs) {
+ return !(lhs == rhs);
+}
+bool operator==(const am_NotificationConfiguration_s& lhs, const am_NotificationConfiguration_s& rhs);
+inline bool operator!=(const am_NotificationConfiguration_s& lhs, const am_NotificationConfiguration_s& rhs) {
+ return !(lhs == rhs);
+}
+bool operator==(const am_Sink_s& lhs, const am_Sink_s& rhs);
+inline bool operator!=(const am_Sink_s& lhs, const am_Sink_s& rhs) {
+ return !(lhs == rhs);
+}
+bool operator==(const am_Source_s& lhs, const am_Source_s& rhs);
+inline bool operator!=(const am_Source_s& lhs, const am_Source_s& rhs) {
+ return !(lhs == rhs);
+}
+bool operator==(const am_Domain_s& lhs, const am_Domain_s& rhs);
+inline bool operator!=(const am_Domain_s& lhs, const am_Domain_s& rhs) {
+ return !(lhs == rhs);
+}
+bool operator==(const am_EarlyData_s& lhs, const am_EarlyData_s& rhs);
+inline bool operator!=(const am_EarlyData_s& lhs, const am_EarlyData_s& rhs) {
+ return !(lhs == rhs);
+}
+bool operator==(const am_Connection_s& lhs, const am_Connection_s& rhs);
+inline bool operator!=(const am_Connection_s& lhs, const am_Connection_s& rhs) {
+ return !(lhs == rhs);
+}
+bool operator==(const am_Volumes_s& lhs, const am_Volumes_s& rhs);
+inline bool operator!=(const am_Volumes_s& lhs, const am_Volumes_s& rhs) {
+ return !(lhs == rhs);
+}
+
+
+static inline const char* getTypeCollectionName() {
+ return "org.genivi.am";
+}
+
+inline CommonAPI::Version getTypeCollectionVersion() {
+ return CommonAPI::Version(1, 0);
+}
+
+} // namespace am
+
+} // namespace genivi
+} // namespace org
+
+namespace CommonAPI {
+
+ template<>
+ struct BasicTypeWriter<org::genivi::am::am_Availability_e> {
+ inline static void writeType (CommonAPI::TypeOutputStream& typeStream) {
+ typeStream.writeInt32EnumType();
+ }
+ };
+
+ template<>
+ struct InputStreamVectorHelper<org::genivi::am::am_Availability_e> {
+ static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::am::am_Availability_e>& vectorValue) {
+ inputStream.beginReadInt32EnumVector();
+ }
+ };
+
+ template <>
+ struct OutputStreamVectorHelper<org::genivi::am::am_Availability_e> {
+ static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::am::am_Availability_e>& vectorValue) {
+ outputStream.beginWriteInt32EnumVector(vectorValue.size());
+ }
+ };
+ template<>
+ struct BasicTypeWriter<org::genivi::am::am_HotSink_e> {
+ inline static void writeType (CommonAPI::TypeOutputStream& typeStream) {
+ typeStream.writeInt32EnumType();
+ }
+ };
+
+ template<>
+ struct InputStreamVectorHelper<org::genivi::am::am_HotSink_e> {
+ static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::am::am_HotSink_e>& vectorValue) {
+ inputStream.beginReadInt32EnumVector();
+ }
+ };
+
+ template <>
+ struct OutputStreamVectorHelper<org::genivi::am::am_HotSink_e> {
+ static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::am::am_HotSink_e>& vectorValue) {
+ outputStream.beginWriteInt32EnumVector(vectorValue.size());
+ }
+ };
+ template<>
+ struct BasicTypeWriter<org::genivi::am::am_ConnectionState_e> {
+ inline static void writeType (CommonAPI::TypeOutputStream& typeStream) {
+ typeStream.writeInt32EnumType();
+ }
+ };
+
+ template<>
+ struct InputStreamVectorHelper<org::genivi::am::am_ConnectionState_e> {
+ static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::am::am_ConnectionState_e>& vectorValue) {
+ inputStream.beginReadInt32EnumVector();
+ }
+ };
+
+ template <>
+ struct OutputStreamVectorHelper<org::genivi::am::am_ConnectionState_e> {
+ static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::am::am_ConnectionState_e>& vectorValue) {
+ outputStream.beginWriteInt32EnumVector(vectorValue.size());
+ }
+ };
+ template<>
+ struct BasicTypeWriter<org::genivi::am::am_DomainState_e> {
+ inline static void writeType (CommonAPI::TypeOutputStream& typeStream) {
+ typeStream.writeInt32EnumType();
+ }
+ };
+
+ template<>
+ struct InputStreamVectorHelper<org::genivi::am::am_DomainState_e> {
+ static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::am::am_DomainState_e>& vectorValue) {
+ inputStream.beginReadInt32EnumVector();
+ }
+ };
+
+ template <>
+ struct OutputStreamVectorHelper<org::genivi::am::am_DomainState_e> {
+ static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::am::am_DomainState_e>& vectorValue) {
+ outputStream.beginWriteInt32EnumVector(vectorValue.size());
+ }
+ };
+ template<>
+ struct BasicTypeWriter<org::genivi::am::am_EarlyDataType_e> {
+ inline static void writeType (CommonAPI::TypeOutputStream& typeStream) {
+ typeStream.writeInt32EnumType();
+ }
+ };
+
+ template<>
+ struct InputStreamVectorHelper<org::genivi::am::am_EarlyDataType_e> {
+ static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::am::am_EarlyDataType_e>& vectorValue) {
+ inputStream.beginReadInt32EnumVector();
+ }
+ };
+
+ template <>
+ struct OutputStreamVectorHelper<org::genivi::am::am_EarlyDataType_e> {
+ static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::am::am_EarlyDataType_e>& vectorValue) {
+ outputStream.beginWriteInt32EnumVector(vectorValue.size());
+ }
+ };
+ template<>
+ struct BasicTypeWriter<org::genivi::am::am_Error_e> {
+ inline static void writeType (CommonAPI::TypeOutputStream& typeStream) {
+ typeStream.writeInt32EnumType();
+ }
+ };
+
+ template<>
+ struct InputStreamVectorHelper<org::genivi::am::am_Error_e> {
+ static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::am::am_Error_e>& vectorValue) {
+ inputStream.beginReadInt32EnumVector();
+ }
+ };
+
+ template <>
+ struct OutputStreamVectorHelper<org::genivi::am::am_Error_e> {
+ static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::am::am_Error_e>& vectorValue) {
+ outputStream.beginWriteInt32EnumVector(vectorValue.size());
+ }
+ };
+ template<>
+ struct BasicTypeWriter<org::genivi::am::am_MuteState_e> {
+ inline static void writeType (CommonAPI::TypeOutputStream& typeStream) {
+ typeStream.writeInt32EnumType();
+ }
+ };
+
+ template<>
+ struct InputStreamVectorHelper<org::genivi::am::am_MuteState_e> {
+ static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::am::am_MuteState_e>& vectorValue) {
+ inputStream.beginReadInt32EnumVector();
+ }
+ };
+
+ template <>
+ struct OutputStreamVectorHelper<org::genivi::am::am_MuteState_e> {
+ static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::am::am_MuteState_e>& vectorValue) {
+ outputStream.beginWriteInt32EnumVector(vectorValue.size());
+ }
+ };
+ template<>
+ struct BasicTypeWriter<org::genivi::am::am_InterruptState_e> {
+ inline static void writeType (CommonAPI::TypeOutputStream& typeStream) {
+ typeStream.writeInt32EnumType();
+ }
+ };
+
+ template<>
+ struct InputStreamVectorHelper<org::genivi::am::am_InterruptState_e> {
+ static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::am::am_InterruptState_e>& vectorValue) {
+ inputStream.beginReadInt32EnumVector();
+ }
+ };
+
+ template <>
+ struct OutputStreamVectorHelper<org::genivi::am::am_InterruptState_e> {
+ static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::am::am_InterruptState_e>& vectorValue) {
+ outputStream.beginWriteInt32EnumVector(vectorValue.size());
+ }
+ };
+ template<>
+ struct BasicTypeWriter<org::genivi::am::am_VolumeType_e> {
+ inline static void writeType (CommonAPI::TypeOutputStream& typeStream) {
+ typeStream.writeInt32EnumType();
+ }
+ };
+
+ template<>
+ struct InputStreamVectorHelper<org::genivi::am::am_VolumeType_e> {
+ static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::am::am_VolumeType_e>& vectorValue) {
+ inputStream.beginReadInt32EnumVector();
+ }
+ };
+
+ template <>
+ struct OutputStreamVectorHelper<org::genivi::am::am_VolumeType_e> {
+ static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::am::am_VolumeType_e>& vectorValue) {
+ outputStream.beginWriteInt32EnumVector(vectorValue.size());
+ }
+ };
+ template<>
+ struct BasicTypeWriter<org::genivi::am::am_NotificationStatus_e> {
+ inline static void writeType (CommonAPI::TypeOutputStream& typeStream) {
+ typeStream.writeInt32EnumType();
+ }
+ };
+
+ template<>
+ struct InputStreamVectorHelper<org::genivi::am::am_NotificationStatus_e> {
+ static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::am::am_NotificationStatus_e>& vectorValue) {
+ inputStream.beginReadInt32EnumVector();
+ }
+ };
+
+ template <>
+ struct OutputStreamVectorHelper<org::genivi::am::am_NotificationStatus_e> {
+ static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::am::am_NotificationStatus_e>& vectorValue) {
+ outputStream.beginWriteInt32EnumVector(vectorValue.size());
+ }
+ };
+ template<>
+ struct BasicTypeWriter<org::genivi::am::am_Handle_e> {
+ inline static void writeType (CommonAPI::TypeOutputStream& typeStream) {
+ typeStream.writeInt32EnumType();
+ }
+ };
+
+ template<>
+ struct InputStreamVectorHelper<org::genivi::am::am_Handle_e> {
+ static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::am::am_Handle_e>& vectorValue) {
+ inputStream.beginReadInt32EnumVector();
+ }
+ };
+
+ template <>
+ struct OutputStreamVectorHelper<org::genivi::am::am_Handle_e> {
+ static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::am::am_Handle_e>& vectorValue) {
+ outputStream.beginWriteInt32EnumVector(vectorValue.size());
+ }
+ };
+ template<>
+ struct BasicTypeWriter<org::genivi::am::am_SourceState_e> {
+ inline static void writeType (CommonAPI::TypeOutputStream& typeStream) {
+ typeStream.writeInt32EnumType();
+ }
+ };
+
+ template<>
+ struct InputStreamVectorHelper<org::genivi::am::am_SourceState_e> {
+ static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::am::am_SourceState_e>& vectorValue) {
+ inputStream.beginReadInt32EnumVector();
+ }
+ };
+
+ template <>
+ struct OutputStreamVectorHelper<org::genivi::am::am_SourceState_e> {
+ static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::am::am_SourceState_e>& vectorValue) {
+ outputStream.beginWriteInt32EnumVector(vectorValue.size());
+ }
+ };
+ template<>
+ struct BasicTypeWriter<org::genivi::am::am_RoutingReady_e> {
+ inline static void writeType (CommonAPI::TypeOutputStream& typeStream) {
+ typeStream.writeInt32EnumType();
+ }
+ };
+
+ template<>
+ struct InputStreamVectorHelper<org::genivi::am::am_RoutingReady_e> {
+ static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::am::am_RoutingReady_e>& vectorValue) {
+ inputStream.beginReadInt32EnumVector();
+ }
+ };
+
+ template <>
+ struct OutputStreamVectorHelper<org::genivi::am::am_RoutingReady_e> {
+ static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::am::am_RoutingReady_e>& vectorValue) {
+ outputStream.beginWriteInt32EnumVector(vectorValue.size());
+ }
+ };
+
+}
+
+
+namespace std {
+ //Hash for am_Availability_e
+ template<>
+ struct hash<org::genivi::am::am_Availability_e> {
+ inline size_t operator()(const org::genivi::am::am_Availability_e& am_Availability_e) const {
+ return static_cast<int32_t>(am_Availability_e);
+ }
+ };
+ //Hash for am_HotSink_e
+ template<>
+ struct hash<org::genivi::am::am_HotSink_e> {
+ inline size_t operator()(const org::genivi::am::am_HotSink_e& am_HotSink_e) const {
+ return static_cast<int32_t>(am_HotSink_e);
+ }
+ };
+ //Hash for am_ConnectionState_e
+ template<>
+ struct hash<org::genivi::am::am_ConnectionState_e> {
+ inline size_t operator()(const org::genivi::am::am_ConnectionState_e& am_ConnectionState_e) const {
+ return static_cast<int32_t>(am_ConnectionState_e);
+ }
+ };
+ //Hash for am_DomainState_e
+ template<>
+ struct hash<org::genivi::am::am_DomainState_e> {
+ inline size_t operator()(const org::genivi::am::am_DomainState_e& am_DomainState_e) const {
+ return static_cast<int32_t>(am_DomainState_e);
+ }
+ };
+ //Hash for am_EarlyDataType_e
+ template<>
+ struct hash<org::genivi::am::am_EarlyDataType_e> {
+ inline size_t operator()(const org::genivi::am::am_EarlyDataType_e& am_EarlyDataType_e) const {
+ return static_cast<int32_t>(am_EarlyDataType_e);
+ }
+ };
+ //Hash for am_Error_e
+ template<>
+ struct hash<org::genivi::am::am_Error_e> {
+ inline size_t operator()(const org::genivi::am::am_Error_e& am_Error_e) const {
+ return static_cast<int32_t>(am_Error_e);
+ }
+ };
+ //Hash for am_MuteState_e
+ template<>
+ struct hash<org::genivi::am::am_MuteState_e> {
+ inline size_t operator()(const org::genivi::am::am_MuteState_e& am_MuteState_e) const {
+ return static_cast<int32_t>(am_MuteState_e);
+ }
+ };
+ //Hash for am_InterruptState_e
+ template<>
+ struct hash<org::genivi::am::am_InterruptState_e> {
+ inline size_t operator()(const org::genivi::am::am_InterruptState_e& am_InterruptState_e) const {
+ return static_cast<int32_t>(am_InterruptState_e);
+ }
+ };
+ //Hash for am_VolumeType_e
+ template<>
+ struct hash<org::genivi::am::am_VolumeType_e> {
+ inline size_t operator()(const org::genivi::am::am_VolumeType_e& am_VolumeType_e) const {
+ return static_cast<int32_t>(am_VolumeType_e);
+ }
+ };
+ //Hash for am_NotificationStatus_e
+ template<>
+ struct hash<org::genivi::am::am_NotificationStatus_e> {
+ inline size_t operator()(const org::genivi::am::am_NotificationStatus_e& am_NotificationStatus_e) const {
+ return static_cast<int32_t>(am_NotificationStatus_e);
+ }
+ };
+ //Hash for am_Handle_e
+ template<>
+ struct hash<org::genivi::am::am_Handle_e> {
+ inline size_t operator()(const org::genivi::am::am_Handle_e& am_Handle_e) const {
+ return static_cast<int32_t>(am_Handle_e);
+ }
+ };
+ //Hash for am_SourceState_e
+ template<>
+ struct hash<org::genivi::am::am_SourceState_e> {
+ inline size_t operator()(const org::genivi::am::am_SourceState_e& am_SourceState_e) const {
+ return static_cast<int32_t>(am_SourceState_e);
+ }
+ };
+ //Hash for am_RoutingReady_e
+ template<>
+ struct hash<org::genivi::am::am_RoutingReady_e> {
+ inline size_t operator()(const org::genivi::am::am_RoutingReady_e& am_RoutingReady_e) const {
+ return static_cast<int32_t>(am_RoutingReady_e);
+ }
+ };
+}
+
+#endif // ORG_GENIVI_am_H_
diff --git a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControl.h b/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControl.h
new file mode 100644
index 0000000..40ef21c
--- /dev/null
+++ b/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControl.h
@@ -0,0 +1,55 @@
+/*
+* This file was generated by the CommonAPI Generators.
+*
+ * Copyright (C) 2013, BMW AG
+ *
+ * \author Christian Linke, christian.linke@bmw.de BMW 2012,2013
+*/
+#ifndef ORG_GENIVI_AM_Routing_Control_H_
+#define ORG_GENIVI_AM_Routing_Control_H_
+
+
+
+#define COMMONAPI_INTERNAL_COMPILATION
+
+#include <CommonAPI/types.h>
+
+#undef COMMONAPI_INTERNAL_COMPILATION
+
+namespace org {
+namespace genivi {
+namespace am {
+
+class RoutingControl {
+ public:
+ virtual ~RoutingControl() { }
+
+ static inline const char* getInterfaceId();
+ static inline CommonAPI::Version getInterfaceVersion();
+};
+
+const char* RoutingControl::getInterfaceId() {
+ return "org.genivi.am.RoutingControl";
+}
+
+CommonAPI::Version RoutingControl::getInterfaceVersion() {
+ return CommonAPI::Version(0, 1);
+}
+
+
+} // namespace am
+} // namespace genivi
+} // namespace org
+
+namespace CommonAPI {
+
+}
+
+
+namespace std {
+ //hashes for types
+
+ //hashes for error types
+}
+
+#endif // ORG_GENIVI_AM_Routing_Control_H_
diff --git a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlDBusProxy.cpp b/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlDBusProxy.cpp
new file mode 100644
index 0000000..e55f256
--- /dev/null
+++ b/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlDBusProxy.cpp
@@ -0,0 +1,333 @@
+/*
+* This file was generated by the CommonAPI Generators.
+*
+ * Copyright (C) 2013, BMW AG
+ *
+ * \author Christian Linke, christian.linke@bmw.de BMW 2012,2013
+*/
+#include "RoutingControlDBusProxy.h"
+
+namespace org {
+namespace genivi {
+namespace am {
+
+std::shared_ptr<CommonAPI::DBus::DBusProxy> createRoutingControlDBusProxy(
+ const std::string& commonApiAddress,
+ const std::string& interfaceName,
+ const std::string& busName,
+ const std::string& objectPath,
+ const std::shared_ptr<CommonAPI::DBus::DBusProxyConnection>& dbusProxyConnection) {
+ return std::make_shared<RoutingControlDBusProxy>(commonApiAddress, interfaceName, busName, objectPath, dbusProxyConnection);
+}
+
+__attribute__((constructor)) void registerRoutingControlDBusProxy(void) {
+ CommonAPI::DBus::DBusFactory::registerProxyFactoryMethod(RoutingControl::getInterfaceId(),
+ &createRoutingControlDBusProxy);
+}
+
+RoutingControlDBusProxy::RoutingControlDBusProxy(
+ const std::string& commonApiAddress,
+ const std::string& interfaceName,
+ const std::string& busName,
+ const std::string& objectPath,
+ const std::shared_ptr<CommonAPI::DBus::DBusProxyConnection>& dbusProxyconnection):
+ CommonAPI::DBus::DBusProxy(commonApiAddress, interfaceName, busName, objectPath, dbusProxyconnection)
+ {
+}
+
+
+
+void RoutingControlDBusProxy::asyncAbort(const am_Handle_s& handle, CommonAPI::CallStatus& callStatus) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s>,
+ CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
+ *this,
+ "asyncAbort",
+ "(iq)",
+ handle,
+ callStatus
+ );
+}
+std::future<CommonAPI::CallStatus> RoutingControlDBusProxy::asyncAbortAsync(const am_Handle_s& handle, AsyncAbortAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s>,
+ CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
+ *this,
+ "asyncAbort",
+ "(iq)",
+ handle,
+ std::move(callback));
+}
+void RoutingControlDBusProxy::asyncConnect(const am_Handle_s& handle, const am_connectionID_t& connectionID, const am_sourceID_t& sourceID, const am_sinkID_t& sinkID, const am_ConnectionFormat_pe& connectionFormat, CommonAPI::CallStatus& callStatus) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_connectionID_t, am_sourceID_t, am_sinkID_t, am_ConnectionFormat_pe>,
+ CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
+ *this,
+ "asyncConnect",
+ "(iq)qqqq",
+ handle, connectionID, sourceID, sinkID, connectionFormat,
+ callStatus
+ );
+}
+std::future<CommonAPI::CallStatus> RoutingControlDBusProxy::asyncConnectAsync(const am_Handle_s& handle, const am_connectionID_t& connectionID, const am_sourceID_t& sourceID, const am_sinkID_t& sinkID, const am_ConnectionFormat_pe& connectionFormat, AsyncConnectAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_connectionID_t, am_sourceID_t, am_sinkID_t, am_ConnectionFormat_pe>,
+ CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
+ *this,
+ "asyncConnect",
+ "(iq)qqqq",
+ handle, connectionID, sourceID, sinkID, connectionFormat,
+ std::move(callback));
+}
+void RoutingControlDBusProxy::asyncDisconnect(const am_Handle_s& handle, const am_connectionID_t& connectionID, CommonAPI::CallStatus& callStatus) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_connectionID_t>,
+ CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
+ *this,
+ "asyncDisconnect",
+ "(iq)q",
+ handle, connectionID,
+ callStatus
+ );
+}
+std::future<CommonAPI::CallStatus> RoutingControlDBusProxy::asyncDisconnectAsync(const am_Handle_s& handle, const am_connectionID_t& connectionID, AsyncDisconnectAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_connectionID_t>,
+ CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
+ *this,
+ "asyncDisconnect",
+ "(iq)q",
+ handle, connectionID,
+ std::move(callback));
+}
+void RoutingControlDBusProxy::asyncSetSinkVolume(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_volume_t& volume, const am_RampType_pe& ramp, const am_time_t& time, CommonAPI::CallStatus& callStatus) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_sinkID_t, am_volume_t, am_RampType_pe, am_time_t>,
+ CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
+ *this,
+ "asyncSetSinkVolume",
+ "(iq)qnqn",
+ handle, sinkID, volume, ramp, time,
+ callStatus
+ );
+}
+std::future<CommonAPI::CallStatus> RoutingControlDBusProxy::asyncSetSinkVolumeAsync(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_volume_t& volume, const am_RampType_pe& ramp, const am_time_t& time, AsyncSetSinkVolumeAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_sinkID_t, am_volume_t, am_RampType_pe, am_time_t>,
+ CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
+ *this,
+ "asyncSetSinkVolume",
+ "(iq)qnqn",
+ handle, sinkID, volume, ramp, time,
+ std::move(callback));
+}
+void RoutingControlDBusProxy::asyncSetSourceVolume(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_volume_t& volume, const am_RampType_pe& ramp, const am_time_t& time, CommonAPI::CallStatus& callStatus) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_sourceID_t, am_volume_t, am_RampType_pe, am_time_t>,
+ CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
+ *this,
+ "asyncSetSourceVolume",
+ "(iq)qnqn",
+ handle, sourceID, volume, ramp, time,
+ callStatus
+ );
+}
+std::future<CommonAPI::CallStatus> RoutingControlDBusProxy::asyncSetSourceVolumeAsync(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_volume_t& volume, const am_RampType_pe& ramp, const am_time_t& time, AsyncSetSourceVolumeAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_sourceID_t, am_volume_t, am_RampType_pe, am_time_t>,
+ CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
+ *this,
+ "asyncSetSourceVolume",
+ "(iq)qnqn",
+ handle, sourceID, volume, ramp, time,
+ std::move(callback));
+}
+void RoutingControlDBusProxy::asyncSetSourceState(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_SourceState_e& state, CommonAPI::CallStatus& callStatus) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_sourceID_t, am_SourceState_e>,
+ CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
+ *this,
+ "asyncSetSourceState",
+ "(iq)qi",
+ handle, sourceID, state,
+ callStatus
+ );
+}
+std::future<CommonAPI::CallStatus> RoutingControlDBusProxy::asyncSetSourceStateAsync(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_SourceState_e& state, AsyncSetSourceStateAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_sourceID_t, am_SourceState_e>,
+ CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
+ *this,
+ "asyncSetSourceState",
+ "(iq)qi",
+ handle, sourceID, state,
+ std::move(callback));
+}
+void RoutingControlDBusProxy::asyncSetSinkSoundProperties(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_SoundProperty_L& listSoundProperties, CommonAPI::CallStatus& callStatus) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_sinkID_t, am_SoundProperty_L>,
+ CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
+ *this,
+ "asyncSetSinkSoundProperties",
+ "(iq)qa(qn)",
+ handle, sinkID, listSoundProperties,
+ callStatus
+ );
+}
+std::future<CommonAPI::CallStatus> RoutingControlDBusProxy::asyncSetSinkSoundPropertiesAsync(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_SoundProperty_L& listSoundProperties, AsyncSetSinkSoundPropertiesAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_sinkID_t, am_SoundProperty_L>,
+ CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
+ *this,
+ "asyncSetSinkSoundProperties",
+ "(iq)qa(qn)",
+ handle, sinkID, listSoundProperties,
+ std::move(callback));
+}
+void RoutingControlDBusProxy::asyncSetSinkSoundProperty(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_SoundProperty_s& soundProperty, CommonAPI::CallStatus& callStatus) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_sinkID_t, am_SoundProperty_s>,
+ CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
+ *this,
+ "asyncSetSinkSoundProperty",
+ "(iq)q(qn)",
+ handle, sinkID, soundProperty,
+ callStatus
+ );
+}
+std::future<CommonAPI::CallStatus> RoutingControlDBusProxy::asyncSetSinkSoundPropertyAsync(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_SoundProperty_s& soundProperty, AsyncSetSinkSoundPropertyAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_sinkID_t, am_SoundProperty_s>,
+ CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
+ *this,
+ "asyncSetSinkSoundProperty",
+ "(iq)q(qn)",
+ handle, sinkID, soundProperty,
+ std::move(callback));
+}
+void RoutingControlDBusProxy::asyncSetSourceSoundProperties(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_SoundProperty_L& listSoundProperties, CommonAPI::CallStatus& callStatus) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_sourceID_t, am_SoundProperty_L>,
+ CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
+ *this,
+ "asyncSetSourceSoundProperties",
+ "(iq)qa(qn)",
+ handle, sourceID, listSoundProperties,
+ callStatus
+ );
+}
+std::future<CommonAPI::CallStatus> RoutingControlDBusProxy::asyncSetSourceSoundPropertiesAsync(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_SoundProperty_L& listSoundProperties, AsyncSetSourceSoundPropertiesAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_sourceID_t, am_SoundProperty_L>,
+ CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
+ *this,
+ "asyncSetSourceSoundProperties",
+ "(iq)qa(qn)",
+ handle, sourceID, listSoundProperties,
+ std::move(callback));
+}
+void RoutingControlDBusProxy::asyncSetSourceSoundProperty(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_SoundProperty_s& soundProperty, CommonAPI::CallStatus& callStatus) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_sourceID_t, am_SoundProperty_s>,
+ CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
+ *this,
+ "asyncSetSourceSoundProperty",
+ "(iq)q(qn)",
+ handle, sourceID, soundProperty,
+ callStatus
+ );
+}
+std::future<CommonAPI::CallStatus> RoutingControlDBusProxy::asyncSetSourceSoundPropertyAsync(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_SoundProperty_s& soundProperty, AsyncSetSourceSoundPropertyAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_sourceID_t, am_SoundProperty_s>,
+ CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
+ *this,
+ "asyncSetSourceSoundProperty",
+ "(iq)q(qn)",
+ handle, sourceID, soundProperty,
+ std::move(callback));
+}
+void RoutingControlDBusProxy::asyncCrossFade(const am_Handle_s& handle, const am_crossfaderID_t& crossfaderID, const am_HotSink_e& hotSink, const am_RampType_pe& rampType, const am_time_t& time, CommonAPI::CallStatus& callStatus) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_crossfaderID_t, am_HotSink_e, am_RampType_pe, am_time_t>,
+ CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
+ *this,
+ "asyncCrossFade",
+ "(iq)qiqn",
+ handle, crossfaderID, hotSink, rampType, time,
+ callStatus
+ );
+}
+std::future<CommonAPI::CallStatus> RoutingControlDBusProxy::asyncCrossFadeAsync(const am_Handle_s& handle, const am_crossfaderID_t& crossfaderID, const am_HotSink_e& hotSink, const am_RampType_pe& rampType, const am_time_t& time, AsyncCrossFadeAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_crossfaderID_t, am_HotSink_e, am_RampType_pe, am_time_t>,
+ CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
+ *this,
+ "asyncCrossFade",
+ "(iq)qiqn",
+ handle, crossfaderID, hotSink, rampType, time,
+ std::move(callback));
+}
+void RoutingControlDBusProxy::setDomainState(const am_domainID_t& domainID, const am_DomainState_e& domainState, CommonAPI::CallStatus& callStatus, am_Error_e& error) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_domainID_t, am_DomainState_e>,
+ CommonAPI::DBus::DBusSerializableArguments<am_Error_e> >::callMethodWithReply(
+ *this,
+ "setDomainState",
+ "qi",
+ domainID, domainState,
+ callStatus
+ , error);
+}
+std::future<CommonAPI::CallStatus> RoutingControlDBusProxy::setDomainStateAsync(const am_domainID_t& domainID, const am_DomainState_e& domainState, SetDomainStateAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_domainID_t, am_DomainState_e>,
+ CommonAPI::DBus::DBusSerializableArguments<am_Error_e> >::callMethodAsync(
+ *this,
+ "setDomainState",
+ "qi",
+ domainID, domainState,
+ std::move(callback));
+}
+void RoutingControlDBusProxy::asyncSetVolumes(const am_Handle_s& handle, const am_Volumes_L& volumes, CommonAPI::CallStatus& callStatus) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_Volumes_L>,
+ CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
+ *this,
+ "asyncSetVolumes",
+ "(iq)a(i(yv)nqn)",
+ handle, volumes,
+ callStatus
+ );
+}
+std::future<CommonAPI::CallStatus> RoutingControlDBusProxy::asyncSetVolumesAsync(const am_Handle_s& handle, const am_Volumes_L& volumes, AsyncSetVolumesAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_Volumes_L>,
+ CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
+ *this,
+ "asyncSetVolumes",
+ "(iq)a(i(yv)nqn)",
+ handle, volumes,
+ std::move(callback));
+}
+void RoutingControlDBusProxy::asyncSetSinkNotificationConfiguration(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_NotificationConfiguration_s& notificationConfiguration, CommonAPI::CallStatus& callStatus) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_sinkID_t, am_NotificationConfiguration_s>,
+ CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
+ *this,
+ "asyncSetSinkNotificationConfiguration",
+ "(iq)q(qin)",
+ handle, sinkID, notificationConfiguration,
+ callStatus
+ );
+}
+std::future<CommonAPI::CallStatus> RoutingControlDBusProxy::asyncSetSinkNotificationConfigurationAsync(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_NotificationConfiguration_s& notificationConfiguration, AsyncSetSinkNotificationConfigurationAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_sinkID_t, am_NotificationConfiguration_s>,
+ CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
+ *this,
+ "asyncSetSinkNotificationConfiguration",
+ "(iq)q(qin)",
+ handle, sinkID, notificationConfiguration,
+ std::move(callback));
+}
+void RoutingControlDBusProxy::asyncSetSourceNotificationConfiguration(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_NotificationConfiguration_s& notificationConfiguration, CommonAPI::CallStatus& callStatus) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_sourceID_t, am_NotificationConfiguration_s>,
+ CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
+ *this,
+ "asyncSetSourceNotificationConfiguration",
+ "(iq)q(qin)",
+ handle, sourceID, notificationConfiguration,
+ callStatus
+ );
+}
+std::future<CommonAPI::CallStatus> RoutingControlDBusProxy::asyncSetSourceNotificationConfigurationAsync(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_NotificationConfiguration_s& notificationConfiguration, AsyncSetSourceNotificationConfigurationAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_sourceID_t, am_NotificationConfiguration_s>,
+ CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
+ *this,
+ "asyncSetSourceNotificationConfiguration",
+ "(iq)q(qin)",
+ handle, sourceID, notificationConfiguration,
+ std::move(callback));
+}
+
+void RoutingControlDBusProxy::getOwnVersion(uint16_t& ownVersionMajor, uint16_t& ownVersionMinor) const {
+ ownVersionMajor = 0;
+ ownVersionMinor = 1;
+}
+
+} // namespace am
+} // namespace genivi
+} // namespace org
diff --git a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlDBusProxy.h b/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlDBusProxy.h
new file mode 100644
index 0000000..9e73446
--- /dev/null
+++ b/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlDBusProxy.h
@@ -0,0 +1,95 @@
+/*
+* This file was generated by the CommonAPI Generators.
+*
+ * Copyright (C) 2013, BMW AG
+ *
+ * \author Christian Linke, christian.linke@bmw.de BMW 2012,2013
+*/
+#ifndef ORG_GENIVI_AM_Routing_Control_DBUS_PROXY_H_
+#define ORG_GENIVI_AM_Routing_Control_DBUS_PROXY_H_
+
+#include <org/genivi/am/RoutingControlProxyBase.h>
+
+#define COMMONAPI_INTERNAL_COMPILATION
+
+#include <CommonAPI/DBus/DBusFactory.h>
+#include <CommonAPI/DBus/DBusProxy.h>
+
+#undef COMMONAPI_INTERNAL_COMPILATION
+
+#include <string>
+
+namespace org {
+namespace genivi {
+namespace am {
+
+class RoutingControlDBusProxy: virtual public RoutingControlProxyBase, virtual public CommonAPI::DBus::DBusProxy {
+ public:
+ RoutingControlDBusProxy(
+ const std::string& commonApiAddress,
+ const std::string& interfaceName,
+ const std::string& busName,
+ const std::string& objectPath,
+ const std::shared_ptr<CommonAPI::DBus::DBusProxyConnection>& dbusProxyconnection);
+
+ virtual ~RoutingControlDBusProxy() { }
+
+
+
+
+ virtual void asyncAbort(const am_Handle_s& handle, CommonAPI::CallStatus& callStatus);
+ virtual std::future<CommonAPI::CallStatus> asyncAbortAsync(const am_Handle_s& handle, AsyncAbortAsyncCallback callback);
+
+ virtual void asyncConnect(const am_Handle_s& handle, const am_connectionID_t& connectionID, const am_sourceID_t& sourceID, const am_sinkID_t& sinkID, const am_ConnectionFormat_pe& connectionFormat, CommonAPI::CallStatus& callStatus);
+ virtual std::future<CommonAPI::CallStatus> asyncConnectAsync(const am_Handle_s& handle, const am_connectionID_t& connectionID, const am_sourceID_t& sourceID, const am_sinkID_t& sinkID, const am_ConnectionFormat_pe& connectionFormat, AsyncConnectAsyncCallback callback);
+
+ virtual void asyncDisconnect(const am_Handle_s& handle, const am_connectionID_t& connectionID, CommonAPI::CallStatus& callStatus);
+ virtual std::future<CommonAPI::CallStatus> asyncDisconnectAsync(const am_Handle_s& handle, const am_connectionID_t& connectionID, AsyncDisconnectAsyncCallback callback);
+
+ virtual void asyncSetSinkVolume(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_volume_t& volume, const am_RampType_pe& ramp, const am_time_t& time, CommonAPI::CallStatus& callStatus);
+ virtual std::future<CommonAPI::CallStatus> asyncSetSinkVolumeAsync(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_volume_t& volume, const am_RampType_pe& ramp, const am_time_t& time, AsyncSetSinkVolumeAsyncCallback callback);
+
+ virtual void asyncSetSourceVolume(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_volume_t& volume, const am_RampType_pe& ramp, const am_time_t& time, CommonAPI::CallStatus& callStatus);
+ virtual std::future<CommonAPI::CallStatus> asyncSetSourceVolumeAsync(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_volume_t& volume, const am_RampType_pe& ramp, const am_time_t& time, AsyncSetSourceVolumeAsyncCallback callback);
+
+ virtual void asyncSetSourceState(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_SourceState_e& state, CommonAPI::CallStatus& callStatus);
+ virtual std::future<CommonAPI::CallStatus> asyncSetSourceStateAsync(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_SourceState_e& state, AsyncSetSourceStateAsyncCallback callback);
+
+ virtual void asyncSetSinkSoundProperties(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_SoundProperty_L& listSoundProperties, CommonAPI::CallStatus& callStatus);
+ virtual std::future<CommonAPI::CallStatus> asyncSetSinkSoundPropertiesAsync(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_SoundProperty_L& listSoundProperties, AsyncSetSinkSoundPropertiesAsyncCallback callback);
+
+ virtual void asyncSetSinkSoundProperty(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_SoundProperty_s& soundProperty, CommonAPI::CallStatus& callStatus);
+ virtual std::future<CommonAPI::CallStatus> asyncSetSinkSoundPropertyAsync(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_SoundProperty_s& soundProperty, AsyncSetSinkSoundPropertyAsyncCallback callback);
+
+ virtual void asyncSetSourceSoundProperties(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_SoundProperty_L& listSoundProperties, CommonAPI::CallStatus& callStatus);
+ virtual std::future<CommonAPI::CallStatus> asyncSetSourceSoundPropertiesAsync(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_SoundProperty_L& listSoundProperties, AsyncSetSourceSoundPropertiesAsyncCallback callback);
+
+ virtual void asyncSetSourceSoundProperty(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_SoundProperty_s& soundProperty, CommonAPI::CallStatus& callStatus);
+ virtual std::future<CommonAPI::CallStatus> asyncSetSourceSoundPropertyAsync(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_SoundProperty_s& soundProperty, AsyncSetSourceSoundPropertyAsyncCallback callback);
+
+ virtual void asyncCrossFade(const am_Handle_s& handle, const am_crossfaderID_t& crossfaderID, const am_HotSink_e& hotSink, const am_RampType_pe& rampType, const am_time_t& time, CommonAPI::CallStatus& callStatus);
+ virtual std::future<CommonAPI::CallStatus> asyncCrossFadeAsync(const am_Handle_s& handle, const am_crossfaderID_t& crossfaderID, const am_HotSink_e& hotSink, const am_RampType_pe& rampType, const am_time_t& time, AsyncCrossFadeAsyncCallback callback);
+
+ virtual void setDomainState(const am_domainID_t& domainID, const am_DomainState_e& domainState, CommonAPI::CallStatus& callStatus, am_Error_e& error);
+ virtual std::future<CommonAPI::CallStatus> setDomainStateAsync(const am_domainID_t& domainID, const am_DomainState_e& domainState, SetDomainStateAsyncCallback callback);
+
+ virtual void asyncSetVolumes(const am_Handle_s& handle, const am_Volumes_L& volumes, CommonAPI::CallStatus& callStatus);
+ virtual std::future<CommonAPI::CallStatus> asyncSetVolumesAsync(const am_Handle_s& handle, const am_Volumes_L& volumes, AsyncSetVolumesAsyncCallback callback);
+
+ virtual void asyncSetSinkNotificationConfiguration(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_NotificationConfiguration_s& notificationConfiguration, CommonAPI::CallStatus& callStatus);
+ virtual std::future<CommonAPI::CallStatus> asyncSetSinkNotificationConfigurationAsync(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_NotificationConfiguration_s& notificationConfiguration, AsyncSetSinkNotificationConfigurationAsyncCallback callback);
+
+ virtual void asyncSetSourceNotificationConfiguration(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_NotificationConfiguration_s& notificationConfiguration, CommonAPI::CallStatus& callStatus);
+ virtual std::future<CommonAPI::CallStatus> asyncSetSourceNotificationConfigurationAsync(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_NotificationConfiguration_s& notificationConfiguration, AsyncSetSourceNotificationConfigurationAsyncCallback callback);
+
+ virtual void getOwnVersion(uint16_t& ownVersionMajor, uint16_t& ownVersionMinor) const;
+
+ private:
+
+};
+
+} // namespace am
+} // namespace genivi
+} // namespace org
+
+#endif // ORG_GENIVI_AM_Routing_Control_DBUS_PROXY_H_
diff --git a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlDBusStubAdapter.cpp b/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlDBusStubAdapter.cpp
new file mode 100644
index 0000000..fe14623
--- /dev/null
+++ b/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlDBusStubAdapter.cpp
@@ -0,0 +1,225 @@
+/*
+* This file was generated by the CommonAPI Generators.
+*
+ * Copyright (C) 2013, BMW AG
+ *
+ * \author Christian Linke, christian.linke@bmw.de BMW 2012,2013
+*/
+#include "RoutingControlDBusStubAdapter.h"
+#include <org/genivi/am/RoutingControl.h>
+
+namespace org {
+namespace genivi {
+namespace am {
+
+std::shared_ptr<CommonAPI::DBus::DBusStubAdapter> createRoutingControlDBusStubAdapter(
+ const std::string& commonApiAddress,
+ const std::string& interfaceName,
+ const std::string& busName,
+ const std::string& objectPath,
+ const std::shared_ptr<CommonAPI::DBus::DBusProxyConnection>& dbusProxyConnection,
+ const std::shared_ptr<CommonAPI::StubBase>& stubBase) {
+ return std::make_shared<RoutingControlDBusStubAdapter>(commonApiAddress, interfaceName, busName, objectPath, dbusProxyConnection, stubBase);
+}
+
+__attribute__((constructor)) void registerRoutingControlDBusStubAdapter(void) {
+ CommonAPI::DBus::DBusFactory::registerAdapterFactoryMethod(RoutingControl::getInterfaceId(),
+ &createRoutingControlDBusStubAdapter);
+}
+
+RoutingControlDBusStubAdapter::RoutingControlDBusStubAdapter(
+ const std::string& commonApiAddress,
+ const std::string& dbusInterfaceName,
+ const std::string& dbusBusName,
+ const std::string& dbusObjectPath,
+ const std::shared_ptr<CommonAPI::DBus::DBusProxyConnection>& dbusConnection,
+ const std::shared_ptr<CommonAPI::StubBase>& stub):
+ RoutingControlDBusStubAdapterHelper(commonApiAddress, dbusInterfaceName, dbusBusName, dbusObjectPath, dbusConnection, std::dynamic_pointer_cast<RoutingControlStub>(stub)) {
+}
+
+const char* RoutingControlDBusStubAdapter::getMethodsDBusIntrospectionXmlData() const {
+ return
+ "<method name=\"asyncAbort\">\n"
+ "<arg name=\"handle\" type=\"(iq)\" direction=\"in\" />\n"
+ "</method>\n"
+ "<method name=\"asyncConnect\">\n"
+ "<arg name=\"handle\" type=\"(iq)\" direction=\"in\" />\n"
+ "<arg name=\"connectionID\" type=\"q\" direction=\"in\" />\n"
+ "<arg name=\"sourceID\" type=\"q\" direction=\"in\" />\n"
+ "<arg name=\"sinkID\" type=\"q\" direction=\"in\" />\n"
+ "<arg name=\"connectionFormat\" type=\"q\" direction=\"in\" />\n"
+ "</method>\n"
+ "<method name=\"asyncDisconnect\">\n"
+ "<arg name=\"handle\" type=\"(iq)\" direction=\"in\" />\n"
+ "<arg name=\"connectionID\" type=\"q\" direction=\"in\" />\n"
+ "</method>\n"
+ "<method name=\"asyncSetSinkVolume\">\n"
+ "<arg name=\"handle\" type=\"(iq)\" direction=\"in\" />\n"
+ "<arg name=\"sinkID\" type=\"q\" direction=\"in\" />\n"
+ "<arg name=\"volume\" type=\"n\" direction=\"in\" />\n"
+ "<arg name=\"ramp\" type=\"q\" direction=\"in\" />\n"
+ "<arg name=\"time\" type=\"n\" direction=\"in\" />\n"
+ "</method>\n"
+ "<method name=\"asyncSetSourceVolume\">\n"
+ "<arg name=\"handle\" type=\"(iq)\" direction=\"in\" />\n"
+ "<arg name=\"sourceID\" type=\"q\" direction=\"in\" />\n"
+ "<arg name=\"volume\" type=\"n\" direction=\"in\" />\n"
+ "<arg name=\"ramp\" type=\"q\" direction=\"in\" />\n"
+ "<arg name=\"time\" type=\"n\" direction=\"in\" />\n"
+ "</method>\n"
+ "<method name=\"asyncSetSourceState\">\n"
+ "<arg name=\"handle\" type=\"(iq)\" direction=\"in\" />\n"
+ "<arg name=\"sourceID\" type=\"q\" direction=\"in\" />\n"
+ "<arg name=\"state\" type=\"i\" direction=\"in\" />\n"
+ "</method>\n"
+ "<method name=\"asyncSetSinkSoundProperties\">\n"
+ "<arg name=\"handle\" type=\"(iq)\" direction=\"in\" />\n"
+ "<arg name=\"sinkID\" type=\"q\" direction=\"in\" />\n"
+ "<arg name=\"listSoundProperties\" type=\"a(qn)\" direction=\"in\" />\n"
+ "</method>\n"
+ "<method name=\"asyncSetSinkSoundProperty\">\n"
+ "<arg name=\"handle\" type=\"(iq)\" direction=\"in\" />\n"
+ "<arg name=\"sinkID\" type=\"q\" direction=\"in\" />\n"
+ "<arg name=\"soundProperty\" type=\"(qn)\" direction=\"in\" />\n"
+ "</method>\n"
+ "<method name=\"asyncSetSourceSoundProperties\">\n"
+ "<arg name=\"handle\" type=\"(iq)\" direction=\"in\" />\n"
+ "<arg name=\"sourceID\" type=\"q\" direction=\"in\" />\n"
+ "<arg name=\"listSoundProperties\" type=\"a(qn)\" direction=\"in\" />\n"
+ "</method>\n"
+ "<method name=\"asyncSetSourceSoundProperty\">\n"
+ "<arg name=\"handle\" type=\"(iq)\" direction=\"in\" />\n"
+ "<arg name=\"sourceID\" type=\"q\" direction=\"in\" />\n"
+ "<arg name=\"soundProperty\" type=\"(qn)\" direction=\"in\" />\n"
+ "</method>\n"
+ "<method name=\"asyncCrossFade\">\n"
+ "<arg name=\"handle\" type=\"(iq)\" direction=\"in\" />\n"
+ "<arg name=\"crossfaderID\" type=\"q\" direction=\"in\" />\n"
+ "<arg name=\"hotSink\" type=\"i\" direction=\"in\" />\n"
+ "<arg name=\"rampType\" type=\"q\" direction=\"in\" />\n"
+ "<arg name=\"time\" type=\"n\" direction=\"in\" />\n"
+ "</method>\n"
+ "<method name=\"setDomainState\">\n"
+ "<arg name=\"domainID\" type=\"q\" direction=\"in\" />\n"
+ "<arg name=\"domainState\" type=\"i\" direction=\"in\" />\n"
+ "<arg name=\"error\" type=\"i\" direction=\"out\" />\n"
+ "</method>\n"
+ "<method name=\"asyncSetVolumes\">\n"
+ "<arg name=\"handle\" type=\"(iq)\" direction=\"in\" />\n"
+ "<arg name=\"volumes\" type=\"a(i(yv)nqn)\" direction=\"in\" />\n"
+ "</method>\n"
+ "<method name=\"asyncSetSinkNotificationConfiguration\">\n"
+ "<arg name=\"handle\" type=\"(iq)\" direction=\"in\" />\n"
+ "<arg name=\"sinkID\" type=\"q\" direction=\"in\" />\n"
+ "<arg name=\"notificationConfiguration\" type=\"(qin)\" direction=\"in\" />\n"
+ "</method>\n"
+ "<method name=\"asyncSetSourceNotificationConfiguration\">\n"
+ "<arg name=\"handle\" type=\"(iq)\" direction=\"in\" />\n"
+ "<arg name=\"sourceID\" type=\"q\" direction=\"in\" />\n"
+ "<arg name=\"notificationConfiguration\" type=\"(qin)\" direction=\"in\" />\n"
+ "</method>\n"
+ ;
+}
+
+
+
+static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
+ RoutingControlStub,
+ std::tuple<am_Handle_s>,
+ std::tuple<>
+ > asyncAbortStubDispatcher(&RoutingControlStub::asyncAbort, "");
+static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
+ RoutingControlStub,
+ std::tuple<am_Handle_s, am_connectionID_t, am_sourceID_t, am_sinkID_t, am_ConnectionFormat_pe>,
+ std::tuple<>
+ > asyncConnectStubDispatcher(&RoutingControlStub::asyncConnect, "");
+static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
+ RoutingControlStub,
+ std::tuple<am_Handle_s, am_connectionID_t>,
+ std::tuple<>
+ > asyncDisconnectStubDispatcher(&RoutingControlStub::asyncDisconnect, "");
+static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
+ RoutingControlStub,
+ std::tuple<am_Handle_s, am_sinkID_t, am_volume_t, am_RampType_pe, am_time_t>,
+ std::tuple<>
+ > asyncSetSinkVolumeStubDispatcher(&RoutingControlStub::asyncSetSinkVolume, "");
+static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
+ RoutingControlStub,
+ std::tuple<am_Handle_s, am_sourceID_t, am_volume_t, am_RampType_pe, am_time_t>,
+ std::tuple<>
+ > asyncSetSourceVolumeStubDispatcher(&RoutingControlStub::asyncSetSourceVolume, "");
+static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
+ RoutingControlStub,
+ std::tuple<am_Handle_s, am_sourceID_t, am_SourceState_e>,
+ std::tuple<>
+ > asyncSetSourceStateStubDispatcher(&RoutingControlStub::asyncSetSourceState, "");
+static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
+ RoutingControlStub,
+ std::tuple<am_Handle_s, am_sinkID_t, am_SoundProperty_L>,
+ std::tuple<>
+ > asyncSetSinkSoundPropertiesStubDispatcher(&RoutingControlStub::asyncSetSinkSoundProperties, "");
+static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
+ RoutingControlStub,
+ std::tuple<am_Handle_s, am_sinkID_t, am_SoundProperty_s>,
+ std::tuple<>
+ > asyncSetSinkSoundPropertyStubDispatcher(&RoutingControlStub::asyncSetSinkSoundProperty, "");
+static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
+ RoutingControlStub,
+ std::tuple<am_Handle_s, am_sourceID_t, am_SoundProperty_L>,
+ std::tuple<>
+ > asyncSetSourceSoundPropertiesStubDispatcher(&RoutingControlStub::asyncSetSourceSoundProperties, "");
+static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
+ RoutingControlStub,
+ std::tuple<am_Handle_s, am_sourceID_t, am_SoundProperty_s>,
+ std::tuple<>
+ > asyncSetSourceSoundPropertyStubDispatcher(&RoutingControlStub::asyncSetSourceSoundProperty, "");
+static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
+ RoutingControlStub,
+ std::tuple<am_Handle_s, am_crossfaderID_t, am_HotSink_e, am_RampType_pe, am_time_t>,
+ std::tuple<>
+ > asyncCrossFadeStubDispatcher(&RoutingControlStub::asyncCrossFade, "");
+static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
+ RoutingControlStub,
+ std::tuple<am_domainID_t, am_DomainState_e>,
+ std::tuple<am_Error_e>
+ > setDomainStateStubDispatcher(&RoutingControlStub::setDomainState, "i");
+static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
+ RoutingControlStub,
+ std::tuple<am_Handle_s, am_Volumes_L>,
+ std::tuple<>
+ > asyncSetVolumesStubDispatcher(&RoutingControlStub::asyncSetVolumes, "");
+static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
+ RoutingControlStub,
+ std::tuple<am_Handle_s, am_sinkID_t, am_NotificationConfiguration_s>,
+ std::tuple<>
+ > asyncSetSinkNotificationConfigurationStubDispatcher(&RoutingControlStub::asyncSetSinkNotificationConfiguration, "");
+static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
+ RoutingControlStub,
+ std::tuple<am_Handle_s, am_sourceID_t, am_NotificationConfiguration_s>,
+ std::tuple<>
+ > asyncSetSourceNotificationConfigurationStubDispatcher(&RoutingControlStub::asyncSetSourceNotificationConfiguration, "");
+
+
+
+} // namespace am
+} // namespace genivi
+} // namespace org
+
+template<>
+const org::genivi::am::RoutingControlDBusStubAdapterHelper::StubDispatcherTable org::genivi::am::RoutingControlDBusStubAdapterHelper::stubDispatcherTable_ = {
+ { { "asyncAbort", "(iq)" }, &org::genivi::am::asyncAbortStubDispatcher },
+ { { "asyncConnect", "(iq)qqqq" }, &org::genivi::am::asyncConnectStubDispatcher },
+ { { "asyncDisconnect", "(iq)q" }, &org::genivi::am::asyncDisconnectStubDispatcher },
+ { { "asyncSetSinkVolume", "(iq)qnqn" }, &org::genivi::am::asyncSetSinkVolumeStubDispatcher },
+ { { "asyncSetSourceVolume", "(iq)qnqn" }, &org::genivi::am::asyncSetSourceVolumeStubDispatcher },
+ { { "asyncSetSourceState", "(iq)qi" }, &org::genivi::am::asyncSetSourceStateStubDispatcher },
+ { { "asyncSetSinkSoundProperties", "(iq)qa(qn)" }, &org::genivi::am::asyncSetSinkSoundPropertiesStubDispatcher },
+ { { "asyncSetSinkSoundProperty", "(iq)q(qn)" }, &org::genivi::am::asyncSetSinkSoundPropertyStubDispatcher },
+ { { "asyncSetSourceSoundProperties", "(iq)qa(qn)" }, &org::genivi::am::asyncSetSourceSoundPropertiesStubDispatcher },
+ { { "asyncSetSourceSoundProperty", "(iq)q(qn)" }, &org::genivi::am::asyncSetSourceSoundPropertyStubDispatcher },
+ { { "asyncCrossFade", "(iq)qiqn" }, &org::genivi::am::asyncCrossFadeStubDispatcher },
+ { { "setDomainState", "qi" }, &org::genivi::am::setDomainStateStubDispatcher },
+ { { "asyncSetVolumes", "(iq)a(i(yv)nqn)" }, &org::genivi::am::asyncSetVolumesStubDispatcher },
+ { { "asyncSetSinkNotificationConfiguration", "(iq)q(qin)" }, &org::genivi::am::asyncSetSinkNotificationConfigurationStubDispatcher },
+ { { "asyncSetSourceNotificationConfiguration", "(iq)q(qin)" }, &org::genivi::am::asyncSetSourceNotificationConfigurationStubDispatcher }
+};
diff --git a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlDBusStubAdapter.h b/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlDBusStubAdapter.h
new file mode 100644
index 0000000..c25c98a
--- /dev/null
+++ b/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlDBusStubAdapter.h
@@ -0,0 +1,46 @@
+/*
+* This file was generated by the CommonAPI Generators.
+*
+ * Copyright (C) 2013, BMW AG
+ *
+ * \author Christian Linke, christian.linke@bmw.de BMW 2012,2013
+*/
+#ifndef ORG_GENIVI_AM_Routing_Control_DBUS_STUB_ADAPTER_H_
+#define ORG_GENIVI_AM_Routing_Control_DBUS_STUB_ADAPTER_H_
+
+#include <org/genivi/am/RoutingControlStub.h>
+
+#define COMMONAPI_INTERNAL_COMPILATION
+
+#include <CommonAPI/DBus/DBusStubAdapterHelper.h>
+#include <CommonAPI/DBus/DBusFactory.h>
+
+#undef COMMONAPI_INTERNAL_COMPILATION
+
+namespace org {
+namespace genivi {
+namespace am {
+
+typedef CommonAPI::DBus::DBusStubAdapterHelper<RoutingControlStub> RoutingControlDBusStubAdapterHelper;
+
+class RoutingControlDBusStubAdapter: public RoutingControlStubAdapter, public RoutingControlDBusStubAdapterHelper {
+ public:
+ RoutingControlDBusStubAdapter(
+ const std::string& commonApiAddress,
+ const std::string& dbusInterfaceName,
+ const std::string& dbusBusName,
+ const std::string& dbusObjectPath,
+ const std::shared_ptr<CommonAPI::DBus::DBusProxyConnection>& dbusConnection,
+ const std::shared_ptr<CommonAPI::StubBase>& stub);
+
+
+
+ protected:
+ virtual const char* getMethodsDBusIntrospectionXmlData() const;
+};
+
+} // namespace am
+} // namespace genivi
+} // namespace org
+
+#endif // ORG_GENIVI_AM_Routing_Control_DBUS_STUB_ADAPTER_H_
diff --git a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlObserver.h b/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlObserver.h
new file mode 100644
index 0000000..e5b6803
--- /dev/null
+++ b/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlObserver.h
@@ -0,0 +1,55 @@
+/*
+* This file was generated by the CommonAPI Generators.
+*
+ * Copyright (C) 2013, BMW AG
+ *
+ * \author Christian Linke, christian.linke@bmw.de BMW 2012,2013
+*/
+#ifndef ORG_GENIVI_AM_Routing_Control_Observer_H_
+#define ORG_GENIVI_AM_Routing_Control_Observer_H_
+
+
+
+#define COMMONAPI_INTERNAL_COMPILATION
+
+#include <CommonAPI/types.h>
+
+#undef COMMONAPI_INTERNAL_COMPILATION
+
+namespace org {
+namespace genivi {
+namespace am {
+
+class RoutingControlObserver {
+ public:
+ virtual ~RoutingControlObserver() { }
+
+ static inline const char* getInterfaceId();
+ static inline CommonAPI::Version getInterfaceVersion();
+};
+
+const char* RoutingControlObserver::getInterfaceId() {
+ return "org.genivi.am.RoutingControlObserver";
+}
+
+CommonAPI::Version RoutingControlObserver::getInterfaceVersion() {
+ return CommonAPI::Version(0, 1);
+}
+
+
+} // namespace am
+} // namespace genivi
+} // namespace org
+
+namespace CommonAPI {
+
+}
+
+
+namespace std {
+ //hashes for types
+
+ //hashes for error types
+}
+
+#endif // ORG_GENIVI_AM_Routing_Control_Observer_H_
diff --git a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlObserverDBusProxy.cpp b/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlObserverDBusProxy.cpp
new file mode 100644
index 0000000..370b831
--- /dev/null
+++ b/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlObserverDBusProxy.cpp
@@ -0,0 +1,869 @@
+/*
+* This file was generated by the CommonAPI Generators.
+*
+ * Copyright (C) 2013, BMW AG
+ *
+ * \author Christian Linke, christian.linke@bmw.de BMW 2012,2013
+*/
+#include "RoutingControlObserverDBusProxy.h"
+
+namespace org {
+namespace genivi {
+namespace am {
+
+std::shared_ptr<CommonAPI::DBus::DBusProxy> createRoutingControlObserverDBusProxy(
+ const std::string& commonApiAddress,
+ const std::string& interfaceName,
+ const std::string& busName,
+ const std::string& objectPath,
+ const std::shared_ptr<CommonAPI::DBus::DBusProxyConnection>& dbusProxyConnection) {
+ return std::make_shared<RoutingControlObserverDBusProxy>(commonApiAddress, interfaceName, busName, objectPath, dbusProxyConnection);
+}
+
+__attribute__((constructor)) void registerRoutingControlObserverDBusProxy(void) {
+ CommonAPI::DBus::DBusFactory::registerProxyFactoryMethod(RoutingControlObserver::getInterfaceId(),
+ &createRoutingControlObserverDBusProxy);
+}
+
+RoutingControlObserverDBusProxy::RoutingControlObserverDBusProxy(
+ const std::string& commonApiAddress,
+ const std::string& interfaceName,
+ const std::string& busName,
+ const std::string& objectPath,
+ const std::shared_ptr<CommonAPI::DBus::DBusProxyConnection>& dbusProxyconnection):
+ CommonAPI::DBus::DBusProxy(commonApiAddress, interfaceName, busName, objectPath, dbusProxyconnection)
+, routingReady_(*this, "onRoutingReadyAttributeChanged", "setRoutingReadyAttribute", "i", "getRoutingReadyAttribute")
+ {
+}
+
+RoutingControlObserverDBusProxy::RoutingReadyAttribute& RoutingControlObserverDBusProxy::getRoutingReadyAttribute() {
+ return routingReady_;
+}
+
+
+void RoutingControlObserverDBusProxy::ackConnect(const am_Handle_s& handle, const am_connectionID_t& connectionID, const am_Error_e& error, CommonAPI::CallStatus& callStatus) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_connectionID_t, am_Error_e>,
+ CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
+ *this,
+ "ackConnect",
+ "(iq)qi",
+ handle, connectionID, error,
+ callStatus
+ );
+}
+std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::ackConnectAsync(const am_Handle_s& handle, const am_connectionID_t& connectionID, const am_Error_e& error, AckConnectAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_connectionID_t, am_Error_e>,
+ CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
+ *this,
+ "ackConnect",
+ "(iq)qi",
+ handle, connectionID, error,
+ std::move(callback));
+}
+void RoutingControlObserverDBusProxy::ackDisconnect(const am_Handle_s& handle, const am_connectionID_t& connectionID, const am_Error_e& error, CommonAPI::CallStatus& callStatus) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_connectionID_t, am_Error_e>,
+ CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
+ *this,
+ "ackDisconnect",
+ "(iq)qi",
+ handle, connectionID, error,
+ callStatus
+ );
+}
+std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::ackDisconnectAsync(const am_Handle_s& handle, const am_connectionID_t& connectionID, const am_Error_e& error, AckDisconnectAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_connectionID_t, am_Error_e>,
+ CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
+ *this,
+ "ackDisconnect",
+ "(iq)qi",
+ handle, connectionID, error,
+ std::move(callback));
+}
+void RoutingControlObserverDBusProxy::ackSetSinkVolumeChange(const am_Handle_s& handle, const am_volume_t& volume, const am_Error_e& error, CommonAPI::CallStatus& callStatus) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_volume_t, am_Error_e>,
+ CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
+ *this,
+ "ackSetSinkVolumeChange",
+ "(iq)ni",
+ handle, volume, error,
+ callStatus
+ );
+}
+std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::ackSetSinkVolumeChangeAsync(const am_Handle_s& handle, const am_volume_t& volume, const am_Error_e& error, AckSetSinkVolumeChangeAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_volume_t, am_Error_e>,
+ CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
+ *this,
+ "ackSetSinkVolumeChange",
+ "(iq)ni",
+ handle, volume, error,
+ std::move(callback));
+}
+void RoutingControlObserverDBusProxy::ackSetSourceVolumeChange(const am_Handle_s& handle, const am_volume_t& volume, const am_Error_e& error, CommonAPI::CallStatus& callStatus) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_volume_t, am_Error_e>,
+ CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
+ *this,
+ "ackSetSourceVolumeChange",
+ "(iq)ni",
+ handle, volume, error,
+ callStatus
+ );
+}
+std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::ackSetSourceVolumeChangeAsync(const am_Handle_s& handle, const am_volume_t& volume, const am_Error_e& error, AckSetSourceVolumeChangeAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_volume_t, am_Error_e>,
+ CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
+ *this,
+ "ackSetSourceVolumeChange",
+ "(iq)ni",
+ handle, volume, error,
+ std::move(callback));
+}
+void RoutingControlObserverDBusProxy::ackSetSourceState(const am_Handle_s& handle, const am_Error_e& error, CommonAPI::CallStatus& callStatus) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_Error_e>,
+ CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
+ *this,
+ "ackSetSourceState",
+ "(iq)i",
+ handle, error,
+ callStatus
+ );
+}
+std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::ackSetSourceStateAsync(const am_Handle_s& handle, const am_Error_e& error, AckSetSourceStateAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_Error_e>,
+ CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
+ *this,
+ "ackSetSourceState",
+ "(iq)i",
+ handle, error,
+ std::move(callback));
+}
+void RoutingControlObserverDBusProxy::ackSetSinkSoundProperties(const am_Handle_s& handle, const am_Error_e& error, CommonAPI::CallStatus& callStatus) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_Error_e>,
+ CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
+ *this,
+ "ackSetSinkSoundProperties",
+ "(iq)i",
+ handle, error,
+ callStatus
+ );
+}
+std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::ackSetSinkSoundPropertiesAsync(const am_Handle_s& handle, const am_Error_e& error, AckSetSinkSoundPropertiesAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_Error_e>,
+ CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
+ *this,
+ "ackSetSinkSoundProperties",
+ "(iq)i",
+ handle, error,
+ std::move(callback));
+}
+void RoutingControlObserverDBusProxy::ackSetSinkSoundProperty(const am_Handle_s& handle, const am_Error_e& error, CommonAPI::CallStatus& callStatus) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_Error_e>,
+ CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
+ *this,
+ "ackSetSinkSoundProperty",
+ "(iq)i",
+ handle, error,
+ callStatus
+ );
+}
+std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::ackSetSinkSoundPropertyAsync(const am_Handle_s& handle, const am_Error_e& error, AckSetSinkSoundPropertyAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_Error_e>,
+ CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
+ *this,
+ "ackSetSinkSoundProperty",
+ "(iq)i",
+ handle, error,
+ std::move(callback));
+}
+void RoutingControlObserverDBusProxy::ackSetSourceSoundProperties(const am_Handle_s& handle, const am_Error_e& error, CommonAPI::CallStatus& callStatus) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_Error_e>,
+ CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
+ *this,
+ "ackSetSourceSoundProperties",
+ "(iq)i",
+ handle, error,
+ callStatus
+ );
+}
+std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::ackSetSourceSoundPropertiesAsync(const am_Handle_s& handle, const am_Error_e& error, AckSetSourceSoundPropertiesAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_Error_e>,
+ CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
+ *this,
+ "ackSetSourceSoundProperties",
+ "(iq)i",
+ handle, error,
+ std::move(callback));
+}
+void RoutingControlObserverDBusProxy::ackSetSourceSoundProperty(const am_Handle_s& handle, const am_Error_e& error, CommonAPI::CallStatus& callStatus) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_Error_e>,
+ CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
+ *this,
+ "ackSetSourceSoundProperty",
+ "(iq)i",
+ handle, error,
+ callStatus
+ );
+}
+std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::ackSetSourceSoundPropertyAsync(const am_Handle_s& handle, const am_Error_e& error, AckSetSourceSoundPropertyAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_Error_e>,
+ CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
+ *this,
+ "ackSetSourceSoundProperty",
+ "(iq)i",
+ handle, error,
+ std::move(callback));
+}
+void RoutingControlObserverDBusProxy::ackCrossFading(const am_Handle_s& handle, const am_HotSink_e& hotSink, const am_Error_e& error, CommonAPI::CallStatus& callStatus) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_HotSink_e, am_Error_e>,
+ CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
+ *this,
+ "ackCrossFading",
+ "(iq)ii",
+ handle, hotSink, error,
+ callStatus
+ );
+}
+std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::ackCrossFadingAsync(const am_Handle_s& handle, const am_HotSink_e& hotSink, const am_Error_e& error, AckCrossFadingAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_HotSink_e, am_Error_e>,
+ CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
+ *this,
+ "ackCrossFading",
+ "(iq)ii",
+ handle, hotSink, error,
+ std::move(callback));
+}
+void RoutingControlObserverDBusProxy::ackSourceVolumeTick(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_volume_t& volume, CommonAPI::CallStatus& callStatus) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_sourceID_t, am_volume_t>,
+ CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
+ *this,
+ "ackSourceVolumeTick",
+ "(iq)qn",
+ handle, sourceID, volume,
+ callStatus
+ );
+}
+std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::ackSourceVolumeTickAsync(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_volume_t& volume, AckSourceVolumeTickAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_sourceID_t, am_volume_t>,
+ CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
+ *this,
+ "ackSourceVolumeTick",
+ "(iq)qn",
+ handle, sourceID, volume,
+ std::move(callback));
+}
+void RoutingControlObserverDBusProxy::ackSinkVolumeTick(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_volume_t& volume, CommonAPI::CallStatus& callStatus) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_sinkID_t, am_volume_t>,
+ CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
+ *this,
+ "ackSinkVolumeTick",
+ "(iq)qn",
+ handle, sinkID, volume,
+ callStatus
+ );
+}
+std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::ackSinkVolumeTickAsync(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_volume_t& volume, AckSinkVolumeTickAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_sinkID_t, am_volume_t>,
+ CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
+ *this,
+ "ackSinkVolumeTick",
+ "(iq)qn",
+ handle, sinkID, volume,
+ std::move(callback));
+}
+void RoutingControlObserverDBusProxy::peekDomain(const std::string& name, CommonAPI::CallStatus& callStatus, am_domainID_t& domainID, am_Error_e& error) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<std::string>,
+ CommonAPI::DBus::DBusSerializableArguments<am_domainID_t, am_Error_e> >::callMethodWithReply(
+ *this,
+ "peekDomain",
+ "s",
+ name,
+ callStatus
+ , domainID, error);
+}
+std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::peekDomainAsync(const std::string& name, PeekDomainAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<std::string>,
+ CommonAPI::DBus::DBusSerializableArguments<am_domainID_t, am_Error_e> >::callMethodAsync(
+ *this,
+ "peekDomain",
+ "s",
+ name,
+ std::move(callback));
+}
+void RoutingControlObserverDBusProxy::registerDomain(const am_Domain_s& domainData, const std::string& returnInterface, const std::string& returnPath, const std::string& returnBusname, CommonAPI::CallStatus& callStatus, am_domainID_t& domainID, am_Error_e& error) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Domain_s, std::string, std::string, std::string>,
+ CommonAPI::DBus::DBusSerializableArguments<am_domainID_t, am_Error_e> >::callMethodWithReply(
+ *this,
+ "registerDomain",
+ "(qsssbbi)sss",
+ domainData, returnInterface, returnPath, returnBusname,
+ callStatus
+ , domainID, error);
+}
+std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::registerDomainAsync(const am_Domain_s& domainData, const std::string& returnInterface, const std::string& returnPath, const std::string& returnBusname, RegisterDomainAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Domain_s, std::string, std::string, std::string>,
+ CommonAPI::DBus::DBusSerializableArguments<am_domainID_t, am_Error_e> >::callMethodAsync(
+ *this,
+ "registerDomain",
+ "(qsssbbi)sss",
+ domainData, returnInterface, returnPath, returnBusname,
+ std::move(callback));
+}
+void RoutingControlObserverDBusProxy::deregisterDomain(const am_domainID_t& domainID, CommonAPI::CallStatus& callStatus, am_Error_e& error) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_domainID_t>,
+ CommonAPI::DBus::DBusSerializableArguments<am_Error_e> >::callMethodWithReply(
+ *this,
+ "deregisterDomain",
+ "q",
+ domainID,
+ callStatus
+ , error);
+}
+std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::deregisterDomainAsync(const am_domainID_t& domainID, DeregisterDomainAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_domainID_t>,
+ CommonAPI::DBus::DBusSerializableArguments<am_Error_e> >::callMethodAsync(
+ *this,
+ "deregisterDomain",
+ "q",
+ domainID,
+ std::move(callback));
+}
+void RoutingControlObserverDBusProxy::registerGateway(const am_Gateway_s& gatewayData, CommonAPI::CallStatus& callStatus, am_gatewayID_t& gatewayID, am_Error_e& error) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Gateway_s>,
+ CommonAPI::DBus::DBusSerializableArguments<am_gatewayID_t, am_Error_e> >::callMethodWithReply(
+ *this,
+ "registerGateway",
+ "(qsqqqqqaqaqab)",
+ gatewayData,
+ callStatus
+ , gatewayID, error);
+}
+std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::registerGatewayAsync(const am_Gateway_s& gatewayData, RegisterGatewayAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Gateway_s>,
+ CommonAPI::DBus::DBusSerializableArguments<am_gatewayID_t, am_Error_e> >::callMethodAsync(
+ *this,
+ "registerGateway",
+ "(qsqqqqqaqaqab)",
+ gatewayData,
+ std::move(callback));
+}
+void RoutingControlObserverDBusProxy::deregisterGateway(const am_gatewayID_t& gatewayID, CommonAPI::CallStatus& callStatus, am_Error_e& error) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_gatewayID_t>,
+ CommonAPI::DBus::DBusSerializableArguments<am_Error_e> >::callMethodWithReply(
+ *this,
+ "deregisterGateway",
+ "q",
+ gatewayID,
+ callStatus
+ , error);
+}
+std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::deregisterGatewayAsync(const am_gatewayID_t& gatewayID, DeregisterGatewayAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_gatewayID_t>,
+ CommonAPI::DBus::DBusSerializableArguments<am_Error_e> >::callMethodAsync(
+ *this,
+ "deregisterGateway",
+ "q",
+ gatewayID,
+ std::move(callback));
+}
+void RoutingControlObserverDBusProxy::peekSink(const std::string& name, CommonAPI::CallStatus& callStatus, am_sinkID_t& sinkID, am_Error_e& error) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<std::string>,
+ CommonAPI::DBus::DBusSerializableArguments<am_sinkID_t, am_Error_e> >::callMethodWithReply(
+ *this,
+ "peekSink",
+ "s",
+ name,
+ callStatus
+ , sinkID, error);
+}
+std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::peekSinkAsync(const std::string& name, PeekSinkAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<std::string>,
+ CommonAPI::DBus::DBusSerializableArguments<am_sinkID_t, am_Error_e> >::callMethodAsync(
+ *this,
+ "peekSink",
+ "s",
+ name,
+ std::move(callback));
+}
+void RoutingControlObserverDBusProxy::registerSink(const am_Sink_s& sinkData, CommonAPI::CallStatus& callStatus, am_sinkID_t& sinkID, am_Error_e& error) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Sink_s>,
+ CommonAPI::DBus::DBusSerializableArguments<am_sinkID_t, am_Error_e> >::callMethodWithReply(
+ *this,
+ "registerSink",
+ "(qsqqnb(iq)ina(qn)aqa(qn)a(qin)a(qin))",
+ sinkData,
+ callStatus
+ , sinkID, error);
+}
+std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::registerSinkAsync(const am_Sink_s& sinkData, RegisterSinkAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Sink_s>,
+ CommonAPI::DBus::DBusSerializableArguments<am_sinkID_t, am_Error_e> >::callMethodAsync(
+ *this,
+ "registerSink",
+ "(qsqqnb(iq)ina(qn)aqa(qn)a(qin)a(qin))",
+ sinkData,
+ std::move(callback));
+}
+void RoutingControlObserverDBusProxy::deregisterSink(const am_sinkID_t& sinkID, CommonAPI::CallStatus& callStatus, am_Error_e& error) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_sinkID_t>,
+ CommonAPI::DBus::DBusSerializableArguments<am_Error_e> >::callMethodWithReply(
+ *this,
+ "deregisterSink",
+ "q",
+ sinkID,
+ callStatus
+ , error);
+}
+std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::deregisterSinkAsync(const am_sinkID_t& sinkID, DeregisterSinkAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_sinkID_t>,
+ CommonAPI::DBus::DBusSerializableArguments<am_Error_e> >::callMethodAsync(
+ *this,
+ "deregisterSink",
+ "q",
+ sinkID,
+ std::move(callback));
+}
+void RoutingControlObserverDBusProxy::peekSource(const std::string& name, CommonAPI::CallStatus& callStatus, am_sourceID_t& sourceID, am_Error_e& error) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<std::string>,
+ CommonAPI::DBus::DBusSerializableArguments<am_sourceID_t, am_Error_e> >::callMethodWithReply(
+ *this,
+ "peekSource",
+ "s",
+ name,
+ callStatus
+ , sourceID, error);
+}
+std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::peekSourceAsync(const std::string& name, PeekSourceAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<std::string>,
+ CommonAPI::DBus::DBusSerializableArguments<am_sourceID_t, am_Error_e> >::callMethodAsync(
+ *this,
+ "peekSource",
+ "s",
+ name,
+ std::move(callback));
+}
+void RoutingControlObserverDBusProxy::registerSource(const am_Source_s& sourceData, CommonAPI::CallStatus& callStatus, am_sourceID_t& sourceID, am_Error_e& error) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Source_s>,
+ CommonAPI::DBus::DBusSerializableArguments<am_sourceID_t, am_Error_e> >::callMethodWithReply(
+ *this,
+ "registerSource",
+ "(qqsqinb(iq)ia(qn)aqa(qn)a(qin)a(qin))",
+ sourceData,
+ callStatus
+ , sourceID, error);
+}
+std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::registerSourceAsync(const am_Source_s& sourceData, RegisterSourceAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Source_s>,
+ CommonAPI::DBus::DBusSerializableArguments<am_sourceID_t, am_Error_e> >::callMethodAsync(
+ *this,
+ "registerSource",
+ "(qqsqinb(iq)ia(qn)aqa(qn)a(qin)a(qin))",
+ sourceData,
+ std::move(callback));
+}
+void RoutingControlObserverDBusProxy::deregisterSource(const am_sourceID_t& sourceID, CommonAPI::CallStatus& callStatus, am_Error_e& error) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_sourceID_t>,
+ CommonAPI::DBus::DBusSerializableArguments<am_Error_e> >::callMethodWithReply(
+ *this,
+ "deregisterSource",
+ "q",
+ sourceID,
+ callStatus
+ , error);
+}
+std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::deregisterSourceAsync(const am_sourceID_t& sourceID, DeregisterSourceAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_sourceID_t>,
+ CommonAPI::DBus::DBusSerializableArguments<am_Error_e> >::callMethodAsync(
+ *this,
+ "deregisterSource",
+ "q",
+ sourceID,
+ std::move(callback));
+}
+void RoutingControlObserverDBusProxy::registerCrossfader(const am_Crossfader_s& crossfaderData, CommonAPI::CallStatus& callStatus, am_crossfaderID_t& crossfaderID, am_Error_e& error) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Crossfader_s>,
+ CommonAPI::DBus::DBusSerializableArguments<am_crossfaderID_t, am_Error_e> >::callMethodWithReply(
+ *this,
+ "registerCrossfader",
+ "(qsqqqi)",
+ crossfaderData,
+ callStatus
+ , crossfaderID, error);
+}
+std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::registerCrossfaderAsync(const am_Crossfader_s& crossfaderData, RegisterCrossfaderAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Crossfader_s>,
+ CommonAPI::DBus::DBusSerializableArguments<am_crossfaderID_t, am_Error_e> >::callMethodAsync(
+ *this,
+ "registerCrossfader",
+ "(qsqqqi)",
+ crossfaderData,
+ std::move(callback));
+}
+void RoutingControlObserverDBusProxy::deregisterCrossfader(const am_crossfaderID_t& crossfaderID, CommonAPI::CallStatus& callStatus, am_Error_e& error) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_crossfaderID_t>,
+ CommonAPI::DBus::DBusSerializableArguments<am_Error_e> >::callMethodWithReply(
+ *this,
+ "deregisterCrossfader",
+ "q",
+ crossfaderID,
+ callStatus
+ , error);
+}
+std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::deregisterCrossfaderAsync(const am_crossfaderID_t& crossfaderID, DeregisterCrossfaderAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_crossfaderID_t>,
+ CommonAPI::DBus::DBusSerializableArguments<am_Error_e> >::callMethodAsync(
+ *this,
+ "deregisterCrossfader",
+ "q",
+ crossfaderID,
+ std::move(callback));
+}
+void RoutingControlObserverDBusProxy::peekSourceClassID(const std::string& name, CommonAPI::CallStatus& callStatus, am_sourceClass_t& sourceClassID, am_Error_e& error) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<std::string>,
+ CommonAPI::DBus::DBusSerializableArguments<am_sourceClass_t, am_Error_e> >::callMethodWithReply(
+ *this,
+ "peekSourceClassID",
+ "s",
+ name,
+ callStatus
+ , sourceClassID, error);
+}
+std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::peekSourceClassIDAsync(const std::string& name, PeekSourceClassIDAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<std::string>,
+ CommonAPI::DBus::DBusSerializableArguments<am_sourceClass_t, am_Error_e> >::callMethodAsync(
+ *this,
+ "peekSourceClassID",
+ "s",
+ name,
+ std::move(callback));
+}
+void RoutingControlObserverDBusProxy::peekSinkClassID(const std::string& name, CommonAPI::CallStatus& callStatus, am_sinkClass_t& sinkClassID, am_Error_e& error) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<std::string>,
+ CommonAPI::DBus::DBusSerializableArguments<am_sinkClass_t, am_Error_e> >::callMethodWithReply(
+ *this,
+ "peekSinkClassID",
+ "s",
+ name,
+ callStatus
+ , sinkClassID, error);
+}
+std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::peekSinkClassIDAsync(const std::string& name, PeekSinkClassIDAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<std::string>,
+ CommonAPI::DBus::DBusSerializableArguments<am_sinkClass_t, am_Error_e> >::callMethodAsync(
+ *this,
+ "peekSinkClassID",
+ "s",
+ name,
+ std::move(callback));
+}
+void RoutingControlObserverDBusProxy::hookInterruptStatusChange(const am_sourceID_t& sourceID, const am_InterruptState_e& interruptState, CommonAPI::CallStatus& callStatus) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_sourceID_t, am_InterruptState_e>,
+ CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
+ *this,
+ "hookInterruptStatusChange",
+ "qi",
+ sourceID, interruptState,
+ callStatus
+ );
+}
+std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::hookInterruptStatusChangeAsync(const am_sourceID_t& sourceID, const am_InterruptState_e& interruptState, HookInterruptStatusChangeAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_sourceID_t, am_InterruptState_e>,
+ CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
+ *this,
+ "hookInterruptStatusChange",
+ "qi",
+ sourceID, interruptState,
+ std::move(callback));
+}
+void RoutingControlObserverDBusProxy::hookDomainRegistrationComplete(const am_domainID_t& domainID, CommonAPI::CallStatus& callStatus) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_domainID_t>,
+ CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
+ *this,
+ "hookDomainRegistrationComplete",
+ "q",
+ domainID,
+ callStatus
+ );
+}
+std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::hookDomainRegistrationCompleteAsync(const am_domainID_t& domainID, HookDomainRegistrationCompleteAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_domainID_t>,
+ CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
+ *this,
+ "hookDomainRegistrationComplete",
+ "q",
+ domainID,
+ std::move(callback));
+}
+void RoutingControlObserverDBusProxy::hookSinkAvailablityStatusChange(const am_sinkID_t& sinkID, const am_Availability_s& availability, CommonAPI::CallStatus& callStatus) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_sinkID_t, am_Availability_s>,
+ CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
+ *this,
+ "hookSinkAvailablityStatusChange",
+ "q(iq)",
+ sinkID, availability,
+ callStatus
+ );
+}
+std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::hookSinkAvailablityStatusChangeAsync(const am_sinkID_t& sinkID, const am_Availability_s& availability, HookSinkAvailablityStatusChangeAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_sinkID_t, am_Availability_s>,
+ CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
+ *this,
+ "hookSinkAvailablityStatusChange",
+ "q(iq)",
+ sinkID, availability,
+ std::move(callback));
+}
+void RoutingControlObserverDBusProxy::hookSourceAvailablityStatusChange(const am_sourceID_t& sourceID, const am_Availability_s& availability, CommonAPI::CallStatus& callStatus) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_sourceID_t, am_Availability_s>,
+ CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
+ *this,
+ "hookSourceAvailablityStatusChange",
+ "q(iq)",
+ sourceID, availability,
+ callStatus
+ );
+}
+std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::hookSourceAvailablityStatusChangeAsync(const am_sourceID_t& sourceID, const am_Availability_s& availability, HookSourceAvailablityStatusChangeAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_sourceID_t, am_Availability_s>,
+ CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
+ *this,
+ "hookSourceAvailablityStatusChange",
+ "q(iq)",
+ sourceID, availability,
+ std::move(callback));
+}
+void RoutingControlObserverDBusProxy::hookDomainStateChange(const am_domainID_t& domainID, const am_DomainState_e& domainState, CommonAPI::CallStatus& callStatus) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_domainID_t, am_DomainState_e>,
+ CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
+ *this,
+ "hookDomainStateChange",
+ "qi",
+ domainID, domainState,
+ callStatus
+ );
+}
+std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::hookDomainStateChangeAsync(const am_domainID_t& domainID, const am_DomainState_e& domainState, HookDomainStateChangeAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_domainID_t, am_DomainState_e>,
+ CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
+ *this,
+ "hookDomainStateChange",
+ "qi",
+ domainID, domainState,
+ std::move(callback));
+}
+void RoutingControlObserverDBusProxy::hookTimingInformationChanged(const am_connectionID_t& connectionID, const am_timeSync_t& delay, CommonAPI::CallStatus& callStatus) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_connectionID_t, am_timeSync_t>,
+ CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
+ *this,
+ "hookTimingInformationChanged",
+ "qn",
+ connectionID, delay,
+ callStatus
+ );
+}
+std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::hookTimingInformationChangedAsync(const am_connectionID_t& connectionID, const am_timeSync_t& delay, HookTimingInformationChangedAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_connectionID_t, am_timeSync_t>,
+ CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
+ *this,
+ "hookTimingInformationChanged",
+ "qn",
+ connectionID, delay,
+ std::move(callback));
+}
+void RoutingControlObserverDBusProxy::sendChangedData(const am_EarlyData_L& earlyData, CommonAPI::CallStatus& callStatus) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_EarlyData_L>,
+ CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
+ *this,
+ "sendChangedData",
+ "a(i(yv)(yv))",
+ earlyData,
+ callStatus
+ );
+}
+std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::sendChangedDataAsync(const am_EarlyData_L& earlyData, SendChangedDataAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_EarlyData_L>,
+ CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
+ *this,
+ "sendChangedData",
+ "a(i(yv)(yv))",
+ earlyData,
+ std::move(callback));
+}
+void RoutingControlObserverDBusProxy::updateGateway(const am_gatewayID_t& gatewayID, const am_ConnectionFormat_L& listSourceFormats, const am_ConnectionFormat_L& listSinkFormats, const am_Convertion_L& convertionMatrix, CommonAPI::CallStatus& callStatus, am_Error_e& error) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_gatewayID_t, am_ConnectionFormat_L, am_ConnectionFormat_L, am_Convertion_L>,
+ CommonAPI::DBus::DBusSerializableArguments<am_Error_e> >::callMethodWithReply(
+ *this,
+ "updateGateway",
+ "qaqaqab",
+ gatewayID, listSourceFormats, listSinkFormats, convertionMatrix,
+ callStatus
+ , error);
+}
+std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::updateGatewayAsync(const am_gatewayID_t& gatewayID, const am_ConnectionFormat_L& listSourceFormats, const am_ConnectionFormat_L& listSinkFormats, const am_Convertion_L& convertionMatrix, UpdateGatewayAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_gatewayID_t, am_ConnectionFormat_L, am_ConnectionFormat_L, am_Convertion_L>,
+ CommonAPI::DBus::DBusSerializableArguments<am_Error_e> >::callMethodAsync(
+ *this,
+ "updateGateway",
+ "qaqaqab",
+ gatewayID, listSourceFormats, listSinkFormats, convertionMatrix,
+ std::move(callback));
+}
+void RoutingControlObserverDBusProxy::updateSink(const am_sinkID_t& sinkID, const am_sinkClass_t& sinkClassID, const am_SoundProperty_L& listSoundProperties, const am_ConnectionFormat_L& listConnectionFormats, const am_MainSoundProperty_L& listMainSoundProperties, CommonAPI::CallStatus& callStatus, am_Error_e& error) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_sinkID_t, am_sinkClass_t, am_SoundProperty_L, am_ConnectionFormat_L, am_MainSoundProperty_L>,
+ CommonAPI::DBus::DBusSerializableArguments<am_Error_e> >::callMethodWithReply(
+ *this,
+ "updateSink",
+ "qqa(qn)aqa(qn)",
+ sinkID, sinkClassID, listSoundProperties, listConnectionFormats, listMainSoundProperties,
+ callStatus
+ , error);
+}
+std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::updateSinkAsync(const am_sinkID_t& sinkID, const am_sinkClass_t& sinkClassID, const am_SoundProperty_L& listSoundProperties, const am_ConnectionFormat_L& listConnectionFormats, const am_MainSoundProperty_L& listMainSoundProperties, UpdateSinkAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_sinkID_t, am_sinkClass_t, am_SoundProperty_L, am_ConnectionFormat_L, am_MainSoundProperty_L>,
+ CommonAPI::DBus::DBusSerializableArguments<am_Error_e> >::callMethodAsync(
+ *this,
+ "updateSink",
+ "qqa(qn)aqa(qn)",
+ sinkID, sinkClassID, listSoundProperties, listConnectionFormats, listMainSoundProperties,
+ std::move(callback));
+}
+void RoutingControlObserverDBusProxy::updateSource(const am_sourceID_t& sourceID, const am_sourceClass_t& sourceClassID, const am_SoundProperty_L& listSoundProperties, const am_ConnectionFormat_L& listConnectionFormats, const am_MainSoundProperty_L& listMainSoundProperties, CommonAPI::CallStatus& callStatus, am_Error_e& error) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_sourceID_t, am_sourceClass_t, am_SoundProperty_L, am_ConnectionFormat_L, am_MainSoundProperty_L>,
+ CommonAPI::DBus::DBusSerializableArguments<am_Error_e> >::callMethodWithReply(
+ *this,
+ "updateSource",
+ "qqa(qn)aqa(qn)",
+ sourceID, sourceClassID, listSoundProperties, listConnectionFormats, listMainSoundProperties,
+ callStatus
+ , error);
+}
+std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::updateSourceAsync(const am_sourceID_t& sourceID, const am_sourceClass_t& sourceClassID, const am_SoundProperty_L& listSoundProperties, const am_ConnectionFormat_L& listConnectionFormats, const am_MainSoundProperty_L& listMainSoundProperties, UpdateSourceAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_sourceID_t, am_sourceClass_t, am_SoundProperty_L, am_ConnectionFormat_L, am_MainSoundProperty_L>,
+ CommonAPI::DBus::DBusSerializableArguments<am_Error_e> >::callMethodAsync(
+ *this,
+ "updateSource",
+ "qqa(qn)aqa(qn)",
+ sourceID, sourceClassID, listSoundProperties, listConnectionFormats, listMainSoundProperties,
+ std::move(callback));
+}
+void RoutingControlObserverDBusProxy::ackSetVolumes(const am_Handle_s& handle, const am_Volumes_L& listvolumes, const am_Error_e& error, CommonAPI::CallStatus& callStatus) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_Volumes_L, am_Error_e>,
+ CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
+ *this,
+ "ackSetVolumes",
+ "(iq)a(i(yv)nqn)i",
+ handle, listvolumes, error,
+ callStatus
+ );
+}
+std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::ackSetVolumesAsync(const am_Handle_s& handle, const am_Volumes_L& listvolumes, const am_Error_e& error, AckSetVolumesAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_Volumes_L, am_Error_e>,
+ CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
+ *this,
+ "ackSetVolumes",
+ "(iq)a(i(yv)nqn)i",
+ handle, listvolumes, error,
+ std::move(callback));
+}
+void RoutingControlObserverDBusProxy::ackSinkNotificationConfiguration(const am_Handle_s& handle, const am_Error_e& error, CommonAPI::CallStatus& callStatus) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_Error_e>,
+ CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
+ *this,
+ "ackSinkNotificationConfiguration",
+ "(iq)i",
+ handle, error,
+ callStatus
+ );
+}
+std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::ackSinkNotificationConfigurationAsync(const am_Handle_s& handle, const am_Error_e& error, AckSinkNotificationConfigurationAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_Error_e>,
+ CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
+ *this,
+ "ackSinkNotificationConfiguration",
+ "(iq)i",
+ handle, error,
+ std::move(callback));
+}
+void RoutingControlObserverDBusProxy::ackSourceNotificationConfiguration(const am_Handle_s& handle, const am_Error_e& error, CommonAPI::CallStatus& callStatus) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_Error_e>,
+ CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
+ *this,
+ "ackSourceNotificationConfiguration",
+ "(iq)i",
+ handle, error,
+ callStatus
+ );
+}
+std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::ackSourceNotificationConfigurationAsync(const am_Handle_s& handle, const am_Error_e& error, AckSourceNotificationConfigurationAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_Handle_s, am_Error_e>,
+ CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
+ *this,
+ "ackSourceNotificationConfiguration",
+ "(iq)i",
+ handle, error,
+ std::move(callback));
+}
+void RoutingControlObserverDBusProxy::hookSinkNotificationDataChange(const am_sinkID_t& sinkID, const am_NotificationPayload_s& payload, CommonAPI::CallStatus& callStatus) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_sinkID_t, am_NotificationPayload_s>,
+ CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
+ *this,
+ "hookSinkNotificationDataChange",
+ "q(qn)",
+ sinkID, payload,
+ callStatus
+ );
+}
+std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::hookSinkNotificationDataChangeAsync(const am_sinkID_t& sinkID, const am_NotificationPayload_s& payload, HookSinkNotificationDataChangeAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_sinkID_t, am_NotificationPayload_s>,
+ CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
+ *this,
+ "hookSinkNotificationDataChange",
+ "q(qn)",
+ sinkID, payload,
+ std::move(callback));
+}
+void RoutingControlObserverDBusProxy::hookSourceNotificationDataChange(const am_sourceID_t& sourceID, const am_NotificationPayload_s& payload, CommonAPI::CallStatus& callStatus) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_sourceID_t, am_NotificationPayload_s>,
+ CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
+ *this,
+ "hookSourceNotificationDataChange",
+ "q(qn)",
+ sourceID, payload,
+ callStatus
+ );
+}
+std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::hookSourceNotificationDataChangeAsync(const am_sourceID_t& sourceID, const am_NotificationPayload_s& payload, HookSourceNotificationDataChangeAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_sourceID_t, am_NotificationPayload_s>,
+ CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
+ *this,
+ "hookSourceNotificationDataChange",
+ "q(qn)",
+ sourceID, payload,
+ std::move(callback));
+}
+void RoutingControlObserverDBusProxy::confirmRoutingRundown(const std::string& domainName, CommonAPI::CallStatus& callStatus) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<std::string>,
+ CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
+ *this,
+ "confirmRoutingRundown",
+ "s",
+ domainName,
+ callStatus
+ );
+}
+std::future<CommonAPI::CallStatus> RoutingControlObserverDBusProxy::confirmRoutingRundownAsync(const std::string& domainName, ConfirmRoutingRundownAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<std::string>,
+ CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
+ *this,
+ "confirmRoutingRundown",
+ "s",
+ domainName,
+ std::move(callback));
+}
+
+void RoutingControlObserverDBusProxy::getOwnVersion(uint16_t& ownVersionMajor, uint16_t& ownVersionMinor) const {
+ ownVersionMajor = 0;
+ ownVersionMinor = 1;
+}
+
+} // namespace am
+} // namespace genivi
+} // namespace org
diff --git a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlObserverDBusProxy.h b/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlObserverDBusProxy.h
new file mode 100644
index 0000000..0c057e2
--- /dev/null
+++ b/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlObserverDBusProxy.h
@@ -0,0 +1,182 @@
+/*
+* This file was generated by the CommonAPI Generators.
+*
+ * Copyright (C) 2013, BMW AG
+ *
+ * \author Christian Linke, christian.linke@bmw.de BMW 2012,2013
+*/
+#ifndef ORG_GENIVI_AM_Routing_Control_Observer_DBUS_PROXY_H_
+#define ORG_GENIVI_AM_Routing_Control_Observer_DBUS_PROXY_H_
+
+#include <org/genivi/am/RoutingControlObserverProxyBase.h>
+
+#define COMMONAPI_INTERNAL_COMPILATION
+
+#include <CommonAPI/DBus/DBusFactory.h>
+#include <CommonAPI/DBus/DBusProxy.h>
+#include <CommonAPI/DBus/DBusAttribute.h>
+
+#undef COMMONAPI_INTERNAL_COMPILATION
+
+#include <string>
+
+namespace org {
+namespace genivi {
+namespace am {
+
+class RoutingControlObserverDBusProxy: virtual public RoutingControlObserverProxyBase, virtual public CommonAPI::DBus::DBusProxy {
+ public:
+ RoutingControlObserverDBusProxy(
+ const std::string& commonApiAddress,
+ const std::string& interfaceName,
+ const std::string& busName,
+ const std::string& objectPath,
+ const std::shared_ptr<CommonAPI::DBus::DBusProxyConnection>& dbusProxyconnection);
+
+ virtual ~RoutingControlObserverDBusProxy() { }
+
+ virtual RoutingReadyAttribute& getRoutingReadyAttribute();
+
+
+
+ virtual void ackConnect(const am_Handle_s& handle, const am_connectionID_t& connectionID, const am_Error_e& error, CommonAPI::CallStatus& callStatus);
+ virtual std::future<CommonAPI::CallStatus> ackConnectAsync(const am_Handle_s& handle, const am_connectionID_t& connectionID, const am_Error_e& error, AckConnectAsyncCallback callback);
+
+ virtual void ackDisconnect(const am_Handle_s& handle, const am_connectionID_t& connectionID, const am_Error_e& error, CommonAPI::CallStatus& callStatus);
+ virtual std::future<CommonAPI::CallStatus> ackDisconnectAsync(const am_Handle_s& handle, const am_connectionID_t& connectionID, const am_Error_e& error, AckDisconnectAsyncCallback callback);
+
+ virtual void ackSetSinkVolumeChange(const am_Handle_s& handle, const am_volume_t& volume, const am_Error_e& error, CommonAPI::CallStatus& callStatus);
+ virtual std::future<CommonAPI::CallStatus> ackSetSinkVolumeChangeAsync(const am_Handle_s& handle, const am_volume_t& volume, const am_Error_e& error, AckSetSinkVolumeChangeAsyncCallback callback);
+
+ virtual void ackSetSourceVolumeChange(const am_Handle_s& handle, const am_volume_t& volume, const am_Error_e& error, CommonAPI::CallStatus& callStatus);
+ virtual std::future<CommonAPI::CallStatus> ackSetSourceVolumeChangeAsync(const am_Handle_s& handle, const am_volume_t& volume, const am_Error_e& error, AckSetSourceVolumeChangeAsyncCallback callback);
+
+ virtual void ackSetSourceState(const am_Handle_s& handle, const am_Error_e& error, CommonAPI::CallStatus& callStatus);
+ virtual std::future<CommonAPI::CallStatus> ackSetSourceStateAsync(const am_Handle_s& handle, const am_Error_e& error, AckSetSourceStateAsyncCallback callback);
+
+ virtual void ackSetSinkSoundProperties(const am_Handle_s& handle, const am_Error_e& error, CommonAPI::CallStatus& callStatus);
+ virtual std::future<CommonAPI::CallStatus> ackSetSinkSoundPropertiesAsync(const am_Handle_s& handle, const am_Error_e& error, AckSetSinkSoundPropertiesAsyncCallback callback);
+
+ virtual void ackSetSinkSoundProperty(const am_Handle_s& handle, const am_Error_e& error, CommonAPI::CallStatus& callStatus);
+ virtual std::future<CommonAPI::CallStatus> ackSetSinkSoundPropertyAsync(const am_Handle_s& handle, const am_Error_e& error, AckSetSinkSoundPropertyAsyncCallback callback);
+
+ virtual void ackSetSourceSoundProperties(const am_Handle_s& handle, const am_Error_e& error, CommonAPI::CallStatus& callStatus);
+ virtual std::future<CommonAPI::CallStatus> ackSetSourceSoundPropertiesAsync(const am_Handle_s& handle, const am_Error_e& error, AckSetSourceSoundPropertiesAsyncCallback callback);
+
+ virtual void ackSetSourceSoundProperty(const am_Handle_s& handle, const am_Error_e& error, CommonAPI::CallStatus& callStatus);
+ virtual std::future<CommonAPI::CallStatus> ackSetSourceSoundPropertyAsync(const am_Handle_s& handle, const am_Error_e& error, AckSetSourceSoundPropertyAsyncCallback callback);
+
+ virtual void ackCrossFading(const am_Handle_s& handle, const am_HotSink_e& hotSink, const am_Error_e& error, CommonAPI::CallStatus& callStatus);
+ virtual std::future<CommonAPI::CallStatus> ackCrossFadingAsync(const am_Handle_s& handle, const am_HotSink_e& hotSink, const am_Error_e& error, AckCrossFadingAsyncCallback callback);
+
+ virtual void ackSourceVolumeTick(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_volume_t& volume, CommonAPI::CallStatus& callStatus);
+ virtual std::future<CommonAPI::CallStatus> ackSourceVolumeTickAsync(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_volume_t& volume, AckSourceVolumeTickAsyncCallback callback);
+
+ virtual void ackSinkVolumeTick(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_volume_t& volume, CommonAPI::CallStatus& callStatus);
+ virtual std::future<CommonAPI::CallStatus> ackSinkVolumeTickAsync(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_volume_t& volume, AckSinkVolumeTickAsyncCallback callback);
+
+ virtual void peekDomain(const std::string& name, CommonAPI::CallStatus& callStatus, am_domainID_t& domainID, am_Error_e& error);
+ virtual std::future<CommonAPI::CallStatus> peekDomainAsync(const std::string& name, PeekDomainAsyncCallback callback);
+
+ virtual void registerDomain(const am_Domain_s& domainData, const std::string& returnInterface, const std::string& returnPath, const std::string& returnBusname, CommonAPI::CallStatus& callStatus, am_domainID_t& domainID, am_Error_e& error);
+ virtual std::future<CommonAPI::CallStatus> registerDomainAsync(const am_Domain_s& domainData, const std::string& returnInterface, const std::string& returnPath, const std::string& returnBusname, RegisterDomainAsyncCallback callback);
+
+ virtual void deregisterDomain(const am_domainID_t& domainID, CommonAPI::CallStatus& callStatus, am_Error_e& error);
+ virtual std::future<CommonAPI::CallStatus> deregisterDomainAsync(const am_domainID_t& domainID, DeregisterDomainAsyncCallback callback);
+
+ virtual void registerGateway(const am_Gateway_s& gatewayData, CommonAPI::CallStatus& callStatus, am_gatewayID_t& gatewayID, am_Error_e& error);
+ virtual std::future<CommonAPI::CallStatus> registerGatewayAsync(const am_Gateway_s& gatewayData, RegisterGatewayAsyncCallback callback);
+
+ virtual void deregisterGateway(const am_gatewayID_t& gatewayID, CommonAPI::CallStatus& callStatus, am_Error_e& error);
+ virtual std::future<CommonAPI::CallStatus> deregisterGatewayAsync(const am_gatewayID_t& gatewayID, DeregisterGatewayAsyncCallback callback);
+
+ virtual void peekSink(const std::string& name, CommonAPI::CallStatus& callStatus, am_sinkID_t& sinkID, am_Error_e& error);
+ virtual std::future<CommonAPI::CallStatus> peekSinkAsync(const std::string& name, PeekSinkAsyncCallback callback);
+
+ virtual void registerSink(const am_Sink_s& sinkData, CommonAPI::CallStatus& callStatus, am_sinkID_t& sinkID, am_Error_e& error);
+ virtual std::future<CommonAPI::CallStatus> registerSinkAsync(const am_Sink_s& sinkData, RegisterSinkAsyncCallback callback);
+
+ virtual void deregisterSink(const am_sinkID_t& sinkID, CommonAPI::CallStatus& callStatus, am_Error_e& error);
+ virtual std::future<CommonAPI::CallStatus> deregisterSinkAsync(const am_sinkID_t& sinkID, DeregisterSinkAsyncCallback callback);
+
+ virtual void peekSource(const std::string& name, CommonAPI::CallStatus& callStatus, am_sourceID_t& sourceID, am_Error_e& error);
+ virtual std::future<CommonAPI::CallStatus> peekSourceAsync(const std::string& name, PeekSourceAsyncCallback callback);
+
+ virtual void registerSource(const am_Source_s& sourceData, CommonAPI::CallStatus& callStatus, am_sourceID_t& sourceID, am_Error_e& error);
+ virtual std::future<CommonAPI::CallStatus> registerSourceAsync(const am_Source_s& sourceData, RegisterSourceAsyncCallback callback);
+
+ virtual void deregisterSource(const am_sourceID_t& sourceID, CommonAPI::CallStatus& callStatus, am_Error_e& error);
+ virtual std::future<CommonAPI::CallStatus> deregisterSourceAsync(const am_sourceID_t& sourceID, DeregisterSourceAsyncCallback callback);
+
+ virtual void registerCrossfader(const am_Crossfader_s& crossfaderData, CommonAPI::CallStatus& callStatus, am_crossfaderID_t& crossfaderID, am_Error_e& error);
+ virtual std::future<CommonAPI::CallStatus> registerCrossfaderAsync(const am_Crossfader_s& crossfaderData, RegisterCrossfaderAsyncCallback callback);
+
+ virtual void deregisterCrossfader(const am_crossfaderID_t& crossfaderID, CommonAPI::CallStatus& callStatus, am_Error_e& error);
+ virtual std::future<CommonAPI::CallStatus> deregisterCrossfaderAsync(const am_crossfaderID_t& crossfaderID, DeregisterCrossfaderAsyncCallback callback);
+
+ virtual void peekSourceClassID(const std::string& name, CommonAPI::CallStatus& callStatus, am_sourceClass_t& sourceClassID, am_Error_e& error);
+ virtual std::future<CommonAPI::CallStatus> peekSourceClassIDAsync(const std::string& name, PeekSourceClassIDAsyncCallback callback);
+
+ virtual void peekSinkClassID(const std::string& name, CommonAPI::CallStatus& callStatus, am_sinkClass_t& sinkClassID, am_Error_e& error);
+ virtual std::future<CommonAPI::CallStatus> peekSinkClassIDAsync(const std::string& name, PeekSinkClassIDAsyncCallback callback);
+
+ virtual void hookInterruptStatusChange(const am_sourceID_t& sourceID, const am_InterruptState_e& interruptState, CommonAPI::CallStatus& callStatus);
+ virtual std::future<CommonAPI::CallStatus> hookInterruptStatusChangeAsync(const am_sourceID_t& sourceID, const am_InterruptState_e& interruptState, HookInterruptStatusChangeAsyncCallback callback);
+
+ virtual void hookDomainRegistrationComplete(const am_domainID_t& domainID, CommonAPI::CallStatus& callStatus);
+ virtual std::future<CommonAPI::CallStatus> hookDomainRegistrationCompleteAsync(const am_domainID_t& domainID, HookDomainRegistrationCompleteAsyncCallback callback);
+
+ virtual void hookSinkAvailablityStatusChange(const am_sinkID_t& sinkID, const am_Availability_s& availability, CommonAPI::CallStatus& callStatus);
+ virtual std::future<CommonAPI::CallStatus> hookSinkAvailablityStatusChangeAsync(const am_sinkID_t& sinkID, const am_Availability_s& availability, HookSinkAvailablityStatusChangeAsyncCallback callback);
+
+ virtual void hookSourceAvailablityStatusChange(const am_sourceID_t& sourceID, const am_Availability_s& availability, CommonAPI::CallStatus& callStatus);
+ virtual std::future<CommonAPI::CallStatus> hookSourceAvailablityStatusChangeAsync(const am_sourceID_t& sourceID, const am_Availability_s& availability, HookSourceAvailablityStatusChangeAsyncCallback callback);
+
+ virtual void hookDomainStateChange(const am_domainID_t& domainID, const am_DomainState_e& domainState, CommonAPI::CallStatus& callStatus);
+ virtual std::future<CommonAPI::CallStatus> hookDomainStateChangeAsync(const am_domainID_t& domainID, const am_DomainState_e& domainState, HookDomainStateChangeAsyncCallback callback);
+
+ virtual void hookTimingInformationChanged(const am_connectionID_t& connectionID, const am_timeSync_t& delay, CommonAPI::CallStatus& callStatus);
+ virtual std::future<CommonAPI::CallStatus> hookTimingInformationChangedAsync(const am_connectionID_t& connectionID, const am_timeSync_t& delay, HookTimingInformationChangedAsyncCallback callback);
+
+ virtual void sendChangedData(const am_EarlyData_L& earlyData, CommonAPI::CallStatus& callStatus);
+ virtual std::future<CommonAPI::CallStatus> sendChangedDataAsync(const am_EarlyData_L& earlyData, SendChangedDataAsyncCallback callback);
+
+ virtual void updateGateway(const am_gatewayID_t& gatewayID, const am_ConnectionFormat_L& listSourceFormats, const am_ConnectionFormat_L& listSinkFormats, const am_Convertion_L& convertionMatrix, CommonAPI::CallStatus& callStatus, am_Error_e& error);
+ virtual std::future<CommonAPI::CallStatus> updateGatewayAsync(const am_gatewayID_t& gatewayID, const am_ConnectionFormat_L& listSourceFormats, const am_ConnectionFormat_L& listSinkFormats, const am_Convertion_L& convertionMatrix, UpdateGatewayAsyncCallback callback);
+
+ virtual void updateSink(const am_sinkID_t& sinkID, const am_sinkClass_t& sinkClassID, const am_SoundProperty_L& listSoundProperties, const am_ConnectionFormat_L& listConnectionFormats, const am_MainSoundProperty_L& listMainSoundProperties, CommonAPI::CallStatus& callStatus, am_Error_e& error);
+ virtual std::future<CommonAPI::CallStatus> updateSinkAsync(const am_sinkID_t& sinkID, const am_sinkClass_t& sinkClassID, const am_SoundProperty_L& listSoundProperties, const am_ConnectionFormat_L& listConnectionFormats, const am_MainSoundProperty_L& listMainSoundProperties, UpdateSinkAsyncCallback callback);
+
+ virtual void updateSource(const am_sourceID_t& sourceID, const am_sourceClass_t& sourceClassID, const am_SoundProperty_L& listSoundProperties, const am_ConnectionFormat_L& listConnectionFormats, const am_MainSoundProperty_L& listMainSoundProperties, CommonAPI::CallStatus& callStatus, am_Error_e& error);
+ virtual std::future<CommonAPI::CallStatus> updateSourceAsync(const am_sourceID_t& sourceID, const am_sourceClass_t& sourceClassID, const am_SoundProperty_L& listSoundProperties, const am_ConnectionFormat_L& listConnectionFormats, const am_MainSoundProperty_L& listMainSoundProperties, UpdateSourceAsyncCallback callback);
+
+ virtual void ackSetVolumes(const am_Handle_s& handle, const am_Volumes_L& listvolumes, const am_Error_e& error, CommonAPI::CallStatus& callStatus);
+ virtual std::future<CommonAPI::CallStatus> ackSetVolumesAsync(const am_Handle_s& handle, const am_Volumes_L& listvolumes, const am_Error_e& error, AckSetVolumesAsyncCallback callback);
+
+ virtual void ackSinkNotificationConfiguration(const am_Handle_s& handle, const am_Error_e& error, CommonAPI::CallStatus& callStatus);
+ virtual std::future<CommonAPI::CallStatus> ackSinkNotificationConfigurationAsync(const am_Handle_s& handle, const am_Error_e& error, AckSinkNotificationConfigurationAsyncCallback callback);
+
+ virtual void ackSourceNotificationConfiguration(const am_Handle_s& handle, const am_Error_e& error, CommonAPI::CallStatus& callStatus);
+ virtual std::future<CommonAPI::CallStatus> ackSourceNotificationConfigurationAsync(const am_Handle_s& handle, const am_Error_e& error, AckSourceNotificationConfigurationAsyncCallback callback);
+
+ virtual void hookSinkNotificationDataChange(const am_sinkID_t& sinkID, const am_NotificationPayload_s& payload, CommonAPI::CallStatus& callStatus);
+ virtual std::future<CommonAPI::CallStatus> hookSinkNotificationDataChangeAsync(const am_sinkID_t& sinkID, const am_NotificationPayload_s& payload, HookSinkNotificationDataChangeAsyncCallback callback);
+
+ virtual void hookSourceNotificationDataChange(const am_sourceID_t& sourceID, const am_NotificationPayload_s& payload, CommonAPI::CallStatus& callStatus);
+ virtual std::future<CommonAPI::CallStatus> hookSourceNotificationDataChangeAsync(const am_sourceID_t& sourceID, const am_NotificationPayload_s& payload, HookSourceNotificationDataChangeAsyncCallback callback);
+
+ virtual void confirmRoutingRundown(const std::string& domainName, CommonAPI::CallStatus& callStatus);
+ virtual std::future<CommonAPI::CallStatus> confirmRoutingRundownAsync(const std::string& domainName, ConfirmRoutingRundownAsyncCallback callback);
+
+ virtual void getOwnVersion(uint16_t& ownVersionMajor, uint16_t& ownVersionMinor) const;
+
+ private:
+ CommonAPI::DBus::DBusObservableAttribute<CommonAPI::DBus::DBusAttribute<RoutingReadyAttribute>> routingReady_;
+
+};
+
+} // namespace am
+} // namespace genivi
+} // namespace org
+
+#endif // ORG_GENIVI_AM_Routing_Control_Observer_DBUS_PROXY_H_
diff --git a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlObserverDBusStubAdapter.cpp b/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlObserverDBusStubAdapter.cpp
new file mode 100644
index 0000000..11e838b
--- /dev/null
+++ b/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlObserverDBusStubAdapter.cpp
@@ -0,0 +1,551 @@
+/*
+* This file was generated by the CommonAPI Generators.
+*
+ * Copyright (C) 2013, BMW AG
+ *
+ * \author Christian Linke, christian.linke@bmw.de BMW 2012,2013
+*/
+#include "RoutingControlObserverDBusStubAdapter.h"
+#include <org/genivi/am/RoutingControlObserver.h>
+
+namespace org {
+namespace genivi {
+namespace am {
+
+std::shared_ptr<CommonAPI::DBus::DBusStubAdapter> createRoutingControlObserverDBusStubAdapter(
+ const std::string& commonApiAddress,
+ const std::string& interfaceName,
+ const std::string& busName,
+ const std::string& objectPath,
+ const std::shared_ptr<CommonAPI::DBus::DBusProxyConnection>& dbusProxyConnection,
+ const std::shared_ptr<CommonAPI::StubBase>& stubBase) {
+ return std::make_shared<RoutingControlObserverDBusStubAdapter>(commonApiAddress, interfaceName, busName, objectPath, dbusProxyConnection, stubBase);
+}
+
+__attribute__((constructor)) void registerRoutingControlObserverDBusStubAdapter(void) {
+ CommonAPI::DBus::DBusFactory::registerAdapterFactoryMethod(RoutingControlObserver::getInterfaceId(),
+ &createRoutingControlObserverDBusStubAdapter);
+}
+
+RoutingControlObserverDBusStubAdapter::RoutingControlObserverDBusStubAdapter(
+ const std::string& commonApiAddress,
+ const std::string& dbusInterfaceName,
+ const std::string& dbusBusName,
+ const std::string& dbusObjectPath,
+ const std::shared_ptr<CommonAPI::DBus::DBusProxyConnection>& dbusConnection,
+ const std::shared_ptr<CommonAPI::StubBase>& stub):
+ RoutingControlObserverDBusStubAdapterHelper(commonApiAddress, dbusInterfaceName, dbusBusName, dbusObjectPath, dbusConnection, std::dynamic_pointer_cast<RoutingControlObserverStub>(stub)) {
+}
+
+const char* RoutingControlObserverDBusStubAdapter::getMethodsDBusIntrospectionXmlData() const {
+ return
+ "<method name=\"getRoutingReadyAttribute\">\n"
+ "<arg name=\"value\" type=\"i\" direction=\"out\" />"
+ "</method>\n"
+ "<method name=\"setRoutingReadyAttribute\">\n"
+ "<arg name=\"requestedValue\" type=\"i\" direction=\"in\" />\n"
+ "<arg name=\"setValue\" type=\"i\" direction=\"out\" />\n"
+ "</method>\n"
+ "<signal name=\"onRoutingReadyAttributeChanged\">\n"
+ "<arg name=\"changedValue\" type=\"i\" />\n"
+ "</signal>\n"
+ "<method name=\"ackConnect\">\n"
+ "<arg name=\"handle\" type=\"(iq)\" direction=\"in\" />\n"
+ "<arg name=\"connectionID\" type=\"q\" direction=\"in\" />\n"
+ "<arg name=\"error\" type=\"i\" direction=\"in\" />\n"
+ "</method>\n"
+ "<method name=\"ackDisconnect\">\n"
+ "<arg name=\"handle\" type=\"(iq)\" direction=\"in\" />\n"
+ "<arg name=\"connectionID\" type=\"q\" direction=\"in\" />\n"
+ "<arg name=\"error\" type=\"i\" direction=\"in\" />\n"
+ "</method>\n"
+ "<method name=\"ackSetSinkVolumeChange\">\n"
+ "<arg name=\"handle\" type=\"(iq)\" direction=\"in\" />\n"
+ "<arg name=\"volume\" type=\"n\" direction=\"in\" />\n"
+ "<arg name=\"error\" type=\"i\" direction=\"in\" />\n"
+ "</method>\n"
+ "<method name=\"ackSetSourceVolumeChange\">\n"
+ "<arg name=\"handle\" type=\"(iq)\" direction=\"in\" />\n"
+ "<arg name=\"volume\" type=\"n\" direction=\"in\" />\n"
+ "<arg name=\"error\" type=\"i\" direction=\"in\" />\n"
+ "</method>\n"
+ "<method name=\"ackSetSourceState\">\n"
+ "<arg name=\"handle\" type=\"(iq)\" direction=\"in\" />\n"
+ "<arg name=\"error\" type=\"i\" direction=\"in\" />\n"
+ "</method>\n"
+ "<method name=\"ackSetSinkSoundProperties\">\n"
+ "<arg name=\"handle\" type=\"(iq)\" direction=\"in\" />\n"
+ "<arg name=\"error\" type=\"i\" direction=\"in\" />\n"
+ "</method>\n"
+ "<method name=\"ackSetSinkSoundProperty\">\n"
+ "<arg name=\"handle\" type=\"(iq)\" direction=\"in\" />\n"
+ "<arg name=\"error\" type=\"i\" direction=\"in\" />\n"
+ "</method>\n"
+ "<method name=\"ackSetSourceSoundProperties\">\n"
+ "<arg name=\"handle\" type=\"(iq)\" direction=\"in\" />\n"
+ "<arg name=\"error\" type=\"i\" direction=\"in\" />\n"
+ "</method>\n"
+ "<method name=\"ackSetSourceSoundProperty\">\n"
+ "<arg name=\"handle\" type=\"(iq)\" direction=\"in\" />\n"
+ "<arg name=\"error\" type=\"i\" direction=\"in\" />\n"
+ "</method>\n"
+ "<method name=\"ackCrossFading\">\n"
+ "<arg name=\"handle\" type=\"(iq)\" direction=\"in\" />\n"
+ "<arg name=\"hotSink\" type=\"i\" direction=\"in\" />\n"
+ "<arg name=\"error\" type=\"i\" direction=\"in\" />\n"
+ "</method>\n"
+ "<method name=\"ackSourceVolumeTick\">\n"
+ "<arg name=\"handle\" type=\"(iq)\" direction=\"in\" />\n"
+ "<arg name=\"sourceID\" type=\"q\" direction=\"in\" />\n"
+ "<arg name=\"volume\" type=\"n\" direction=\"in\" />\n"
+ "</method>\n"
+ "<method name=\"ackSinkVolumeTick\">\n"
+ "<arg name=\"handle\" type=\"(iq)\" direction=\"in\" />\n"
+ "<arg name=\"sinkID\" type=\"q\" direction=\"in\" />\n"
+ "<arg name=\"volume\" type=\"n\" direction=\"in\" />\n"
+ "</method>\n"
+ "<method name=\"peekDomain\">\n"
+ "<arg name=\"name\" type=\"s\" direction=\"in\" />\n"
+ "<arg name=\"domainID\" type=\"q\" direction=\"out\" />\n"
+ "<arg name=\"error\" type=\"i\" direction=\"out\" />\n"
+ "</method>\n"
+ "<method name=\"registerDomain\">\n"
+ "<arg name=\"domainData\" type=\"(qsssbbi)\" direction=\"in\" />\n"
+ "<arg name=\"returnInterface\" type=\"s\" direction=\"in\" />\n"
+ "<arg name=\"returnPath\" type=\"s\" direction=\"in\" />\n"
+ "<arg name=\"returnBusname\" type=\"s\" direction=\"in\" />\n"
+ "<arg name=\"domainID\" type=\"q\" direction=\"out\" />\n"
+ "<arg name=\"error\" type=\"i\" direction=\"out\" />\n"
+ "</method>\n"
+ "<method name=\"deregisterDomain\">\n"
+ "<arg name=\"domainID\" type=\"q\" direction=\"in\" />\n"
+ "<arg name=\"error\" type=\"i\" direction=\"out\" />\n"
+ "</method>\n"
+ "<method name=\"registerGateway\">\n"
+ "<arg name=\"gatewayData\" type=\"(qsqqqqqaqaqab)\" direction=\"in\" />\n"
+ "<arg name=\"gatewayID\" type=\"q\" direction=\"out\" />\n"
+ "<arg name=\"error\" type=\"i\" direction=\"out\" />\n"
+ "</method>\n"
+ "<method name=\"deregisterGateway\">\n"
+ "<arg name=\"gatewayID\" type=\"q\" direction=\"in\" />\n"
+ "<arg name=\"error\" type=\"i\" direction=\"out\" />\n"
+ "</method>\n"
+ "<method name=\"peekSink\">\n"
+ "<arg name=\"name\" type=\"s\" direction=\"in\" />\n"
+ "<arg name=\"sinkID\" type=\"q\" direction=\"out\" />\n"
+ "<arg name=\"error\" type=\"i\" direction=\"out\" />\n"
+ "</method>\n"
+ "<method name=\"registerSink\">\n"
+ "<arg name=\"sinkData\" type=\"(qsqqnb(iq)ina(qn)aqa(qn)a(qin)a(qin))\" direction=\"in\" />\n"
+ "<arg name=\"sinkID\" type=\"q\" direction=\"out\" />\n"
+ "<arg name=\"error\" type=\"i\" direction=\"out\" />\n"
+ "</method>\n"
+ "<method name=\"deregisterSink\">\n"
+ "<arg name=\"sinkID\" type=\"q\" direction=\"in\" />\n"
+ "<arg name=\"error\" type=\"i\" direction=\"out\" />\n"
+ "</method>\n"
+ "<method name=\"peekSource\">\n"
+ "<arg name=\"name\" type=\"s\" direction=\"in\" />\n"
+ "<arg name=\"sourceID\" type=\"q\" direction=\"out\" />\n"
+ "<arg name=\"error\" type=\"i\" direction=\"out\" />\n"
+ "</method>\n"
+ "<method name=\"registerSource\">\n"
+ "<arg name=\"sourceData\" type=\"(qqsqinb(iq)ia(qn)aqa(qn)a(qin)a(qin))\" direction=\"in\" />\n"
+ "<arg name=\"sourceID\" type=\"q\" direction=\"out\" />\n"
+ "<arg name=\"error\" type=\"i\" direction=\"out\" />\n"
+ "</method>\n"
+ "<method name=\"deregisterSource\">\n"
+ "<arg name=\"sourceID\" type=\"q\" direction=\"in\" />\n"
+ "<arg name=\"error\" type=\"i\" direction=\"out\" />\n"
+ "</method>\n"
+ "<method name=\"registerCrossfader\">\n"
+ "<arg name=\"crossfaderData\" type=\"(qsqqqi)\" direction=\"in\" />\n"
+ "<arg name=\"crossfaderID\" type=\"q\" direction=\"out\" />\n"
+ "<arg name=\"error\" type=\"i\" direction=\"out\" />\n"
+ "</method>\n"
+ "<method name=\"deregisterCrossfader\">\n"
+ "<arg name=\"crossfaderID\" type=\"q\" direction=\"in\" />\n"
+ "<arg name=\"error\" type=\"i\" direction=\"out\" />\n"
+ "</method>\n"
+ "<method name=\"peekSourceClassID\">\n"
+ "<arg name=\"name\" type=\"s\" direction=\"in\" />\n"
+ "<arg name=\"sourceClassID\" type=\"q\" direction=\"out\" />\n"
+ "<arg name=\"error\" type=\"i\" direction=\"out\" />\n"
+ "</method>\n"
+ "<method name=\"peekSinkClassID\">\n"
+ "<arg name=\"name\" type=\"s\" direction=\"in\" />\n"
+ "<arg name=\"sinkClassID\" type=\"q\" direction=\"out\" />\n"
+ "<arg name=\"error\" type=\"i\" direction=\"out\" />\n"
+ "</method>\n"
+ "<method name=\"hookInterruptStatusChange\">\n"
+ "<arg name=\"sourceID\" type=\"q\" direction=\"in\" />\n"
+ "<arg name=\"interruptState\" type=\"i\" direction=\"in\" />\n"
+ "</method>\n"
+ "<method name=\"hookDomainRegistrationComplete\">\n"
+ "<arg name=\"domainID\" type=\"q\" direction=\"in\" />\n"
+ "</method>\n"
+ "<method name=\"hookSinkAvailablityStatusChange\">\n"
+ "<arg name=\"sinkID\" type=\"q\" direction=\"in\" />\n"
+ "<arg name=\"availability\" type=\"(iq)\" direction=\"in\" />\n"
+ "</method>\n"
+ "<method name=\"hookSourceAvailablityStatusChange\">\n"
+ "<arg name=\"sourceID\" type=\"q\" direction=\"in\" />\n"
+ "<arg name=\"availability\" type=\"(iq)\" direction=\"in\" />\n"
+ "</method>\n"
+ "<method name=\"hookDomainStateChange\">\n"
+ "<arg name=\"domainID\" type=\"q\" direction=\"in\" />\n"
+ "<arg name=\"domainState\" type=\"i\" direction=\"in\" />\n"
+ "</method>\n"
+ "<method name=\"hookTimingInformationChanged\">\n"
+ "<arg name=\"connectionID\" type=\"q\" direction=\"in\" />\n"
+ "<arg name=\"delay\" type=\"n\" direction=\"in\" />\n"
+ "</method>\n"
+ "<method name=\"sendChangedData\">\n"
+ "<arg name=\"earlyData\" type=\"a(i(yv)(yv))\" direction=\"in\" />\n"
+ "</method>\n"
+ "<method name=\"updateGateway\">\n"
+ "<arg name=\"gatewayID\" type=\"q\" direction=\"in\" />\n"
+ "<arg name=\"listSourceFormats\" type=\"aq\" direction=\"in\" />\n"
+ "<arg name=\"listSinkFormats\" type=\"aq\" direction=\"in\" />\n"
+ "<arg name=\"convertionMatrix\" type=\"ab\" direction=\"in\" />\n"
+ "<arg name=\"error\" type=\"i\" direction=\"out\" />\n"
+ "</method>\n"
+ "<method name=\"updateSink\">\n"
+ "<arg name=\"sinkID\" type=\"q\" direction=\"in\" />\n"
+ "<arg name=\"sinkClassID\" type=\"q\" direction=\"in\" />\n"
+ "<arg name=\"listSoundProperties\" type=\"a(qn)\" direction=\"in\" />\n"
+ "<arg name=\"listConnectionFormats\" type=\"aq\" direction=\"in\" />\n"
+ "<arg name=\"listMainSoundProperties\" type=\"a(qn)\" direction=\"in\" />\n"
+ "<arg name=\"error\" type=\"i\" direction=\"out\" />\n"
+ "</method>\n"
+ "<method name=\"updateSource\">\n"
+ "<arg name=\"sourceID\" type=\"q\" direction=\"in\" />\n"
+ "<arg name=\"sourceClassID\" type=\"q\" direction=\"in\" />\n"
+ "<arg name=\"listSoundProperties\" type=\"a(qn)\" direction=\"in\" />\n"
+ "<arg name=\"listConnectionFormats\" type=\"aq\" direction=\"in\" />\n"
+ "<arg name=\"listMainSoundProperties\" type=\"a(qn)\" direction=\"in\" />\n"
+ "<arg name=\"error\" type=\"i\" direction=\"out\" />\n"
+ "</method>\n"
+ "<method name=\"ackSetVolumes\">\n"
+ "<arg name=\"handle\" type=\"(iq)\" direction=\"in\" />\n"
+ "<arg name=\"listvolumes\" type=\"a(i(yv)nqn)\" direction=\"in\" />\n"
+ "<arg name=\"error\" type=\"i\" direction=\"in\" />\n"
+ "</method>\n"
+ "<method name=\"ackSinkNotificationConfiguration\">\n"
+ "<arg name=\"handle\" type=\"(iq)\" direction=\"in\" />\n"
+ "<arg name=\"error\" type=\"i\" direction=\"in\" />\n"
+ "</method>\n"
+ "<method name=\"ackSourceNotificationConfiguration\">\n"
+ "<arg name=\"handle\" type=\"(iq)\" direction=\"in\" />\n"
+ "<arg name=\"error\" type=\"i\" direction=\"in\" />\n"
+ "</method>\n"
+ "<method name=\"hookSinkNotificationDataChange\">\n"
+ "<arg name=\"sinkID\" type=\"q\" direction=\"in\" />\n"
+ "<arg name=\"payload\" type=\"(qn)\" direction=\"in\" />\n"
+ "</method>\n"
+ "<method name=\"hookSourceNotificationDataChange\">\n"
+ "<arg name=\"sourceID\" type=\"q\" direction=\"in\" />\n"
+ "<arg name=\"payload\" type=\"(qn)\" direction=\"in\" />\n"
+ "</method>\n"
+ "<method name=\"confirmRoutingRundown\">\n"
+ "<arg name=\"domainName\" type=\"s\" direction=\"in\" />\n"
+ "</method>\n"
+ ;
+}
+
+
+static CommonAPI::DBus::DBusGetAttributeStubDispatcher<
+ RoutingControlObserverStub,
+ am_RoutingReady_e
+ > getRoutingReadyAttributeStubDispatcher(&RoutingControlObserverStub::getRoutingReadyAttribute, "i");
+static CommonAPI::DBus::DBusSetObservableAttributeStubDispatcher<
+ RoutingControlObserverStub,
+ am_RoutingReady_e
+ > setRoutingReadyAttributeStubDispatcher(
+ &RoutingControlObserverStub::getRoutingReadyAttribute,
+ &RoutingControlObserverStubRemoteEvent::onRemoteSetRoutingReadyAttribute,
+ &RoutingControlObserverStubRemoteEvent::onRemoteRoutingReadyAttributeChanged,
+ &RoutingControlObserverStubAdapter::fireRoutingReadyAttributeChanged,
+ "i");
+
+
+static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
+ RoutingControlObserverStub,
+ std::tuple<am_Handle_s, am_connectionID_t, am_Error_e>,
+ std::tuple<>
+ > ackConnectStubDispatcher(&RoutingControlObserverStub::ackConnect, "");
+static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
+ RoutingControlObserverStub,
+ std::tuple<am_Handle_s, am_connectionID_t, am_Error_e>,
+ std::tuple<>
+ > ackDisconnectStubDispatcher(&RoutingControlObserverStub::ackDisconnect, "");
+static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
+ RoutingControlObserverStub,
+ std::tuple<am_Handle_s, am_volume_t, am_Error_e>,
+ std::tuple<>
+ > ackSetSinkVolumeChangeStubDispatcher(&RoutingControlObserverStub::ackSetSinkVolumeChange, "");
+static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
+ RoutingControlObserverStub,
+ std::tuple<am_Handle_s, am_volume_t, am_Error_e>,
+ std::tuple<>
+ > ackSetSourceVolumeChangeStubDispatcher(&RoutingControlObserverStub::ackSetSourceVolumeChange, "");
+static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
+ RoutingControlObserverStub,
+ std::tuple<am_Handle_s, am_Error_e>,
+ std::tuple<>
+ > ackSetSourceStateStubDispatcher(&RoutingControlObserverStub::ackSetSourceState, "");
+static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
+ RoutingControlObserverStub,
+ std::tuple<am_Handle_s, am_Error_e>,
+ std::tuple<>
+ > ackSetSinkSoundPropertiesStubDispatcher(&RoutingControlObserverStub::ackSetSinkSoundProperties, "");
+static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
+ RoutingControlObserverStub,
+ std::tuple<am_Handle_s, am_Error_e>,
+ std::tuple<>
+ > ackSetSinkSoundPropertyStubDispatcher(&RoutingControlObserverStub::ackSetSinkSoundProperty, "");
+static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
+ RoutingControlObserverStub,
+ std::tuple<am_Handle_s, am_Error_e>,
+ std::tuple<>
+ > ackSetSourceSoundPropertiesStubDispatcher(&RoutingControlObserverStub::ackSetSourceSoundProperties, "");
+static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
+ RoutingControlObserverStub,
+ std::tuple<am_Handle_s, am_Error_e>,
+ std::tuple<>
+ > ackSetSourceSoundPropertyStubDispatcher(&RoutingControlObserverStub::ackSetSourceSoundProperty, "");
+static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
+ RoutingControlObserverStub,
+ std::tuple<am_Handle_s, am_HotSink_e, am_Error_e>,
+ std::tuple<>
+ > ackCrossFadingStubDispatcher(&RoutingControlObserverStub::ackCrossFading, "");
+static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
+ RoutingControlObserverStub,
+ std::tuple<am_Handle_s, am_sourceID_t, am_volume_t>,
+ std::tuple<>
+ > ackSourceVolumeTickStubDispatcher(&RoutingControlObserverStub::ackSourceVolumeTick, "");
+static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
+ RoutingControlObserverStub,
+ std::tuple<am_Handle_s, am_sinkID_t, am_volume_t>,
+ std::tuple<>
+ > ackSinkVolumeTickStubDispatcher(&RoutingControlObserverStub::ackSinkVolumeTick, "");
+static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
+ RoutingControlObserverStub,
+ std::tuple<std::string>,
+ std::tuple<am_domainID_t, am_Error_e>
+ > peekDomainStubDispatcher(&RoutingControlObserverStub::peekDomain, "qi");
+static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
+ RoutingControlObserverStub,
+ std::tuple<am_Domain_s, std::string, std::string, std::string>,
+ std::tuple<am_domainID_t, am_Error_e>
+ > registerDomainStubDispatcher(&RoutingControlObserverStub::registerDomain, "qi");
+static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
+ RoutingControlObserverStub,
+ std::tuple<am_domainID_t>,
+ std::tuple<am_Error_e>
+ > deregisterDomainStubDispatcher(&RoutingControlObserverStub::deregisterDomain, "i");
+static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
+ RoutingControlObserverStub,
+ std::tuple<am_Gateway_s>,
+ std::tuple<am_gatewayID_t, am_Error_e>
+ > registerGatewayStubDispatcher(&RoutingControlObserverStub::registerGateway, "qi");
+static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
+ RoutingControlObserverStub,
+ std::tuple<am_gatewayID_t>,
+ std::tuple<am_Error_e>
+ > deregisterGatewayStubDispatcher(&RoutingControlObserverStub::deregisterGateway, "i");
+static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
+ RoutingControlObserverStub,
+ std::tuple<std::string>,
+ std::tuple<am_sinkID_t, am_Error_e>
+ > peekSinkStubDispatcher(&RoutingControlObserverStub::peekSink, "qi");
+static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
+ RoutingControlObserverStub,
+ std::tuple<am_Sink_s>,
+ std::tuple<am_sinkID_t, am_Error_e>
+ > registerSinkStubDispatcher(&RoutingControlObserverStub::registerSink, "qi");
+static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
+ RoutingControlObserverStub,
+ std::tuple<am_sinkID_t>,
+ std::tuple<am_Error_e>
+ > deregisterSinkStubDispatcher(&RoutingControlObserverStub::deregisterSink, "i");
+static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
+ RoutingControlObserverStub,
+ std::tuple<std::string>,
+ std::tuple<am_sourceID_t, am_Error_e>
+ > peekSourceStubDispatcher(&RoutingControlObserverStub::peekSource, "qi");
+static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
+ RoutingControlObserverStub,
+ std::tuple<am_Source_s>,
+ std::tuple<am_sourceID_t, am_Error_e>
+ > registerSourceStubDispatcher(&RoutingControlObserverStub::registerSource, "qi");
+static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
+ RoutingControlObserverStub,
+ std::tuple<am_sourceID_t>,
+ std::tuple<am_Error_e>
+ > deregisterSourceStubDispatcher(&RoutingControlObserverStub::deregisterSource, "i");
+static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
+ RoutingControlObserverStub,
+ std::tuple<am_Crossfader_s>,
+ std::tuple<am_crossfaderID_t, am_Error_e>
+ > registerCrossfaderStubDispatcher(&RoutingControlObserverStub::registerCrossfader, "qi");
+static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
+ RoutingControlObserverStub,
+ std::tuple<am_crossfaderID_t>,
+ std::tuple<am_Error_e>
+ > deregisterCrossfaderStubDispatcher(&RoutingControlObserverStub::deregisterCrossfader, "i");
+static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
+ RoutingControlObserverStub,
+ std::tuple<std::string>,
+ std::tuple<am_sourceClass_t, am_Error_e>
+ > peekSourceClassIDStubDispatcher(&RoutingControlObserverStub::peekSourceClassID, "qi");
+static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
+ RoutingControlObserverStub,
+ std::tuple<std::string>,
+ std::tuple<am_sinkClass_t, am_Error_e>
+ > peekSinkClassIDStubDispatcher(&RoutingControlObserverStub::peekSinkClassID, "qi");
+static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
+ RoutingControlObserverStub,
+ std::tuple<am_sourceID_t, am_InterruptState_e>,
+ std::tuple<>
+ > hookInterruptStatusChangeStubDispatcher(&RoutingControlObserverStub::hookInterruptStatusChange, "");
+static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
+ RoutingControlObserverStub,
+ std::tuple<am_domainID_t>,
+ std::tuple<>
+ > hookDomainRegistrationCompleteStubDispatcher(&RoutingControlObserverStub::hookDomainRegistrationComplete, "");
+static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
+ RoutingControlObserverStub,
+ std::tuple<am_sinkID_t, am_Availability_s>,
+ std::tuple<>
+ > hookSinkAvailablityStatusChangeStubDispatcher(&RoutingControlObserverStub::hookSinkAvailablityStatusChange, "");
+static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
+ RoutingControlObserverStub,
+ std::tuple<am_sourceID_t, am_Availability_s>,
+ std::tuple<>
+ > hookSourceAvailablityStatusChangeStubDispatcher(&RoutingControlObserverStub::hookSourceAvailablityStatusChange, "");
+static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
+ RoutingControlObserverStub,
+ std::tuple<am_domainID_t, am_DomainState_e>,
+ std::tuple<>
+ > hookDomainStateChangeStubDispatcher(&RoutingControlObserverStub::hookDomainStateChange, "");
+static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
+ RoutingControlObserverStub,
+ std::tuple<am_connectionID_t, am_timeSync_t>,
+ std::tuple<>
+ > hookTimingInformationChangedStubDispatcher(&RoutingControlObserverStub::hookTimingInformationChanged, "");
+static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
+ RoutingControlObserverStub,
+ std::tuple<am_EarlyData_L>,
+ std::tuple<>
+ > sendChangedDataStubDispatcher(&RoutingControlObserverStub::sendChangedData, "");
+static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
+ RoutingControlObserverStub,
+ std::tuple<am_gatewayID_t, am_ConnectionFormat_L, am_ConnectionFormat_L, am_Convertion_L>,
+ std::tuple<am_Error_e>
+ > updateGatewayStubDispatcher(&RoutingControlObserverStub::updateGateway, "i");
+static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
+ RoutingControlObserverStub,
+ std::tuple<am_sinkID_t, am_sinkClass_t, am_SoundProperty_L, am_ConnectionFormat_L, am_MainSoundProperty_L>,
+ std::tuple<am_Error_e>
+ > updateSinkStubDispatcher(&RoutingControlObserverStub::updateSink, "i");
+static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
+ RoutingControlObserverStub,
+ std::tuple<am_sourceID_t, am_sourceClass_t, am_SoundProperty_L, am_ConnectionFormat_L, am_MainSoundProperty_L>,
+ std::tuple<am_Error_e>
+ > updateSourceStubDispatcher(&RoutingControlObserverStub::updateSource, "i");
+static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
+ RoutingControlObserverStub,
+ std::tuple<am_Handle_s, am_Volumes_L, am_Error_e>,
+ std::tuple<>
+ > ackSetVolumesStubDispatcher(&RoutingControlObserverStub::ackSetVolumes, "");
+static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
+ RoutingControlObserverStub,
+ std::tuple<am_Handle_s, am_Error_e>,
+ std::tuple<>
+ > ackSinkNotificationConfigurationStubDispatcher(&RoutingControlObserverStub::ackSinkNotificationConfiguration, "");
+static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
+ RoutingControlObserverStub,
+ std::tuple<am_Handle_s, am_Error_e>,
+ std::tuple<>
+ > ackSourceNotificationConfigurationStubDispatcher(&RoutingControlObserverStub::ackSourceNotificationConfiguration, "");
+static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
+ RoutingControlObserverStub,
+ std::tuple<am_sinkID_t, am_NotificationPayload_s>,
+ std::tuple<>
+ > hookSinkNotificationDataChangeStubDispatcher(&RoutingControlObserverStub::hookSinkNotificationDataChange, "");
+static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
+ RoutingControlObserverStub,
+ std::tuple<am_sourceID_t, am_NotificationPayload_s>,
+ std::tuple<>
+ > hookSourceNotificationDataChangeStubDispatcher(&RoutingControlObserverStub::hookSourceNotificationDataChange, "");
+static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
+ RoutingControlObserverStub,
+ std::tuple<std::string>,
+ std::tuple<>
+ > confirmRoutingRundownStubDispatcher(&RoutingControlObserverStub::confirmRoutingRundown, "");
+
+void RoutingControlObserverDBusStubAdapter::fireRoutingReadyAttributeChanged(const am_RoutingReady_e& value) {
+ CommonAPI::DBus::DBusStubSignalHelper<CommonAPI::DBus::DBusSerializableArguments<am_RoutingReady_e>>
+ ::sendSignal(
+ *this,
+ "onRoutingReadyAttributeChanged",
+ "i",
+ value
+ );
+}
+
+
+} // namespace am
+} // namespace genivi
+} // namespace org
+
+template<>
+const org::genivi::am::RoutingControlObserverDBusStubAdapterHelper::StubDispatcherTable org::genivi::am::RoutingControlObserverDBusStubAdapterHelper::stubDispatcherTable_ = {
+ { { "getRoutingReadyAttribute", "" }, &org::genivi::am::getRoutingReadyAttributeStubDispatcher }
+ , { { "setRoutingReadyAttribute", "i" }, &org::genivi::am::setRoutingReadyAttributeStubDispatcher }
+ ,
+ { { "ackConnect", "(iq)qi" }, &org::genivi::am::ackConnectStubDispatcher },
+ { { "ackDisconnect", "(iq)qi" }, &org::genivi::am::ackDisconnectStubDispatcher },
+ { { "ackSetSinkVolumeChange", "(iq)ni" }, &org::genivi::am::ackSetSinkVolumeChangeStubDispatcher },
+ { { "ackSetSourceVolumeChange", "(iq)ni" }, &org::genivi::am::ackSetSourceVolumeChangeStubDispatcher },
+ { { "ackSetSourceState", "(iq)i" }, &org::genivi::am::ackSetSourceStateStubDispatcher },
+ { { "ackSetSinkSoundProperties", "(iq)i" }, &org::genivi::am::ackSetSinkSoundPropertiesStubDispatcher },
+ { { "ackSetSinkSoundProperty", "(iq)i" }, &org::genivi::am::ackSetSinkSoundPropertyStubDispatcher },
+ { { "ackSetSourceSoundProperties", "(iq)i" }, &org::genivi::am::ackSetSourceSoundPropertiesStubDispatcher },
+ { { "ackSetSourceSoundProperty", "(iq)i" }, &org::genivi::am::ackSetSourceSoundPropertyStubDispatcher },
+ { { "ackCrossFading", "(iq)ii" }, &org::genivi::am::ackCrossFadingStubDispatcher },
+ { { "ackSourceVolumeTick", "(iq)qn" }, &org::genivi::am::ackSourceVolumeTickStubDispatcher },
+ { { "ackSinkVolumeTick", "(iq)qn" }, &org::genivi::am::ackSinkVolumeTickStubDispatcher },
+ { { "peekDomain", "s" }, &org::genivi::am::peekDomainStubDispatcher },
+ { { "registerDomain", "(qsssbbi)sss" }, &org::genivi::am::registerDomainStubDispatcher },
+ { { "deregisterDomain", "q" }, &org::genivi::am::deregisterDomainStubDispatcher },
+ { { "registerGateway", "(qsqqqqqaqaqab)" }, &org::genivi::am::registerGatewayStubDispatcher },
+ { { "deregisterGateway", "q" }, &org::genivi::am::deregisterGatewayStubDispatcher },
+ { { "peekSink", "s" }, &org::genivi::am::peekSinkStubDispatcher },
+ { { "registerSink", "(qsqqnb(iq)ina(qn)aqa(qn)a(qin)a(qin))" }, &org::genivi::am::registerSinkStubDispatcher },
+ { { "deregisterSink", "q" }, &org::genivi::am::deregisterSinkStubDispatcher },
+ { { "peekSource", "s" }, &org::genivi::am::peekSourceStubDispatcher },
+ { { "registerSource", "(qqsqinb(iq)ia(qn)aqa(qn)a(qin)a(qin))" }, &org::genivi::am::registerSourceStubDispatcher },
+ { { "deregisterSource", "q" }, &org::genivi::am::deregisterSourceStubDispatcher },
+ { { "registerCrossfader", "(qsqqqi)" }, &org::genivi::am::registerCrossfaderStubDispatcher },
+ { { "deregisterCrossfader", "q" }, &org::genivi::am::deregisterCrossfaderStubDispatcher },
+ { { "peekSourceClassID", "s" }, &org::genivi::am::peekSourceClassIDStubDispatcher },
+ { { "peekSinkClassID", "s" }, &org::genivi::am::peekSinkClassIDStubDispatcher },
+ { { "hookInterruptStatusChange", "qi" }, &org::genivi::am::hookInterruptStatusChangeStubDispatcher },
+ { { "hookDomainRegistrationComplete", "q" }, &org::genivi::am::hookDomainRegistrationCompleteStubDispatcher },
+ { { "hookSinkAvailablityStatusChange", "q(iq)" }, &org::genivi::am::hookSinkAvailablityStatusChangeStubDispatcher },
+ { { "hookSourceAvailablityStatusChange", "q(iq)" }, &org::genivi::am::hookSourceAvailablityStatusChangeStubDispatcher },
+ { { "hookDomainStateChange", "qi" }, &org::genivi::am::hookDomainStateChangeStubDispatcher },
+ { { "hookTimingInformationChanged", "qn" }, &org::genivi::am::hookTimingInformationChangedStubDispatcher },
+ { { "sendChangedData", "a(i(yv)(yv))" }, &org::genivi::am::sendChangedDataStubDispatcher },
+ { { "updateGateway", "qaqaqab" }, &org::genivi::am::updateGatewayStubDispatcher },
+ { { "updateSink", "qqa(qn)aqa(qn)" }, &org::genivi::am::updateSinkStubDispatcher },
+ { { "updateSource", "qqa(qn)aqa(qn)" }, &org::genivi::am::updateSourceStubDispatcher },
+ { { "ackSetVolumes", "(iq)a(i(yv)nqn)i" }, &org::genivi::am::ackSetVolumesStubDispatcher },
+ { { "ackSinkNotificationConfiguration", "(iq)i" }, &org::genivi::am::ackSinkNotificationConfigurationStubDispatcher },
+ { { "ackSourceNotificationConfiguration", "(iq)i" }, &org::genivi::am::ackSourceNotificationConfigurationStubDispatcher },
+ { { "hookSinkNotificationDataChange", "q(qn)" }, &org::genivi::am::hookSinkNotificationDataChangeStubDispatcher },
+ { { "hookSourceNotificationDataChange", "q(qn)" }, &org::genivi::am::hookSourceNotificationDataChangeStubDispatcher },
+ { { "confirmRoutingRundown", "s" }, &org::genivi::am::confirmRoutingRundownStubDispatcher }
+};
diff --git a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlObserverDBusStubAdapter.h b/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlObserverDBusStubAdapter.h
new file mode 100644
index 0000000..79d460f
--- /dev/null
+++ b/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlObserverDBusStubAdapter.h
@@ -0,0 +1,47 @@
+/*
+* This file was generated by the CommonAPI Generators.
+*
+ * Copyright (C) 2013, BMW AG
+ *
+ * \author Christian Linke, christian.linke@bmw.de BMW 2012,2013
+*/
+#ifndef ORG_GENIVI_AM_Routing_Control_Observer_DBUS_STUB_ADAPTER_H_
+#define ORG_GENIVI_AM_Routing_Control_Observer_DBUS_STUB_ADAPTER_H_
+
+#include <org/genivi/am/RoutingControlObserverStub.h>
+
+#define COMMONAPI_INTERNAL_COMPILATION
+
+#include <CommonAPI/DBus/DBusStubAdapterHelper.h>
+#include <CommonAPI/DBus/DBusFactory.h>
+
+#undef COMMONAPI_INTERNAL_COMPILATION
+
+namespace org {
+namespace genivi {
+namespace am {
+
+typedef CommonAPI::DBus::DBusStubAdapterHelper<RoutingControlObserverStub> RoutingControlObserverDBusStubAdapterHelper;
+
+class RoutingControlObserverDBusStubAdapter: public RoutingControlObserverStubAdapter, public RoutingControlObserverDBusStubAdapterHelper {
+ public:
+ RoutingControlObserverDBusStubAdapter(
+ const std::string& commonApiAddress,
+ const std::string& dbusInterfaceName,
+ const std::string& dbusBusName,
+ const std::string& dbusObjectPath,
+ const std::shared_ptr<CommonAPI::DBus::DBusProxyConnection>& dbusConnection,
+ const std::shared_ptr<CommonAPI::StubBase>& stub);
+
+ void fireRoutingReadyAttributeChanged(const am_RoutingReady_e& value);
+
+
+ protected:
+ virtual const char* getMethodsDBusIntrospectionXmlData() const;
+};
+
+} // namespace am
+} // namespace genivi
+} // namespace org
+
+#endif // ORG_GENIVI_AM_Routing_Control_Observer_DBUS_STUB_ADAPTER_H_
diff --git a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/audiomanager/RoutingInterfaceProxy.h b/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlObserverProxy.h
index 7633ea6..8ad2394 100644
--- a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/audiomanager/RoutingInterfaceProxy.h
+++ b/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlObserverProxy.h
@@ -1,51 +1,37 @@
/*
* This file was generated by the CommonAPI Generators.
*
- * Copyright (c) 2012 BMW
+ * Copyright (C) 2013, BMW AG
*
- * \author Aleksandar Donchev, aleksander.donchev@partner.bmw.de BMW 2013
- *
- * \copyright
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction,
- * including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
- * subject to the following conditions:
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
- * THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- *
- * For further information see http://www.genivi.org/.
+ * \author Christian Linke, christian.linke@bmw.de BMW 2012,2013
*/
-#ifndef ORG_GENIVI_AUDIOMANAGER_Routing_Interface_PROXY_H_
-#define ORG_GENIVI_AUDIOMANAGER_Routing_Interface_PROXY_H_
+#ifndef ORG_GENIVI_AM_Routing_Control_Observer_PROXY_H_
+#define ORG_GENIVI_AM_Routing_Control_Observer_PROXY_H_
-#include "RoutingInterfaceProxyBase.h"
+#include "RoutingControlObserverProxyBase.h"
#define COMMONAPI_INTERNAL_COMPILATION
+#include <CommonAPI/AttributeExtension.h>
+#include <CommonAPI/Factory.h>
#undef COMMONAPI_INTERNAL_COMPILATION
namespace org {
namespace genivi {
-namespace audiomanager {
+namespace am {
template <typename ... _AttributeExtensions>
-class RoutingInterfaceProxy: virtual public RoutingInterface, virtual public RoutingInterfaceProxyBase, public _AttributeExtensions... {
+class RoutingControlObserverProxy: virtual public RoutingControlObserver, virtual public RoutingControlObserverProxyBase, public _AttributeExtensions... {
public:
- RoutingInterfaceProxy(std::shared_ptr<CommonAPI::Proxy> delegate);
- ~RoutingInterfaceProxy();
-
+ RoutingControlObserverProxy(std::shared_ptr<CommonAPI::Proxy> delegate);
+ ~RoutingControlObserverProxy();
- /// Returns the wrapper class that provides access to the broadcast setRoutingReady.
- virtual SetRoutingReadyEvent& getSetRoutingReadyEvent() {
- return delegate_->getSetRoutingReadyEvent();
+ /// Returns the wrapper class that provides access to the attribute RoutingReady.
+ virtual RoutingReadyAttribute& getRoutingReadyAttribute() {
+ return delegate_->getRoutingReadyAttribute();
}
- /// Returns the wrapper class that provides access to the broadcast setRoutingRundown.
- virtual SetRoutingRundownEvent& getSetRoutingRundownEvent() {
- return delegate_->getSetRoutingRundownEvent();
- }
@@ -58,7 +44,7 @@ class RoutingInterfaceProxy: virtual public RoutingInterface, virtual public Rou
* will be set.
* Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
*/
- virtual void ackConnect(const uint16_t& handle, const am_gen::am_connectionID_t& connectionID, const uint16_t& error, CommonAPI::CallStatus& callStatus);
+ virtual void ackConnect(const am_Handle_s& handle, const am_connectionID_t& connectionID, const am_Error_e& error, CommonAPI::CallStatus& callStatus);
/**
* Calls ackConnect with asynchronous semantics.
*
@@ -69,7 +55,7 @@ class RoutingInterfaceProxy: virtual public RoutingInterface, virtual public Rou
* The std::future returned by this method will be fulfilled at arrival of the reply.
* It will provide the same value for CallStatus as will be handed to the callback.
*/
- virtual std::future<CommonAPI::CallStatus> ackConnectAsync(const uint16_t& handle, const am_gen::am_connectionID_t& connectionID, const uint16_t& error, AckConnectAsyncCallback callback);
+ virtual std::future<CommonAPI::CallStatus> ackConnectAsync(const am_Handle_s& handle, const am_connectionID_t& connectionID, const am_Error_e& error, AckConnectAsyncCallback callback);
/**
* Calls ackDisconnect with synchronous semantics.
@@ -80,7 +66,7 @@ class RoutingInterfaceProxy: virtual public RoutingInterface, virtual public Rou
* will be set.
* Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
*/
- virtual void ackDisconnect(const uint16_t& handle, const am_gen::am_connectionID_t& connectionID, const uint16_t& error, CommonAPI::CallStatus& callStatus);
+ virtual void ackDisconnect(const am_Handle_s& handle, const am_connectionID_t& connectionID, const am_Error_e& error, CommonAPI::CallStatus& callStatus);
/**
* Calls ackDisconnect with asynchronous semantics.
*
@@ -91,10 +77,10 @@ class RoutingInterfaceProxy: virtual public RoutingInterface, virtual public Rou
* The std::future returned by this method will be fulfilled at arrival of the reply.
* It will provide the same value for CallStatus as will be handed to the callback.
*/
- virtual std::future<CommonAPI::CallStatus> ackDisconnectAsync(const uint16_t& handle, const am_gen::am_connectionID_t& connectionID, const uint16_t& error, AckDisconnectAsyncCallback callback);
+ virtual std::future<CommonAPI::CallStatus> ackDisconnectAsync(const am_Handle_s& handle, const am_connectionID_t& connectionID, const am_Error_e& error, AckDisconnectAsyncCallback callback);
/**
- * Calls ackSetSinkVolume with synchronous semantics.
+ * Calls ackSetSinkVolumeChange with synchronous semantics.
*
* All const parameters are input parameters to this method.
* The CallStatus will be filled when the method returns and indicate either
@@ -102,9 +88,9 @@ class RoutingInterfaceProxy: virtual public RoutingInterface, virtual public Rou
* will be set.
* Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
*/
- virtual void ackSetSinkVolume(const uint16_t& handle, const am_gen::am_volume_t& volume, const uint16_t& error, CommonAPI::CallStatus& callStatus);
+ virtual void ackSetSinkVolumeChange(const am_Handle_s& handle, const am_volume_t& volume, const am_Error_e& error, CommonAPI::CallStatus& callStatus);
/**
- * Calls ackSetSinkVolume with asynchronous semantics.
+ * Calls ackSetSinkVolumeChange with asynchronous semantics.
*
* The provided callback will be called when the reply to this call arrives or
* an error occurs during the call. The CallStatus will indicate either "SUCCESS"
@@ -113,10 +99,10 @@ class RoutingInterfaceProxy: virtual public RoutingInterface, virtual public Rou
* The std::future returned by this method will be fulfilled at arrival of the reply.
* It will provide the same value for CallStatus as will be handed to the callback.
*/
- virtual std::future<CommonAPI::CallStatus> ackSetSinkVolumeAsync(const uint16_t& handle, const am_gen::am_volume_t& volume, const uint16_t& error, AckSetSinkVolumeAsyncCallback callback);
+ virtual std::future<CommonAPI::CallStatus> ackSetSinkVolumeChangeAsync(const am_Handle_s& handle, const am_volume_t& volume, const am_Error_e& error, AckSetSinkVolumeChangeAsyncCallback callback);
/**
- * Calls ackSetSourceVolume with synchronous semantics.
+ * Calls ackSetSourceVolumeChange with synchronous semantics.
*
* All const parameters are input parameters to this method.
* The CallStatus will be filled when the method returns and indicate either
@@ -124,9 +110,9 @@ class RoutingInterfaceProxy: virtual public RoutingInterface, virtual public Rou
* will be set.
* Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
*/
- virtual void ackSetSourceVolume(const uint16_t& handle, const am_gen::am_volume_t& volume, const uint16_t& error, CommonAPI::CallStatus& callStatus);
+ virtual void ackSetSourceVolumeChange(const am_Handle_s& handle, const am_volume_t& volume, const am_Error_e& error, CommonAPI::CallStatus& callStatus);
/**
- * Calls ackSetSourceVolume with asynchronous semantics.
+ * Calls ackSetSourceVolumeChange with asynchronous semantics.
*
* The provided callback will be called when the reply to this call arrives or
* an error occurs during the call. The CallStatus will indicate either "SUCCESS"
@@ -135,7 +121,7 @@ class RoutingInterfaceProxy: virtual public RoutingInterface, virtual public Rou
* The std::future returned by this method will be fulfilled at arrival of the reply.
* It will provide the same value for CallStatus as will be handed to the callback.
*/
- virtual std::future<CommonAPI::CallStatus> ackSetSourceVolumeAsync(const uint16_t& handle, const am_gen::am_volume_t& volume, const uint16_t& error, AckSetSourceVolumeAsyncCallback callback);
+ virtual std::future<CommonAPI::CallStatus> ackSetSourceVolumeChangeAsync(const am_Handle_s& handle, const am_volume_t& volume, const am_Error_e& error, AckSetSourceVolumeChangeAsyncCallback callback);
/**
* Calls ackSetSourceState with synchronous semantics.
@@ -146,7 +132,7 @@ class RoutingInterfaceProxy: virtual public RoutingInterface, virtual public Rou
* will be set.
* Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
*/
- virtual void ackSetSourceState(const uint16_t& handle, const uint16_t& error, CommonAPI::CallStatus& callStatus);
+ virtual void ackSetSourceState(const am_Handle_s& handle, const am_Error_e& error, CommonAPI::CallStatus& callStatus);
/**
* Calls ackSetSourceState with asynchronous semantics.
*
@@ -157,7 +143,7 @@ class RoutingInterfaceProxy: virtual public RoutingInterface, virtual public Rou
* The std::future returned by this method will be fulfilled at arrival of the reply.
* It will provide the same value for CallStatus as will be handed to the callback.
*/
- virtual std::future<CommonAPI::CallStatus> ackSetSourceStateAsync(const uint16_t& handle, const uint16_t& error, AckSetSourceStateAsyncCallback callback);
+ virtual std::future<CommonAPI::CallStatus> ackSetSourceStateAsync(const am_Handle_s& handle, const am_Error_e& error, AckSetSourceStateAsyncCallback callback);
/**
* Calls ackSetSinkSoundProperties with synchronous semantics.
@@ -168,7 +154,7 @@ class RoutingInterfaceProxy: virtual public RoutingInterface, virtual public Rou
* will be set.
* Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
*/
- virtual void ackSetSinkSoundProperties(const uint16_t& handle, const uint16_t& error, CommonAPI::CallStatus& callStatus);
+ virtual void ackSetSinkSoundProperties(const am_Handle_s& handle, const am_Error_e& error, CommonAPI::CallStatus& callStatus);
/**
* Calls ackSetSinkSoundProperties with asynchronous semantics.
*
@@ -179,7 +165,7 @@ class RoutingInterfaceProxy: virtual public RoutingInterface, virtual public Rou
* The std::future returned by this method will be fulfilled at arrival of the reply.
* It will provide the same value for CallStatus as will be handed to the callback.
*/
- virtual std::future<CommonAPI::CallStatus> ackSetSinkSoundPropertiesAsync(const uint16_t& handle, const uint16_t& error, AckSetSinkSoundPropertiesAsyncCallback callback);
+ virtual std::future<CommonAPI::CallStatus> ackSetSinkSoundPropertiesAsync(const am_Handle_s& handle, const am_Error_e& error, AckSetSinkSoundPropertiesAsyncCallback callback);
/**
* Calls ackSetSinkSoundProperty with synchronous semantics.
@@ -190,7 +176,7 @@ class RoutingInterfaceProxy: virtual public RoutingInterface, virtual public Rou
* will be set.
* Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
*/
- virtual void ackSetSinkSoundProperty(const uint16_t& handle, const uint16_t& error, CommonAPI::CallStatus& callStatus);
+ virtual void ackSetSinkSoundProperty(const am_Handle_s& handle, const am_Error_e& error, CommonAPI::CallStatus& callStatus);
/**
* Calls ackSetSinkSoundProperty with asynchronous semantics.
*
@@ -201,7 +187,7 @@ class RoutingInterfaceProxy: virtual public RoutingInterface, virtual public Rou
* The std::future returned by this method will be fulfilled at arrival of the reply.
* It will provide the same value for CallStatus as will be handed to the callback.
*/
- virtual std::future<CommonAPI::CallStatus> ackSetSinkSoundPropertyAsync(const uint16_t& handle, const uint16_t& error, AckSetSinkSoundPropertyAsyncCallback callback);
+ virtual std::future<CommonAPI::CallStatus> ackSetSinkSoundPropertyAsync(const am_Handle_s& handle, const am_Error_e& error, AckSetSinkSoundPropertyAsyncCallback callback);
/**
* Calls ackSetSourceSoundProperties with synchronous semantics.
@@ -212,7 +198,7 @@ class RoutingInterfaceProxy: virtual public RoutingInterface, virtual public Rou
* will be set.
* Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
*/
- virtual void ackSetSourceSoundProperties(const uint16_t& handle, const uint16_t& error, CommonAPI::CallStatus& callStatus);
+ virtual void ackSetSourceSoundProperties(const am_Handle_s& handle, const am_Error_e& error, CommonAPI::CallStatus& callStatus);
/**
* Calls ackSetSourceSoundProperties with asynchronous semantics.
*
@@ -223,7 +209,7 @@ class RoutingInterfaceProxy: virtual public RoutingInterface, virtual public Rou
* The std::future returned by this method will be fulfilled at arrival of the reply.
* It will provide the same value for CallStatus as will be handed to the callback.
*/
- virtual std::future<CommonAPI::CallStatus> ackSetSourceSoundPropertiesAsync(const uint16_t& handle, const uint16_t& error, AckSetSourceSoundPropertiesAsyncCallback callback);
+ virtual std::future<CommonAPI::CallStatus> ackSetSourceSoundPropertiesAsync(const am_Handle_s& handle, const am_Error_e& error, AckSetSourceSoundPropertiesAsyncCallback callback);
/**
* Calls ackSetSourceSoundProperty with synchronous semantics.
@@ -234,7 +220,7 @@ class RoutingInterfaceProxy: virtual public RoutingInterface, virtual public Rou
* will be set.
* Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
*/
- virtual void ackSetSourceSoundProperty(const uint16_t& handle, const uint16_t& error, CommonAPI::CallStatus& callStatus);
+ virtual void ackSetSourceSoundProperty(const am_Handle_s& handle, const am_Error_e& error, CommonAPI::CallStatus& callStatus);
/**
* Calls ackSetSourceSoundProperty with asynchronous semantics.
*
@@ -245,10 +231,10 @@ class RoutingInterfaceProxy: virtual public RoutingInterface, virtual public Rou
* The std::future returned by this method will be fulfilled at arrival of the reply.
* It will provide the same value for CallStatus as will be handed to the callback.
*/
- virtual std::future<CommonAPI::CallStatus> ackSetSourceSoundPropertyAsync(const uint16_t& handle, const uint16_t& error, AckSetSourceSoundPropertyAsyncCallback callback);
+ virtual std::future<CommonAPI::CallStatus> ackSetSourceSoundPropertyAsync(const am_Handle_s& handle, const am_Error_e& error, AckSetSourceSoundPropertyAsyncCallback callback);
/**
- * Calls ackSourceVolumeTick with synchronous semantics.
+ * Calls ackCrossFading with synchronous semantics.
*
* All const parameters are input parameters to this method.
* The CallStatus will be filled when the method returns and indicate either
@@ -256,9 +242,9 @@ class RoutingInterfaceProxy: virtual public RoutingInterface, virtual public Rou
* will be set.
* Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
*/
- virtual void ackSourceVolumeTick(const uint16_t& handle, const am_gen::am_sourceID_t& source, const am_gen::am_volume_t& volume, CommonAPI::CallStatus& callStatus);
+ virtual void ackCrossFading(const am_Handle_s& handle, const am_HotSink_e& hotSink, const am_Error_e& error, CommonAPI::CallStatus& callStatus);
/**
- * Calls ackSourceVolumeTick with asynchronous semantics.
+ * Calls ackCrossFading with asynchronous semantics.
*
* The provided callback will be called when the reply to this call arrives or
* an error occurs during the call. The CallStatus will indicate either "SUCCESS"
@@ -267,10 +253,10 @@ class RoutingInterfaceProxy: virtual public RoutingInterface, virtual public Rou
* The std::future returned by this method will be fulfilled at arrival of the reply.
* It will provide the same value for CallStatus as will be handed to the callback.
*/
- virtual std::future<CommonAPI::CallStatus> ackSourceVolumeTickAsync(const uint16_t& handle, const am_gen::am_sourceID_t& source, const am_gen::am_volume_t& volume, AckSourceVolumeTickAsyncCallback callback);
+ virtual std::future<CommonAPI::CallStatus> ackCrossFadingAsync(const am_Handle_s& handle, const am_HotSink_e& hotSink, const am_Error_e& error, AckCrossFadingAsyncCallback callback);
/**
- * Calls ackSinkVolumeTick with synchronous semantics.
+ * Calls ackSourceVolumeTick with synchronous semantics.
*
* All const parameters are input parameters to this method.
* The CallStatus will be filled when the method returns and indicate either
@@ -278,9 +264,9 @@ class RoutingInterfaceProxy: virtual public RoutingInterface, virtual public Rou
* will be set.
* Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
*/
- virtual void ackSinkVolumeTick(const uint16_t& handle, const am_gen::am_sinkID_t& sink, const am_gen::am_volume_t& volume, CommonAPI::CallStatus& callStatus);
+ virtual void ackSourceVolumeTick(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_volume_t& volume, CommonAPI::CallStatus& callStatus);
/**
- * Calls ackSinkVolumeTick with asynchronous semantics.
+ * Calls ackSourceVolumeTick with asynchronous semantics.
*
* The provided callback will be called when the reply to this call arrives or
* an error occurs during the call. The CallStatus will indicate either "SUCCESS"
@@ -289,10 +275,10 @@ class RoutingInterfaceProxy: virtual public RoutingInterface, virtual public Rou
* The std::future returned by this method will be fulfilled at arrival of the reply.
* It will provide the same value for CallStatus as will be handed to the callback.
*/
- virtual std::future<CommonAPI::CallStatus> ackSinkVolumeTickAsync(const uint16_t& handle, const am_gen::am_sinkID_t& sink, const am_gen::am_volume_t& volume, AckSinkVolumeTickAsyncCallback callback);
+ virtual std::future<CommonAPI::CallStatus> ackSourceVolumeTickAsync(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_volume_t& volume, AckSourceVolumeTickAsyncCallback callback);
/**
- * Calls ackCrossFading with synchronous semantics.
+ * Calls ackSinkVolumeTick with synchronous semantics.
*
* All const parameters are input parameters to this method.
* The CallStatus will be filled when the method returns and indicate either
@@ -300,9 +286,9 @@ class RoutingInterfaceProxy: virtual public RoutingInterface, virtual public Rou
* will be set.
* Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
*/
- virtual void ackCrossFading(const uint16_t& handle, const am_gen::am_HotSink_e& hotSink, const am_gen::am_Error_e& returnError, CommonAPI::CallStatus& callStatus);
+ virtual void ackSinkVolumeTick(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_volume_t& volume, CommonAPI::CallStatus& callStatus);
/**
- * Calls ackCrossFading with asynchronous semantics.
+ * Calls ackSinkVolumeTick with asynchronous semantics.
*
* The provided callback will be called when the reply to this call arrives or
* an error occurs during the call. The CallStatus will indicate either "SUCCESS"
@@ -311,7 +297,7 @@ class RoutingInterfaceProxy: virtual public RoutingInterface, virtual public Rou
* The std::future returned by this method will be fulfilled at arrival of the reply.
* It will provide the same value for CallStatus as will be handed to the callback.
*/
- virtual std::future<CommonAPI::CallStatus> ackCrossFadingAsync(const uint16_t& handle, const am_gen::am_HotSink_e& hotSink, const am_gen::am_Error_e& returnError, AckCrossFadingAsyncCallback callback);
+ virtual std::future<CommonAPI::CallStatus> ackSinkVolumeTickAsync(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_volume_t& volume, AckSinkVolumeTickAsyncCallback callback);
/**
* Calls peekDomain with synchronous semantics.
@@ -323,7 +309,7 @@ class RoutingInterfaceProxy: virtual public RoutingInterface, virtual public Rou
* will be set.
* Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
*/
- virtual void peekDomain(const std::string& name, CommonAPI::CallStatus& callStatus, am_gen::am_domainID_t& domainID, am_gen::am_Error_e& error);
+ virtual void peekDomain(const std::string& name, CommonAPI::CallStatus& callStatus, am_domainID_t& domainID, am_Error_e& error);
/**
* Calls peekDomain with asynchronous semantics.
*
@@ -346,7 +332,7 @@ class RoutingInterfaceProxy: virtual public RoutingInterface, virtual public Rou
* will be set.
* Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
*/
- virtual void registerDomain(const am_gen::am_Domain_s& domainData, const std::string& returnBusname, const std::string& returnPath, const std::string& returnInterface, CommonAPI::CallStatus& callStatus, am_gen::am_domainID_t& domainID, am_gen::am_Error_e& error);
+ virtual void registerDomain(const am_Domain_s& domainData, const std::string& returnInterface, const std::string& returnPath, const std::string& returnBusname, CommonAPI::CallStatus& callStatus, am_domainID_t& domainID, am_Error_e& error);
/**
* Calls registerDomain with asynchronous semantics.
*
@@ -357,7 +343,7 @@ class RoutingInterfaceProxy: virtual public RoutingInterface, virtual public Rou
* The std::future returned by this method will be fulfilled at arrival of the reply.
* It will provide the same value for CallStatus as will be handed to the callback.
*/
- virtual std::future<CommonAPI::CallStatus> registerDomainAsync(const am_gen::am_Domain_s& domainData, const std::string& returnBusname, const std::string& returnPath, const std::string& returnInterface, RegisterDomainAsyncCallback callback);
+ virtual std::future<CommonAPI::CallStatus> registerDomainAsync(const am_Domain_s& domainData, const std::string& returnInterface, const std::string& returnPath, const std::string& returnBusname, RegisterDomainAsyncCallback callback);
/**
* Calls deregisterDomain with synchronous semantics.
@@ -369,7 +355,7 @@ class RoutingInterfaceProxy: virtual public RoutingInterface, virtual public Rou
* will be set.
* Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
*/
- virtual void deregisterDomain(const am_gen::am_domainID_t& domainID, CommonAPI::CallStatus& callStatus, am_gen::am_Error_e& returnError);
+ virtual void deregisterDomain(const am_domainID_t& domainID, CommonAPI::CallStatus& callStatus, am_Error_e& error);
/**
* Calls deregisterDomain with asynchronous semantics.
*
@@ -380,7 +366,7 @@ class RoutingInterfaceProxy: virtual public RoutingInterface, virtual public Rou
* The std::future returned by this method will be fulfilled at arrival of the reply.
* It will provide the same value for CallStatus as will be handed to the callback.
*/
- virtual std::future<CommonAPI::CallStatus> deregisterDomainAsync(const am_gen::am_domainID_t& domainID, DeregisterDomainAsyncCallback callback);
+ virtual std::future<CommonAPI::CallStatus> deregisterDomainAsync(const am_domainID_t& domainID, DeregisterDomainAsyncCallback callback);
/**
* Calls registerGateway with synchronous semantics.
@@ -392,7 +378,7 @@ class RoutingInterfaceProxy: virtual public RoutingInterface, virtual public Rou
* will be set.
* Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
*/
- virtual void registerGateway(const am_gen::am_Gateway_s& gatewayData, CommonAPI::CallStatus& callStatus, am_gen::am_gatewayID_t& gatewayID, am_gen::am_Error_e& error);
+ virtual void registerGateway(const am_Gateway_s& gatewayData, CommonAPI::CallStatus& callStatus, am_gatewayID_t& gatewayID, am_Error_e& error);
/**
* Calls registerGateway with asynchronous semantics.
*
@@ -403,7 +389,7 @@ class RoutingInterfaceProxy: virtual public RoutingInterface, virtual public Rou
* The std::future returned by this method will be fulfilled at arrival of the reply.
* It will provide the same value for CallStatus as will be handed to the callback.
*/
- virtual std::future<CommonAPI::CallStatus> registerGatewayAsync(const am_gen::am_Gateway_s& gatewayData, RegisterGatewayAsyncCallback callback);
+ virtual std::future<CommonAPI::CallStatus> registerGatewayAsync(const am_Gateway_s& gatewayData, RegisterGatewayAsyncCallback callback);
/**
* Calls deregisterGateway with synchronous semantics.
@@ -415,7 +401,7 @@ class RoutingInterfaceProxy: virtual public RoutingInterface, virtual public Rou
* will be set.
* Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
*/
- virtual void deregisterGateway(const am_gen::am_gatewayID_t& gatewayID, CommonAPI::CallStatus& callStatus, am_gen::am_Error_e& returnError);
+ virtual void deregisterGateway(const am_gatewayID_t& gatewayID, CommonAPI::CallStatus& callStatus, am_Error_e& error);
/**
* Calls deregisterGateway with asynchronous semantics.
*
@@ -426,7 +412,7 @@ class RoutingInterfaceProxy: virtual public RoutingInterface, virtual public Rou
* The std::future returned by this method will be fulfilled at arrival of the reply.
* It will provide the same value for CallStatus as will be handed to the callback.
*/
- virtual std::future<CommonAPI::CallStatus> deregisterGatewayAsync(const am_gen::am_gatewayID_t& gatewayID, DeregisterGatewayAsyncCallback callback);
+ virtual std::future<CommonAPI::CallStatus> deregisterGatewayAsync(const am_gatewayID_t& gatewayID, DeregisterGatewayAsyncCallback callback);
/**
* Calls peekSink with synchronous semantics.
@@ -438,7 +424,7 @@ class RoutingInterfaceProxy: virtual public RoutingInterface, virtual public Rou
* will be set.
* Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
*/
- virtual void peekSink(const std::string& name, CommonAPI::CallStatus& callStatus, am_gen::am_sinkID_t& sinkID, am_gen::am_Error_e& error);
+ virtual void peekSink(const std::string& name, CommonAPI::CallStatus& callStatus, am_sinkID_t& sinkID, am_Error_e& error);
/**
* Calls peekSink with asynchronous semantics.
*
@@ -461,7 +447,7 @@ class RoutingInterfaceProxy: virtual public RoutingInterface, virtual public Rou
* will be set.
* Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
*/
- virtual void registerSink(const am_gen::sinkData_s& sinkData, CommonAPI::CallStatus& callStatus, am_gen::am_sinkID_t& sinkID, am_gen::am_Error_e& error);
+ virtual void registerSink(const am_Sink_s& sinkData, CommonAPI::CallStatus& callStatus, am_sinkID_t& sinkID, am_Error_e& error);
/**
* Calls registerSink with asynchronous semantics.
*
@@ -472,7 +458,7 @@ class RoutingInterfaceProxy: virtual public RoutingInterface, virtual public Rou
* The std::future returned by this method will be fulfilled at arrival of the reply.
* It will provide the same value for CallStatus as will be handed to the callback.
*/
- virtual std::future<CommonAPI::CallStatus> registerSinkAsync(const am_gen::sinkData_s& sinkData, RegisterSinkAsyncCallback callback);
+ virtual std::future<CommonAPI::CallStatus> registerSinkAsync(const am_Sink_s& sinkData, RegisterSinkAsyncCallback callback);
/**
* Calls deregisterSink with synchronous semantics.
@@ -484,7 +470,7 @@ class RoutingInterfaceProxy: virtual public RoutingInterface, virtual public Rou
* will be set.
* Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
*/
- virtual void deregisterSink(const am_gen::am_sinkID_t& sinkID, CommonAPI::CallStatus& callStatus, am_gen::am_Error_e& returnError);
+ virtual void deregisterSink(const am_sinkID_t& sinkID, CommonAPI::CallStatus& callStatus, am_Error_e& error);
/**
* Calls deregisterSink with asynchronous semantics.
*
@@ -495,7 +481,7 @@ class RoutingInterfaceProxy: virtual public RoutingInterface, virtual public Rou
* The std::future returned by this method will be fulfilled at arrival of the reply.
* It will provide the same value for CallStatus as will be handed to the callback.
*/
- virtual std::future<CommonAPI::CallStatus> deregisterSinkAsync(const am_gen::am_sinkID_t& sinkID, DeregisterSinkAsyncCallback callback);
+ virtual std::future<CommonAPI::CallStatus> deregisterSinkAsync(const am_sinkID_t& sinkID, DeregisterSinkAsyncCallback callback);
/**
* Calls peekSource with synchronous semantics.
@@ -507,7 +493,7 @@ class RoutingInterfaceProxy: virtual public RoutingInterface, virtual public Rou
* will be set.
* Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
*/
- virtual void peekSource(const std::string& name, CommonAPI::CallStatus& callStatus, am_gen::am_sourceID_t& sourceID, am_gen::am_Error_e& error);
+ virtual void peekSource(const std::string& name, CommonAPI::CallStatus& callStatus, am_sourceID_t& sourceID, am_Error_e& error);
/**
* Calls peekSource with asynchronous semantics.
*
@@ -530,7 +516,7 @@ class RoutingInterfaceProxy: virtual public RoutingInterface, virtual public Rou
* will be set.
* Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
*/
- virtual void registerSource(const am_gen::sourceData_s& sourceData, CommonAPI::CallStatus& callStatus, am_gen::am_sourceID_t& sourceID, am_gen::am_Error_e& error);
+ virtual void registerSource(const am_Source_s& sourceData, CommonAPI::CallStatus& callStatus, am_sourceID_t& sourceID, am_Error_e& error);
/**
* Calls registerSource with asynchronous semantics.
*
@@ -541,7 +527,7 @@ class RoutingInterfaceProxy: virtual public RoutingInterface, virtual public Rou
* The std::future returned by this method will be fulfilled at arrival of the reply.
* It will provide the same value for CallStatus as will be handed to the callback.
*/
- virtual std::future<CommonAPI::CallStatus> registerSourceAsync(const am_gen::sourceData_s& sourceData, RegisterSourceAsyncCallback callback);
+ virtual std::future<CommonAPI::CallStatus> registerSourceAsync(const am_Source_s& sourceData, RegisterSourceAsyncCallback callback);
/**
* Calls deregisterSource with synchronous semantics.
@@ -553,7 +539,7 @@ class RoutingInterfaceProxy: virtual public RoutingInterface, virtual public Rou
* will be set.
* Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
*/
- virtual void deregisterSource(const am_gen::am_sourceID_t& sourceID, CommonAPI::CallStatus& callStatus, am_gen::am_Error_e& returnError);
+ virtual void deregisterSource(const am_sourceID_t& sourceID, CommonAPI::CallStatus& callStatus, am_Error_e& error);
/**
* Calls deregisterSource with asynchronous semantics.
*
@@ -564,7 +550,7 @@ class RoutingInterfaceProxy: virtual public RoutingInterface, virtual public Rou
* The std::future returned by this method will be fulfilled at arrival of the reply.
* It will provide the same value for CallStatus as will be handed to the callback.
*/
- virtual std::future<CommonAPI::CallStatus> deregisterSourceAsync(const am_gen::am_sourceID_t& sourceID, DeregisterSourceAsyncCallback callback);
+ virtual std::future<CommonAPI::CallStatus> deregisterSourceAsync(const am_sourceID_t& sourceID, DeregisterSourceAsyncCallback callback);
/**
* Calls registerCrossfader with synchronous semantics.
@@ -576,7 +562,7 @@ class RoutingInterfaceProxy: virtual public RoutingInterface, virtual public Rou
* will be set.
* Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
*/
- virtual void registerCrossfader(const am_gen::crossfaderData_s& crossfaderData, CommonAPI::CallStatus& callStatus, am_gen::am_crossfaderID_t& crossfaderID, am_gen::am_Error_e& error);
+ virtual void registerCrossfader(const am_Crossfader_s& crossfaderData, CommonAPI::CallStatus& callStatus, am_crossfaderID_t& crossfaderID, am_Error_e& error);
/**
* Calls registerCrossfader with asynchronous semantics.
*
@@ -587,7 +573,7 @@ class RoutingInterfaceProxy: virtual public RoutingInterface, virtual public Rou
* The std::future returned by this method will be fulfilled at arrival of the reply.
* It will provide the same value for CallStatus as will be handed to the callback.
*/
- virtual std::future<CommonAPI::CallStatus> registerCrossfaderAsync(const am_gen::crossfaderData_s& crossfaderData, RegisterCrossfaderAsyncCallback callback);
+ virtual std::future<CommonAPI::CallStatus> registerCrossfaderAsync(const am_Crossfader_s& crossfaderData, RegisterCrossfaderAsyncCallback callback);
/**
* Calls deregisterCrossfader with synchronous semantics.
@@ -599,7 +585,7 @@ class RoutingInterfaceProxy: virtual public RoutingInterface, virtual public Rou
* will be set.
* Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
*/
- virtual void deregisterCrossfader(const am_gen::am_crossfaderID_t& crossfaderID, CommonAPI::CallStatus& callStatus, am_gen::am_Error_e& returnError);
+ virtual void deregisterCrossfader(const am_crossfaderID_t& crossfaderID, CommonAPI::CallStatus& callStatus, am_Error_e& error);
/**
* Calls deregisterCrossfader with asynchronous semantics.
*
@@ -610,7 +596,7 @@ class RoutingInterfaceProxy: virtual public RoutingInterface, virtual public Rou
* The std::future returned by this method will be fulfilled at arrival of the reply.
* It will provide the same value for CallStatus as will be handed to the callback.
*/
- virtual std::future<CommonAPI::CallStatus> deregisterCrossfaderAsync(const am_gen::am_crossfaderID_t& crossfaderID, DeregisterCrossfaderAsyncCallback callback);
+ virtual std::future<CommonAPI::CallStatus> deregisterCrossfaderAsync(const am_crossfaderID_t& crossfaderID, DeregisterCrossfaderAsyncCallback callback);
/**
* Calls peekSourceClassID with synchronous semantics.
@@ -622,7 +608,7 @@ class RoutingInterfaceProxy: virtual public RoutingInterface, virtual public Rou
* will be set.
* Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
*/
- virtual void peekSourceClassID(const std::string& name, CommonAPI::CallStatus& callStatus, am_gen::am_sourceClass_t& sourceClassID, am_gen::am_Error_e& error);
+ virtual void peekSourceClassID(const std::string& name, CommonAPI::CallStatus& callStatus, am_sourceClass_t& sourceClassID, am_Error_e& error);
/**
* Calls peekSourceClassID with asynchronous semantics.
*
@@ -645,7 +631,7 @@ class RoutingInterfaceProxy: virtual public RoutingInterface, virtual public Rou
* will be set.
* Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
*/
- virtual void peekSinkClassID(const std::string& name, CommonAPI::CallStatus& callStatus, am_gen::am_sinkClass_t& sinkClassID, am_gen::am_Error_e& error);
+ virtual void peekSinkClassID(const std::string& name, CommonAPI::CallStatus& callStatus, am_sinkClass_t& sinkClassID, am_Error_e& error);
/**
* Calls peekSinkClassID with asynchronous semantics.
*
@@ -667,7 +653,7 @@ class RoutingInterfaceProxy: virtual public RoutingInterface, virtual public Rou
* will be set.
* Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
*/
- virtual void hookInterruptStatusChange(const am_gen::am_sourceID_t& sourceID, const uint16_t& interruptState, CommonAPI::CallStatus& callStatus);
+ virtual void hookInterruptStatusChange(const am_sourceID_t& sourceID, const am_InterruptState_e& interruptState, CommonAPI::CallStatus& callStatus);
/**
* Calls hookInterruptStatusChange with asynchronous semantics.
*
@@ -678,7 +664,7 @@ class RoutingInterfaceProxy: virtual public RoutingInterface, virtual public Rou
* The std::future returned by this method will be fulfilled at arrival of the reply.
* It will provide the same value for CallStatus as will be handed to the callback.
*/
- virtual std::future<CommonAPI::CallStatus> hookInterruptStatusChangeAsync(const am_gen::am_sourceID_t& sourceID, const uint16_t& interruptState, HookInterruptStatusChangeAsyncCallback callback);
+ virtual std::future<CommonAPI::CallStatus> hookInterruptStatusChangeAsync(const am_sourceID_t& sourceID, const am_InterruptState_e& interruptState, HookInterruptStatusChangeAsyncCallback callback);
/**
* Calls hookDomainRegistrationComplete with synchronous semantics.
@@ -689,7 +675,7 @@ class RoutingInterfaceProxy: virtual public RoutingInterface, virtual public Rou
* will be set.
* Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
*/
- virtual void hookDomainRegistrationComplete(const am_gen::am_domainID_t& domainID, CommonAPI::CallStatus& callStatus);
+ virtual void hookDomainRegistrationComplete(const am_domainID_t& domainID, CommonAPI::CallStatus& callStatus);
/**
* Calls hookDomainRegistrationComplete with asynchronous semantics.
*
@@ -700,7 +686,7 @@ class RoutingInterfaceProxy: virtual public RoutingInterface, virtual public Rou
* The std::future returned by this method will be fulfilled at arrival of the reply.
* It will provide the same value for CallStatus as will be handed to the callback.
*/
- virtual std::future<CommonAPI::CallStatus> hookDomainRegistrationCompleteAsync(const am_gen::am_domainID_t& domainID, HookDomainRegistrationCompleteAsyncCallback callback);
+ virtual std::future<CommonAPI::CallStatus> hookDomainRegistrationCompleteAsync(const am_domainID_t& domainID, HookDomainRegistrationCompleteAsyncCallback callback);
/**
* Calls hookSinkAvailablityStatusChange with synchronous semantics.
@@ -711,7 +697,7 @@ class RoutingInterfaceProxy: virtual public RoutingInterface, virtual public Rou
* will be set.
* Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
*/
- virtual void hookSinkAvailablityStatusChange(const am_gen::am_sinkID_t& sinkID, const am_gen::am_Availability_s& availability, CommonAPI::CallStatus& callStatus);
+ virtual void hookSinkAvailablityStatusChange(const am_sinkID_t& sinkID, const am_Availability_s& availability, CommonAPI::CallStatus& callStatus);
/**
* Calls hookSinkAvailablityStatusChange with asynchronous semantics.
*
@@ -722,7 +708,7 @@ class RoutingInterfaceProxy: virtual public RoutingInterface, virtual public Rou
* The std::future returned by this method will be fulfilled at arrival of the reply.
* It will provide the same value for CallStatus as will be handed to the callback.
*/
- virtual std::future<CommonAPI::CallStatus> hookSinkAvailablityStatusChangeAsync(const am_gen::am_sinkID_t& sinkID, const am_gen::am_Availability_s& availability, HookSinkAvailablityStatusChangeAsyncCallback callback);
+ virtual std::future<CommonAPI::CallStatus> hookSinkAvailablityStatusChangeAsync(const am_sinkID_t& sinkID, const am_Availability_s& availability, HookSinkAvailablityStatusChangeAsyncCallback callback);
/**
* Calls hookSourceAvailablityStatusChange with synchronous semantics.
@@ -733,7 +719,7 @@ class RoutingInterfaceProxy: virtual public RoutingInterface, virtual public Rou
* will be set.
* Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
*/
- virtual void hookSourceAvailablityStatusChange(const am_gen::am_sourceID_t& sourceID, const am_gen::am_Availability_s& availability, CommonAPI::CallStatus& callStatus);
+ virtual void hookSourceAvailablityStatusChange(const am_sourceID_t& sourceID, const am_Availability_s& availability, CommonAPI::CallStatus& callStatus);
/**
* Calls hookSourceAvailablityStatusChange with asynchronous semantics.
*
@@ -744,7 +730,7 @@ class RoutingInterfaceProxy: virtual public RoutingInterface, virtual public Rou
* The std::future returned by this method will be fulfilled at arrival of the reply.
* It will provide the same value for CallStatus as will be handed to the callback.
*/
- virtual std::future<CommonAPI::CallStatus> hookSourceAvailablityStatusChangeAsync(const am_gen::am_sourceID_t& sourceID, const am_gen::am_Availability_s& availability, HookSourceAvailablityStatusChangeAsyncCallback callback);
+ virtual std::future<CommonAPI::CallStatus> hookSourceAvailablityStatusChangeAsync(const am_sourceID_t& sourceID, const am_Availability_s& availability, HookSourceAvailablityStatusChangeAsyncCallback callback);
/**
* Calls hookDomainStateChange with synchronous semantics.
@@ -755,7 +741,7 @@ class RoutingInterfaceProxy: virtual public RoutingInterface, virtual public Rou
* will be set.
* Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
*/
- virtual void hookDomainStateChange(const am_gen::am_domainID_t& domainID, const am_gen::am_DomainState_e& domainState, CommonAPI::CallStatus& callStatus);
+ virtual void hookDomainStateChange(const am_domainID_t& domainID, const am_DomainState_e& domainState, CommonAPI::CallStatus& callStatus);
/**
* Calls hookDomainStateChange with asynchronous semantics.
*
@@ -766,7 +752,7 @@ class RoutingInterfaceProxy: virtual public RoutingInterface, virtual public Rou
* The std::future returned by this method will be fulfilled at arrival of the reply.
* It will provide the same value for CallStatus as will be handed to the callback.
*/
- virtual std::future<CommonAPI::CallStatus> hookDomainStateChangeAsync(const am_gen::am_domainID_t& domainID, const am_gen::am_DomainState_e& domainState, HookDomainStateChangeAsyncCallback callback);
+ virtual std::future<CommonAPI::CallStatus> hookDomainStateChangeAsync(const am_domainID_t& domainID, const am_DomainState_e& domainState, HookDomainStateChangeAsyncCallback callback);
/**
* Calls hookTimingInformationChanged with synchronous semantics.
@@ -777,7 +763,7 @@ class RoutingInterfaceProxy: virtual public RoutingInterface, virtual public Rou
* will be set.
* Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
*/
- virtual void hookTimingInformationChanged(const am_gen::am_connectionID_t& connectionID, const int16_t& delay, CommonAPI::CallStatus& callStatus);
+ virtual void hookTimingInformationChanged(const am_connectionID_t& connectionID, const am_timeSync_t& delay, CommonAPI::CallStatus& callStatus);
/**
* Calls hookTimingInformationChanged with asynchronous semantics.
*
@@ -788,7 +774,7 @@ class RoutingInterfaceProxy: virtual public RoutingInterface, virtual public Rou
* The std::future returned by this method will be fulfilled at arrival of the reply.
* It will provide the same value for CallStatus as will be handed to the callback.
*/
- virtual std::future<CommonAPI::CallStatus> hookTimingInformationChangedAsync(const am_gen::am_connectionID_t& connectionID, const int16_t& delay, HookTimingInformationChangedAsyncCallback callback);
+ virtual std::future<CommonAPI::CallStatus> hookTimingInformationChangedAsync(const am_connectionID_t& connectionID, const am_timeSync_t& delay, HookTimingInformationChangedAsyncCallback callback);
/**
* Calls sendChangedData with synchronous semantics.
@@ -799,7 +785,7 @@ class RoutingInterfaceProxy: virtual public RoutingInterface, virtual public Rou
* will be set.
* Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
*/
- virtual void sendChangedData(const am_gen::am_EarlyData_l& earlyData_volumes, const am_gen::am_EarlyData_l& earlyData_soundproperties, CommonAPI::CallStatus& callStatus);
+ virtual void sendChangedData(const am_EarlyData_L& earlyData, CommonAPI::CallStatus& callStatus);
/**
* Calls sendChangedData with asynchronous semantics.
*
@@ -810,62 +796,19 @@ class RoutingInterfaceProxy: virtual public RoutingInterface, virtual public Rou
* The std::future returned by this method will be fulfilled at arrival of the reply.
* It will provide the same value for CallStatus as will be handed to the callback.
*/
- virtual std::future<CommonAPI::CallStatus> sendChangedDataAsync(const am_gen::am_EarlyData_l& earlyData_volumes, const am_gen::am_EarlyData_l& earlyData_soundproperties, SendChangedDataAsyncCallback callback);
-
- /**
- * Calls confirmRoutingReady with synchronous semantics.
- *
- * All const parameters are input parameters to this method.
- * The CallStatus will be filled when the method returns and indicate either
- * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus
- * will be set.
- * Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
- */
- virtual void confirmRoutingReady(const am_gen::am_domainID_t& domainID, CommonAPI::CallStatus& callStatus);
- /**
- * Calls confirmRoutingReady with asynchronous semantics.
- *
- * The provided callback will be called when the reply to this call arrives or
- * an error occurs during the call. The CallStatus will indicate either "SUCCESS"
- * or which type of error has occurred. In case of any error, ONLY the CallStatus
- * will have a defined value.
- * The std::future returned by this method will be fulfilled at arrival of the reply.
- * It will provide the same value for CallStatus as will be handed to the callback.
- */
- virtual std::future<CommonAPI::CallStatus> confirmRoutingReadyAsync(const am_gen::am_domainID_t& domainID, ConfirmRoutingReadyAsyncCallback callback);
-
- /**
- * Calls confirmRoutingRundown with synchronous semantics.
- *
- * All const parameters are input parameters to this method.
- * The CallStatus will be filled when the method returns and indicate either
- * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus
- * will be set.
- * Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
- */
- virtual void confirmRoutingRundown(const am_gen::am_domainID_t& domainID, CommonAPI::CallStatus& callStatus);
- /**
- * Calls confirmRoutingRundown with asynchronous semantics.
- *
- * The provided callback will be called when the reply to this call arrives or
- * an error occurs during the call. The CallStatus will indicate either "SUCCESS"
- * or which type of error has occurred. In case of any error, ONLY the CallStatus
- * will have a defined value.
- * The std::future returned by this method will be fulfilled at arrival of the reply.
- * It will provide the same value for CallStatus as will be handed to the callback.
- */
- virtual std::future<CommonAPI::CallStatus> confirmRoutingRundownAsync(const am_gen::am_domainID_t& domainID, ConfirmRoutingRundownAsyncCallback callback);
+ virtual std::future<CommonAPI::CallStatus> sendChangedDataAsync(const am_EarlyData_L& earlyData, SendChangedDataAsyncCallback callback);
/**
* Calls updateGateway with synchronous semantics.
*
* All const parameters are input parameters to this method.
+ * All non-const parameters will be filled with the returned values.
* The CallStatus will be filled when the method returns and indicate either
* "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus
* will be set.
* Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
*/
- virtual void updateGateway(const am_gen::am_gatewayID_t& gatewayID, const am_gen::am_ConnectionFormat_L& listSourceFormats, const am_gen::am_ConnectionFormat_L& listSinkFormats, const am_gen::bool_L& convertionMatrix, CommonAPI::CallStatus& callStatus);
+ virtual void updateGateway(const am_gatewayID_t& gatewayID, const am_ConnectionFormat_L& listSourceFormats, const am_ConnectionFormat_L& listSinkFormats, const am_Convertion_L& convertionMatrix, CommonAPI::CallStatus& callStatus, am_Error_e& error);
/**
* Calls updateGateway with asynchronous semantics.
*
@@ -876,18 +819,19 @@ class RoutingInterfaceProxy: virtual public RoutingInterface, virtual public Rou
* The std::future returned by this method will be fulfilled at arrival of the reply.
* It will provide the same value for CallStatus as will be handed to the callback.
*/
- virtual std::future<CommonAPI::CallStatus> updateGatewayAsync(const am_gen::am_gatewayID_t& gatewayID, const am_gen::am_ConnectionFormat_L& listSourceFormats, const am_gen::am_ConnectionFormat_L& listSinkFormats, const am_gen::bool_L& convertionMatrix, UpdateGatewayAsyncCallback callback);
+ virtual std::future<CommonAPI::CallStatus> updateGatewayAsync(const am_gatewayID_t& gatewayID, const am_ConnectionFormat_L& listSourceFormats, const am_ConnectionFormat_L& listSinkFormats, const am_Convertion_L& convertionMatrix, UpdateGatewayAsyncCallback callback);
/**
* Calls updateSink with synchronous semantics.
*
* All const parameters are input parameters to this method.
+ * All non-const parameters will be filled with the returned values.
* The CallStatus will be filled when the method returns and indicate either
* "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus
* will be set.
* Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
*/
- virtual void updateSink(const am_gen::am_sinkID_t& sinkID, const am_gen::am_sinkClass_t& sinkClassID, const am_gen::am_SoundProperty_L& listSoundProperties, const am_gen::am_ConnectionFormat_L& listConnectionFormats, const am_gen::am_MainSoundProperty_L& listMainSoundProperties, CommonAPI::CallStatus& callStatus);
+ virtual void updateSink(const am_sinkID_t& sinkID, const am_sinkClass_t& sinkClassID, const am_SoundProperty_L& listSoundProperties, const am_ConnectionFormat_L& listConnectionFormats, const am_MainSoundProperty_L& listMainSoundProperties, CommonAPI::CallStatus& callStatus, am_Error_e& error);
/**
* Calls updateSink with asynchronous semantics.
*
@@ -898,18 +842,19 @@ class RoutingInterfaceProxy: virtual public RoutingInterface, virtual public Rou
* The std::future returned by this method will be fulfilled at arrival of the reply.
* It will provide the same value for CallStatus as will be handed to the callback.
*/
- virtual std::future<CommonAPI::CallStatus> updateSinkAsync(const am_gen::am_sinkID_t& sinkID, const am_gen::am_sinkClass_t& sinkClassID, const am_gen::am_SoundProperty_L& listSoundProperties, const am_gen::am_ConnectionFormat_L& listConnectionFormats, const am_gen::am_MainSoundProperty_L& listMainSoundProperties, UpdateSinkAsyncCallback callback);
+ virtual std::future<CommonAPI::CallStatus> updateSinkAsync(const am_sinkID_t& sinkID, const am_sinkClass_t& sinkClassID, const am_SoundProperty_L& listSoundProperties, const am_ConnectionFormat_L& listConnectionFormats, const am_MainSoundProperty_L& listMainSoundProperties, UpdateSinkAsyncCallback callback);
/**
* Calls updateSource with synchronous semantics.
*
* All const parameters are input parameters to this method.
+ * All non-const parameters will be filled with the returned values.
* The CallStatus will be filled when the method returns and indicate either
* "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus
* will be set.
* Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
*/
- virtual void updateSource(const am_gen::am_sourceID_t& sourceID, const am_gen::am_sourceClass_t& sourceClassID, const am_gen::am_SoundProperty_L& listSoundProperties, const am_gen::am_ConnectionFormat_L& listConnectionFormats, const am_gen::am_MainSoundProperty_L& listMainSoundProperties, CommonAPI::CallStatus& callStatus);
+ virtual void updateSource(const am_sourceID_t& sourceID, const am_sourceClass_t& sourceClassID, const am_SoundProperty_L& listSoundProperties, const am_ConnectionFormat_L& listConnectionFormats, const am_MainSoundProperty_L& listMainSoundProperties, CommonAPI::CallStatus& callStatus, am_Error_e& error);
/**
* Calls updateSource with asynchronous semantics.
*
@@ -920,7 +865,7 @@ class RoutingInterfaceProxy: virtual public RoutingInterface, virtual public Rou
* The std::future returned by this method will be fulfilled at arrival of the reply.
* It will provide the same value for CallStatus as will be handed to the callback.
*/
- virtual std::future<CommonAPI::CallStatus> updateSourceAsync(const am_gen::am_sourceID_t& sourceID, const am_gen::am_sourceClass_t& sourceClassID, const am_gen::am_SoundProperty_L& listSoundProperties, const am_gen::am_ConnectionFormat_L& listConnectionFormats, const am_gen::am_MainSoundProperty_L& listMainSoundProperties, UpdateSourceAsyncCallback callback);
+ virtual std::future<CommonAPI::CallStatus> updateSourceAsync(const am_sourceID_t& sourceID, const am_sourceClass_t& sourceClassID, const am_SoundProperty_L& listSoundProperties, const am_ConnectionFormat_L& listConnectionFormats, const am_MainSoundProperty_L& listMainSoundProperties, UpdateSourceAsyncCallback callback);
/**
* Calls ackSetVolumes with synchronous semantics.
@@ -931,7 +876,7 @@ class RoutingInterfaceProxy: virtual public RoutingInterface, virtual public Rou
* will be set.
* Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
*/
- virtual void ackSetVolumes(const uint16_t& handle, const am_gen::am_Volumes_l& listVolumes, const uint16_t& error, CommonAPI::CallStatus& callStatus);
+ virtual void ackSetVolumes(const am_Handle_s& handle, const am_Volumes_L& listvolumes, const am_Error_e& error, CommonAPI::CallStatus& callStatus);
/**
* Calls ackSetVolumes with asynchronous semantics.
*
@@ -942,7 +887,7 @@ class RoutingInterfaceProxy: virtual public RoutingInterface, virtual public Rou
* The std::future returned by this method will be fulfilled at arrival of the reply.
* It will provide the same value for CallStatus as will be handed to the callback.
*/
- virtual std::future<CommonAPI::CallStatus> ackSetVolumesAsync(const uint16_t& handle, const am_gen::am_Volumes_l& listVolumes, const uint16_t& error, AckSetVolumesAsyncCallback callback);
+ virtual std::future<CommonAPI::CallStatus> ackSetVolumesAsync(const am_Handle_s& handle, const am_Volumes_L& listvolumes, const am_Error_e& error, AckSetVolumesAsyncCallback callback);
/**
* Calls ackSinkNotificationConfiguration with synchronous semantics.
@@ -953,7 +898,7 @@ class RoutingInterfaceProxy: virtual public RoutingInterface, virtual public Rou
* will be set.
* Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
*/
- virtual void ackSinkNotificationConfiguration(const uint16_t& handle, const uint16_t& error, CommonAPI::CallStatus& callStatus);
+ virtual void ackSinkNotificationConfiguration(const am_Handle_s& handle, const am_Error_e& error, CommonAPI::CallStatus& callStatus);
/**
* Calls ackSinkNotificationConfiguration with asynchronous semantics.
*
@@ -964,7 +909,7 @@ class RoutingInterfaceProxy: virtual public RoutingInterface, virtual public Rou
* The std::future returned by this method will be fulfilled at arrival of the reply.
* It will provide the same value for CallStatus as will be handed to the callback.
*/
- virtual std::future<CommonAPI::CallStatus> ackSinkNotificationConfigurationAsync(const uint16_t& handle, const uint16_t& error, AckSinkNotificationConfigurationAsyncCallback callback);
+ virtual std::future<CommonAPI::CallStatus> ackSinkNotificationConfigurationAsync(const am_Handle_s& handle, const am_Error_e& error, AckSinkNotificationConfigurationAsyncCallback callback);
/**
* Calls ackSourceNotificationConfiguration with synchronous semantics.
@@ -975,7 +920,7 @@ class RoutingInterfaceProxy: virtual public RoutingInterface, virtual public Rou
* will be set.
* Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
*/
- virtual void ackSourceNotificationConfiguration(const uint16_t& handle, const uint16_t& error, CommonAPI::CallStatus& callStatus);
+ virtual void ackSourceNotificationConfiguration(const am_Handle_s& handle, const am_Error_e& error, CommonAPI::CallStatus& callStatus);
/**
* Calls ackSourceNotificationConfiguration with asynchronous semantics.
*
@@ -986,7 +931,7 @@ class RoutingInterfaceProxy: virtual public RoutingInterface, virtual public Rou
* The std::future returned by this method will be fulfilled at arrival of the reply.
* It will provide the same value for CallStatus as will be handed to the callback.
*/
- virtual std::future<CommonAPI::CallStatus> ackSourceNotificationConfigurationAsync(const uint16_t& handle, const uint16_t& error, AckSourceNotificationConfigurationAsyncCallback callback);
+ virtual std::future<CommonAPI::CallStatus> ackSourceNotificationConfigurationAsync(const am_Handle_s& handle, const am_Error_e& error, AckSourceNotificationConfigurationAsyncCallback callback);
/**
* Calls hookSinkNotificationDataChange with synchronous semantics.
@@ -997,7 +942,7 @@ class RoutingInterfaceProxy: virtual public RoutingInterface, virtual public Rou
* will be set.
* Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
*/
- virtual void hookSinkNotificationDataChange(const am_gen::am_sinkID_t& sinkID, const am_gen::notificationPayload_s& payload, CommonAPI::CallStatus& callStatus);
+ virtual void hookSinkNotificationDataChange(const am_sinkID_t& sinkID, const am_NotificationPayload_s& payload, CommonAPI::CallStatus& callStatus);
/**
* Calls hookSinkNotificationDataChange with asynchronous semantics.
*
@@ -1008,7 +953,7 @@ class RoutingInterfaceProxy: virtual public RoutingInterface, virtual public Rou
* The std::future returned by this method will be fulfilled at arrival of the reply.
* It will provide the same value for CallStatus as will be handed to the callback.
*/
- virtual std::future<CommonAPI::CallStatus> hookSinkNotificationDataChangeAsync(const am_gen::am_sinkID_t& sinkID, const am_gen::notificationPayload_s& payload, HookSinkNotificationDataChangeAsyncCallback callback);
+ virtual std::future<CommonAPI::CallStatus> hookSinkNotificationDataChangeAsync(const am_sinkID_t& sinkID, const am_NotificationPayload_s& payload, HookSinkNotificationDataChangeAsyncCallback callback);
/**
* Calls hookSourceNotificationDataChange with synchronous semantics.
@@ -1019,7 +964,7 @@ class RoutingInterfaceProxy: virtual public RoutingInterface, virtual public Rou
* will be set.
* Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
*/
- virtual void hookSourceNotificationDataChange(const am_gen::am_sourceID_t& sourceID, const am_gen::notificationPayload_s& payload, CommonAPI::CallStatus& callStatus);
+ virtual void hookSourceNotificationDataChange(const am_sourceID_t& sourceID, const am_NotificationPayload_s& payload, CommonAPI::CallStatus& callStatus);
/**
* Calls hookSourceNotificationDataChange with asynchronous semantics.
*
@@ -1030,20 +975,20 @@ class RoutingInterfaceProxy: virtual public RoutingInterface, virtual public Rou
* The std::future returned by this method will be fulfilled at arrival of the reply.
* It will provide the same value for CallStatus as will be handed to the callback.
*/
- virtual std::future<CommonAPI::CallStatus> hookSourceNotificationDataChangeAsync(const am_gen::am_sourceID_t& sourceID, const am_gen::notificationPayload_s& payload, HookSourceNotificationDataChangeAsyncCallback callback);
+ virtual std::future<CommonAPI::CallStatus> hookSourceNotificationDataChangeAsync(const am_sourceID_t& sourceID, const am_NotificationPayload_s& payload, HookSourceNotificationDataChangeAsyncCallback callback);
/**
- * Calls getRoutingReadyState with synchronous semantics.
+ * Calls confirmRoutingRundown with synchronous semantics.
*
- * All non-const parameters will be filled with the returned values.
+ * All const parameters are input parameters to this method.
* The CallStatus will be filled when the method returns and indicate either
* "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus
* will be set.
* Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
*/
- virtual void getRoutingReadyState(CommonAPI::CallStatus& callStatus, bool& readyState);
+ virtual void confirmRoutingRundown(const std::string& domainName, CommonAPI::CallStatus& callStatus);
/**
- * Calls getRoutingReadyState with asynchronous semantics.
+ * Calls confirmRoutingRundown with asynchronous semantics.
*
* The provided callback will be called when the reply to this call arrives or
* an error occurs during the call. The CallStatus will indicate either "SUCCESS"
@@ -1052,7 +997,7 @@ class RoutingInterfaceProxy: virtual public RoutingInterface, virtual public Rou
* The std::future returned by this method will be fulfilled at arrival of the reply.
* It will provide the same value for CallStatus as will be handed to the callback.
*/
- virtual std::future<CommonAPI::CallStatus> getRoutingReadyStateAsync(GetRoutingReadyStateAsyncCallback callback);
+ virtual std::future<CommonAPI::CallStatus> confirmRoutingRundownAsync(const std::string& domainName, ConfirmRoutingRundownAsyncCallback callback);
/// Returns the CommonAPI address of the remote partner this proxy communicates with.
virtual std::string getAddress() const;
@@ -1082,513 +1027,523 @@ class RoutingInterfaceProxy: virtual public RoutingInterface, virtual public Rou
virtual CommonAPI::InterfaceVersionAttribute& getInterfaceVersionAttribute();
private:
- std::shared_ptr<RoutingInterfaceProxyBase> delegate_;
+ std::shared_ptr<RoutingControlObserverProxyBase> delegate_;
};
+namespace RoutingControlObserverExtensions {
+ template <template <typename > class _ExtensionType>
+ class RoutingReadyAttributeExtension {
+ public:
+ typedef _ExtensionType<RoutingControlObserverProxyBase::RoutingReadyAttribute> extension_type;
+
+ static_assert(std::is_base_of<typename CommonAPI::AttributeExtension<RoutingControlObserverProxyBase::RoutingReadyAttribute>, extension_type>::value,
+ "Not CommonAPI Attribute Extension!");
+
+ RoutingReadyAttributeExtension(RoutingControlObserverProxyBase& proxy): attributeExtension_(proxy.getRoutingReadyAttribute()) {
+ }
+
+ inline extension_type& getRoutingReadyAttributeExtension() {
+ return attributeExtension_;
+ }
+
+ private:
+ extension_type attributeExtension_;
+ };
+
+} // namespace RoutingControlObserverExtensions
//
-// RoutingInterfaceProxy Implementation
+// RoutingControlObserverProxy Implementation
//
template <typename ... _AttributeExtensions>
-RoutingInterfaceProxy<_AttributeExtensions...>::RoutingInterfaceProxy(std::shared_ptr<CommonAPI::Proxy> delegate):
- delegate_(std::dynamic_pointer_cast<RoutingInterfaceProxyBase>(delegate)),
- _AttributeExtensions(*(std::dynamic_pointer_cast<RoutingInterfaceProxyBase>(delegate)))... {
+RoutingControlObserverProxy<_AttributeExtensions...>::RoutingControlObserverProxy(std::shared_ptr<CommonAPI::Proxy> delegate):
+ delegate_(std::dynamic_pointer_cast<RoutingControlObserverProxyBase>(delegate)),
+ _AttributeExtensions(*(std::dynamic_pointer_cast<RoutingControlObserverProxyBase>(delegate)))... {
}
template <typename ... _AttributeExtensions>
-RoutingInterfaceProxy<_AttributeExtensions...>::~RoutingInterfaceProxy() {
+RoutingControlObserverProxy<_AttributeExtensions...>::~RoutingControlObserverProxy() {
}
template <typename ... _AttributeExtensions>
-void RoutingInterfaceProxy<_AttributeExtensions...>::ackConnect(const uint16_t& handle, const am_gen::am_connectionID_t& connectionID, const uint16_t& error, CommonAPI::CallStatus& callStatus) {
+void RoutingControlObserverProxy<_AttributeExtensions...>::ackConnect(const am_Handle_s& handle, const am_connectionID_t& connectionID, const am_Error_e& error, CommonAPI::CallStatus& callStatus) {
delegate_->ackConnect(handle, connectionID, error, callStatus);
}
template <typename ... _AttributeExtensions>
-std::future<CommonAPI::CallStatus> RoutingInterfaceProxy<_AttributeExtensions...>::ackConnectAsync(const uint16_t& handle, const am_gen::am_connectionID_t& connectionID, const uint16_t& error, AckConnectAsyncCallback callback) {
+std::future<CommonAPI::CallStatus> RoutingControlObserverProxy<_AttributeExtensions...>::ackConnectAsync(const am_Handle_s& handle, const am_connectionID_t& connectionID, const am_Error_e& error, AckConnectAsyncCallback callback) {
return delegate_->ackConnectAsync(handle, connectionID, error, callback);
}
template <typename ... _AttributeExtensions>
-void RoutingInterfaceProxy<_AttributeExtensions...>::ackDisconnect(const uint16_t& handle, const am_gen::am_connectionID_t& connectionID, const uint16_t& error, CommonAPI::CallStatus& callStatus) {
+void RoutingControlObserverProxy<_AttributeExtensions...>::ackDisconnect(const am_Handle_s& handle, const am_connectionID_t& connectionID, const am_Error_e& error, CommonAPI::CallStatus& callStatus) {
delegate_->ackDisconnect(handle, connectionID, error, callStatus);
}
template <typename ... _AttributeExtensions>
-std::future<CommonAPI::CallStatus> RoutingInterfaceProxy<_AttributeExtensions...>::ackDisconnectAsync(const uint16_t& handle, const am_gen::am_connectionID_t& connectionID, const uint16_t& error, AckDisconnectAsyncCallback callback) {
+std::future<CommonAPI::CallStatus> RoutingControlObserverProxy<_AttributeExtensions...>::ackDisconnectAsync(const am_Handle_s& handle, const am_connectionID_t& connectionID, const am_Error_e& error, AckDisconnectAsyncCallback callback) {
return delegate_->ackDisconnectAsync(handle, connectionID, error, callback);
}
template <typename ... _AttributeExtensions>
-void RoutingInterfaceProxy<_AttributeExtensions...>::ackSetSinkVolume(const uint16_t& handle, const am_gen::am_volume_t& volume, const uint16_t& error, CommonAPI::CallStatus& callStatus) {
- delegate_->ackSetSinkVolume(handle, volume, error, callStatus);
+void RoutingControlObserverProxy<_AttributeExtensions...>::ackSetSinkVolumeChange(const am_Handle_s& handle, const am_volume_t& volume, const am_Error_e& error, CommonAPI::CallStatus& callStatus) {
+ delegate_->ackSetSinkVolumeChange(handle, volume, error, callStatus);
}
template <typename ... _AttributeExtensions>
-std::future<CommonAPI::CallStatus> RoutingInterfaceProxy<_AttributeExtensions...>::ackSetSinkVolumeAsync(const uint16_t& handle, const am_gen::am_volume_t& volume, const uint16_t& error, AckSetSinkVolumeAsyncCallback callback) {
- return delegate_->ackSetSinkVolumeAsync(handle, volume, error, callback);
+std::future<CommonAPI::CallStatus> RoutingControlObserverProxy<_AttributeExtensions...>::ackSetSinkVolumeChangeAsync(const am_Handle_s& handle, const am_volume_t& volume, const am_Error_e& error, AckSetSinkVolumeChangeAsyncCallback callback) {
+ return delegate_->ackSetSinkVolumeChangeAsync(handle, volume, error, callback);
}
template <typename ... _AttributeExtensions>
-void RoutingInterfaceProxy<_AttributeExtensions...>::ackSetSourceVolume(const uint16_t& handle, const am_gen::am_volume_t& volume, const uint16_t& error, CommonAPI::CallStatus& callStatus) {
- delegate_->ackSetSourceVolume(handle, volume, error, callStatus);
+void RoutingControlObserverProxy<_AttributeExtensions...>::ackSetSourceVolumeChange(const am_Handle_s& handle, const am_volume_t& volume, const am_Error_e& error, CommonAPI::CallStatus& callStatus) {
+ delegate_->ackSetSourceVolumeChange(handle, volume, error, callStatus);
}
template <typename ... _AttributeExtensions>
-std::future<CommonAPI::CallStatus> RoutingInterfaceProxy<_AttributeExtensions...>::ackSetSourceVolumeAsync(const uint16_t& handle, const am_gen::am_volume_t& volume, const uint16_t& error, AckSetSourceVolumeAsyncCallback callback) {
- return delegate_->ackSetSourceVolumeAsync(handle, volume, error, callback);
+std::future<CommonAPI::CallStatus> RoutingControlObserverProxy<_AttributeExtensions...>::ackSetSourceVolumeChangeAsync(const am_Handle_s& handle, const am_volume_t& volume, const am_Error_e& error, AckSetSourceVolumeChangeAsyncCallback callback) {
+ return delegate_->ackSetSourceVolumeChangeAsync(handle, volume, error, callback);
}
template <typename ... _AttributeExtensions>
-void RoutingInterfaceProxy<_AttributeExtensions...>::ackSetSourceState(const uint16_t& handle, const uint16_t& error, CommonAPI::CallStatus& callStatus) {
+void RoutingControlObserverProxy<_AttributeExtensions...>::ackSetSourceState(const am_Handle_s& handle, const am_Error_e& error, CommonAPI::CallStatus& callStatus) {
delegate_->ackSetSourceState(handle, error, callStatus);
}
template <typename ... _AttributeExtensions>
-std::future<CommonAPI::CallStatus> RoutingInterfaceProxy<_AttributeExtensions...>::ackSetSourceStateAsync(const uint16_t& handle, const uint16_t& error, AckSetSourceStateAsyncCallback callback) {
+std::future<CommonAPI::CallStatus> RoutingControlObserverProxy<_AttributeExtensions...>::ackSetSourceStateAsync(const am_Handle_s& handle, const am_Error_e& error, AckSetSourceStateAsyncCallback callback) {
return delegate_->ackSetSourceStateAsync(handle, error, callback);
}
template <typename ... _AttributeExtensions>
-void RoutingInterfaceProxy<_AttributeExtensions...>::ackSetSinkSoundProperties(const uint16_t& handle, const uint16_t& error, CommonAPI::CallStatus& callStatus) {
+void RoutingControlObserverProxy<_AttributeExtensions...>::ackSetSinkSoundProperties(const am_Handle_s& handle, const am_Error_e& error, CommonAPI::CallStatus& callStatus) {
delegate_->ackSetSinkSoundProperties(handle, error, callStatus);
}
template <typename ... _AttributeExtensions>
-std::future<CommonAPI::CallStatus> RoutingInterfaceProxy<_AttributeExtensions...>::ackSetSinkSoundPropertiesAsync(const uint16_t& handle, const uint16_t& error, AckSetSinkSoundPropertiesAsyncCallback callback) {
+std::future<CommonAPI::CallStatus> RoutingControlObserverProxy<_AttributeExtensions...>::ackSetSinkSoundPropertiesAsync(const am_Handle_s& handle, const am_Error_e& error, AckSetSinkSoundPropertiesAsyncCallback callback) {
return delegate_->ackSetSinkSoundPropertiesAsync(handle, error, callback);
}
template <typename ... _AttributeExtensions>
-void RoutingInterfaceProxy<_AttributeExtensions...>::ackSetSinkSoundProperty(const uint16_t& handle, const uint16_t& error, CommonAPI::CallStatus& callStatus) {
+void RoutingControlObserverProxy<_AttributeExtensions...>::ackSetSinkSoundProperty(const am_Handle_s& handle, const am_Error_e& error, CommonAPI::CallStatus& callStatus) {
delegate_->ackSetSinkSoundProperty(handle, error, callStatus);
}
template <typename ... _AttributeExtensions>
-std::future<CommonAPI::CallStatus> RoutingInterfaceProxy<_AttributeExtensions...>::ackSetSinkSoundPropertyAsync(const uint16_t& handle, const uint16_t& error, AckSetSinkSoundPropertyAsyncCallback callback) {
+std::future<CommonAPI::CallStatus> RoutingControlObserverProxy<_AttributeExtensions...>::ackSetSinkSoundPropertyAsync(const am_Handle_s& handle, const am_Error_e& error, AckSetSinkSoundPropertyAsyncCallback callback) {
return delegate_->ackSetSinkSoundPropertyAsync(handle, error, callback);
}
template <typename ... _AttributeExtensions>
-void RoutingInterfaceProxy<_AttributeExtensions...>::ackSetSourceSoundProperties(const uint16_t& handle, const uint16_t& error, CommonAPI::CallStatus& callStatus) {
+void RoutingControlObserverProxy<_AttributeExtensions...>::ackSetSourceSoundProperties(const am_Handle_s& handle, const am_Error_e& error, CommonAPI::CallStatus& callStatus) {
delegate_->ackSetSourceSoundProperties(handle, error, callStatus);
}
template <typename ... _AttributeExtensions>
-std::future<CommonAPI::CallStatus> RoutingInterfaceProxy<_AttributeExtensions...>::ackSetSourceSoundPropertiesAsync(const uint16_t& handle, const uint16_t& error, AckSetSourceSoundPropertiesAsyncCallback callback) {
+std::future<CommonAPI::CallStatus> RoutingControlObserverProxy<_AttributeExtensions...>::ackSetSourceSoundPropertiesAsync(const am_Handle_s& handle, const am_Error_e& error, AckSetSourceSoundPropertiesAsyncCallback callback) {
return delegate_->ackSetSourceSoundPropertiesAsync(handle, error, callback);
}
template <typename ... _AttributeExtensions>
-void RoutingInterfaceProxy<_AttributeExtensions...>::ackSetSourceSoundProperty(const uint16_t& handle, const uint16_t& error, CommonAPI::CallStatus& callStatus) {
+void RoutingControlObserverProxy<_AttributeExtensions...>::ackSetSourceSoundProperty(const am_Handle_s& handle, const am_Error_e& error, CommonAPI::CallStatus& callStatus) {
delegate_->ackSetSourceSoundProperty(handle, error, callStatus);
}
template <typename ... _AttributeExtensions>
-std::future<CommonAPI::CallStatus> RoutingInterfaceProxy<_AttributeExtensions...>::ackSetSourceSoundPropertyAsync(const uint16_t& handle, const uint16_t& error, AckSetSourceSoundPropertyAsyncCallback callback) {
+std::future<CommonAPI::CallStatus> RoutingControlObserverProxy<_AttributeExtensions...>::ackSetSourceSoundPropertyAsync(const am_Handle_s& handle, const am_Error_e& error, AckSetSourceSoundPropertyAsyncCallback callback) {
return delegate_->ackSetSourceSoundPropertyAsync(handle, error, callback);
}
template <typename ... _AttributeExtensions>
-void RoutingInterfaceProxy<_AttributeExtensions...>::ackSourceVolumeTick(const uint16_t& handle, const am_gen::am_sourceID_t& source, const am_gen::am_volume_t& volume, CommonAPI::CallStatus& callStatus) {
- delegate_->ackSourceVolumeTick(handle, source, volume, callStatus);
+void RoutingControlObserverProxy<_AttributeExtensions...>::ackCrossFading(const am_Handle_s& handle, const am_HotSink_e& hotSink, const am_Error_e& error, CommonAPI::CallStatus& callStatus) {
+ delegate_->ackCrossFading(handle, hotSink, error, callStatus);
}
template <typename ... _AttributeExtensions>
-std::future<CommonAPI::CallStatus> RoutingInterfaceProxy<_AttributeExtensions...>::ackSourceVolumeTickAsync(const uint16_t& handle, const am_gen::am_sourceID_t& source, const am_gen::am_volume_t& volume, AckSourceVolumeTickAsyncCallback callback) {
- return delegate_->ackSourceVolumeTickAsync(handle, source, volume, callback);
+std::future<CommonAPI::CallStatus> RoutingControlObserverProxy<_AttributeExtensions...>::ackCrossFadingAsync(const am_Handle_s& handle, const am_HotSink_e& hotSink, const am_Error_e& error, AckCrossFadingAsyncCallback callback) {
+ return delegate_->ackCrossFadingAsync(handle, hotSink, error, callback);
}
template <typename ... _AttributeExtensions>
-void RoutingInterfaceProxy<_AttributeExtensions...>::ackSinkVolumeTick(const uint16_t& handle, const am_gen::am_sinkID_t& sink, const am_gen::am_volume_t& volume, CommonAPI::CallStatus& callStatus) {
- delegate_->ackSinkVolumeTick(handle, sink, volume, callStatus);
+void RoutingControlObserverProxy<_AttributeExtensions...>::ackSourceVolumeTick(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_volume_t& volume, CommonAPI::CallStatus& callStatus) {
+ delegate_->ackSourceVolumeTick(handle, sourceID, volume, callStatus);
}
template <typename ... _AttributeExtensions>
-std::future<CommonAPI::CallStatus> RoutingInterfaceProxy<_AttributeExtensions...>::ackSinkVolumeTickAsync(const uint16_t& handle, const am_gen::am_sinkID_t& sink, const am_gen::am_volume_t& volume, AckSinkVolumeTickAsyncCallback callback) {
- return delegate_->ackSinkVolumeTickAsync(handle, sink, volume, callback);
+std::future<CommonAPI::CallStatus> RoutingControlObserverProxy<_AttributeExtensions...>::ackSourceVolumeTickAsync(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_volume_t& volume, AckSourceVolumeTickAsyncCallback callback) {
+ return delegate_->ackSourceVolumeTickAsync(handle, sourceID, volume, callback);
}
template <typename ... _AttributeExtensions>
-void RoutingInterfaceProxy<_AttributeExtensions...>::ackCrossFading(const uint16_t& handle, const am_gen::am_HotSink_e& hotSink, const am_gen::am_Error_e& returnError, CommonAPI::CallStatus& callStatus) {
- delegate_->ackCrossFading(handle, hotSink, returnError, callStatus);
+void RoutingControlObserverProxy<_AttributeExtensions...>::ackSinkVolumeTick(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_volume_t& volume, CommonAPI::CallStatus& callStatus) {
+ delegate_->ackSinkVolumeTick(handle, sinkID, volume, callStatus);
}
template <typename ... _AttributeExtensions>
-std::future<CommonAPI::CallStatus> RoutingInterfaceProxy<_AttributeExtensions...>::ackCrossFadingAsync(const uint16_t& handle, const am_gen::am_HotSink_e& hotSink, const am_gen::am_Error_e& returnError, AckCrossFadingAsyncCallback callback) {
- return delegate_->ackCrossFadingAsync(handle, hotSink, returnError, callback);
+std::future<CommonAPI::CallStatus> RoutingControlObserverProxy<_AttributeExtensions...>::ackSinkVolumeTickAsync(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_volume_t& volume, AckSinkVolumeTickAsyncCallback callback) {
+ return delegate_->ackSinkVolumeTickAsync(handle, sinkID, volume, callback);
}
template <typename ... _AttributeExtensions>
-void RoutingInterfaceProxy<_AttributeExtensions...>::peekDomain(const std::string& name, CommonAPI::CallStatus& callStatus, am_gen::am_domainID_t& domainID, am_gen::am_Error_e& error) {
+void RoutingControlObserverProxy<_AttributeExtensions...>::peekDomain(const std::string& name, CommonAPI::CallStatus& callStatus, am_domainID_t& domainID, am_Error_e& error) {
delegate_->peekDomain(name, callStatus, domainID, error);
}
template <typename ... _AttributeExtensions>
-std::future<CommonAPI::CallStatus> RoutingInterfaceProxy<_AttributeExtensions...>::peekDomainAsync(const std::string& name, PeekDomainAsyncCallback callback) {
+std::future<CommonAPI::CallStatus> RoutingControlObserverProxy<_AttributeExtensions...>::peekDomainAsync(const std::string& name, PeekDomainAsyncCallback callback) {
return delegate_->peekDomainAsync(name, callback);
}
template <typename ... _AttributeExtensions>
-void RoutingInterfaceProxy<_AttributeExtensions...>::registerDomain(const am_gen::am_Domain_s& domainData, const std::string& returnBusname, const std::string& returnPath, const std::string& returnInterface, CommonAPI::CallStatus& callStatus, am_gen::am_domainID_t& domainID, am_gen::am_Error_e& error) {
- delegate_->registerDomain(domainData, returnBusname, returnPath, returnInterface, callStatus, domainID, error);
+void RoutingControlObserverProxy<_AttributeExtensions...>::registerDomain(const am_Domain_s& domainData, const std::string& returnInterface, const std::string& returnPath, const std::string& returnBusname, CommonAPI::CallStatus& callStatus, am_domainID_t& domainID, am_Error_e& error) {
+ delegate_->registerDomain(domainData, returnInterface, returnPath, returnBusname, callStatus, domainID, error);
}
template <typename ... _AttributeExtensions>
-std::future<CommonAPI::CallStatus> RoutingInterfaceProxy<_AttributeExtensions...>::registerDomainAsync(const am_gen::am_Domain_s& domainData, const std::string& returnBusname, const std::string& returnPath, const std::string& returnInterface, RegisterDomainAsyncCallback callback) {
- return delegate_->registerDomainAsync(domainData, returnBusname, returnPath, returnInterface, callback);
+std::future<CommonAPI::CallStatus> RoutingControlObserverProxy<_AttributeExtensions...>::registerDomainAsync(const am_Domain_s& domainData, const std::string& returnInterface, const std::string& returnPath, const std::string& returnBusname, RegisterDomainAsyncCallback callback) {
+ return delegate_->registerDomainAsync(domainData, returnInterface, returnPath, returnBusname, callback);
}
template <typename ... _AttributeExtensions>
-void RoutingInterfaceProxy<_AttributeExtensions...>::deregisterDomain(const am_gen::am_domainID_t& domainID, CommonAPI::CallStatus& callStatus, am_gen::am_Error_e& returnError) {
- delegate_->deregisterDomain(domainID, callStatus, returnError);
+void RoutingControlObserverProxy<_AttributeExtensions...>::deregisterDomain(const am_domainID_t& domainID, CommonAPI::CallStatus& callStatus, am_Error_e& error) {
+ delegate_->deregisterDomain(domainID, callStatus, error);
}
template <typename ... _AttributeExtensions>
-std::future<CommonAPI::CallStatus> RoutingInterfaceProxy<_AttributeExtensions...>::deregisterDomainAsync(const am_gen::am_domainID_t& domainID, DeregisterDomainAsyncCallback callback) {
+std::future<CommonAPI::CallStatus> RoutingControlObserverProxy<_AttributeExtensions...>::deregisterDomainAsync(const am_domainID_t& domainID, DeregisterDomainAsyncCallback callback) {
return delegate_->deregisterDomainAsync(domainID, callback);
}
template <typename ... _AttributeExtensions>
-void RoutingInterfaceProxy<_AttributeExtensions...>::registerGateway(const am_gen::am_Gateway_s& gatewayData, CommonAPI::CallStatus& callStatus, am_gen::am_gatewayID_t& gatewayID, am_gen::am_Error_e& error) {
+void RoutingControlObserverProxy<_AttributeExtensions...>::registerGateway(const am_Gateway_s& gatewayData, CommonAPI::CallStatus& callStatus, am_gatewayID_t& gatewayID, am_Error_e& error) {
delegate_->registerGateway(gatewayData, callStatus, gatewayID, error);
}
template <typename ... _AttributeExtensions>
-std::future<CommonAPI::CallStatus> RoutingInterfaceProxy<_AttributeExtensions...>::registerGatewayAsync(const am_gen::am_Gateway_s& gatewayData, RegisterGatewayAsyncCallback callback) {
+std::future<CommonAPI::CallStatus> RoutingControlObserverProxy<_AttributeExtensions...>::registerGatewayAsync(const am_Gateway_s& gatewayData, RegisterGatewayAsyncCallback callback) {
return delegate_->registerGatewayAsync(gatewayData, callback);
}
template <typename ... _AttributeExtensions>
-void RoutingInterfaceProxy<_AttributeExtensions...>::deregisterGateway(const am_gen::am_gatewayID_t& gatewayID, CommonAPI::CallStatus& callStatus, am_gen::am_Error_e& returnError) {
- delegate_->deregisterGateway(gatewayID, callStatus, returnError);
+void RoutingControlObserverProxy<_AttributeExtensions...>::deregisterGateway(const am_gatewayID_t& gatewayID, CommonAPI::CallStatus& callStatus, am_Error_e& error) {
+ delegate_->deregisterGateway(gatewayID, callStatus, error);
}
template <typename ... _AttributeExtensions>
-std::future<CommonAPI::CallStatus> RoutingInterfaceProxy<_AttributeExtensions...>::deregisterGatewayAsync(const am_gen::am_gatewayID_t& gatewayID, DeregisterGatewayAsyncCallback callback) {
+std::future<CommonAPI::CallStatus> RoutingControlObserverProxy<_AttributeExtensions...>::deregisterGatewayAsync(const am_gatewayID_t& gatewayID, DeregisterGatewayAsyncCallback callback) {
return delegate_->deregisterGatewayAsync(gatewayID, callback);
}
template <typename ... _AttributeExtensions>
-void RoutingInterfaceProxy<_AttributeExtensions...>::peekSink(const std::string& name, CommonAPI::CallStatus& callStatus, am_gen::am_sinkID_t& sinkID, am_gen::am_Error_e& error) {
+void RoutingControlObserverProxy<_AttributeExtensions...>::peekSink(const std::string& name, CommonAPI::CallStatus& callStatus, am_sinkID_t& sinkID, am_Error_e& error) {
delegate_->peekSink(name, callStatus, sinkID, error);
}
template <typename ... _AttributeExtensions>
-std::future<CommonAPI::CallStatus> RoutingInterfaceProxy<_AttributeExtensions...>::peekSinkAsync(const std::string& name, PeekSinkAsyncCallback callback) {
+std::future<CommonAPI::CallStatus> RoutingControlObserverProxy<_AttributeExtensions...>::peekSinkAsync(const std::string& name, PeekSinkAsyncCallback callback) {
return delegate_->peekSinkAsync(name, callback);
}
template <typename ... _AttributeExtensions>
-void RoutingInterfaceProxy<_AttributeExtensions...>::registerSink(const am_gen::sinkData_s& sinkData, CommonAPI::CallStatus& callStatus, am_gen::am_sinkID_t& sinkID, am_gen::am_Error_e& error) {
+void RoutingControlObserverProxy<_AttributeExtensions...>::registerSink(const am_Sink_s& sinkData, CommonAPI::CallStatus& callStatus, am_sinkID_t& sinkID, am_Error_e& error) {
delegate_->registerSink(sinkData, callStatus, sinkID, error);
}
template <typename ... _AttributeExtensions>
-std::future<CommonAPI::CallStatus> RoutingInterfaceProxy<_AttributeExtensions...>::registerSinkAsync(const am_gen::sinkData_s& sinkData, RegisterSinkAsyncCallback callback) {
+std::future<CommonAPI::CallStatus> RoutingControlObserverProxy<_AttributeExtensions...>::registerSinkAsync(const am_Sink_s& sinkData, RegisterSinkAsyncCallback callback) {
return delegate_->registerSinkAsync(sinkData, callback);
}
template <typename ... _AttributeExtensions>
-void RoutingInterfaceProxy<_AttributeExtensions...>::deregisterSink(const am_gen::am_sinkID_t& sinkID, CommonAPI::CallStatus& callStatus, am_gen::am_Error_e& returnError) {
- delegate_->deregisterSink(sinkID, callStatus, returnError);
+void RoutingControlObserverProxy<_AttributeExtensions...>::deregisterSink(const am_sinkID_t& sinkID, CommonAPI::CallStatus& callStatus, am_Error_e& error) {
+ delegate_->deregisterSink(sinkID, callStatus, error);
}
template <typename ... _AttributeExtensions>
-std::future<CommonAPI::CallStatus> RoutingInterfaceProxy<_AttributeExtensions...>::deregisterSinkAsync(const am_gen::am_sinkID_t& sinkID, DeregisterSinkAsyncCallback callback) {
+std::future<CommonAPI::CallStatus> RoutingControlObserverProxy<_AttributeExtensions...>::deregisterSinkAsync(const am_sinkID_t& sinkID, DeregisterSinkAsyncCallback callback) {
return delegate_->deregisterSinkAsync(sinkID, callback);
}
template <typename ... _AttributeExtensions>
-void RoutingInterfaceProxy<_AttributeExtensions...>::peekSource(const std::string& name, CommonAPI::CallStatus& callStatus, am_gen::am_sourceID_t& sourceID, am_gen::am_Error_e& error) {
+void RoutingControlObserverProxy<_AttributeExtensions...>::peekSource(const std::string& name, CommonAPI::CallStatus& callStatus, am_sourceID_t& sourceID, am_Error_e& error) {
delegate_->peekSource(name, callStatus, sourceID, error);
}
template <typename ... _AttributeExtensions>
-std::future<CommonAPI::CallStatus> RoutingInterfaceProxy<_AttributeExtensions...>::peekSourceAsync(const std::string& name, PeekSourceAsyncCallback callback) {
+std::future<CommonAPI::CallStatus> RoutingControlObserverProxy<_AttributeExtensions...>::peekSourceAsync(const std::string& name, PeekSourceAsyncCallback callback) {
return delegate_->peekSourceAsync(name, callback);
}
template <typename ... _AttributeExtensions>
-void RoutingInterfaceProxy<_AttributeExtensions...>::registerSource(const am_gen::sourceData_s& sourceData, CommonAPI::CallStatus& callStatus, am_gen::am_sourceID_t& sourceID, am_gen::am_Error_e& error) {
+void RoutingControlObserverProxy<_AttributeExtensions...>::registerSource(const am_Source_s& sourceData, CommonAPI::CallStatus& callStatus, am_sourceID_t& sourceID, am_Error_e& error) {
delegate_->registerSource(sourceData, callStatus, sourceID, error);
}
template <typename ... _AttributeExtensions>
-std::future<CommonAPI::CallStatus> RoutingInterfaceProxy<_AttributeExtensions...>::registerSourceAsync(const am_gen::sourceData_s& sourceData, RegisterSourceAsyncCallback callback) {
+std::future<CommonAPI::CallStatus> RoutingControlObserverProxy<_AttributeExtensions...>::registerSourceAsync(const am_Source_s& sourceData, RegisterSourceAsyncCallback callback) {
return delegate_->registerSourceAsync(sourceData, callback);
}
template <typename ... _AttributeExtensions>
-void RoutingInterfaceProxy<_AttributeExtensions...>::deregisterSource(const am_gen::am_sourceID_t& sourceID, CommonAPI::CallStatus& callStatus, am_gen::am_Error_e& returnError) {
- delegate_->deregisterSource(sourceID, callStatus, returnError);
+void RoutingControlObserverProxy<_AttributeExtensions...>::deregisterSource(const am_sourceID_t& sourceID, CommonAPI::CallStatus& callStatus, am_Error_e& error) {
+ delegate_->deregisterSource(sourceID, callStatus, error);
}
template <typename ... _AttributeExtensions>
-std::future<CommonAPI::CallStatus> RoutingInterfaceProxy<_AttributeExtensions...>::deregisterSourceAsync(const am_gen::am_sourceID_t& sourceID, DeregisterSourceAsyncCallback callback) {
+std::future<CommonAPI::CallStatus> RoutingControlObserverProxy<_AttributeExtensions...>::deregisterSourceAsync(const am_sourceID_t& sourceID, DeregisterSourceAsyncCallback callback) {
return delegate_->deregisterSourceAsync(sourceID, callback);
}
template <typename ... _AttributeExtensions>
-void RoutingInterfaceProxy<_AttributeExtensions...>::registerCrossfader(const am_gen::crossfaderData_s& crossfaderData, CommonAPI::CallStatus& callStatus, am_gen::am_crossfaderID_t& crossfaderID, am_gen::am_Error_e& error) {
+void RoutingControlObserverProxy<_AttributeExtensions...>::registerCrossfader(const am_Crossfader_s& crossfaderData, CommonAPI::CallStatus& callStatus, am_crossfaderID_t& crossfaderID, am_Error_e& error) {
delegate_->registerCrossfader(crossfaderData, callStatus, crossfaderID, error);
}
template <typename ... _AttributeExtensions>
-std::future<CommonAPI::CallStatus> RoutingInterfaceProxy<_AttributeExtensions...>::registerCrossfaderAsync(const am_gen::crossfaderData_s& crossfaderData, RegisterCrossfaderAsyncCallback callback) {
+std::future<CommonAPI::CallStatus> RoutingControlObserverProxy<_AttributeExtensions...>::registerCrossfaderAsync(const am_Crossfader_s& crossfaderData, RegisterCrossfaderAsyncCallback callback) {
return delegate_->registerCrossfaderAsync(crossfaderData, callback);
}
template <typename ... _AttributeExtensions>
-void RoutingInterfaceProxy<_AttributeExtensions...>::deregisterCrossfader(const am_gen::am_crossfaderID_t& crossfaderID, CommonAPI::CallStatus& callStatus, am_gen::am_Error_e& returnError) {
- delegate_->deregisterCrossfader(crossfaderID, callStatus, returnError);
+void RoutingControlObserverProxy<_AttributeExtensions...>::deregisterCrossfader(const am_crossfaderID_t& crossfaderID, CommonAPI::CallStatus& callStatus, am_Error_e& error) {
+ delegate_->deregisterCrossfader(crossfaderID, callStatus, error);
}
template <typename ... _AttributeExtensions>
-std::future<CommonAPI::CallStatus> RoutingInterfaceProxy<_AttributeExtensions...>::deregisterCrossfaderAsync(const am_gen::am_crossfaderID_t& crossfaderID, DeregisterCrossfaderAsyncCallback callback) {
+std::future<CommonAPI::CallStatus> RoutingControlObserverProxy<_AttributeExtensions...>::deregisterCrossfaderAsync(const am_crossfaderID_t& crossfaderID, DeregisterCrossfaderAsyncCallback callback) {
return delegate_->deregisterCrossfaderAsync(crossfaderID, callback);
}
template <typename ... _AttributeExtensions>
-void RoutingInterfaceProxy<_AttributeExtensions...>::peekSourceClassID(const std::string& name, CommonAPI::CallStatus& callStatus, am_gen::am_sourceClass_t& sourceClassID, am_gen::am_Error_e& error) {
+void RoutingControlObserverProxy<_AttributeExtensions...>::peekSourceClassID(const std::string& name, CommonAPI::CallStatus& callStatus, am_sourceClass_t& sourceClassID, am_Error_e& error) {
delegate_->peekSourceClassID(name, callStatus, sourceClassID, error);
}
template <typename ... _AttributeExtensions>
-std::future<CommonAPI::CallStatus> RoutingInterfaceProxy<_AttributeExtensions...>::peekSourceClassIDAsync(const std::string& name, PeekSourceClassIDAsyncCallback callback) {
+std::future<CommonAPI::CallStatus> RoutingControlObserverProxy<_AttributeExtensions...>::peekSourceClassIDAsync(const std::string& name, PeekSourceClassIDAsyncCallback callback) {
return delegate_->peekSourceClassIDAsync(name, callback);
}
template <typename ... _AttributeExtensions>
-void RoutingInterfaceProxy<_AttributeExtensions...>::peekSinkClassID(const std::string& name, CommonAPI::CallStatus& callStatus, am_gen::am_sinkClass_t& sinkClassID, am_gen::am_Error_e& error) {
+void RoutingControlObserverProxy<_AttributeExtensions...>::peekSinkClassID(const std::string& name, CommonAPI::CallStatus& callStatus, am_sinkClass_t& sinkClassID, am_Error_e& error) {
delegate_->peekSinkClassID(name, callStatus, sinkClassID, error);
}
template <typename ... _AttributeExtensions>
-std::future<CommonAPI::CallStatus> RoutingInterfaceProxy<_AttributeExtensions...>::peekSinkClassIDAsync(const std::string& name, PeekSinkClassIDAsyncCallback callback) {
+std::future<CommonAPI::CallStatus> RoutingControlObserverProxy<_AttributeExtensions...>::peekSinkClassIDAsync(const std::string& name, PeekSinkClassIDAsyncCallback callback) {
return delegate_->peekSinkClassIDAsync(name, callback);
}
template <typename ... _AttributeExtensions>
-void RoutingInterfaceProxy<_AttributeExtensions...>::hookInterruptStatusChange(const am_gen::am_sourceID_t& sourceID, const uint16_t& interruptState, CommonAPI::CallStatus& callStatus) {
+void RoutingControlObserverProxy<_AttributeExtensions...>::hookInterruptStatusChange(const am_sourceID_t& sourceID, const am_InterruptState_e& interruptState, CommonAPI::CallStatus& callStatus) {
delegate_->hookInterruptStatusChange(sourceID, interruptState, callStatus);
}
template <typename ... _AttributeExtensions>
-std::future<CommonAPI::CallStatus> RoutingInterfaceProxy<_AttributeExtensions...>::hookInterruptStatusChangeAsync(const am_gen::am_sourceID_t& sourceID, const uint16_t& interruptState, HookInterruptStatusChangeAsyncCallback callback) {
+std::future<CommonAPI::CallStatus> RoutingControlObserverProxy<_AttributeExtensions...>::hookInterruptStatusChangeAsync(const am_sourceID_t& sourceID, const am_InterruptState_e& interruptState, HookInterruptStatusChangeAsyncCallback callback) {
return delegate_->hookInterruptStatusChangeAsync(sourceID, interruptState, callback);
}
template <typename ... _AttributeExtensions>
-void RoutingInterfaceProxy<_AttributeExtensions...>::hookDomainRegistrationComplete(const am_gen::am_domainID_t& domainID, CommonAPI::CallStatus& callStatus) {
+void RoutingControlObserverProxy<_AttributeExtensions...>::hookDomainRegistrationComplete(const am_domainID_t& domainID, CommonAPI::CallStatus& callStatus) {
delegate_->hookDomainRegistrationComplete(domainID, callStatus);
}
template <typename ... _AttributeExtensions>
-std::future<CommonAPI::CallStatus> RoutingInterfaceProxy<_AttributeExtensions...>::hookDomainRegistrationCompleteAsync(const am_gen::am_domainID_t& domainID, HookDomainRegistrationCompleteAsyncCallback callback) {
+std::future<CommonAPI::CallStatus> RoutingControlObserverProxy<_AttributeExtensions...>::hookDomainRegistrationCompleteAsync(const am_domainID_t& domainID, HookDomainRegistrationCompleteAsyncCallback callback) {
return delegate_->hookDomainRegistrationCompleteAsync(domainID, callback);
}
template <typename ... _AttributeExtensions>
-void RoutingInterfaceProxy<_AttributeExtensions...>::hookSinkAvailablityStatusChange(const am_gen::am_sinkID_t& sinkID, const am_gen::am_Availability_s& availability, CommonAPI::CallStatus& callStatus) {
+void RoutingControlObserverProxy<_AttributeExtensions...>::hookSinkAvailablityStatusChange(const am_sinkID_t& sinkID, const am_Availability_s& availability, CommonAPI::CallStatus& callStatus) {
delegate_->hookSinkAvailablityStatusChange(sinkID, availability, callStatus);
}
template <typename ... _AttributeExtensions>
-std::future<CommonAPI::CallStatus> RoutingInterfaceProxy<_AttributeExtensions...>::hookSinkAvailablityStatusChangeAsync(const am_gen::am_sinkID_t& sinkID, const am_gen::am_Availability_s& availability, HookSinkAvailablityStatusChangeAsyncCallback callback) {
+std::future<CommonAPI::CallStatus> RoutingControlObserverProxy<_AttributeExtensions...>::hookSinkAvailablityStatusChangeAsync(const am_sinkID_t& sinkID, const am_Availability_s& availability, HookSinkAvailablityStatusChangeAsyncCallback callback) {
return delegate_->hookSinkAvailablityStatusChangeAsync(sinkID, availability, callback);
}
template <typename ... _AttributeExtensions>
-void RoutingInterfaceProxy<_AttributeExtensions...>::hookSourceAvailablityStatusChange(const am_gen::am_sourceID_t& sourceID, const am_gen::am_Availability_s& availability, CommonAPI::CallStatus& callStatus) {
+void RoutingControlObserverProxy<_AttributeExtensions...>::hookSourceAvailablityStatusChange(const am_sourceID_t& sourceID, const am_Availability_s& availability, CommonAPI::CallStatus& callStatus) {
delegate_->hookSourceAvailablityStatusChange(sourceID, availability, callStatus);
}
template <typename ... _AttributeExtensions>
-std::future<CommonAPI::CallStatus> RoutingInterfaceProxy<_AttributeExtensions...>::hookSourceAvailablityStatusChangeAsync(const am_gen::am_sourceID_t& sourceID, const am_gen::am_Availability_s& availability, HookSourceAvailablityStatusChangeAsyncCallback callback) {
+std::future<CommonAPI::CallStatus> RoutingControlObserverProxy<_AttributeExtensions...>::hookSourceAvailablityStatusChangeAsync(const am_sourceID_t& sourceID, const am_Availability_s& availability, HookSourceAvailablityStatusChangeAsyncCallback callback) {
return delegate_->hookSourceAvailablityStatusChangeAsync(sourceID, availability, callback);
}
template <typename ... _AttributeExtensions>
-void RoutingInterfaceProxy<_AttributeExtensions...>::hookDomainStateChange(const am_gen::am_domainID_t& domainID, const am_gen::am_DomainState_e& domainState, CommonAPI::CallStatus& callStatus) {
+void RoutingControlObserverProxy<_AttributeExtensions...>::hookDomainStateChange(const am_domainID_t& domainID, const am_DomainState_e& domainState, CommonAPI::CallStatus& callStatus) {
delegate_->hookDomainStateChange(domainID, domainState, callStatus);
}
template <typename ... _AttributeExtensions>
-std::future<CommonAPI::CallStatus> RoutingInterfaceProxy<_AttributeExtensions...>::hookDomainStateChangeAsync(const am_gen::am_domainID_t& domainID, const am_gen::am_DomainState_e& domainState, HookDomainStateChangeAsyncCallback callback) {
+std::future<CommonAPI::CallStatus> RoutingControlObserverProxy<_AttributeExtensions...>::hookDomainStateChangeAsync(const am_domainID_t& domainID, const am_DomainState_e& domainState, HookDomainStateChangeAsyncCallback callback) {
return delegate_->hookDomainStateChangeAsync(domainID, domainState, callback);
}
template <typename ... _AttributeExtensions>
-void RoutingInterfaceProxy<_AttributeExtensions...>::hookTimingInformationChanged(const am_gen::am_connectionID_t& connectionID, const int16_t& delay, CommonAPI::CallStatus& callStatus) {
+void RoutingControlObserverProxy<_AttributeExtensions...>::hookTimingInformationChanged(const am_connectionID_t& connectionID, const am_timeSync_t& delay, CommonAPI::CallStatus& callStatus) {
delegate_->hookTimingInformationChanged(connectionID, delay, callStatus);
}
template <typename ... _AttributeExtensions>
-std::future<CommonAPI::CallStatus> RoutingInterfaceProxy<_AttributeExtensions...>::hookTimingInformationChangedAsync(const am_gen::am_connectionID_t& connectionID, const int16_t& delay, HookTimingInformationChangedAsyncCallback callback) {
+std::future<CommonAPI::CallStatus> RoutingControlObserverProxy<_AttributeExtensions...>::hookTimingInformationChangedAsync(const am_connectionID_t& connectionID, const am_timeSync_t& delay, HookTimingInformationChangedAsyncCallback callback) {
return delegate_->hookTimingInformationChangedAsync(connectionID, delay, callback);
}
template <typename ... _AttributeExtensions>
-void RoutingInterfaceProxy<_AttributeExtensions...>::sendChangedData(const am_gen::am_EarlyData_l& earlyData_volumes, const am_gen::am_EarlyData_l& earlyData_soundproperties, CommonAPI::CallStatus& callStatus) {
- delegate_->sendChangedData(earlyData_volumes, earlyData_soundproperties, callStatus);
-}
-
-template <typename ... _AttributeExtensions>
-std::future<CommonAPI::CallStatus> RoutingInterfaceProxy<_AttributeExtensions...>::sendChangedDataAsync(const am_gen::am_EarlyData_l& earlyData_volumes, const am_gen::am_EarlyData_l& earlyData_soundproperties, SendChangedDataAsyncCallback callback) {
- return delegate_->sendChangedDataAsync(earlyData_volumes, earlyData_soundproperties, callback);
-}
-
-template <typename ... _AttributeExtensions>
-void RoutingInterfaceProxy<_AttributeExtensions...>::confirmRoutingReady(const am_gen::am_domainID_t& domainID, CommonAPI::CallStatus& callStatus) {
- delegate_->confirmRoutingReady(domainID, callStatus);
+void RoutingControlObserverProxy<_AttributeExtensions...>::sendChangedData(const am_EarlyData_L& earlyData, CommonAPI::CallStatus& callStatus) {
+ delegate_->sendChangedData(earlyData, callStatus);
}
template <typename ... _AttributeExtensions>
-std::future<CommonAPI::CallStatus> RoutingInterfaceProxy<_AttributeExtensions...>::confirmRoutingReadyAsync(const am_gen::am_domainID_t& domainID, ConfirmRoutingReadyAsyncCallback callback) {
- return delegate_->confirmRoutingReadyAsync(domainID, callback);
+std::future<CommonAPI::CallStatus> RoutingControlObserverProxy<_AttributeExtensions...>::sendChangedDataAsync(const am_EarlyData_L& earlyData, SendChangedDataAsyncCallback callback) {
+ return delegate_->sendChangedDataAsync(earlyData, callback);
}
template <typename ... _AttributeExtensions>
-void RoutingInterfaceProxy<_AttributeExtensions...>::confirmRoutingRundown(const am_gen::am_domainID_t& domainID, CommonAPI::CallStatus& callStatus) {
- delegate_->confirmRoutingRundown(domainID, callStatus);
+void RoutingControlObserverProxy<_AttributeExtensions...>::updateGateway(const am_gatewayID_t& gatewayID, const am_ConnectionFormat_L& listSourceFormats, const am_ConnectionFormat_L& listSinkFormats, const am_Convertion_L& convertionMatrix, CommonAPI::CallStatus& callStatus, am_Error_e& error) {
+ delegate_->updateGateway(gatewayID, listSourceFormats, listSinkFormats, convertionMatrix, callStatus, error);
}
template <typename ... _AttributeExtensions>
-std::future<CommonAPI::CallStatus> RoutingInterfaceProxy<_AttributeExtensions...>::confirmRoutingRundownAsync(const am_gen::am_domainID_t& domainID, ConfirmRoutingRundownAsyncCallback callback) {
- return delegate_->confirmRoutingRundownAsync(domainID, callback);
-}
-
-template <typename ... _AttributeExtensions>
-void RoutingInterfaceProxy<_AttributeExtensions...>::updateGateway(const am_gen::am_gatewayID_t& gatewayID, const am_gen::am_ConnectionFormat_L& listSourceFormats, const am_gen::am_ConnectionFormat_L& listSinkFormats, const am_gen::bool_L& convertionMatrix, CommonAPI::CallStatus& callStatus) {
- delegate_->updateGateway(gatewayID, listSourceFormats, listSinkFormats, convertionMatrix, callStatus);
-}
-
-template <typename ... _AttributeExtensions>
-std::future<CommonAPI::CallStatus> RoutingInterfaceProxy<_AttributeExtensions...>::updateGatewayAsync(const am_gen::am_gatewayID_t& gatewayID, const am_gen::am_ConnectionFormat_L& listSourceFormats, const am_gen::am_ConnectionFormat_L& listSinkFormats, const am_gen::bool_L& convertionMatrix, UpdateGatewayAsyncCallback callback) {
+std::future<CommonAPI::CallStatus> RoutingControlObserverProxy<_AttributeExtensions...>::updateGatewayAsync(const am_gatewayID_t& gatewayID, const am_ConnectionFormat_L& listSourceFormats, const am_ConnectionFormat_L& listSinkFormats, const am_Convertion_L& convertionMatrix, UpdateGatewayAsyncCallback callback) {
return delegate_->updateGatewayAsync(gatewayID, listSourceFormats, listSinkFormats, convertionMatrix, callback);
}
template <typename ... _AttributeExtensions>
-void RoutingInterfaceProxy<_AttributeExtensions...>::updateSink(const am_gen::am_sinkID_t& sinkID, const am_gen::am_sinkClass_t& sinkClassID, const am_gen::am_SoundProperty_L& listSoundProperties, const am_gen::am_ConnectionFormat_L& listConnectionFormats, const am_gen::am_MainSoundProperty_L& listMainSoundProperties, CommonAPI::CallStatus& callStatus) {
- delegate_->updateSink(sinkID, sinkClassID, listSoundProperties, listConnectionFormats, listMainSoundProperties, callStatus);
+void RoutingControlObserverProxy<_AttributeExtensions...>::updateSink(const am_sinkID_t& sinkID, const am_sinkClass_t& sinkClassID, const am_SoundProperty_L& listSoundProperties, const am_ConnectionFormat_L& listConnectionFormats, const am_MainSoundProperty_L& listMainSoundProperties, CommonAPI::CallStatus& callStatus, am_Error_e& error) {
+ delegate_->updateSink(sinkID, sinkClassID, listSoundProperties, listConnectionFormats, listMainSoundProperties, callStatus, error);
}
template <typename ... _AttributeExtensions>
-std::future<CommonAPI::CallStatus> RoutingInterfaceProxy<_AttributeExtensions...>::updateSinkAsync(const am_gen::am_sinkID_t& sinkID, const am_gen::am_sinkClass_t& sinkClassID, const am_gen::am_SoundProperty_L& listSoundProperties, const am_gen::am_ConnectionFormat_L& listConnectionFormats, const am_gen::am_MainSoundProperty_L& listMainSoundProperties, UpdateSinkAsyncCallback callback) {
+std::future<CommonAPI::CallStatus> RoutingControlObserverProxy<_AttributeExtensions...>::updateSinkAsync(const am_sinkID_t& sinkID, const am_sinkClass_t& sinkClassID, const am_SoundProperty_L& listSoundProperties, const am_ConnectionFormat_L& listConnectionFormats, const am_MainSoundProperty_L& listMainSoundProperties, UpdateSinkAsyncCallback callback) {
return delegate_->updateSinkAsync(sinkID, sinkClassID, listSoundProperties, listConnectionFormats, listMainSoundProperties, callback);
}
template <typename ... _AttributeExtensions>
-void RoutingInterfaceProxy<_AttributeExtensions...>::updateSource(const am_gen::am_sourceID_t& sourceID, const am_gen::am_sourceClass_t& sourceClassID, const am_gen::am_SoundProperty_L& listSoundProperties, const am_gen::am_ConnectionFormat_L& listConnectionFormats, const am_gen::am_MainSoundProperty_L& listMainSoundProperties, CommonAPI::CallStatus& callStatus) {
- delegate_->updateSource(sourceID, sourceClassID, listSoundProperties, listConnectionFormats, listMainSoundProperties, callStatus);
+void RoutingControlObserverProxy<_AttributeExtensions...>::updateSource(const am_sourceID_t& sourceID, const am_sourceClass_t& sourceClassID, const am_SoundProperty_L& listSoundProperties, const am_ConnectionFormat_L& listConnectionFormats, const am_MainSoundProperty_L& listMainSoundProperties, CommonAPI::CallStatus& callStatus, am_Error_e& error) {
+ delegate_->updateSource(sourceID, sourceClassID, listSoundProperties, listConnectionFormats, listMainSoundProperties, callStatus, error);
}
template <typename ... _AttributeExtensions>
-std::future<CommonAPI::CallStatus> RoutingInterfaceProxy<_AttributeExtensions...>::updateSourceAsync(const am_gen::am_sourceID_t& sourceID, const am_gen::am_sourceClass_t& sourceClassID, const am_gen::am_SoundProperty_L& listSoundProperties, const am_gen::am_ConnectionFormat_L& listConnectionFormats, const am_gen::am_MainSoundProperty_L& listMainSoundProperties, UpdateSourceAsyncCallback callback) {
+std::future<CommonAPI::CallStatus> RoutingControlObserverProxy<_AttributeExtensions...>::updateSourceAsync(const am_sourceID_t& sourceID, const am_sourceClass_t& sourceClassID, const am_SoundProperty_L& listSoundProperties, const am_ConnectionFormat_L& listConnectionFormats, const am_MainSoundProperty_L& listMainSoundProperties, UpdateSourceAsyncCallback callback) {
return delegate_->updateSourceAsync(sourceID, sourceClassID, listSoundProperties, listConnectionFormats, listMainSoundProperties, callback);
}
template <typename ... _AttributeExtensions>
-void RoutingInterfaceProxy<_AttributeExtensions...>::ackSetVolumes(const uint16_t& handle, const am_gen::am_Volumes_l& listVolumes, const uint16_t& error, CommonAPI::CallStatus& callStatus) {
- delegate_->ackSetVolumes(handle, listVolumes, error, callStatus);
+void RoutingControlObserverProxy<_AttributeExtensions...>::ackSetVolumes(const am_Handle_s& handle, const am_Volumes_L& listvolumes, const am_Error_e& error, CommonAPI::CallStatus& callStatus) {
+ delegate_->ackSetVolumes(handle, listvolumes, error, callStatus);
}
template <typename ... _AttributeExtensions>
-std::future<CommonAPI::CallStatus> RoutingInterfaceProxy<_AttributeExtensions...>::ackSetVolumesAsync(const uint16_t& handle, const am_gen::am_Volumes_l& listVolumes, const uint16_t& error, AckSetVolumesAsyncCallback callback) {
- return delegate_->ackSetVolumesAsync(handle, listVolumes, error, callback);
+std::future<CommonAPI::CallStatus> RoutingControlObserverProxy<_AttributeExtensions...>::ackSetVolumesAsync(const am_Handle_s& handle, const am_Volumes_L& listvolumes, const am_Error_e& error, AckSetVolumesAsyncCallback callback) {
+ return delegate_->ackSetVolumesAsync(handle, listvolumes, error, callback);
}
template <typename ... _AttributeExtensions>
-void RoutingInterfaceProxy<_AttributeExtensions...>::ackSinkNotificationConfiguration(const uint16_t& handle, const uint16_t& error, CommonAPI::CallStatus& callStatus) {
+void RoutingControlObserverProxy<_AttributeExtensions...>::ackSinkNotificationConfiguration(const am_Handle_s& handle, const am_Error_e& error, CommonAPI::CallStatus& callStatus) {
delegate_->ackSinkNotificationConfiguration(handle, error, callStatus);
}
template <typename ... _AttributeExtensions>
-std::future<CommonAPI::CallStatus> RoutingInterfaceProxy<_AttributeExtensions...>::ackSinkNotificationConfigurationAsync(const uint16_t& handle, const uint16_t& error, AckSinkNotificationConfigurationAsyncCallback callback) {
+std::future<CommonAPI::CallStatus> RoutingControlObserverProxy<_AttributeExtensions...>::ackSinkNotificationConfigurationAsync(const am_Handle_s& handle, const am_Error_e& error, AckSinkNotificationConfigurationAsyncCallback callback) {
return delegate_->ackSinkNotificationConfigurationAsync(handle, error, callback);
}
template <typename ... _AttributeExtensions>
-void RoutingInterfaceProxy<_AttributeExtensions...>::ackSourceNotificationConfiguration(const uint16_t& handle, const uint16_t& error, CommonAPI::CallStatus& callStatus) {
+void RoutingControlObserverProxy<_AttributeExtensions...>::ackSourceNotificationConfiguration(const am_Handle_s& handle, const am_Error_e& error, CommonAPI::CallStatus& callStatus) {
delegate_->ackSourceNotificationConfiguration(handle, error, callStatus);
}
template <typename ... _AttributeExtensions>
-std::future<CommonAPI::CallStatus> RoutingInterfaceProxy<_AttributeExtensions...>::ackSourceNotificationConfigurationAsync(const uint16_t& handle, const uint16_t& error, AckSourceNotificationConfigurationAsyncCallback callback) {
+std::future<CommonAPI::CallStatus> RoutingControlObserverProxy<_AttributeExtensions...>::ackSourceNotificationConfigurationAsync(const am_Handle_s& handle, const am_Error_e& error, AckSourceNotificationConfigurationAsyncCallback callback) {
return delegate_->ackSourceNotificationConfigurationAsync(handle, error, callback);
}
template <typename ... _AttributeExtensions>
-void RoutingInterfaceProxy<_AttributeExtensions...>::hookSinkNotificationDataChange(const am_gen::am_sinkID_t& sinkID, const am_gen::notificationPayload_s& payload, CommonAPI::CallStatus& callStatus) {
+void RoutingControlObserverProxy<_AttributeExtensions...>::hookSinkNotificationDataChange(const am_sinkID_t& sinkID, const am_NotificationPayload_s& payload, CommonAPI::CallStatus& callStatus) {
delegate_->hookSinkNotificationDataChange(sinkID, payload, callStatus);
}
template <typename ... _AttributeExtensions>
-std::future<CommonAPI::CallStatus> RoutingInterfaceProxy<_AttributeExtensions...>::hookSinkNotificationDataChangeAsync(const am_gen::am_sinkID_t& sinkID, const am_gen::notificationPayload_s& payload, HookSinkNotificationDataChangeAsyncCallback callback) {
+std::future<CommonAPI::CallStatus> RoutingControlObserverProxy<_AttributeExtensions...>::hookSinkNotificationDataChangeAsync(const am_sinkID_t& sinkID, const am_NotificationPayload_s& payload, HookSinkNotificationDataChangeAsyncCallback callback) {
return delegate_->hookSinkNotificationDataChangeAsync(sinkID, payload, callback);
}
template <typename ... _AttributeExtensions>
-void RoutingInterfaceProxy<_AttributeExtensions...>::hookSourceNotificationDataChange(const am_gen::am_sourceID_t& sourceID, const am_gen::notificationPayload_s& payload, CommonAPI::CallStatus& callStatus) {
+void RoutingControlObserverProxy<_AttributeExtensions...>::hookSourceNotificationDataChange(const am_sourceID_t& sourceID, const am_NotificationPayload_s& payload, CommonAPI::CallStatus& callStatus) {
delegate_->hookSourceNotificationDataChange(sourceID, payload, callStatus);
}
template <typename ... _AttributeExtensions>
-std::future<CommonAPI::CallStatus> RoutingInterfaceProxy<_AttributeExtensions...>::hookSourceNotificationDataChangeAsync(const am_gen::am_sourceID_t& sourceID, const am_gen::notificationPayload_s& payload, HookSourceNotificationDataChangeAsyncCallback callback) {
+std::future<CommonAPI::CallStatus> RoutingControlObserverProxy<_AttributeExtensions...>::hookSourceNotificationDataChangeAsync(const am_sourceID_t& sourceID, const am_NotificationPayload_s& payload, HookSourceNotificationDataChangeAsyncCallback callback) {
return delegate_->hookSourceNotificationDataChangeAsync(sourceID, payload, callback);
}
template <typename ... _AttributeExtensions>
-void RoutingInterfaceProxy<_AttributeExtensions...>::getRoutingReadyState(CommonAPI::CallStatus& callStatus, bool& readyState) {
- delegate_->getRoutingReadyState(callStatus, readyState);
+void RoutingControlObserverProxy<_AttributeExtensions...>::confirmRoutingRundown(const std::string& domainName, CommonAPI::CallStatus& callStatus) {
+ delegate_->confirmRoutingRundown(domainName, callStatus);
}
template <typename ... _AttributeExtensions>
-std::future<CommonAPI::CallStatus> RoutingInterfaceProxy<_AttributeExtensions...>::getRoutingReadyStateAsync(GetRoutingReadyStateAsyncCallback callback) {
- return delegate_->getRoutingReadyStateAsync(callback);
+std::future<CommonAPI::CallStatus> RoutingControlObserverProxy<_AttributeExtensions...>::confirmRoutingRundownAsync(const std::string& domainName, ConfirmRoutingRundownAsyncCallback callback) {
+ return delegate_->confirmRoutingRundownAsync(domainName, callback);
}
template <typename ... _AttributeExtensions>
-std::string RoutingInterfaceProxy<_AttributeExtensions...>::getAddress() const {
+std::string RoutingControlObserverProxy<_AttributeExtensions...>::getAddress() const {
return delegate_->getAddress();
}
template <typename ... _AttributeExtensions>
-const std::string& RoutingInterfaceProxy<_AttributeExtensions...>::getDomain() const {
+const std::string& RoutingControlObserverProxy<_AttributeExtensions...>::getDomain() const {
return delegate_->getDomain();
}
template <typename ... _AttributeExtensions>
-const std::string& RoutingInterfaceProxy<_AttributeExtensions...>::getServiceId() const {
+const std::string& RoutingControlObserverProxy<_AttributeExtensions...>::getServiceId() const {
return delegate_->getServiceId();
}
template <typename ... _AttributeExtensions>
-const std::string& RoutingInterfaceProxy<_AttributeExtensions...>::getInstanceId() const {
+const std::string& RoutingControlObserverProxy<_AttributeExtensions...>::getInstanceId() const {
return delegate_->getInstanceId();
}
template <typename ... _AttributeExtensions>
-bool RoutingInterfaceProxy<_AttributeExtensions...>::isAvailable() const {
+bool RoutingControlObserverProxy<_AttributeExtensions...>::isAvailable() const {
return delegate_->isAvailable();
}
template <typename ... _AttributeExtensions>
-CommonAPI::ProxyStatusEvent& RoutingInterfaceProxy<_AttributeExtensions...>::getProxyStatusEvent() {
+CommonAPI::ProxyStatusEvent& RoutingControlObserverProxy<_AttributeExtensions...>::getProxyStatusEvent() {
return delegate_->getProxyStatusEvent();
}
template <typename ... _AttributeExtensions>
-CommonAPI::InterfaceVersionAttribute& RoutingInterfaceProxy<_AttributeExtensions...>::getInterfaceVersionAttribute() {
+CommonAPI::InterfaceVersionAttribute& RoutingControlObserverProxy<_AttributeExtensions...>::getInterfaceVersionAttribute() {
return delegate_->getInterfaceVersionAttribute();
}
-} // namespace audiomanager
+} // namespace am
} // namespace genivi
} // namespace org
+namespace CommonAPI {
+template<template<typename > class _AttributeExtension>
+struct DefaultAttributeProxyFactoryHelper<org::genivi::am::RoutingControlObserverProxy,
+ _AttributeExtension> {
+ typedef typename org::genivi::am::RoutingControlObserverProxy<
+ org::genivi::am::RoutingControlObserverExtensions::RoutingReadyAttributeExtension<_AttributeExtension>
+ > class_t;
+};
+}
-#endif // ORG_GENIVI_AUDIOMANAGER_Routing_Interface_PROXY_H_
+#endif // ORG_GENIVI_AM_Routing_Control_Observer_PROXY_H_
diff --git a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlObserverProxyBase.h b/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlObserverProxyBase.h
new file mode 100644
index 0000000..de76001
--- /dev/null
+++ b/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlObserverProxyBase.h
@@ -0,0 +1,221 @@
+ /*
+ * This file was generated by the CommonAPI Generators.
+ *
+ * Copyright (C) 2013, BMW AG
+ *
+ * \author Christian Linke, christian.linke@bmw.de BMW 2012,2013
+ */
+ #ifndef ORG_GENIVI_AM_Routing_Control_Observer_PROXY_BASE_H_
+ #define ORG_GENIVI_AM_Routing_Control_Observer_PROXY_BASE_H_
+
+ #include "RoutingControlObserver.h"
+
+
+ #include <org/genivi/am.h>
+
+ #define COMMONAPI_INTERNAL_COMPILATION
+
+ #include <CommonAPI/InputStream.h>
+ #include <CommonAPI/OutputStream.h>
+ #include <CommonAPI/SerializableStruct.h>
+ #include <cstdint>
+ #include <string>
+ #include <vector>
+
+ #include <CommonAPI/Attribute.h>
+ #include <CommonAPI/Proxy.h>
+ #include <functional>
+ #include <future>
+
+ #undef COMMONAPI_INTERNAL_COMPILATION
+
+ namespace org {
+ namespace genivi {
+ namespace am {
+
+ class RoutingControlObserverProxyBase: virtual public CommonAPI::Proxy {
+ public:
+ typedef CommonAPI::ObservableAttribute<am_RoutingReady_e> RoutingReadyAttribute;
+ typedef std::function<void(const CommonAPI::CallStatus&)> AckConnectAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&)> AckDisconnectAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&)> AckSetSinkVolumeChangeAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&)> AckSetSourceVolumeChangeAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&)> AckSetSourceStateAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&)> AckSetSinkSoundPropertiesAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&)> AckSetSinkSoundPropertyAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&)> AckSetSourceSoundPropertiesAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&)> AckSetSourceSoundPropertyAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&)> AckCrossFadingAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&)> AckSourceVolumeTickAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&)> AckSinkVolumeTickAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&, const am_domainID_t&, const am_Error_e&)> PeekDomainAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&, const am_domainID_t&, const am_Error_e&)> RegisterDomainAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&, const am_Error_e&)> DeregisterDomainAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&, const am_gatewayID_t&, const am_Error_e&)> RegisterGatewayAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&, const am_Error_e&)> DeregisterGatewayAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&, const am_sinkID_t&, const am_Error_e&)> PeekSinkAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&, const am_sinkID_t&, const am_Error_e&)> RegisterSinkAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&, const am_Error_e&)> DeregisterSinkAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&, const am_sourceID_t&, const am_Error_e&)> PeekSourceAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&, const am_sourceID_t&, const am_Error_e&)> RegisterSourceAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&, const am_Error_e&)> DeregisterSourceAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&, const am_crossfaderID_t&, const am_Error_e&)> RegisterCrossfaderAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&, const am_Error_e&)> DeregisterCrossfaderAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&, const am_sourceClass_t&, const am_Error_e&)> PeekSourceClassIDAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&, const am_sinkClass_t&, const am_Error_e&)> PeekSinkClassIDAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&)> HookInterruptStatusChangeAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&)> HookDomainRegistrationCompleteAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&)> HookSinkAvailablityStatusChangeAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&)> HookSourceAvailablityStatusChangeAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&)> HookDomainStateChangeAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&)> HookTimingInformationChangedAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&)> SendChangedDataAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&, const am_Error_e&)> UpdateGatewayAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&, const am_Error_e&)> UpdateSinkAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&, const am_Error_e&)> UpdateSourceAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&)> AckSetVolumesAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&)> AckSinkNotificationConfigurationAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&)> AckSourceNotificationConfigurationAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&)> HookSinkNotificationDataChangeAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&)> HookSourceNotificationDataChangeAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&)> ConfirmRoutingRundownAsyncCallback;
+
+ virtual RoutingReadyAttribute& getRoutingReadyAttribute() = 0;
+
+
+
+ virtual void ackConnect(const am_Handle_s& handle, const am_connectionID_t& connectionID, const am_Error_e& error, CommonAPI::CallStatus& callStatus) = 0;
+ virtual std::future<CommonAPI::CallStatus> ackConnectAsync(const am_Handle_s& handle, const am_connectionID_t& connectionID, const am_Error_e& error, AckConnectAsyncCallback callback) = 0;
+
+ virtual void ackDisconnect(const am_Handle_s& handle, const am_connectionID_t& connectionID, const am_Error_e& error, CommonAPI::CallStatus& callStatus) = 0;
+ virtual std::future<CommonAPI::CallStatus> ackDisconnectAsync(const am_Handle_s& handle, const am_connectionID_t& connectionID, const am_Error_e& error, AckDisconnectAsyncCallback callback) = 0;
+
+ virtual void ackSetSinkVolumeChange(const am_Handle_s& handle, const am_volume_t& volume, const am_Error_e& error, CommonAPI::CallStatus& callStatus) = 0;
+ virtual std::future<CommonAPI::CallStatus> ackSetSinkVolumeChangeAsync(const am_Handle_s& handle, const am_volume_t& volume, const am_Error_e& error, AckSetSinkVolumeChangeAsyncCallback callback) = 0;
+
+ virtual void ackSetSourceVolumeChange(const am_Handle_s& handle, const am_volume_t& volume, const am_Error_e& error, CommonAPI::CallStatus& callStatus) = 0;
+ virtual std::future<CommonAPI::CallStatus> ackSetSourceVolumeChangeAsync(const am_Handle_s& handle, const am_volume_t& volume, const am_Error_e& error, AckSetSourceVolumeChangeAsyncCallback callback) = 0;
+
+ virtual void ackSetSourceState(const am_Handle_s& handle, const am_Error_e& error, CommonAPI::CallStatus& callStatus) = 0;
+ virtual std::future<CommonAPI::CallStatus> ackSetSourceStateAsync(const am_Handle_s& handle, const am_Error_e& error, AckSetSourceStateAsyncCallback callback) = 0;
+
+ virtual void ackSetSinkSoundProperties(const am_Handle_s& handle, const am_Error_e& error, CommonAPI::CallStatus& callStatus) = 0;
+ virtual std::future<CommonAPI::CallStatus> ackSetSinkSoundPropertiesAsync(const am_Handle_s& handle, const am_Error_e& error, AckSetSinkSoundPropertiesAsyncCallback callback) = 0;
+
+ virtual void ackSetSinkSoundProperty(const am_Handle_s& handle, const am_Error_e& error, CommonAPI::CallStatus& callStatus) = 0;
+ virtual std::future<CommonAPI::CallStatus> ackSetSinkSoundPropertyAsync(const am_Handle_s& handle, const am_Error_e& error, AckSetSinkSoundPropertyAsyncCallback callback) = 0;
+
+ virtual void ackSetSourceSoundProperties(const am_Handle_s& handle, const am_Error_e& error, CommonAPI::CallStatus& callStatus) = 0;
+ virtual std::future<CommonAPI::CallStatus> ackSetSourceSoundPropertiesAsync(const am_Handle_s& handle, const am_Error_e& error, AckSetSourceSoundPropertiesAsyncCallback callback) = 0;
+
+ virtual void ackSetSourceSoundProperty(const am_Handle_s& handle, const am_Error_e& error, CommonAPI::CallStatus& callStatus) = 0;
+ virtual std::future<CommonAPI::CallStatus> ackSetSourceSoundPropertyAsync(const am_Handle_s& handle, const am_Error_e& error, AckSetSourceSoundPropertyAsyncCallback callback) = 0;
+
+ virtual void ackCrossFading(const am_Handle_s& handle, const am_HotSink_e& hotSink, const am_Error_e& error, CommonAPI::CallStatus& callStatus) = 0;
+ virtual std::future<CommonAPI::CallStatus> ackCrossFadingAsync(const am_Handle_s& handle, const am_HotSink_e& hotSink, const am_Error_e& error, AckCrossFadingAsyncCallback callback) = 0;
+
+ virtual void ackSourceVolumeTick(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_volume_t& volume, CommonAPI::CallStatus& callStatus) = 0;
+ virtual std::future<CommonAPI::CallStatus> ackSourceVolumeTickAsync(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_volume_t& volume, AckSourceVolumeTickAsyncCallback callback) = 0;
+
+ virtual void ackSinkVolumeTick(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_volume_t& volume, CommonAPI::CallStatus& callStatus) = 0;
+ virtual std::future<CommonAPI::CallStatus> ackSinkVolumeTickAsync(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_volume_t& volume, AckSinkVolumeTickAsyncCallback callback) = 0;
+
+ virtual void peekDomain(const std::string& name, CommonAPI::CallStatus& callStatus, am_domainID_t& domainID, am_Error_e& error) = 0;
+ virtual std::future<CommonAPI::CallStatus> peekDomainAsync(const std::string& name, PeekDomainAsyncCallback callback) = 0;
+
+ virtual void registerDomain(const am_Domain_s& domainData, const std::string& returnInterface, const std::string& returnPath, const std::string& returnBusname, CommonAPI::CallStatus& callStatus, am_domainID_t& domainID, am_Error_e& error) = 0;
+ virtual std::future<CommonAPI::CallStatus> registerDomainAsync(const am_Domain_s& domainData, const std::string& returnInterface, const std::string& returnPath, const std::string& returnBusname, RegisterDomainAsyncCallback callback) = 0;
+
+ virtual void deregisterDomain(const am_domainID_t& domainID, CommonAPI::CallStatus& callStatus, am_Error_e& error) = 0;
+ virtual std::future<CommonAPI::CallStatus> deregisterDomainAsync(const am_domainID_t& domainID, DeregisterDomainAsyncCallback callback) = 0;
+
+ virtual void registerGateway(const am_Gateway_s& gatewayData, CommonAPI::CallStatus& callStatus, am_gatewayID_t& gatewayID, am_Error_e& error) = 0;
+ virtual std::future<CommonAPI::CallStatus> registerGatewayAsync(const am_Gateway_s& gatewayData, RegisterGatewayAsyncCallback callback) = 0;
+
+ virtual void deregisterGateway(const am_gatewayID_t& gatewayID, CommonAPI::CallStatus& callStatus, am_Error_e& error) = 0;
+ virtual std::future<CommonAPI::CallStatus> deregisterGatewayAsync(const am_gatewayID_t& gatewayID, DeregisterGatewayAsyncCallback callback) = 0;
+
+ virtual void peekSink(const std::string& name, CommonAPI::CallStatus& callStatus, am_sinkID_t& sinkID, am_Error_e& error) = 0;
+ virtual std::future<CommonAPI::CallStatus> peekSinkAsync(const std::string& name, PeekSinkAsyncCallback callback) = 0;
+
+ virtual void registerSink(const am_Sink_s& sinkData, CommonAPI::CallStatus& callStatus, am_sinkID_t& sinkID, am_Error_e& error) = 0;
+ virtual std::future<CommonAPI::CallStatus> registerSinkAsync(const am_Sink_s& sinkData, RegisterSinkAsyncCallback callback) = 0;
+
+ virtual void deregisterSink(const am_sinkID_t& sinkID, CommonAPI::CallStatus& callStatus, am_Error_e& error) = 0;
+ virtual std::future<CommonAPI::CallStatus> deregisterSinkAsync(const am_sinkID_t& sinkID, DeregisterSinkAsyncCallback callback) = 0;
+
+ virtual void peekSource(const std::string& name, CommonAPI::CallStatus& callStatus, am_sourceID_t& sourceID, am_Error_e& error) = 0;
+ virtual std::future<CommonAPI::CallStatus> peekSourceAsync(const std::string& name, PeekSourceAsyncCallback callback) = 0;
+
+ virtual void registerSource(const am_Source_s& sourceData, CommonAPI::CallStatus& callStatus, am_sourceID_t& sourceID, am_Error_e& error) = 0;
+ virtual std::future<CommonAPI::CallStatus> registerSourceAsync(const am_Source_s& sourceData, RegisterSourceAsyncCallback callback) = 0;
+
+ virtual void deregisterSource(const am_sourceID_t& sourceID, CommonAPI::CallStatus& callStatus, am_Error_e& error) = 0;
+ virtual std::future<CommonAPI::CallStatus> deregisterSourceAsync(const am_sourceID_t& sourceID, DeregisterSourceAsyncCallback callback) = 0;
+
+ virtual void registerCrossfader(const am_Crossfader_s& crossfaderData, CommonAPI::CallStatus& callStatus, am_crossfaderID_t& crossfaderID, am_Error_e& error) = 0;
+ virtual std::future<CommonAPI::CallStatus> registerCrossfaderAsync(const am_Crossfader_s& crossfaderData, RegisterCrossfaderAsyncCallback callback) = 0;
+
+ virtual void deregisterCrossfader(const am_crossfaderID_t& crossfaderID, CommonAPI::CallStatus& callStatus, am_Error_e& error) = 0;
+ virtual std::future<CommonAPI::CallStatus> deregisterCrossfaderAsync(const am_crossfaderID_t& crossfaderID, DeregisterCrossfaderAsyncCallback callback) = 0;
+
+ virtual void peekSourceClassID(const std::string& name, CommonAPI::CallStatus& callStatus, am_sourceClass_t& sourceClassID, am_Error_e& error) = 0;
+ virtual std::future<CommonAPI::CallStatus> peekSourceClassIDAsync(const std::string& name, PeekSourceClassIDAsyncCallback callback) = 0;
+
+ virtual void peekSinkClassID(const std::string& name, CommonAPI::CallStatus& callStatus, am_sinkClass_t& sinkClassID, am_Error_e& error) = 0;
+ virtual std::future<CommonAPI::CallStatus> peekSinkClassIDAsync(const std::string& name, PeekSinkClassIDAsyncCallback callback) = 0;
+
+ virtual void hookInterruptStatusChange(const am_sourceID_t& sourceID, const am_InterruptState_e& interruptState, CommonAPI::CallStatus& callStatus) = 0;
+ virtual std::future<CommonAPI::CallStatus> hookInterruptStatusChangeAsync(const am_sourceID_t& sourceID, const am_InterruptState_e& interruptState, HookInterruptStatusChangeAsyncCallback callback) = 0;
+
+ virtual void hookDomainRegistrationComplete(const am_domainID_t& domainID, CommonAPI::CallStatus& callStatus) = 0;
+ virtual std::future<CommonAPI::CallStatus> hookDomainRegistrationCompleteAsync(const am_domainID_t& domainID, HookDomainRegistrationCompleteAsyncCallback callback) = 0;
+
+ virtual void hookSinkAvailablityStatusChange(const am_sinkID_t& sinkID, const am_Availability_s& availability, CommonAPI::CallStatus& callStatus) = 0;
+ virtual std::future<CommonAPI::CallStatus> hookSinkAvailablityStatusChangeAsync(const am_sinkID_t& sinkID, const am_Availability_s& availability, HookSinkAvailablityStatusChangeAsyncCallback callback) = 0;
+
+ virtual void hookSourceAvailablityStatusChange(const am_sourceID_t& sourceID, const am_Availability_s& availability, CommonAPI::CallStatus& callStatus) = 0;
+ virtual std::future<CommonAPI::CallStatus> hookSourceAvailablityStatusChangeAsync(const am_sourceID_t& sourceID, const am_Availability_s& availability, HookSourceAvailablityStatusChangeAsyncCallback callback) = 0;
+
+ virtual void hookDomainStateChange(const am_domainID_t& domainID, const am_DomainState_e& domainState, CommonAPI::CallStatus& callStatus) = 0;
+ virtual std::future<CommonAPI::CallStatus> hookDomainStateChangeAsync(const am_domainID_t& domainID, const am_DomainState_e& domainState, HookDomainStateChangeAsyncCallback callback) = 0;
+
+ virtual void hookTimingInformationChanged(const am_connectionID_t& connectionID, const am_timeSync_t& delay, CommonAPI::CallStatus& callStatus) = 0;
+ virtual std::future<CommonAPI::CallStatus> hookTimingInformationChangedAsync(const am_connectionID_t& connectionID, const am_timeSync_t& delay, HookTimingInformationChangedAsyncCallback callback) = 0;
+
+ virtual void sendChangedData(const am_EarlyData_L& earlyData, CommonAPI::CallStatus& callStatus) = 0;
+ virtual std::future<CommonAPI::CallStatus> sendChangedDataAsync(const am_EarlyData_L& earlyData, SendChangedDataAsyncCallback callback) = 0;
+
+ virtual void updateGateway(const am_gatewayID_t& gatewayID, const am_ConnectionFormat_L& listSourceFormats, const am_ConnectionFormat_L& listSinkFormats, const am_Convertion_L& convertionMatrix, CommonAPI::CallStatus& callStatus, am_Error_e& error) = 0;
+ virtual std::future<CommonAPI::CallStatus> updateGatewayAsync(const am_gatewayID_t& gatewayID, const am_ConnectionFormat_L& listSourceFormats, const am_ConnectionFormat_L& listSinkFormats, const am_Convertion_L& convertionMatrix, UpdateGatewayAsyncCallback callback) = 0;
+
+ virtual void updateSink(const am_sinkID_t& sinkID, const am_sinkClass_t& sinkClassID, const am_SoundProperty_L& listSoundProperties, const am_ConnectionFormat_L& listConnectionFormats, const am_MainSoundProperty_L& listMainSoundProperties, CommonAPI::CallStatus& callStatus, am_Error_e& error) = 0;
+ virtual std::future<CommonAPI::CallStatus> updateSinkAsync(const am_sinkID_t& sinkID, const am_sinkClass_t& sinkClassID, const am_SoundProperty_L& listSoundProperties, const am_ConnectionFormat_L& listConnectionFormats, const am_MainSoundProperty_L& listMainSoundProperties, UpdateSinkAsyncCallback callback) = 0;
+
+ virtual void updateSource(const am_sourceID_t& sourceID, const am_sourceClass_t& sourceClassID, const am_SoundProperty_L& listSoundProperties, const am_ConnectionFormat_L& listConnectionFormats, const am_MainSoundProperty_L& listMainSoundProperties, CommonAPI::CallStatus& callStatus, am_Error_e& error) = 0;
+ virtual std::future<CommonAPI::CallStatus> updateSourceAsync(const am_sourceID_t& sourceID, const am_sourceClass_t& sourceClassID, const am_SoundProperty_L& listSoundProperties, const am_ConnectionFormat_L& listConnectionFormats, const am_MainSoundProperty_L& listMainSoundProperties, UpdateSourceAsyncCallback callback) = 0;
+
+ virtual void ackSetVolumes(const am_Handle_s& handle, const am_Volumes_L& listvolumes, const am_Error_e& error, CommonAPI::CallStatus& callStatus) = 0;
+ virtual std::future<CommonAPI::CallStatus> ackSetVolumesAsync(const am_Handle_s& handle, const am_Volumes_L& listvolumes, const am_Error_e& error, AckSetVolumesAsyncCallback callback) = 0;
+
+ virtual void ackSinkNotificationConfiguration(const am_Handle_s& handle, const am_Error_e& error, CommonAPI::CallStatus& callStatus) = 0;
+ virtual std::future<CommonAPI::CallStatus> ackSinkNotificationConfigurationAsync(const am_Handle_s& handle, const am_Error_e& error, AckSinkNotificationConfigurationAsyncCallback callback) = 0;
+
+ virtual void ackSourceNotificationConfiguration(const am_Handle_s& handle, const am_Error_e& error, CommonAPI::CallStatus& callStatus) = 0;
+ virtual std::future<CommonAPI::CallStatus> ackSourceNotificationConfigurationAsync(const am_Handle_s& handle, const am_Error_e& error, AckSourceNotificationConfigurationAsyncCallback callback) = 0;
+
+ virtual void hookSinkNotificationDataChange(const am_sinkID_t& sinkID, const am_NotificationPayload_s& payload, CommonAPI::CallStatus& callStatus) = 0;
+ virtual std::future<CommonAPI::CallStatus> hookSinkNotificationDataChangeAsync(const am_sinkID_t& sinkID, const am_NotificationPayload_s& payload, HookSinkNotificationDataChangeAsyncCallback callback) = 0;
+
+ virtual void hookSourceNotificationDataChange(const am_sourceID_t& sourceID, const am_NotificationPayload_s& payload, CommonAPI::CallStatus& callStatus) = 0;
+ virtual std::future<CommonAPI::CallStatus> hookSourceNotificationDataChangeAsync(const am_sourceID_t& sourceID, const am_NotificationPayload_s& payload, HookSourceNotificationDataChangeAsyncCallback callback) = 0;
+
+ virtual void confirmRoutingRundown(const std::string& domainName, CommonAPI::CallStatus& callStatus) = 0;
+ virtual std::future<CommonAPI::CallStatus> confirmRoutingRundownAsync(const std::string& domainName, ConfirmRoutingRundownAsyncCallback callback) = 0;
+ };
+
+ } // namespace am
+ } // namespace genivi
+ } // namespace org
+
+ #endif // ORG_GENIVI_AM_Routing_Control_Observer_PROXY_BASE_H_
diff --git a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlObserverStub.h b/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlObserverStub.h
new file mode 100644
index 0000000..803fa59
--- /dev/null
+++ b/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlObserverStub.h
@@ -0,0 +1,178 @@
+/*
+* This file was generated by the CommonAPI Generators.
+*
+ * Copyright (C) 2013, BMW AG
+ *
+ * \author Christian Linke, christian.linke@bmw.de BMW 2012,2013
+*/
+#ifndef ORG_GENIVI_AM_Routing_Control_Observer_STUB_H_
+#define ORG_GENIVI_AM_Routing_Control_Observer_STUB_H_
+
+
+
+#include <org/genivi/am.h>
+
+#include "RoutingControlObserver.h"
+
+#define COMMONAPI_INTERNAL_COMPILATION
+
+#include <CommonAPI/InputStream.h>
+#include <CommonAPI/OutputStream.h>
+#include <CommonAPI/SerializableStruct.h>
+#include <cstdint>
+#include <string>
+#include <vector>
+
+#include <CommonAPI/Stub.h>
+
+#undef COMMONAPI_INTERNAL_COMPILATION
+
+namespace org {
+namespace genivi {
+namespace am {
+
+/**
+ * Receives messages from remote and handles all dispatching of deserialized calls
+ * to a stub for the service RoutingControlObserver. Also provides means to send broadcasts
+ * and attribute-changed-notifications of observable attributes as defined by this service.
+ * An application developer should not need to bother with this class.
+ */
+class RoutingControlObserverStubAdapter: virtual public CommonAPI::StubAdapter, public RoutingControlObserver {
+ public:
+ ///Notifies all remote listeners about a change of value of the attribute RoutingReady.
+ virtual void fireRoutingReadyAttributeChanged(const am_RoutingReady_e& RoutingReady) = 0;
+
+};
+
+
+/**
+ * Defines the necessary callbacks to handle remote set events related to the attributes
+ * defined in the IDL description for RoutingControlObserver.
+ * For each attribute two callbacks are defined:
+ * - a verification callback that allows to verify the requested value and to prevent setting
+ * e.g. an invalid value ("onRemoteSet<AttributeName>").
+ * - an action callback to do local work after the attribute value has been changed
+ * ("onRemote<AttributeName>Changed").
+ *
+ * This class and the one below are the ones an application developer needs to have
+ * a look at if he wants to implement a service.
+ */
+class RoutingControlObserverStubRemoteEvent {
+ public:
+ virtual ~RoutingControlObserverStubRemoteEvent() { }
+
+ /// Verification callback for remote set requests on the attribute RoutingReady.
+ virtual bool onRemoteSetRoutingReadyAttribute(am_RoutingReady_e RoutingReady) = 0;
+ /// Action callback for remote set requests on the attribute RoutingReady.
+ virtual void onRemoteRoutingReadyAttributeChanged() = 0;
+
+};
+
+
+/**
+ * Defines the interface that must be implemented by any class that should provide
+ * the service RoutingControlObserver to remote clients.
+ * This class and the one above are the ones an application developer needs to have
+ * a look at if he wants to implement a service.
+ */
+class RoutingControlObserverStub : public CommonAPI::Stub<RoutingControlObserverStubAdapter , RoutingControlObserverStubRemoteEvent> {
+ public:
+ virtual ~RoutingControlObserverStub() { }
+
+ /// Provides getter access to the attribute RoutingReady.
+ virtual const am_RoutingReady_e& getRoutingReadyAttribute() = 0;
+
+ /// This is the method that will be called on remote calls on the method ackConnect.
+ virtual void ackConnect(am_Handle_s handle, am_connectionID_t connectionID, am_Error_e error) = 0;
+ /// This is the method that will be called on remote calls on the method ackDisconnect.
+ virtual void ackDisconnect(am_Handle_s handle, am_connectionID_t connectionID, am_Error_e error) = 0;
+ /// This is the method that will be called on remote calls on the method ackSetSinkVolumeChange.
+ virtual void ackSetSinkVolumeChange(am_Handle_s handle, am_volume_t volume, am_Error_e error) = 0;
+ /// This is the method that will be called on remote calls on the method ackSetSourceVolumeChange.
+ virtual void ackSetSourceVolumeChange(am_Handle_s handle, am_volume_t volume, am_Error_e error) = 0;
+ /// This is the method that will be called on remote calls on the method ackSetSourceState.
+ virtual void ackSetSourceState(am_Handle_s handle, am_Error_e error) = 0;
+ /// This is the method that will be called on remote calls on the method ackSetSinkSoundProperties.
+ virtual void ackSetSinkSoundProperties(am_Handle_s handle, am_Error_e error) = 0;
+ /// This is the method that will be called on remote calls on the method ackSetSinkSoundProperty.
+ virtual void ackSetSinkSoundProperty(am_Handle_s handle, am_Error_e error) = 0;
+ /// This is the method that will be called on remote calls on the method ackSetSourceSoundProperties.
+ virtual void ackSetSourceSoundProperties(am_Handle_s handle, am_Error_e error) = 0;
+ /// This is the method that will be called on remote calls on the method ackSetSourceSoundProperty.
+ virtual void ackSetSourceSoundProperty(am_Handle_s handle, am_Error_e error) = 0;
+ /// This is the method that will be called on remote calls on the method ackCrossFading.
+ virtual void ackCrossFading(am_Handle_s handle, am_HotSink_e hotSink, am_Error_e error) = 0;
+ /// This is the method that will be called on remote calls on the method ackSourceVolumeTick.
+ virtual void ackSourceVolumeTick(am_Handle_s handle, am_sourceID_t sourceID, am_volume_t volume) = 0;
+ /// This is the method that will be called on remote calls on the method ackSinkVolumeTick.
+ virtual void ackSinkVolumeTick(am_Handle_s handle, am_sinkID_t sinkID, am_volume_t volume) = 0;
+ /// This is the method that will be called on remote calls on the method peekDomain.
+ virtual void peekDomain(std::string name, am_domainID_t& domainID, am_Error_e& error) = 0;
+ /// This is the method that will be called on remote calls on the method registerDomain.
+ virtual void registerDomain(am_Domain_s domainData, std::string returnInterface, std::string returnPath, std::string returnBusname, am_domainID_t& domainID, am_Error_e& error) = 0;
+ /// This is the method that will be called on remote calls on the method deregisterDomain.
+ virtual void deregisterDomain(am_domainID_t domainID, am_Error_e& error) = 0;
+ /// This is the method that will be called on remote calls on the method registerGateway.
+ virtual void registerGateway(am_Gateway_s gatewayData, am_gatewayID_t& gatewayID, am_Error_e& error) = 0;
+ /// This is the method that will be called on remote calls on the method deregisterGateway.
+ virtual void deregisterGateway(am_gatewayID_t gatewayID, am_Error_e& error) = 0;
+ /// This is the method that will be called on remote calls on the method peekSink.
+ virtual void peekSink(std::string name, am_sinkID_t& sinkID, am_Error_e& error) = 0;
+ /// This is the method that will be called on remote calls on the method registerSink.
+ virtual void registerSink(am_Sink_s sinkData, am_sinkID_t& sinkID, am_Error_e& error) = 0;
+ /// This is the method that will be called on remote calls on the method deregisterSink.
+ virtual void deregisterSink(am_sinkID_t sinkID, am_Error_e& error) = 0;
+ /// This is the method that will be called on remote calls on the method peekSource.
+ virtual void peekSource(std::string name, am_sourceID_t& sourceID, am_Error_e& error) = 0;
+ /// This is the method that will be called on remote calls on the method registerSource.
+ virtual void registerSource(am_Source_s sourceData, am_sourceID_t& sourceID, am_Error_e& error) = 0;
+ /// This is the method that will be called on remote calls on the method deregisterSource.
+ virtual void deregisterSource(am_sourceID_t sourceID, am_Error_e& error) = 0;
+ /// This is the method that will be called on remote calls on the method registerCrossfader.
+ virtual void registerCrossfader(am_Crossfader_s crossfaderData, am_crossfaderID_t& crossfaderID, am_Error_e& error) = 0;
+ /// This is the method that will be called on remote calls on the method deregisterCrossfader.
+ virtual void deregisterCrossfader(am_crossfaderID_t crossfaderID, am_Error_e& error) = 0;
+ /// This is the method that will be called on remote calls on the method peekSourceClassID.
+ virtual void peekSourceClassID(std::string name, am_sourceClass_t& sourceClassID, am_Error_e& error) = 0;
+ /// This is the method that will be called on remote calls on the method peekSinkClassID.
+ virtual void peekSinkClassID(std::string name, am_sinkClass_t& sinkClassID, am_Error_e& error) = 0;
+ /// This is the method that will be called on remote calls on the method hookInterruptStatusChange.
+ virtual void hookInterruptStatusChange(am_sourceID_t sourceID, am_InterruptState_e interruptState) = 0;
+ /// This is the method that will be called on remote calls on the method hookDomainRegistrationComplete.
+ virtual void hookDomainRegistrationComplete(am_domainID_t domainID) = 0;
+ /// This is the method that will be called on remote calls on the method hookSinkAvailablityStatusChange.
+ virtual void hookSinkAvailablityStatusChange(am_sinkID_t sinkID, am_Availability_s availability) = 0;
+ /// This is the method that will be called on remote calls on the method hookSourceAvailablityStatusChange.
+ virtual void hookSourceAvailablityStatusChange(am_sourceID_t sourceID, am_Availability_s availability) = 0;
+ /// This is the method that will be called on remote calls on the method hookDomainStateChange.
+ virtual void hookDomainStateChange(am_domainID_t domainID, am_DomainState_e domainState) = 0;
+ /// This is the method that will be called on remote calls on the method hookTimingInformationChanged.
+ virtual void hookTimingInformationChanged(am_connectionID_t connectionID, am_timeSync_t delay) = 0;
+ /// This is the method that will be called on remote calls on the method sendChangedData.
+ virtual void sendChangedData(am_EarlyData_L earlyData) = 0;
+ /// This is the method that will be called on remote calls on the method updateGateway.
+ virtual void updateGateway(am_gatewayID_t gatewayID, am_ConnectionFormat_L listSourceFormats, am_ConnectionFormat_L listSinkFormats, am_Convertion_L convertionMatrix, am_Error_e& error) = 0;
+ /// This is the method that will be called on remote calls on the method updateSink.
+ virtual void updateSink(am_sinkID_t sinkID, am_sinkClass_t sinkClassID, am_SoundProperty_L listSoundProperties, am_ConnectionFormat_L listConnectionFormats, am_MainSoundProperty_L listMainSoundProperties, am_Error_e& error) = 0;
+ /// This is the method that will be called on remote calls on the method updateSource.
+ virtual void updateSource(am_sourceID_t sourceID, am_sourceClass_t sourceClassID, am_SoundProperty_L listSoundProperties, am_ConnectionFormat_L listConnectionFormats, am_MainSoundProperty_L listMainSoundProperties, am_Error_e& error) = 0;
+ /// This is the method that will be called on remote calls on the method ackSetVolumes.
+ virtual void ackSetVolumes(am_Handle_s handle, am_Volumes_L listvolumes, am_Error_e error) = 0;
+ /// This is the method that will be called on remote calls on the method ackSinkNotificationConfiguration.
+ virtual void ackSinkNotificationConfiguration(am_Handle_s handle, am_Error_e error) = 0;
+ /// This is the method that will be called on remote calls on the method ackSourceNotificationConfiguration.
+ virtual void ackSourceNotificationConfiguration(am_Handle_s handle, am_Error_e error) = 0;
+ /// This is the method that will be called on remote calls on the method hookSinkNotificationDataChange.
+ virtual void hookSinkNotificationDataChange(am_sinkID_t sinkID, am_NotificationPayload_s payload) = 0;
+ /// This is the method that will be called on remote calls on the method hookSourceNotificationDataChange.
+ virtual void hookSourceNotificationDataChange(am_sourceID_t sourceID, am_NotificationPayload_s payload) = 0;
+ /// This is the method that will be called on remote calls on the method confirmRoutingRundown.
+ virtual void confirmRoutingRundown(std::string domainName) = 0;
+
+};
+
+} // namespace am
+} // namespace genivi
+} // namespace org
+
+#endif // ORG_GENIVI_AM_Routing_Control_Observer_STUB_H_
diff --git a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlObserverStubDefault.cpp b/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlObserverStubDefault.cpp
new file mode 100644
index 0000000..2483387
--- /dev/null
+++ b/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlObserverStubDefault.cpp
@@ -0,0 +1,239 @@
+/*
+* This file was generated by the CommonAPI Generators.
+*
+ * Copyright (C) 2013, BMW AG
+ *
+ * \author Christian Linke, christian.linke@bmw.de BMW 2012,2013
+*/
+#include <org/genivi/am/RoutingControlObserverStubDefault.h>
+
+namespace org {
+namespace genivi {
+namespace am {
+
+RoutingControlObserverStubDefault::RoutingControlObserverStubDefault():
+ remoteEventHandler_(this) {
+}
+
+RoutingControlObserverStubRemoteEvent* RoutingControlObserverStubDefault::initStubAdapter(const std::shared_ptr<RoutingControlObserverStubAdapter>& stubAdapter) {
+ stubAdapter_ = stubAdapter;
+ return &remoteEventHandler_;
+}
+
+const am_RoutingReady_e& RoutingControlObserverStubDefault::getRoutingReadyAttribute() {
+ return routingReadyAttributeValue_;
+}
+
+void RoutingControlObserverStubDefault::setRoutingReadyAttribute(am_RoutingReady_e value) {
+ const bool valueChanged = trySetRoutingReadyAttribute(std::move(value));
+ if (valueChanged)
+ stubAdapter_->fireRoutingReadyAttributeChanged(routingReadyAttributeValue_);
+}
+
+void RoutingControlObserverStubDefault::onRemoteRoutingReadyAttributeChanged() {
+ // No operation in default
+}
+
+bool RoutingControlObserverStubDefault::trySetRoutingReadyAttribute(am_RoutingReady_e value) {
+ if (!validateRoutingReadyAttributeRequestedValue(value))
+ return false;
+
+ const bool valueChanged = (routingReadyAttributeValue_ != value);
+ routingReadyAttributeValue_ = std::move(value);
+ return valueChanged;
+}
+
+bool RoutingControlObserverStubDefault::validateRoutingReadyAttributeRequestedValue(const am_RoutingReady_e& value) {
+ return true;
+}
+
+bool RoutingControlObserverStubDefault::RemoteEventHandler::onRemoteSetRoutingReadyAttribute(am_RoutingReady_e value) {
+ return defaultStub_->trySetRoutingReadyAttribute(std::move(value));
+}
+
+void RoutingControlObserverStubDefault::RemoteEventHandler::onRemoteRoutingReadyAttributeChanged() {
+ defaultStub_->onRemoteRoutingReadyAttributeChanged();
+}
+
+
+void RoutingControlObserverStubDefault::ackConnect(am_Handle_s handle, am_connectionID_t connectionID, am_Error_e error) {
+ // No operation in default
+}
+
+void RoutingControlObserverStubDefault::ackDisconnect(am_Handle_s handle, am_connectionID_t connectionID, am_Error_e error) {
+ // No operation in default
+}
+
+void RoutingControlObserverStubDefault::ackSetSinkVolumeChange(am_Handle_s handle, am_volume_t volume, am_Error_e error) {
+ // No operation in default
+}
+
+void RoutingControlObserverStubDefault::ackSetSourceVolumeChange(am_Handle_s handle, am_volume_t volume, am_Error_e error) {
+ // No operation in default
+}
+
+void RoutingControlObserverStubDefault::ackSetSourceState(am_Handle_s handle, am_Error_e error) {
+ // No operation in default
+}
+
+void RoutingControlObserverStubDefault::ackSetSinkSoundProperties(am_Handle_s handle, am_Error_e error) {
+ // No operation in default
+}
+
+void RoutingControlObserverStubDefault::ackSetSinkSoundProperty(am_Handle_s handle, am_Error_e error) {
+ // No operation in default
+}
+
+void RoutingControlObserverStubDefault::ackSetSourceSoundProperties(am_Handle_s handle, am_Error_e error) {
+ // No operation in default
+}
+
+void RoutingControlObserverStubDefault::ackSetSourceSoundProperty(am_Handle_s handle, am_Error_e error) {
+ // No operation in default
+}
+
+void RoutingControlObserverStubDefault::ackCrossFading(am_Handle_s handle, am_HotSink_e hotSink, am_Error_e error) {
+ // No operation in default
+}
+
+void RoutingControlObserverStubDefault::ackSourceVolumeTick(am_Handle_s handle, am_sourceID_t sourceID, am_volume_t volume) {
+ // No operation in default
+}
+
+void RoutingControlObserverStubDefault::ackSinkVolumeTick(am_Handle_s handle, am_sinkID_t sinkID, am_volume_t volume) {
+ // No operation in default
+}
+
+void RoutingControlObserverStubDefault::peekDomain(std::string name, am_domainID_t& domainID, am_Error_e& error) {
+ // No operation in default
+}
+
+void RoutingControlObserverStubDefault::registerDomain(am_Domain_s domainData, std::string returnInterface, std::string returnPath, std::string returnBusname, am_domainID_t& domainID, am_Error_e& error) {
+ // No operation in default
+}
+
+void RoutingControlObserverStubDefault::deregisterDomain(am_domainID_t domainID, am_Error_e& error) {
+ // No operation in default
+}
+
+void RoutingControlObserverStubDefault::registerGateway(am_Gateway_s gatewayData, am_gatewayID_t& gatewayID, am_Error_e& error) {
+ // No operation in default
+}
+
+void RoutingControlObserverStubDefault::deregisterGateway(am_gatewayID_t gatewayID, am_Error_e& error) {
+ // No operation in default
+}
+
+void RoutingControlObserverStubDefault::peekSink(std::string name, am_sinkID_t& sinkID, am_Error_e& error) {
+ // No operation in default
+}
+
+void RoutingControlObserverStubDefault::registerSink(am_Sink_s sinkData, am_sinkID_t& sinkID, am_Error_e& error) {
+ // No operation in default
+}
+
+void RoutingControlObserverStubDefault::deregisterSink(am_sinkID_t sinkID, am_Error_e& error) {
+ // No operation in default
+}
+
+void RoutingControlObserverStubDefault::peekSource(std::string name, am_sourceID_t& sourceID, am_Error_e& error) {
+ // No operation in default
+}
+
+void RoutingControlObserverStubDefault::registerSource(am_Source_s sourceData, am_sourceID_t& sourceID, am_Error_e& error) {
+ // No operation in default
+}
+
+void RoutingControlObserverStubDefault::deregisterSource(am_sourceID_t sourceID, am_Error_e& error) {
+ // No operation in default
+}
+
+void RoutingControlObserverStubDefault::registerCrossfader(am_Crossfader_s crossfaderData, am_crossfaderID_t& crossfaderID, am_Error_e& error) {
+ // No operation in default
+}
+
+void RoutingControlObserverStubDefault::deregisterCrossfader(am_crossfaderID_t crossfaderID, am_Error_e& error) {
+ // No operation in default
+}
+
+void RoutingControlObserverStubDefault::peekSourceClassID(std::string name, am_sourceClass_t& sourceClassID, am_Error_e& error) {
+ // No operation in default
+}
+
+void RoutingControlObserverStubDefault::peekSinkClassID(std::string name, am_sinkClass_t& sinkClassID, am_Error_e& error) {
+ // No operation in default
+}
+
+void RoutingControlObserverStubDefault::hookInterruptStatusChange(am_sourceID_t sourceID, am_InterruptState_e interruptState) {
+ // No operation in default
+}
+
+void RoutingControlObserverStubDefault::hookDomainRegistrationComplete(am_domainID_t domainID) {
+ // No operation in default
+}
+
+void RoutingControlObserverStubDefault::hookSinkAvailablityStatusChange(am_sinkID_t sinkID, am_Availability_s availability) {
+ // No operation in default
+}
+
+void RoutingControlObserverStubDefault::hookSourceAvailablityStatusChange(am_sourceID_t sourceID, am_Availability_s availability) {
+ // No operation in default
+}
+
+void RoutingControlObserverStubDefault::hookDomainStateChange(am_domainID_t domainID, am_DomainState_e domainState) {
+ // No operation in default
+}
+
+void RoutingControlObserverStubDefault::hookTimingInformationChanged(am_connectionID_t connectionID, am_timeSync_t delay) {
+ // No operation in default
+}
+
+void RoutingControlObserverStubDefault::sendChangedData(am_EarlyData_L earlyData) {
+ // No operation in default
+}
+
+void RoutingControlObserverStubDefault::updateGateway(am_gatewayID_t gatewayID, am_ConnectionFormat_L listSourceFormats, am_ConnectionFormat_L listSinkFormats, am_Convertion_L convertionMatrix, am_Error_e& error) {
+ // No operation in default
+}
+
+void RoutingControlObserverStubDefault::updateSink(am_sinkID_t sinkID, am_sinkClass_t sinkClassID, am_SoundProperty_L listSoundProperties, am_ConnectionFormat_L listConnectionFormats, am_MainSoundProperty_L listMainSoundProperties, am_Error_e& error) {
+ // No operation in default
+}
+
+void RoutingControlObserverStubDefault::updateSource(am_sourceID_t sourceID, am_sourceClass_t sourceClassID, am_SoundProperty_L listSoundProperties, am_ConnectionFormat_L listConnectionFormats, am_MainSoundProperty_L listMainSoundProperties, am_Error_e& error) {
+ // No operation in default
+}
+
+void RoutingControlObserverStubDefault::ackSetVolumes(am_Handle_s handle, am_Volumes_L listvolumes, am_Error_e error) {
+ // No operation in default
+}
+
+void RoutingControlObserverStubDefault::ackSinkNotificationConfiguration(am_Handle_s handle, am_Error_e error) {
+ // No operation in default
+}
+
+void RoutingControlObserverStubDefault::ackSourceNotificationConfiguration(am_Handle_s handle, am_Error_e error) {
+ // No operation in default
+}
+
+void RoutingControlObserverStubDefault::hookSinkNotificationDataChange(am_sinkID_t sinkID, am_NotificationPayload_s payload) {
+ // No operation in default
+}
+
+void RoutingControlObserverStubDefault::hookSourceNotificationDataChange(am_sourceID_t sourceID, am_NotificationPayload_s payload) {
+ // No operation in default
+}
+
+void RoutingControlObserverStubDefault::confirmRoutingRundown(std::string domainName) {
+ // No operation in default
+}
+
+
+
+RoutingControlObserverStubDefault::RemoteEventHandler::RemoteEventHandler(RoutingControlObserverStubDefault* defaultStub):
+ defaultStub_(defaultStub) {
+}
+
+} // namespace am
+} // namespace genivi
+} // namespace org
diff --git a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlObserverStubDefault.h b/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlObserverStubDefault.h
new file mode 100644
index 0000000..5ff81d0
--- /dev/null
+++ b/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlObserverStubDefault.h
@@ -0,0 +1,154 @@
+/*
+* This file was generated by the CommonAPI Generators.
+*
+ * Copyright (C) 2013, BMW AG
+ *
+ * \author Christian Linke, christian.linke@bmw.de BMW 2012,2013
+*/
+#ifndef ORG_GENIVI_AM_Routing_Control_Observer_STUB_DEFAULT_H_
+#define ORG_GENIVI_AM_Routing_Control_Observer_STUB_DEFAULT_H_
+
+#include <org/genivi/am/RoutingControlObserverStub.h>
+
+namespace org {
+namespace genivi {
+namespace am {
+
+/**
+ * Provides a default implementation for RoutingControlObserverStubRemoteEvent and
+ * RoutingControlObserverStub. Method callbacks have an empty implementation,
+ * remote set calls on attributes will always change the value of the attribute
+ * to the one received.
+ *
+ * Override this stub if you only want to provide a subset of the functionality
+ * that would be defined for this service, and/or if you do not need any non-default
+ * behaviour.
+ */
+class RoutingControlObserverStubDefault : public RoutingControlObserverStub {
+ public:
+ RoutingControlObserverStubDefault();
+
+ RoutingControlObserverStubRemoteEvent* initStubAdapter(const std::shared_ptr<RoutingControlObserverStubAdapter>& stubAdapter);
+
+ virtual const am_RoutingReady_e& getRoutingReadyAttribute();
+ virtual void setRoutingReadyAttribute(am_RoutingReady_e value);
+
+
+ virtual void ackConnect(am_Handle_s handle, am_connectionID_t connectionID, am_Error_e error);
+
+ virtual void ackDisconnect(am_Handle_s handle, am_connectionID_t connectionID, am_Error_e error);
+
+ virtual void ackSetSinkVolumeChange(am_Handle_s handle, am_volume_t volume, am_Error_e error);
+
+ virtual void ackSetSourceVolumeChange(am_Handle_s handle, am_volume_t volume, am_Error_e error);
+
+ virtual void ackSetSourceState(am_Handle_s handle, am_Error_e error);
+
+ virtual void ackSetSinkSoundProperties(am_Handle_s handle, am_Error_e error);
+
+ virtual void ackSetSinkSoundProperty(am_Handle_s handle, am_Error_e error);
+
+ virtual void ackSetSourceSoundProperties(am_Handle_s handle, am_Error_e error);
+
+ virtual void ackSetSourceSoundProperty(am_Handle_s handle, am_Error_e error);
+
+ virtual void ackCrossFading(am_Handle_s handle, am_HotSink_e hotSink, am_Error_e error);
+
+ virtual void ackSourceVolumeTick(am_Handle_s handle, am_sourceID_t sourceID, am_volume_t volume);
+
+ virtual void ackSinkVolumeTick(am_Handle_s handle, am_sinkID_t sinkID, am_volume_t volume);
+
+ virtual void peekDomain(std::string name, am_domainID_t& domainID, am_Error_e& error);
+
+ virtual void registerDomain(am_Domain_s domainData, std::string returnInterface, std::string returnPath, std::string returnBusname, am_domainID_t& domainID, am_Error_e& error);
+
+ virtual void deregisterDomain(am_domainID_t domainID, am_Error_e& error);
+
+ virtual void registerGateway(am_Gateway_s gatewayData, am_gatewayID_t& gatewayID, am_Error_e& error);
+
+ virtual void deregisterGateway(am_gatewayID_t gatewayID, am_Error_e& error);
+
+ virtual void peekSink(std::string name, am_sinkID_t& sinkID, am_Error_e& error);
+
+ virtual void registerSink(am_Sink_s sinkData, am_sinkID_t& sinkID, am_Error_e& error);
+
+ virtual void deregisterSink(am_sinkID_t sinkID, am_Error_e& error);
+
+ virtual void peekSource(std::string name, am_sourceID_t& sourceID, am_Error_e& error);
+
+ virtual void registerSource(am_Source_s sourceData, am_sourceID_t& sourceID, am_Error_e& error);
+
+ virtual void deregisterSource(am_sourceID_t sourceID, am_Error_e& error);
+
+ virtual void registerCrossfader(am_Crossfader_s crossfaderData, am_crossfaderID_t& crossfaderID, am_Error_e& error);
+
+ virtual void deregisterCrossfader(am_crossfaderID_t crossfaderID, am_Error_e& error);
+
+ virtual void peekSourceClassID(std::string name, am_sourceClass_t& sourceClassID, am_Error_e& error);
+
+ virtual void peekSinkClassID(std::string name, am_sinkClass_t& sinkClassID, am_Error_e& error);
+
+ virtual void hookInterruptStatusChange(am_sourceID_t sourceID, am_InterruptState_e interruptState);
+
+ virtual void hookDomainRegistrationComplete(am_domainID_t domainID);
+
+ virtual void hookSinkAvailablityStatusChange(am_sinkID_t sinkID, am_Availability_s availability);
+
+ virtual void hookSourceAvailablityStatusChange(am_sourceID_t sourceID, am_Availability_s availability);
+
+ virtual void hookDomainStateChange(am_domainID_t domainID, am_DomainState_e domainState);
+
+ virtual void hookTimingInformationChanged(am_connectionID_t connectionID, am_timeSync_t delay);
+
+ virtual void sendChangedData(am_EarlyData_L earlyData);
+
+ virtual void updateGateway(am_gatewayID_t gatewayID, am_ConnectionFormat_L listSourceFormats, am_ConnectionFormat_L listSinkFormats, am_Convertion_L convertionMatrix, am_Error_e& error);
+
+ virtual void updateSink(am_sinkID_t sinkID, am_sinkClass_t sinkClassID, am_SoundProperty_L listSoundProperties, am_ConnectionFormat_L listConnectionFormats, am_MainSoundProperty_L listMainSoundProperties, am_Error_e& error);
+
+ virtual void updateSource(am_sourceID_t sourceID, am_sourceClass_t sourceClassID, am_SoundProperty_L listSoundProperties, am_ConnectionFormat_L listConnectionFormats, am_MainSoundProperty_L listMainSoundProperties, am_Error_e& error);
+
+ virtual void ackSetVolumes(am_Handle_s handle, am_Volumes_L listvolumes, am_Error_e error);
+
+ virtual void ackSinkNotificationConfiguration(am_Handle_s handle, am_Error_e error);
+
+ virtual void ackSourceNotificationConfiguration(am_Handle_s handle, am_Error_e error);
+
+ virtual void hookSinkNotificationDataChange(am_sinkID_t sinkID, am_NotificationPayload_s payload);
+
+ virtual void hookSourceNotificationDataChange(am_sourceID_t sourceID, am_NotificationPayload_s payload);
+
+ virtual void confirmRoutingRundown(std::string domainName);
+
+
+
+ protected:
+ virtual void onRemoteRoutingReadyAttributeChanged();
+ virtual bool trySetRoutingReadyAttribute(am_RoutingReady_e value);
+ virtual bool validateRoutingReadyAttributeRequestedValue(const am_RoutingReady_e& value);
+
+
+ private:
+ class RemoteEventHandler: public RoutingControlObserverStubRemoteEvent {
+ public:
+ RemoteEventHandler(RoutingControlObserverStubDefault* defaultStub);
+
+ virtual bool onRemoteSetRoutingReadyAttribute(am_RoutingReady_e value);
+ virtual void onRemoteRoutingReadyAttributeChanged();
+
+
+ private:
+ RoutingControlObserverStubDefault* defaultStub_;
+ };
+
+ RemoteEventHandler remoteEventHandler_;
+ std::shared_ptr<RoutingControlObserverStubAdapter> stubAdapter_;
+
+ am_RoutingReady_e routingReadyAttributeValue_;
+};
+
+} // namespace am
+} // namespace genivi
+} // namespace org
+
+#endif // ORG_GENIVI_AM_Routing_Control_Observer_STUB_DEFAULT_H_
diff --git a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/audiomanager/RoutingSenderProxy.h b/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlProxy.h
index b58f31a..817567f 100644
--- a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/audiomanager/RoutingSenderProxy.h
+++ b/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlProxy.h
@@ -1,25 +1,14 @@
/*
* This file was generated by the CommonAPI Generators.
*
- * Copyright (c) 2012 BMW
+ * Copyright (C) 2013, BMW AG
*
- * \author Aleksandar Donchev, aleksander.donchev@partner.bmw.de BMW 2013
- *
- * \copyright
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction,
- * including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
- * subject to the following conditions:
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
- * THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- *
- * For further information see http://www.genivi.org/.
+ * \author Christian Linke, christian.linke@bmw.de BMW 2012,2013
*/
-#ifndef ORG_GENIVI_AUDIOMANAGER_Routing_Sender_PROXY_H_
-#define ORG_GENIVI_AUDIOMANAGER_Routing_Sender_PROXY_H_
+#ifndef ORG_GENIVI_AM_Routing_Control_PROXY_H_
+#define ORG_GENIVI_AM_Routing_Control_PROXY_H_
-#include "RoutingSenderProxyBase.h"
+#include "RoutingControlProxyBase.h"
#define COMMONAPI_INTERNAL_COMPILATION
@@ -28,19 +17,19 @@
namespace org {
namespace genivi {
-namespace audiomanager {
+namespace am {
template <typename ... _AttributeExtensions>
-class RoutingSenderProxy: virtual public RoutingSender, virtual public RoutingSenderProxyBase, public _AttributeExtensions... {
+class RoutingControlProxy: virtual public RoutingControl, virtual public RoutingControlProxyBase, public _AttributeExtensions... {
public:
- RoutingSenderProxy(std::shared_ptr<CommonAPI::Proxy> delegate);
- ~RoutingSenderProxy();
+ RoutingControlProxy(std::shared_ptr<CommonAPI::Proxy> delegate);
+ ~RoutingControlProxy();
/**
- * Calls asyncSetSourceState with synchronous semantics.
+ * Calls asyncAbort with synchronous semantics.
*
* All const parameters are input parameters to this method.
* The CallStatus will be filled when the method returns and indicate either
@@ -48,9 +37,9 @@ class RoutingSenderProxy: virtual public RoutingSender, virtual public RoutingSe
* will be set.
* Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
*/
- virtual void asyncSetSourceState(const uint16_t& handle, const am_gen::am_sourceID_t& sourceID, const am_gen::am_SourceState_e& sourceState, CommonAPI::CallStatus& callStatus);
+ virtual void asyncAbort(const am_Handle_s& handle, CommonAPI::CallStatus& callStatus);
/**
- * Calls asyncSetSourceState with asynchronous semantics.
+ * Calls asyncAbort with asynchronous semantics.
*
* The provided callback will be called when the reply to this call arrives or
* an error occurs during the call. The CallStatus will indicate either "SUCCESS"
@@ -59,21 +48,20 @@ class RoutingSenderProxy: virtual public RoutingSender, virtual public RoutingSe
* The std::future returned by this method will be fulfilled at arrival of the reply.
* It will provide the same value for CallStatus as will be handed to the callback.
*/
- virtual std::future<CommonAPI::CallStatus> asyncSetSourceStateAsync(const uint16_t& handle, const am_gen::am_sourceID_t& sourceID, const am_gen::am_SourceState_e& sourceState, AsyncSetSourceStateAsyncCallback callback);
+ virtual std::future<CommonAPI::CallStatus> asyncAbortAsync(const am_Handle_s& handle, AsyncAbortAsyncCallback callback);
/**
- * Calls setDomainState with synchronous semantics.
+ * Calls asyncConnect with synchronous semantics.
*
* All const parameters are input parameters to this method.
- * All non-const parameters will be filled with the returned values.
* The CallStatus will be filled when the method returns and indicate either
* "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus
* will be set.
* Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
*/
- virtual void setDomainState(const am_gen::am_domainID_t& domainID, const am_gen::am_DomainState_e& domainState, CommonAPI::CallStatus& callStatus, am_gen::am_Error_e& error);
+ virtual void asyncConnect(const am_Handle_s& handle, const am_connectionID_t& connectionID, const am_sourceID_t& sourceID, const am_sinkID_t& sinkID, const am_ConnectionFormat_pe& connectionFormat, CommonAPI::CallStatus& callStatus);
/**
- * Calls setDomainState with asynchronous semantics.
+ * Calls asyncConnect with asynchronous semantics.
*
* The provided callback will be called when the reply to this call arrives or
* an error occurs during the call. The CallStatus will indicate either "SUCCESS"
@@ -82,10 +70,10 @@ class RoutingSenderProxy: virtual public RoutingSender, virtual public RoutingSe
* The std::future returned by this method will be fulfilled at arrival of the reply.
* It will provide the same value for CallStatus as will be handed to the callback.
*/
- virtual std::future<CommonAPI::CallStatus> setDomainStateAsync(const am_gen::am_domainID_t& domainID, const am_gen::am_DomainState_e& domainState, SetDomainStateAsyncCallback callback);
+ virtual std::future<CommonAPI::CallStatus> asyncConnectAsync(const am_Handle_s& handle, const am_connectionID_t& connectionID, const am_sourceID_t& sourceID, const am_sinkID_t& sinkID, const am_ConnectionFormat_pe& connectionFormat, AsyncConnectAsyncCallback callback);
/**
- * Calls asyncSetSourceVolume with synchronous semantics.
+ * Calls asyncDisconnect with synchronous semantics.
*
* All const parameters are input parameters to this method.
* The CallStatus will be filled when the method returns and indicate either
@@ -93,9 +81,9 @@ class RoutingSenderProxy: virtual public RoutingSender, virtual public RoutingSe
* will be set.
* Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
*/
- virtual void asyncSetSourceVolume(const am_gen::am_handle_t& handle, const am_gen::am_sourceID_t& sourceID, const am_gen::am_volume_t& volume, const am_gen::am_RampType_e& ramp, const am_gen::am_time_t& time, CommonAPI::CallStatus& callStatus);
+ virtual void asyncDisconnect(const am_Handle_s& handle, const am_connectionID_t& connectionID, CommonAPI::CallStatus& callStatus);
/**
- * Calls asyncSetSourceVolume with asynchronous semantics.
+ * Calls asyncDisconnect with asynchronous semantics.
*
* The provided callback will be called when the reply to this call arrives or
* an error occurs during the call. The CallStatus will indicate either "SUCCESS"
@@ -104,7 +92,7 @@ class RoutingSenderProxy: virtual public RoutingSender, virtual public RoutingSe
* The std::future returned by this method will be fulfilled at arrival of the reply.
* It will provide the same value for CallStatus as will be handed to the callback.
*/
- virtual std::future<CommonAPI::CallStatus> asyncSetSourceVolumeAsync(const am_gen::am_handle_t& handle, const am_gen::am_sourceID_t& sourceID, const am_gen::am_volume_t& volume, const am_gen::am_RampType_e& ramp, const am_gen::am_time_t& time, AsyncSetSourceVolumeAsyncCallback callback);
+ virtual std::future<CommonAPI::CallStatus> asyncDisconnectAsync(const am_Handle_s& handle, const am_connectionID_t& connectionID, AsyncDisconnectAsyncCallback callback);
/**
* Calls asyncSetSinkVolume with synchronous semantics.
@@ -115,7 +103,7 @@ class RoutingSenderProxy: virtual public RoutingSender, virtual public RoutingSe
* will be set.
* Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
*/
- virtual void asyncSetSinkVolume(const am_gen::am_handle_t& handle, const am_gen::am_sinkID_t& sinkID, const am_gen::am_volume_t& volume, const am_gen::am_RampType_e& ramp, const am_gen::am_time_t& time, CommonAPI::CallStatus& callStatus);
+ virtual void asyncSetSinkVolume(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_volume_t& volume, const am_RampType_pe& ramp, const am_time_t& time, CommonAPI::CallStatus& callStatus);
/**
* Calls asyncSetSinkVolume with asynchronous semantics.
*
@@ -126,10 +114,10 @@ class RoutingSenderProxy: virtual public RoutingSender, virtual public RoutingSe
* The std::future returned by this method will be fulfilled at arrival of the reply.
* It will provide the same value for CallStatus as will be handed to the callback.
*/
- virtual std::future<CommonAPI::CallStatus> asyncSetSinkVolumeAsync(const am_gen::am_handle_t& handle, const am_gen::am_sinkID_t& sinkID, const am_gen::am_volume_t& volume, const am_gen::am_RampType_e& ramp, const am_gen::am_time_t& time, AsyncSetSinkVolumeAsyncCallback callback);
+ virtual std::future<CommonAPI::CallStatus> asyncSetSinkVolumeAsync(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_volume_t& volume, const am_RampType_pe& ramp, const am_time_t& time, AsyncSetSinkVolumeAsyncCallback callback);
/**
- * Calls asyncConnect with synchronous semantics.
+ * Calls asyncSetSourceVolume with synchronous semantics.
*
* All const parameters are input parameters to this method.
* The CallStatus will be filled when the method returns and indicate either
@@ -137,9 +125,9 @@ class RoutingSenderProxy: virtual public RoutingSender, virtual public RoutingSe
* will be set.
* Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
*/
- virtual void asyncConnect(const am_gen::am_handle_t& handle, const am_gen::am_connectionID_t& connectionID, const am_gen::am_sourceID_t& sourceID, const am_gen::am_sinkID_t& sinkID, const am_gen::am_ConnectionFormat_e& connectionFormat, CommonAPI::CallStatus& callStatus);
+ virtual void asyncSetSourceVolume(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_volume_t& volume, const am_RampType_pe& ramp, const am_time_t& time, CommonAPI::CallStatus& callStatus);
/**
- * Calls asyncConnect with asynchronous semantics.
+ * Calls asyncSetSourceVolume with asynchronous semantics.
*
* The provided callback will be called when the reply to this call arrives or
* an error occurs during the call. The CallStatus will indicate either "SUCCESS"
@@ -148,10 +136,10 @@ class RoutingSenderProxy: virtual public RoutingSender, virtual public RoutingSe
* The std::future returned by this method will be fulfilled at arrival of the reply.
* It will provide the same value for CallStatus as will be handed to the callback.
*/
- virtual std::future<CommonAPI::CallStatus> asyncConnectAsync(const am_gen::am_handle_t& handle, const am_gen::am_connectionID_t& connectionID, const am_gen::am_sourceID_t& sourceID, const am_gen::am_sinkID_t& sinkID, const am_gen::am_ConnectionFormat_e& connectionFormat, AsyncConnectAsyncCallback callback);
+ virtual std::future<CommonAPI::CallStatus> asyncSetSourceVolumeAsync(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_volume_t& volume, const am_RampType_pe& ramp, const am_time_t& time, AsyncSetSourceVolumeAsyncCallback callback);
/**
- * Calls asyncDisconnect with synchronous semantics.
+ * Calls asyncSetSourceState with synchronous semantics.
*
* All const parameters are input parameters to this method.
* The CallStatus will be filled when the method returns and indicate either
@@ -159,9 +147,9 @@ class RoutingSenderProxy: virtual public RoutingSender, virtual public RoutingSe
* will be set.
* Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
*/
- virtual void asyncDisconnect(const am_gen::am_handle_t& handle, const am_gen::am_connectionID_t& connectionID, CommonAPI::CallStatus& callStatus);
+ virtual void asyncSetSourceState(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_SourceState_e& state, CommonAPI::CallStatus& callStatus);
/**
- * Calls asyncDisconnect with asynchronous semantics.
+ * Calls asyncSetSourceState with asynchronous semantics.
*
* The provided callback will be called when the reply to this call arrives or
* an error occurs during the call. The CallStatus will indicate either "SUCCESS"
@@ -170,21 +158,20 @@ class RoutingSenderProxy: virtual public RoutingSender, virtual public RoutingSe
* The std::future returned by this method will be fulfilled at arrival of the reply.
* It will provide the same value for CallStatus as will be handed to the callback.
*/
- virtual std::future<CommonAPI::CallStatus> asyncDisconnectAsync(const am_gen::am_handle_t& handle, const am_gen::am_connectionID_t& connectionID, AsyncDisconnectAsyncCallback callback);
+ virtual std::future<CommonAPI::CallStatus> asyncSetSourceStateAsync(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_SourceState_e& state, AsyncSetSourceStateAsyncCallback callback);
/**
- * Calls asyncAbort with synchronous semantics.
+ * Calls asyncSetSinkSoundProperties with synchronous semantics.
*
* All const parameters are input parameters to this method.
- * All non-const parameters will be filled with the returned values.
* The CallStatus will be filled when the method returns and indicate either
* "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus
* will be set.
* Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
*/
- virtual void asyncAbort(const am_gen::am_handle_t& handle, CommonAPI::CallStatus& callStatus, am_gen::am_Error_e& error);
+ virtual void asyncSetSinkSoundProperties(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_SoundProperty_L& listSoundProperties, CommonAPI::CallStatus& callStatus);
/**
- * Calls asyncAbort with asynchronous semantics.
+ * Calls asyncSetSinkSoundProperties with asynchronous semantics.
*
* The provided callback will be called when the reply to this call arrives or
* an error occurs during the call. The CallStatus will indicate either "SUCCESS"
@@ -193,10 +180,10 @@ class RoutingSenderProxy: virtual public RoutingSender, virtual public RoutingSe
* The std::future returned by this method will be fulfilled at arrival of the reply.
* It will provide the same value for CallStatus as will be handed to the callback.
*/
- virtual std::future<CommonAPI::CallStatus> asyncAbortAsync(const am_gen::am_handle_t& handle, AsyncAbortAsyncCallback callback);
+ virtual std::future<CommonAPI::CallStatus> asyncSetSinkSoundPropertiesAsync(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_SoundProperty_L& listSoundProperties, AsyncSetSinkSoundPropertiesAsyncCallback callback);
/**
- * Calls asyncSetSinkSoundProperties with synchronous semantics.
+ * Calls asyncSetSinkSoundProperty with synchronous semantics.
*
* All const parameters are input parameters to this method.
* The CallStatus will be filled when the method returns and indicate either
@@ -204,9 +191,9 @@ class RoutingSenderProxy: virtual public RoutingSender, virtual public RoutingSe
* will be set.
* Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
*/
- virtual void asyncSetSinkSoundProperties(const am_gen::am_handle_t& handle, const am_gen::am_sinkID_t& sinkID, const am_gen::am_SoundProperty_L& listSoundProperties, CommonAPI::CallStatus& callStatus);
+ virtual void asyncSetSinkSoundProperty(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_SoundProperty_s& soundProperty, CommonAPI::CallStatus& callStatus);
/**
- * Calls asyncSetSinkSoundProperties with asynchronous semantics.
+ * Calls asyncSetSinkSoundProperty with asynchronous semantics.
*
* The provided callback will be called when the reply to this call arrives or
* an error occurs during the call. The CallStatus will indicate either "SUCCESS"
@@ -215,10 +202,10 @@ class RoutingSenderProxy: virtual public RoutingSender, virtual public RoutingSe
* The std::future returned by this method will be fulfilled at arrival of the reply.
* It will provide the same value for CallStatus as will be handed to the callback.
*/
- virtual std::future<CommonAPI::CallStatus> asyncSetSinkSoundPropertiesAsync(const am_gen::am_handle_t& handle, const am_gen::am_sinkID_t& sinkID, const am_gen::am_SoundProperty_L& listSoundProperties, AsyncSetSinkSoundPropertiesAsyncCallback callback);
+ virtual std::future<CommonAPI::CallStatus> asyncSetSinkSoundPropertyAsync(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_SoundProperty_s& soundProperty, AsyncSetSinkSoundPropertyAsyncCallback callback);
/**
- * Calls asyncSetSinkSoundProperty with synchronous semantics.
+ * Calls asyncSetSourceSoundProperties with synchronous semantics.
*
* All const parameters are input parameters to this method.
* The CallStatus will be filled when the method returns and indicate either
@@ -226,9 +213,9 @@ class RoutingSenderProxy: virtual public RoutingSender, virtual public RoutingSe
* will be set.
* Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
*/
- virtual void asyncSetSinkSoundProperty(const am_gen::am_handle_t& handle, const am_gen::am_sinkID_t& sinkID, const am_gen::am_SoundProperty_s& soundProperty, CommonAPI::CallStatus& callStatus);
+ virtual void asyncSetSourceSoundProperties(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_SoundProperty_L& listSoundProperties, CommonAPI::CallStatus& callStatus);
/**
- * Calls asyncSetSinkSoundProperty with asynchronous semantics.
+ * Calls asyncSetSourceSoundProperties with asynchronous semantics.
*
* The provided callback will be called when the reply to this call arrives or
* an error occurs during the call. The CallStatus will indicate either "SUCCESS"
@@ -237,10 +224,10 @@ class RoutingSenderProxy: virtual public RoutingSender, virtual public RoutingSe
* The std::future returned by this method will be fulfilled at arrival of the reply.
* It will provide the same value for CallStatus as will be handed to the callback.
*/
- virtual std::future<CommonAPI::CallStatus> asyncSetSinkSoundPropertyAsync(const am_gen::am_handle_t& handle, const am_gen::am_sinkID_t& sinkID, const am_gen::am_SoundProperty_s& soundProperty, AsyncSetSinkSoundPropertyAsyncCallback callback);
+ virtual std::future<CommonAPI::CallStatus> asyncSetSourceSoundPropertiesAsync(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_SoundProperty_L& listSoundProperties, AsyncSetSourceSoundPropertiesAsyncCallback callback);
/**
- * Calls asyncSetSourceSoundProperties with synchronous semantics.
+ * Calls asyncSetSourceSoundProperty with synchronous semantics.
*
* All const parameters are input parameters to this method.
* The CallStatus will be filled when the method returns and indicate either
@@ -248,9 +235,9 @@ class RoutingSenderProxy: virtual public RoutingSender, virtual public RoutingSe
* will be set.
* Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
*/
- virtual void asyncSetSourceSoundProperties(const am_gen::am_handle_t& handle, const am_gen::am_sourceID_t& sourceID, const am_gen::am_SoundProperty_L& listSoundProperties, CommonAPI::CallStatus& callStatus);
+ virtual void asyncSetSourceSoundProperty(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_SoundProperty_s& soundProperty, CommonAPI::CallStatus& callStatus);
/**
- * Calls asyncSetSourceSoundProperties with asynchronous semantics.
+ * Calls asyncSetSourceSoundProperty with asynchronous semantics.
*
* The provided callback will be called when the reply to this call arrives or
* an error occurs during the call. The CallStatus will indicate either "SUCCESS"
@@ -259,10 +246,10 @@ class RoutingSenderProxy: virtual public RoutingSender, virtual public RoutingSe
* The std::future returned by this method will be fulfilled at arrival of the reply.
* It will provide the same value for CallStatus as will be handed to the callback.
*/
- virtual std::future<CommonAPI::CallStatus> asyncSetSourceSoundPropertiesAsync(const am_gen::am_handle_t& handle, const am_gen::am_sourceID_t& sourceID, const am_gen::am_SoundProperty_L& listSoundProperties, AsyncSetSourceSoundPropertiesAsyncCallback callback);
+ virtual std::future<CommonAPI::CallStatus> asyncSetSourceSoundPropertyAsync(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_SoundProperty_s& soundProperty, AsyncSetSourceSoundPropertyAsyncCallback callback);
/**
- * Calls asyncSetSourceSoundProperty with synchronous semantics.
+ * Calls asyncCrossFade with synchronous semantics.
*
* All const parameters are input parameters to this method.
* The CallStatus will be filled when the method returns and indicate either
@@ -270,9 +257,9 @@ class RoutingSenderProxy: virtual public RoutingSender, virtual public RoutingSe
* will be set.
* Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
*/
- virtual void asyncSetSourceSoundProperty(const am_gen::am_handle_t& handle, const am_gen::am_sourceID_t& sourceID, const am_gen::am_SoundProperty_s& soundProperty, CommonAPI::CallStatus& callStatus);
+ virtual void asyncCrossFade(const am_Handle_s& handle, const am_crossfaderID_t& crossfaderID, const am_HotSink_e& hotSink, const am_RampType_pe& rampType, const am_time_t& time, CommonAPI::CallStatus& callStatus);
/**
- * Calls asyncSetSourceSoundProperty with asynchronous semantics.
+ * Calls asyncCrossFade with asynchronous semantics.
*
* The provided callback will be called when the reply to this call arrives or
* an error occurs during the call. The CallStatus will indicate either "SUCCESS"
@@ -281,20 +268,21 @@ class RoutingSenderProxy: virtual public RoutingSender, virtual public RoutingSe
* The std::future returned by this method will be fulfilled at arrival of the reply.
* It will provide the same value for CallStatus as will be handed to the callback.
*/
- virtual std::future<CommonAPI::CallStatus> asyncSetSourceSoundPropertyAsync(const am_gen::am_handle_t& handle, const am_gen::am_sourceID_t& sourceID, const am_gen::am_SoundProperty_s& soundProperty, AsyncSetSourceSoundPropertyAsyncCallback callback);
+ virtual std::future<CommonAPI::CallStatus> asyncCrossFadeAsync(const am_Handle_s& handle, const am_crossfaderID_t& crossfaderID, const am_HotSink_e& hotSink, const am_RampType_pe& rampType, const am_time_t& time, AsyncCrossFadeAsyncCallback callback);
/**
- * Calls asyncCrossFade with synchronous semantics.
+ * Calls setDomainState with synchronous semantics.
*
* All const parameters are input parameters to this method.
+ * All non-const parameters will be filled with the returned values.
* The CallStatus will be filled when the method returns and indicate either
* "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus
* will be set.
* Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
*/
- virtual void asyncCrossFade(const am_gen::am_handle_t& handle, const am_gen::am_crossfaderID_t& crossfaderID, const am_gen::am_HotSink_e& hotSink, const am_gen::am_RampType_e& rampType, const am_gen::am_time_t& time, CommonAPI::CallStatus& callStatus);
+ virtual void setDomainState(const am_domainID_t& domainID, const am_DomainState_e& domainState, CommonAPI::CallStatus& callStatus, am_Error_e& error);
/**
- * Calls asyncCrossFade with asynchronous semantics.
+ * Calls setDomainState with asynchronous semantics.
*
* The provided callback will be called when the reply to this call arrives or
* an error occurs during the call. The CallStatus will indicate either "SUCCESS"
@@ -303,7 +291,7 @@ class RoutingSenderProxy: virtual public RoutingSender, virtual public RoutingSe
* The std::future returned by this method will be fulfilled at arrival of the reply.
* It will provide the same value for CallStatus as will be handed to the callback.
*/
- virtual std::future<CommonAPI::CallStatus> asyncCrossFadeAsync(const am_gen::am_handle_t& handle, const am_gen::am_crossfaderID_t& crossfaderID, const am_gen::am_HotSink_e& hotSink, const am_gen::am_RampType_e& rampType, const am_gen::am_time_t& time, AsyncCrossFadeAsyncCallback callback);
+ virtual std::future<CommonAPI::CallStatus> setDomainStateAsync(const am_domainID_t& domainID, const am_DomainState_e& domainState, SetDomainStateAsyncCallback callback);
/**
* Calls asyncSetVolumes with synchronous semantics.
@@ -314,7 +302,7 @@ class RoutingSenderProxy: virtual public RoutingSender, virtual public RoutingSe
* will be set.
* Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
*/
- virtual void asyncSetVolumes(const am_gen::am_handle_t& handle, const am_gen::am_Volumes_l& volumes, CommonAPI::CallStatus& callStatus);
+ virtual void asyncSetVolumes(const am_Handle_s& handle, const am_Volumes_L& volumes, CommonAPI::CallStatus& callStatus);
/**
* Calls asyncSetVolumes with asynchronous semantics.
*
@@ -325,7 +313,7 @@ class RoutingSenderProxy: virtual public RoutingSender, virtual public RoutingSe
* The std::future returned by this method will be fulfilled at arrival of the reply.
* It will provide the same value for CallStatus as will be handed to the callback.
*/
- virtual std::future<CommonAPI::CallStatus> asyncSetVolumesAsync(const am_gen::am_handle_t& handle, const am_gen::am_Volumes_l& volumes, AsyncSetVolumesAsyncCallback callback);
+ virtual std::future<CommonAPI::CallStatus> asyncSetVolumesAsync(const am_Handle_s& handle, const am_Volumes_L& volumes, AsyncSetVolumesAsyncCallback callback);
/**
* Calls asyncSetSinkNotificationConfiguration with synchronous semantics.
@@ -336,7 +324,7 @@ class RoutingSenderProxy: virtual public RoutingSender, virtual public RoutingSe
* will be set.
* Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
*/
- virtual void asyncSetSinkNotificationConfiguration(const am_gen::am_handle_t& handle, const am_gen::am_sinkID_t& sinkID, const am_gen::am_NotificationConfiguration_s& notificationConfiguration, CommonAPI::CallStatus& callStatus);
+ virtual void asyncSetSinkNotificationConfiguration(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_NotificationConfiguration_s& notificationConfiguration, CommonAPI::CallStatus& callStatus);
/**
* Calls asyncSetSinkNotificationConfiguration with asynchronous semantics.
*
@@ -347,7 +335,7 @@ class RoutingSenderProxy: virtual public RoutingSender, virtual public RoutingSe
* The std::future returned by this method will be fulfilled at arrival of the reply.
* It will provide the same value for CallStatus as will be handed to the callback.
*/
- virtual std::future<CommonAPI::CallStatus> asyncSetSinkNotificationConfigurationAsync(const am_gen::am_handle_t& handle, const am_gen::am_sinkID_t& sinkID, const am_gen::am_NotificationConfiguration_s& notificationConfiguration, AsyncSetSinkNotificationConfigurationAsyncCallback callback);
+ virtual std::future<CommonAPI::CallStatus> asyncSetSinkNotificationConfigurationAsync(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_NotificationConfiguration_s& notificationConfiguration, AsyncSetSinkNotificationConfigurationAsyncCallback callback);
/**
* Calls asyncSetSourceNotificationConfiguration with synchronous semantics.
@@ -358,7 +346,7 @@ class RoutingSenderProxy: virtual public RoutingSender, virtual public RoutingSe
* will be set.
* Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
*/
- virtual void asyncSetSourceNotificationConfiguration(const am_gen::am_handle_t& handle, const am_gen::am_sourceID_t& sourceID, const am_gen::am_NotificationConfiguration_s& notificationConfiguration, CommonAPI::CallStatus& callStatus);
+ virtual void asyncSetSourceNotificationConfiguration(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_NotificationConfiguration_s& notificationConfiguration, CommonAPI::CallStatus& callStatus);
/**
* Calls asyncSetSourceNotificationConfiguration with asynchronous semantics.
*
@@ -369,7 +357,7 @@ class RoutingSenderProxy: virtual public RoutingSender, virtual public RoutingSe
* The std::future returned by this method will be fulfilled at arrival of the reply.
* It will provide the same value for CallStatus as will be handed to the callback.
*/
- virtual std::future<CommonAPI::CallStatus> asyncSetSourceNotificationConfigurationAsync(const am_gen::am_handle_t& handle, const am_gen::am_sourceID_t& sourceID, const am_gen::am_NotificationConfiguration_s& notificationConfiguration, AsyncSetSourceNotificationConfigurationAsyncCallback callback);
+ virtual std::future<CommonAPI::CallStatus> asyncSetSourceNotificationConfigurationAsync(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_NotificationConfiguration_s& notificationConfiguration, AsyncSetSourceNotificationConfigurationAsyncCallback callback);
/// Returns the CommonAPI address of the remote partner this proxy communicates with.
virtual std::string getAddress() const;
@@ -399,213 +387,213 @@ class RoutingSenderProxy: virtual public RoutingSender, virtual public RoutingSe
virtual CommonAPI::InterfaceVersionAttribute& getInterfaceVersionAttribute();
private:
- std::shared_ptr<RoutingSenderProxyBase> delegate_;
+ std::shared_ptr<RoutingControlProxyBase> delegate_;
};
//
-// RoutingSenderProxy Implementation
+// RoutingControlProxy Implementation
//
template <typename ... _AttributeExtensions>
-RoutingSenderProxy<_AttributeExtensions...>::RoutingSenderProxy(std::shared_ptr<CommonAPI::Proxy> delegate):
- delegate_(std::dynamic_pointer_cast<RoutingSenderProxyBase>(delegate)),
- _AttributeExtensions(*(std::dynamic_pointer_cast<RoutingSenderProxyBase>(delegate)))... {
+RoutingControlProxy<_AttributeExtensions...>::RoutingControlProxy(std::shared_ptr<CommonAPI::Proxy> delegate):
+ delegate_(std::dynamic_pointer_cast<RoutingControlProxyBase>(delegate)),
+ _AttributeExtensions(*(std::dynamic_pointer_cast<RoutingControlProxyBase>(delegate)))... {
}
template <typename ... _AttributeExtensions>
-RoutingSenderProxy<_AttributeExtensions...>::~RoutingSenderProxy() {
+RoutingControlProxy<_AttributeExtensions...>::~RoutingControlProxy() {
}
template <typename ... _AttributeExtensions>
-void RoutingSenderProxy<_AttributeExtensions...>::asyncSetSourceState(const uint16_t& handle, const am_gen::am_sourceID_t& sourceID, const am_gen::am_SourceState_e& sourceState, CommonAPI::CallStatus& callStatus) {
- delegate_->asyncSetSourceState(handle, sourceID, sourceState, callStatus);
+void RoutingControlProxy<_AttributeExtensions...>::asyncAbort(const am_Handle_s& handle, CommonAPI::CallStatus& callStatus) {
+ delegate_->asyncAbort(handle, callStatus);
}
template <typename ... _AttributeExtensions>
-std::future<CommonAPI::CallStatus> RoutingSenderProxy<_AttributeExtensions...>::asyncSetSourceStateAsync(const uint16_t& handle, const am_gen::am_sourceID_t& sourceID, const am_gen::am_SourceState_e& sourceState, AsyncSetSourceStateAsyncCallback callback) {
- return delegate_->asyncSetSourceStateAsync(handle, sourceID, sourceState, callback);
+std::future<CommonAPI::CallStatus> RoutingControlProxy<_AttributeExtensions...>::asyncAbortAsync(const am_Handle_s& handle, AsyncAbortAsyncCallback callback) {
+ return delegate_->asyncAbortAsync(handle, callback);
}
template <typename ... _AttributeExtensions>
-void RoutingSenderProxy<_AttributeExtensions...>::setDomainState(const am_gen::am_domainID_t& domainID, const am_gen::am_DomainState_e& domainState, CommonAPI::CallStatus& callStatus, am_gen::am_Error_e& error) {
- delegate_->setDomainState(domainID, domainState, callStatus, error);
+void RoutingControlProxy<_AttributeExtensions...>::asyncConnect(const am_Handle_s& handle, const am_connectionID_t& connectionID, const am_sourceID_t& sourceID, const am_sinkID_t& sinkID, const am_ConnectionFormat_pe& connectionFormat, CommonAPI::CallStatus& callStatus) {
+ delegate_->asyncConnect(handle, connectionID, sourceID, sinkID, connectionFormat, callStatus);
}
template <typename ... _AttributeExtensions>
-std::future<CommonAPI::CallStatus> RoutingSenderProxy<_AttributeExtensions...>::setDomainStateAsync(const am_gen::am_domainID_t& domainID, const am_gen::am_DomainState_e& domainState, SetDomainStateAsyncCallback callback) {
- return delegate_->setDomainStateAsync(domainID, domainState, callback);
+std::future<CommonAPI::CallStatus> RoutingControlProxy<_AttributeExtensions...>::asyncConnectAsync(const am_Handle_s& handle, const am_connectionID_t& connectionID, const am_sourceID_t& sourceID, const am_sinkID_t& sinkID, const am_ConnectionFormat_pe& connectionFormat, AsyncConnectAsyncCallback callback) {
+ return delegate_->asyncConnectAsync(handle, connectionID, sourceID, sinkID, connectionFormat, callback);
}
template <typename ... _AttributeExtensions>
-void RoutingSenderProxy<_AttributeExtensions...>::asyncSetSourceVolume(const am_gen::am_handle_t& handle, const am_gen::am_sourceID_t& sourceID, const am_gen::am_volume_t& volume, const am_gen::am_RampType_e& ramp, const am_gen::am_time_t& time, CommonAPI::CallStatus& callStatus) {
- delegate_->asyncSetSourceVolume(handle, sourceID, volume, ramp, time, callStatus);
+void RoutingControlProxy<_AttributeExtensions...>::asyncDisconnect(const am_Handle_s& handle, const am_connectionID_t& connectionID, CommonAPI::CallStatus& callStatus) {
+ delegate_->asyncDisconnect(handle, connectionID, callStatus);
}
template <typename ... _AttributeExtensions>
-std::future<CommonAPI::CallStatus> RoutingSenderProxy<_AttributeExtensions...>::asyncSetSourceVolumeAsync(const am_gen::am_handle_t& handle, const am_gen::am_sourceID_t& sourceID, const am_gen::am_volume_t& volume, const am_gen::am_RampType_e& ramp, const am_gen::am_time_t& time, AsyncSetSourceVolumeAsyncCallback callback) {
- return delegate_->asyncSetSourceVolumeAsync(handle, sourceID, volume, ramp, time, callback);
+std::future<CommonAPI::CallStatus> RoutingControlProxy<_AttributeExtensions...>::asyncDisconnectAsync(const am_Handle_s& handle, const am_connectionID_t& connectionID, AsyncDisconnectAsyncCallback callback) {
+ return delegate_->asyncDisconnectAsync(handle, connectionID, callback);
}
template <typename ... _AttributeExtensions>
-void RoutingSenderProxy<_AttributeExtensions...>::asyncSetSinkVolume(const am_gen::am_handle_t& handle, const am_gen::am_sinkID_t& sinkID, const am_gen::am_volume_t& volume, const am_gen::am_RampType_e& ramp, const am_gen::am_time_t& time, CommonAPI::CallStatus& callStatus) {
+void RoutingControlProxy<_AttributeExtensions...>::asyncSetSinkVolume(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_volume_t& volume, const am_RampType_pe& ramp, const am_time_t& time, CommonAPI::CallStatus& callStatus) {
delegate_->asyncSetSinkVolume(handle, sinkID, volume, ramp, time, callStatus);
}
template <typename ... _AttributeExtensions>
-std::future<CommonAPI::CallStatus> RoutingSenderProxy<_AttributeExtensions...>::asyncSetSinkVolumeAsync(const am_gen::am_handle_t& handle, const am_gen::am_sinkID_t& sinkID, const am_gen::am_volume_t& volume, const am_gen::am_RampType_e& ramp, const am_gen::am_time_t& time, AsyncSetSinkVolumeAsyncCallback callback) {
+std::future<CommonAPI::CallStatus> RoutingControlProxy<_AttributeExtensions...>::asyncSetSinkVolumeAsync(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_volume_t& volume, const am_RampType_pe& ramp, const am_time_t& time, AsyncSetSinkVolumeAsyncCallback callback) {
return delegate_->asyncSetSinkVolumeAsync(handle, sinkID, volume, ramp, time, callback);
}
template <typename ... _AttributeExtensions>
-void RoutingSenderProxy<_AttributeExtensions...>::asyncConnect(const am_gen::am_handle_t& handle, const am_gen::am_connectionID_t& connectionID, const am_gen::am_sourceID_t& sourceID, const am_gen::am_sinkID_t& sinkID, const am_gen::am_ConnectionFormat_e& connectionFormat, CommonAPI::CallStatus& callStatus) {
- delegate_->asyncConnect(handle, connectionID, sourceID, sinkID, connectionFormat, callStatus);
-}
-
-template <typename ... _AttributeExtensions>
-std::future<CommonAPI::CallStatus> RoutingSenderProxy<_AttributeExtensions...>::asyncConnectAsync(const am_gen::am_handle_t& handle, const am_gen::am_connectionID_t& connectionID, const am_gen::am_sourceID_t& sourceID, const am_gen::am_sinkID_t& sinkID, const am_gen::am_ConnectionFormat_e& connectionFormat, AsyncConnectAsyncCallback callback) {
- return delegate_->asyncConnectAsync(handle, connectionID, sourceID, sinkID, connectionFormat, callback);
+void RoutingControlProxy<_AttributeExtensions...>::asyncSetSourceVolume(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_volume_t& volume, const am_RampType_pe& ramp, const am_time_t& time, CommonAPI::CallStatus& callStatus) {
+ delegate_->asyncSetSourceVolume(handle, sourceID, volume, ramp, time, callStatus);
}
template <typename ... _AttributeExtensions>
-void RoutingSenderProxy<_AttributeExtensions...>::asyncDisconnect(const am_gen::am_handle_t& handle, const am_gen::am_connectionID_t& connectionID, CommonAPI::CallStatus& callStatus) {
- delegate_->asyncDisconnect(handle, connectionID, callStatus);
+std::future<CommonAPI::CallStatus> RoutingControlProxy<_AttributeExtensions...>::asyncSetSourceVolumeAsync(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_volume_t& volume, const am_RampType_pe& ramp, const am_time_t& time, AsyncSetSourceVolumeAsyncCallback callback) {
+ return delegate_->asyncSetSourceVolumeAsync(handle, sourceID, volume, ramp, time, callback);
}
template <typename ... _AttributeExtensions>
-std::future<CommonAPI::CallStatus> RoutingSenderProxy<_AttributeExtensions...>::asyncDisconnectAsync(const am_gen::am_handle_t& handle, const am_gen::am_connectionID_t& connectionID, AsyncDisconnectAsyncCallback callback) {
- return delegate_->asyncDisconnectAsync(handle, connectionID, callback);
+void RoutingControlProxy<_AttributeExtensions...>::asyncSetSourceState(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_SourceState_e& state, CommonAPI::CallStatus& callStatus) {
+ delegate_->asyncSetSourceState(handle, sourceID, state, callStatus);
}
template <typename ... _AttributeExtensions>
-void RoutingSenderProxy<_AttributeExtensions...>::asyncAbort(const am_gen::am_handle_t& handle, CommonAPI::CallStatus& callStatus, am_gen::am_Error_e& error) {
- delegate_->asyncAbort(handle, callStatus, error);
+std::future<CommonAPI::CallStatus> RoutingControlProxy<_AttributeExtensions...>::asyncSetSourceStateAsync(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_SourceState_e& state, AsyncSetSourceStateAsyncCallback callback) {
+ return delegate_->asyncSetSourceStateAsync(handle, sourceID, state, callback);
}
template <typename ... _AttributeExtensions>
-std::future<CommonAPI::CallStatus> RoutingSenderProxy<_AttributeExtensions...>::asyncAbortAsync(const am_gen::am_handle_t& handle, AsyncAbortAsyncCallback callback) {
- return delegate_->asyncAbortAsync(handle, callback);
-}
-
-template <typename ... _AttributeExtensions>
-void RoutingSenderProxy<_AttributeExtensions...>::asyncSetSinkSoundProperties(const am_gen::am_handle_t& handle, const am_gen::am_sinkID_t& sinkID, const am_gen::am_SoundProperty_L& listSoundProperties, CommonAPI::CallStatus& callStatus) {
+void RoutingControlProxy<_AttributeExtensions...>::asyncSetSinkSoundProperties(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_SoundProperty_L& listSoundProperties, CommonAPI::CallStatus& callStatus) {
delegate_->asyncSetSinkSoundProperties(handle, sinkID, listSoundProperties, callStatus);
}
template <typename ... _AttributeExtensions>
-std::future<CommonAPI::CallStatus> RoutingSenderProxy<_AttributeExtensions...>::asyncSetSinkSoundPropertiesAsync(const am_gen::am_handle_t& handle, const am_gen::am_sinkID_t& sinkID, const am_gen::am_SoundProperty_L& listSoundProperties, AsyncSetSinkSoundPropertiesAsyncCallback callback) {
+std::future<CommonAPI::CallStatus> RoutingControlProxy<_AttributeExtensions...>::asyncSetSinkSoundPropertiesAsync(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_SoundProperty_L& listSoundProperties, AsyncSetSinkSoundPropertiesAsyncCallback callback) {
return delegate_->asyncSetSinkSoundPropertiesAsync(handle, sinkID, listSoundProperties, callback);
}
template <typename ... _AttributeExtensions>
-void RoutingSenderProxy<_AttributeExtensions...>::asyncSetSinkSoundProperty(const am_gen::am_handle_t& handle, const am_gen::am_sinkID_t& sinkID, const am_gen::am_SoundProperty_s& soundProperty, CommonAPI::CallStatus& callStatus) {
+void RoutingControlProxy<_AttributeExtensions...>::asyncSetSinkSoundProperty(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_SoundProperty_s& soundProperty, CommonAPI::CallStatus& callStatus) {
delegate_->asyncSetSinkSoundProperty(handle, sinkID, soundProperty, callStatus);
}
template <typename ... _AttributeExtensions>
-std::future<CommonAPI::CallStatus> RoutingSenderProxy<_AttributeExtensions...>::asyncSetSinkSoundPropertyAsync(const am_gen::am_handle_t& handle, const am_gen::am_sinkID_t& sinkID, const am_gen::am_SoundProperty_s& soundProperty, AsyncSetSinkSoundPropertyAsyncCallback callback) {
+std::future<CommonAPI::CallStatus> RoutingControlProxy<_AttributeExtensions...>::asyncSetSinkSoundPropertyAsync(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_SoundProperty_s& soundProperty, AsyncSetSinkSoundPropertyAsyncCallback callback) {
return delegate_->asyncSetSinkSoundPropertyAsync(handle, sinkID, soundProperty, callback);
}
template <typename ... _AttributeExtensions>
-void RoutingSenderProxy<_AttributeExtensions...>::asyncSetSourceSoundProperties(const am_gen::am_handle_t& handle, const am_gen::am_sourceID_t& sourceID, const am_gen::am_SoundProperty_L& listSoundProperties, CommonAPI::CallStatus& callStatus) {
+void RoutingControlProxy<_AttributeExtensions...>::asyncSetSourceSoundProperties(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_SoundProperty_L& listSoundProperties, CommonAPI::CallStatus& callStatus) {
delegate_->asyncSetSourceSoundProperties(handle, sourceID, listSoundProperties, callStatus);
}
template <typename ... _AttributeExtensions>
-std::future<CommonAPI::CallStatus> RoutingSenderProxy<_AttributeExtensions...>::asyncSetSourceSoundPropertiesAsync(const am_gen::am_handle_t& handle, const am_gen::am_sourceID_t& sourceID, const am_gen::am_SoundProperty_L& listSoundProperties, AsyncSetSourceSoundPropertiesAsyncCallback callback) {
+std::future<CommonAPI::CallStatus> RoutingControlProxy<_AttributeExtensions...>::asyncSetSourceSoundPropertiesAsync(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_SoundProperty_L& listSoundProperties, AsyncSetSourceSoundPropertiesAsyncCallback callback) {
return delegate_->asyncSetSourceSoundPropertiesAsync(handle, sourceID, listSoundProperties, callback);
}
template <typename ... _AttributeExtensions>
-void RoutingSenderProxy<_AttributeExtensions...>::asyncSetSourceSoundProperty(const am_gen::am_handle_t& handle, const am_gen::am_sourceID_t& sourceID, const am_gen::am_SoundProperty_s& soundProperty, CommonAPI::CallStatus& callStatus) {
+void RoutingControlProxy<_AttributeExtensions...>::asyncSetSourceSoundProperty(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_SoundProperty_s& soundProperty, CommonAPI::CallStatus& callStatus) {
delegate_->asyncSetSourceSoundProperty(handle, sourceID, soundProperty, callStatus);
}
template <typename ... _AttributeExtensions>
-std::future<CommonAPI::CallStatus> RoutingSenderProxy<_AttributeExtensions...>::asyncSetSourceSoundPropertyAsync(const am_gen::am_handle_t& handle, const am_gen::am_sourceID_t& sourceID, const am_gen::am_SoundProperty_s& soundProperty, AsyncSetSourceSoundPropertyAsyncCallback callback) {
+std::future<CommonAPI::CallStatus> RoutingControlProxy<_AttributeExtensions...>::asyncSetSourceSoundPropertyAsync(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_SoundProperty_s& soundProperty, AsyncSetSourceSoundPropertyAsyncCallback callback) {
return delegate_->asyncSetSourceSoundPropertyAsync(handle, sourceID, soundProperty, callback);
}
template <typename ... _AttributeExtensions>
-void RoutingSenderProxy<_AttributeExtensions...>::asyncCrossFade(const am_gen::am_handle_t& handle, const am_gen::am_crossfaderID_t& crossfaderID, const am_gen::am_HotSink_e& hotSink, const am_gen::am_RampType_e& rampType, const am_gen::am_time_t& time, CommonAPI::CallStatus& callStatus) {
+void RoutingControlProxy<_AttributeExtensions...>::asyncCrossFade(const am_Handle_s& handle, const am_crossfaderID_t& crossfaderID, const am_HotSink_e& hotSink, const am_RampType_pe& rampType, const am_time_t& time, CommonAPI::CallStatus& callStatus) {
delegate_->asyncCrossFade(handle, crossfaderID, hotSink, rampType, time, callStatus);
}
template <typename ... _AttributeExtensions>
-std::future<CommonAPI::CallStatus> RoutingSenderProxy<_AttributeExtensions...>::asyncCrossFadeAsync(const am_gen::am_handle_t& handle, const am_gen::am_crossfaderID_t& crossfaderID, const am_gen::am_HotSink_e& hotSink, const am_gen::am_RampType_e& rampType, const am_gen::am_time_t& time, AsyncCrossFadeAsyncCallback callback) {
+std::future<CommonAPI::CallStatus> RoutingControlProxy<_AttributeExtensions...>::asyncCrossFadeAsync(const am_Handle_s& handle, const am_crossfaderID_t& crossfaderID, const am_HotSink_e& hotSink, const am_RampType_pe& rampType, const am_time_t& time, AsyncCrossFadeAsyncCallback callback) {
return delegate_->asyncCrossFadeAsync(handle, crossfaderID, hotSink, rampType, time, callback);
}
template <typename ... _AttributeExtensions>
-void RoutingSenderProxy<_AttributeExtensions...>::asyncSetVolumes(const am_gen::am_handle_t& handle, const am_gen::am_Volumes_l& volumes, CommonAPI::CallStatus& callStatus) {
+void RoutingControlProxy<_AttributeExtensions...>::setDomainState(const am_domainID_t& domainID, const am_DomainState_e& domainState, CommonAPI::CallStatus& callStatus, am_Error_e& error) {
+ delegate_->setDomainState(domainID, domainState, callStatus, error);
+}
+
+template <typename ... _AttributeExtensions>
+std::future<CommonAPI::CallStatus> RoutingControlProxy<_AttributeExtensions...>::setDomainStateAsync(const am_domainID_t& domainID, const am_DomainState_e& domainState, SetDomainStateAsyncCallback callback) {
+ return delegate_->setDomainStateAsync(domainID, domainState, callback);
+}
+
+template <typename ... _AttributeExtensions>
+void RoutingControlProxy<_AttributeExtensions...>::asyncSetVolumes(const am_Handle_s& handle, const am_Volumes_L& volumes, CommonAPI::CallStatus& callStatus) {
delegate_->asyncSetVolumes(handle, volumes, callStatus);
}
template <typename ... _AttributeExtensions>
-std::future<CommonAPI::CallStatus> RoutingSenderProxy<_AttributeExtensions...>::asyncSetVolumesAsync(const am_gen::am_handle_t& handle, const am_gen::am_Volumes_l& volumes, AsyncSetVolumesAsyncCallback callback) {
+std::future<CommonAPI::CallStatus> RoutingControlProxy<_AttributeExtensions...>::asyncSetVolumesAsync(const am_Handle_s& handle, const am_Volumes_L& volumes, AsyncSetVolumesAsyncCallback callback) {
return delegate_->asyncSetVolumesAsync(handle, volumes, callback);
}
template <typename ... _AttributeExtensions>
-void RoutingSenderProxy<_AttributeExtensions...>::asyncSetSinkNotificationConfiguration(const am_gen::am_handle_t& handle, const am_gen::am_sinkID_t& sinkID, const am_gen::am_NotificationConfiguration_s& notificationConfiguration, CommonAPI::CallStatus& callStatus) {
+void RoutingControlProxy<_AttributeExtensions...>::asyncSetSinkNotificationConfiguration(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_NotificationConfiguration_s& notificationConfiguration, CommonAPI::CallStatus& callStatus) {
delegate_->asyncSetSinkNotificationConfiguration(handle, sinkID, notificationConfiguration, callStatus);
}
template <typename ... _AttributeExtensions>
-std::future<CommonAPI::CallStatus> RoutingSenderProxy<_AttributeExtensions...>::asyncSetSinkNotificationConfigurationAsync(const am_gen::am_handle_t& handle, const am_gen::am_sinkID_t& sinkID, const am_gen::am_NotificationConfiguration_s& notificationConfiguration, AsyncSetSinkNotificationConfigurationAsyncCallback callback) {
+std::future<CommonAPI::CallStatus> RoutingControlProxy<_AttributeExtensions...>::asyncSetSinkNotificationConfigurationAsync(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_NotificationConfiguration_s& notificationConfiguration, AsyncSetSinkNotificationConfigurationAsyncCallback callback) {
return delegate_->asyncSetSinkNotificationConfigurationAsync(handle, sinkID, notificationConfiguration, callback);
}
template <typename ... _AttributeExtensions>
-void RoutingSenderProxy<_AttributeExtensions...>::asyncSetSourceNotificationConfiguration(const am_gen::am_handle_t& handle, const am_gen::am_sourceID_t& sourceID, const am_gen::am_NotificationConfiguration_s& notificationConfiguration, CommonAPI::CallStatus& callStatus) {
+void RoutingControlProxy<_AttributeExtensions...>::asyncSetSourceNotificationConfiguration(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_NotificationConfiguration_s& notificationConfiguration, CommonAPI::CallStatus& callStatus) {
delegate_->asyncSetSourceNotificationConfiguration(handle, sourceID, notificationConfiguration, callStatus);
}
template <typename ... _AttributeExtensions>
-std::future<CommonAPI::CallStatus> RoutingSenderProxy<_AttributeExtensions...>::asyncSetSourceNotificationConfigurationAsync(const am_gen::am_handle_t& handle, const am_gen::am_sourceID_t& sourceID, const am_gen::am_NotificationConfiguration_s& notificationConfiguration, AsyncSetSourceNotificationConfigurationAsyncCallback callback) {
+std::future<CommonAPI::CallStatus> RoutingControlProxy<_AttributeExtensions...>::asyncSetSourceNotificationConfigurationAsync(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_NotificationConfiguration_s& notificationConfiguration, AsyncSetSourceNotificationConfigurationAsyncCallback callback) {
return delegate_->asyncSetSourceNotificationConfigurationAsync(handle, sourceID, notificationConfiguration, callback);
}
template <typename ... _AttributeExtensions>
-std::string RoutingSenderProxy<_AttributeExtensions...>::getAddress() const {
+std::string RoutingControlProxy<_AttributeExtensions...>::getAddress() const {
return delegate_->getAddress();
}
template <typename ... _AttributeExtensions>
-const std::string& RoutingSenderProxy<_AttributeExtensions...>::getDomain() const {
+const std::string& RoutingControlProxy<_AttributeExtensions...>::getDomain() const {
return delegate_->getDomain();
}
template <typename ... _AttributeExtensions>
-const std::string& RoutingSenderProxy<_AttributeExtensions...>::getServiceId() const {
+const std::string& RoutingControlProxy<_AttributeExtensions...>::getServiceId() const {
return delegate_->getServiceId();
}
template <typename ... _AttributeExtensions>
-const std::string& RoutingSenderProxy<_AttributeExtensions...>::getInstanceId() const {
+const std::string& RoutingControlProxy<_AttributeExtensions...>::getInstanceId() const {
return delegate_->getInstanceId();
}
template <typename ... _AttributeExtensions>
-bool RoutingSenderProxy<_AttributeExtensions...>::isAvailable() const {
+bool RoutingControlProxy<_AttributeExtensions...>::isAvailable() const {
return delegate_->isAvailable();
}
template <typename ... _AttributeExtensions>
-CommonAPI::ProxyStatusEvent& RoutingSenderProxy<_AttributeExtensions...>::getProxyStatusEvent() {
+CommonAPI::ProxyStatusEvent& RoutingControlProxy<_AttributeExtensions...>::getProxyStatusEvent() {
return delegate_->getProxyStatusEvent();
}
template <typename ... _AttributeExtensions>
-CommonAPI::InterfaceVersionAttribute& RoutingSenderProxy<_AttributeExtensions...>::getInterfaceVersionAttribute() {
+CommonAPI::InterfaceVersionAttribute& RoutingControlProxy<_AttributeExtensions...>::getInterfaceVersionAttribute() {
return delegate_->getInterfaceVersionAttribute();
}
-} // namespace audiomanager
+} // namespace am
} // namespace genivi
} // namespace org
-#endif // ORG_GENIVI_AUDIOMANAGER_Routing_Sender_PROXY_H_
+#endif // ORG_GENIVI_AM_Routing_Control_PROXY_H_
diff --git a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlProxyBase.h b/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlProxyBase.h
new file mode 100644
index 0000000..8f2bc8e
--- /dev/null
+++ b/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlProxyBase.h
@@ -0,0 +1,105 @@
+ /*
+ * This file was generated by the CommonAPI Generators.
+ *
+ * Copyright (C) 2013, BMW AG
+ *
+ * \author Christian Linke, christian.linke@bmw.de BMW 2012,2013
+ */
+ #ifndef ORG_GENIVI_AM_Routing_Control_PROXY_BASE_H_
+ #define ORG_GENIVI_AM_Routing_Control_PROXY_BASE_H_
+
+ #include "RoutingControl.h"
+
+
+ #include <org/genivi/am.h>
+
+ #define COMMONAPI_INTERNAL_COMPILATION
+
+ #include <CommonAPI/InputStream.h>
+ #include <CommonAPI/OutputStream.h>
+ #include <CommonAPI/SerializableStruct.h>
+ #include <cstdint>
+ #include <vector>
+
+ #include <CommonAPI/Proxy.h>
+ #include <functional>
+ #include <future>
+
+ #undef COMMONAPI_INTERNAL_COMPILATION
+
+ namespace org {
+ namespace genivi {
+ namespace am {
+
+ class RoutingControlProxyBase: virtual public CommonAPI::Proxy {
+ public:
+ typedef std::function<void(const CommonAPI::CallStatus&)> AsyncAbortAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&)> AsyncConnectAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&)> AsyncDisconnectAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&)> AsyncSetSinkVolumeAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&)> AsyncSetSourceVolumeAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&)> AsyncSetSourceStateAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&)> AsyncSetSinkSoundPropertiesAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&)> AsyncSetSinkSoundPropertyAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&)> AsyncSetSourceSoundPropertiesAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&)> AsyncSetSourceSoundPropertyAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&)> AsyncCrossFadeAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&, const am_Error_e&)> SetDomainStateAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&)> AsyncSetVolumesAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&)> AsyncSetSinkNotificationConfigurationAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&)> AsyncSetSourceNotificationConfigurationAsyncCallback;
+
+
+
+
+ virtual void asyncAbort(const am_Handle_s& handle, CommonAPI::CallStatus& callStatus) = 0;
+ virtual std::future<CommonAPI::CallStatus> asyncAbortAsync(const am_Handle_s& handle, AsyncAbortAsyncCallback callback) = 0;
+
+ virtual void asyncConnect(const am_Handle_s& handle, const am_connectionID_t& connectionID, const am_sourceID_t& sourceID, const am_sinkID_t& sinkID, const am_ConnectionFormat_pe& connectionFormat, CommonAPI::CallStatus& callStatus) = 0;
+ virtual std::future<CommonAPI::CallStatus> asyncConnectAsync(const am_Handle_s& handle, const am_connectionID_t& connectionID, const am_sourceID_t& sourceID, const am_sinkID_t& sinkID, const am_ConnectionFormat_pe& connectionFormat, AsyncConnectAsyncCallback callback) = 0;
+
+ virtual void asyncDisconnect(const am_Handle_s& handle, const am_connectionID_t& connectionID, CommonAPI::CallStatus& callStatus) = 0;
+ virtual std::future<CommonAPI::CallStatus> asyncDisconnectAsync(const am_Handle_s& handle, const am_connectionID_t& connectionID, AsyncDisconnectAsyncCallback callback) = 0;
+
+ virtual void asyncSetSinkVolume(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_volume_t& volume, const am_RampType_pe& ramp, const am_time_t& time, CommonAPI::CallStatus& callStatus) = 0;
+ virtual std::future<CommonAPI::CallStatus> asyncSetSinkVolumeAsync(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_volume_t& volume, const am_RampType_pe& ramp, const am_time_t& time, AsyncSetSinkVolumeAsyncCallback callback) = 0;
+
+ virtual void asyncSetSourceVolume(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_volume_t& volume, const am_RampType_pe& ramp, const am_time_t& time, CommonAPI::CallStatus& callStatus) = 0;
+ virtual std::future<CommonAPI::CallStatus> asyncSetSourceVolumeAsync(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_volume_t& volume, const am_RampType_pe& ramp, const am_time_t& time, AsyncSetSourceVolumeAsyncCallback callback) = 0;
+
+ virtual void asyncSetSourceState(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_SourceState_e& state, CommonAPI::CallStatus& callStatus) = 0;
+ virtual std::future<CommonAPI::CallStatus> asyncSetSourceStateAsync(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_SourceState_e& state, AsyncSetSourceStateAsyncCallback callback) = 0;
+
+ virtual void asyncSetSinkSoundProperties(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_SoundProperty_L& listSoundProperties, CommonAPI::CallStatus& callStatus) = 0;
+ virtual std::future<CommonAPI::CallStatus> asyncSetSinkSoundPropertiesAsync(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_SoundProperty_L& listSoundProperties, AsyncSetSinkSoundPropertiesAsyncCallback callback) = 0;
+
+ virtual void asyncSetSinkSoundProperty(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_SoundProperty_s& soundProperty, CommonAPI::CallStatus& callStatus) = 0;
+ virtual std::future<CommonAPI::CallStatus> asyncSetSinkSoundPropertyAsync(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_SoundProperty_s& soundProperty, AsyncSetSinkSoundPropertyAsyncCallback callback) = 0;
+
+ virtual void asyncSetSourceSoundProperties(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_SoundProperty_L& listSoundProperties, CommonAPI::CallStatus& callStatus) = 0;
+ virtual std::future<CommonAPI::CallStatus> asyncSetSourceSoundPropertiesAsync(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_SoundProperty_L& listSoundProperties, AsyncSetSourceSoundPropertiesAsyncCallback callback) = 0;
+
+ virtual void asyncSetSourceSoundProperty(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_SoundProperty_s& soundProperty, CommonAPI::CallStatus& callStatus) = 0;
+ virtual std::future<CommonAPI::CallStatus> asyncSetSourceSoundPropertyAsync(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_SoundProperty_s& soundProperty, AsyncSetSourceSoundPropertyAsyncCallback callback) = 0;
+
+ virtual void asyncCrossFade(const am_Handle_s& handle, const am_crossfaderID_t& crossfaderID, const am_HotSink_e& hotSink, const am_RampType_pe& rampType, const am_time_t& time, CommonAPI::CallStatus& callStatus) = 0;
+ virtual std::future<CommonAPI::CallStatus> asyncCrossFadeAsync(const am_Handle_s& handle, const am_crossfaderID_t& crossfaderID, const am_HotSink_e& hotSink, const am_RampType_pe& rampType, const am_time_t& time, AsyncCrossFadeAsyncCallback callback) = 0;
+
+ virtual void setDomainState(const am_domainID_t& domainID, const am_DomainState_e& domainState, CommonAPI::CallStatus& callStatus, am_Error_e& error) = 0;
+ virtual std::future<CommonAPI::CallStatus> setDomainStateAsync(const am_domainID_t& domainID, const am_DomainState_e& domainState, SetDomainStateAsyncCallback callback) = 0;
+
+ virtual void asyncSetVolumes(const am_Handle_s& handle, const am_Volumes_L& volumes, CommonAPI::CallStatus& callStatus) = 0;
+ virtual std::future<CommonAPI::CallStatus> asyncSetVolumesAsync(const am_Handle_s& handle, const am_Volumes_L& volumes, AsyncSetVolumesAsyncCallback callback) = 0;
+
+ virtual void asyncSetSinkNotificationConfiguration(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_NotificationConfiguration_s& notificationConfiguration, CommonAPI::CallStatus& callStatus) = 0;
+ virtual std::future<CommonAPI::CallStatus> asyncSetSinkNotificationConfigurationAsync(const am_Handle_s& handle, const am_sinkID_t& sinkID, const am_NotificationConfiguration_s& notificationConfiguration, AsyncSetSinkNotificationConfigurationAsyncCallback callback) = 0;
+
+ virtual void asyncSetSourceNotificationConfiguration(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_NotificationConfiguration_s& notificationConfiguration, CommonAPI::CallStatus& callStatus) = 0;
+ virtual std::future<CommonAPI::CallStatus> asyncSetSourceNotificationConfigurationAsync(const am_Handle_s& handle, const am_sourceID_t& sourceID, const am_NotificationConfiguration_s& notificationConfiguration, AsyncSetSourceNotificationConfigurationAsyncCallback callback) = 0;
+ };
+
+ } // namespace am
+ } // namespace genivi
+ } // namespace org
+
+ #endif // ORG_GENIVI_AM_Routing_Control_PROXY_BASE_H_
diff --git a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlStub.h b/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlStub.h
new file mode 100644
index 0000000..cdaebc4
--- /dev/null
+++ b/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlStub.h
@@ -0,0 +1,112 @@
+/*
+* This file was generated by the CommonAPI Generators.
+*
+ * Copyright (C) 2013, BMW AG
+ *
+ * \author Christian Linke, christian.linke@bmw.de BMW 2012,2013
+*/
+#ifndef ORG_GENIVI_AM_Routing_Control_STUB_H_
+#define ORG_GENIVI_AM_Routing_Control_STUB_H_
+
+
+
+#include <org/genivi/am.h>
+
+#include "RoutingControl.h"
+
+#define COMMONAPI_INTERNAL_COMPILATION
+
+#include <CommonAPI/InputStream.h>
+#include <CommonAPI/OutputStream.h>
+#include <CommonAPI/SerializableStruct.h>
+#include <cstdint>
+#include <vector>
+
+#include <CommonAPI/Stub.h>
+
+#undef COMMONAPI_INTERNAL_COMPILATION
+
+namespace org {
+namespace genivi {
+namespace am {
+
+/**
+ * Receives messages from remote and handles all dispatching of deserialized calls
+ * to a stub for the service RoutingControl. Also provides means to send broadcasts
+ * and attribute-changed-notifications of observable attributes as defined by this service.
+ * An application developer should not need to bother with this class.
+ */
+class RoutingControlStubAdapter: virtual public CommonAPI::StubAdapter, public RoutingControl {
+ public:
+
+};
+
+
+/**
+ * Defines the necessary callbacks to handle remote set events related to the attributes
+ * defined in the IDL description for RoutingControl.
+ * For each attribute two callbacks are defined:
+ * - a verification callback that allows to verify the requested value and to prevent setting
+ * e.g. an invalid value ("onRemoteSet<AttributeName>").
+ * - an action callback to do local work after the attribute value has been changed
+ * ("onRemote<AttributeName>Changed").
+ *
+ * This class and the one below are the ones an application developer needs to have
+ * a look at if he wants to implement a service.
+ */
+class RoutingControlStubRemoteEvent {
+ public:
+ virtual ~RoutingControlStubRemoteEvent() { }
+
+};
+
+
+/**
+ * Defines the interface that must be implemented by any class that should provide
+ * the service RoutingControl to remote clients.
+ * This class and the one above are the ones an application developer needs to have
+ * a look at if he wants to implement a service.
+ */
+class RoutingControlStub : public CommonAPI::Stub<RoutingControlStubAdapter , RoutingControlStubRemoteEvent> {
+ public:
+ virtual ~RoutingControlStub() { }
+
+
+ /// This is the method that will be called on remote calls on the method asyncAbort.
+ virtual void asyncAbort(am_Handle_s handle) = 0;
+ /// This is the method that will be called on remote calls on the method asyncConnect.
+ virtual void asyncConnect(am_Handle_s handle, am_connectionID_t connectionID, am_sourceID_t sourceID, am_sinkID_t sinkID, am_ConnectionFormat_pe connectionFormat) = 0;
+ /// This is the method that will be called on remote calls on the method asyncDisconnect.
+ virtual void asyncDisconnect(am_Handle_s handle, am_connectionID_t connectionID) = 0;
+ /// This is the method that will be called on remote calls on the method asyncSetSinkVolume.
+ virtual void asyncSetSinkVolume(am_Handle_s handle, am_sinkID_t sinkID, am_volume_t volume, am_RampType_pe ramp, am_time_t time) = 0;
+ /// This is the method that will be called on remote calls on the method asyncSetSourceVolume.
+ virtual void asyncSetSourceVolume(am_Handle_s handle, am_sourceID_t sourceID, am_volume_t volume, am_RampType_pe ramp, am_time_t time) = 0;
+ /// This is the method that will be called on remote calls on the method asyncSetSourceState.
+ virtual void asyncSetSourceState(am_Handle_s handle, am_sourceID_t sourceID, am_SourceState_e state) = 0;
+ /// This is the method that will be called on remote calls on the method asyncSetSinkSoundProperties.
+ virtual void asyncSetSinkSoundProperties(am_Handle_s handle, am_sinkID_t sinkID, am_SoundProperty_L listSoundProperties) = 0;
+ /// This is the method that will be called on remote calls on the method asyncSetSinkSoundProperty.
+ virtual void asyncSetSinkSoundProperty(am_Handle_s handle, am_sinkID_t sinkID, am_SoundProperty_s soundProperty) = 0;
+ /// This is the method that will be called on remote calls on the method asyncSetSourceSoundProperties.
+ virtual void asyncSetSourceSoundProperties(am_Handle_s handle, am_sourceID_t sourceID, am_SoundProperty_L listSoundProperties) = 0;
+ /// This is the method that will be called on remote calls on the method asyncSetSourceSoundProperty.
+ virtual void asyncSetSourceSoundProperty(am_Handle_s handle, am_sourceID_t sourceID, am_SoundProperty_s soundProperty) = 0;
+ /// This is the method that will be called on remote calls on the method asyncCrossFade.
+ virtual void asyncCrossFade(am_Handle_s handle, am_crossfaderID_t crossfaderID, am_HotSink_e hotSink, am_RampType_pe rampType, am_time_t time) = 0;
+ /// This is the method that will be called on remote calls on the method setDomainState.
+ virtual void setDomainState(am_domainID_t domainID, am_DomainState_e domainState, am_Error_e& error) = 0;
+ /// This is the method that will be called on remote calls on the method asyncSetVolumes.
+ virtual void asyncSetVolumes(am_Handle_s handle, am_Volumes_L volumes) = 0;
+ /// This is the method that will be called on remote calls on the method asyncSetSinkNotificationConfiguration.
+ virtual void asyncSetSinkNotificationConfiguration(am_Handle_s handle, am_sinkID_t sinkID, am_NotificationConfiguration_s notificationConfiguration) = 0;
+ /// This is the method that will be called on remote calls on the method asyncSetSourceNotificationConfiguration.
+ virtual void asyncSetSourceNotificationConfiguration(am_Handle_s handle, am_sourceID_t sourceID, am_NotificationConfiguration_s notificationConfiguration) = 0;
+
+};
+
+} // namespace am
+} // namespace genivi
+} // namespace org
+
+#endif // ORG_GENIVI_AM_Routing_Control_STUB_H_
diff --git a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlStubDefault.cpp b/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlStubDefault.cpp
new file mode 100644
index 0000000..69a0e6e
--- /dev/null
+++ b/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlStubDefault.cpp
@@ -0,0 +1,92 @@
+/*
+* This file was generated by the CommonAPI Generators.
+*
+ * Copyright (C) 2013, BMW AG
+ *
+ * \author Christian Linke, christian.linke@bmw.de BMW 2012,2013
+*/
+#include <org/genivi/am/RoutingControlStubDefault.h>
+
+namespace org {
+namespace genivi {
+namespace am {
+
+RoutingControlStubDefault::RoutingControlStubDefault():
+ remoteEventHandler_(this) {
+}
+
+RoutingControlStubRemoteEvent* RoutingControlStubDefault::initStubAdapter(const std::shared_ptr<RoutingControlStubAdapter>& stubAdapter) {
+ stubAdapter_ = stubAdapter;
+ return &remoteEventHandler_;
+}
+
+
+void RoutingControlStubDefault::asyncAbort(am_Handle_s handle) {
+ // No operation in default
+}
+
+void RoutingControlStubDefault::asyncConnect(am_Handle_s handle, am_connectionID_t connectionID, am_sourceID_t sourceID, am_sinkID_t sinkID, am_ConnectionFormat_pe connectionFormat) {
+ // No operation in default
+}
+
+void RoutingControlStubDefault::asyncDisconnect(am_Handle_s handle, am_connectionID_t connectionID) {
+ // No operation in default
+}
+
+void RoutingControlStubDefault::asyncSetSinkVolume(am_Handle_s handle, am_sinkID_t sinkID, am_volume_t volume, am_RampType_pe ramp, am_time_t time) {
+ // No operation in default
+}
+
+void RoutingControlStubDefault::asyncSetSourceVolume(am_Handle_s handle, am_sourceID_t sourceID, am_volume_t volume, am_RampType_pe ramp, am_time_t time) {
+ // No operation in default
+}
+
+void RoutingControlStubDefault::asyncSetSourceState(am_Handle_s handle, am_sourceID_t sourceID, am_SourceState_e state) {
+ // No operation in default
+}
+
+void RoutingControlStubDefault::asyncSetSinkSoundProperties(am_Handle_s handle, am_sinkID_t sinkID, am_SoundProperty_L listSoundProperties) {
+ // No operation in default
+}
+
+void RoutingControlStubDefault::asyncSetSinkSoundProperty(am_Handle_s handle, am_sinkID_t sinkID, am_SoundProperty_s soundProperty) {
+ // No operation in default
+}
+
+void RoutingControlStubDefault::asyncSetSourceSoundProperties(am_Handle_s handle, am_sourceID_t sourceID, am_SoundProperty_L listSoundProperties) {
+ // No operation in default
+}
+
+void RoutingControlStubDefault::asyncSetSourceSoundProperty(am_Handle_s handle, am_sourceID_t sourceID, am_SoundProperty_s soundProperty) {
+ // No operation in default
+}
+
+void RoutingControlStubDefault::asyncCrossFade(am_Handle_s handle, am_crossfaderID_t crossfaderID, am_HotSink_e hotSink, am_RampType_pe rampType, am_time_t time) {
+ // No operation in default
+}
+
+void RoutingControlStubDefault::setDomainState(am_domainID_t domainID, am_DomainState_e domainState, am_Error_e& error) {
+ // No operation in default
+}
+
+void RoutingControlStubDefault::asyncSetVolumes(am_Handle_s handle, am_Volumes_L volumes) {
+ // No operation in default
+}
+
+void RoutingControlStubDefault::asyncSetSinkNotificationConfiguration(am_Handle_s handle, am_sinkID_t sinkID, am_NotificationConfiguration_s notificationConfiguration) {
+ // No operation in default
+}
+
+void RoutingControlStubDefault::asyncSetSourceNotificationConfiguration(am_Handle_s handle, am_sourceID_t sourceID, am_NotificationConfiguration_s notificationConfiguration) {
+ // No operation in default
+}
+
+
+
+RoutingControlStubDefault::RemoteEventHandler::RemoteEventHandler(RoutingControlStubDefault* defaultStub):
+ defaultStub_(defaultStub) {
+}
+
+} // namespace am
+} // namespace genivi
+} // namespace org
diff --git a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlStubDefault.h b/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlStubDefault.h
new file mode 100644
index 0000000..922c975
--- /dev/null
+++ b/PluginRoutingInterfaceCAPI/src-gen/org/genivi/am/RoutingControlStubDefault.h
@@ -0,0 +1,87 @@
+/*
+* This file was generated by the CommonAPI Generators.
+*
+ * Copyright (C) 2013, BMW AG
+ *
+ * \author Christian Linke, christian.linke@bmw.de BMW 2012,2013
+*/
+#ifndef ORG_GENIVI_AM_Routing_Control_STUB_DEFAULT_H_
+#define ORG_GENIVI_AM_Routing_Control_STUB_DEFAULT_H_
+
+#include <org/genivi/am/RoutingControlStub.h>
+
+namespace org {
+namespace genivi {
+namespace am {
+
+/**
+ * Provides a default implementation for RoutingControlStubRemoteEvent and
+ * RoutingControlStub. Method callbacks have an empty implementation,
+ * remote set calls on attributes will always change the value of the attribute
+ * to the one received.
+ *
+ * Override this stub if you only want to provide a subset of the functionality
+ * that would be defined for this service, and/or if you do not need any non-default
+ * behaviour.
+ */
+class RoutingControlStubDefault : public RoutingControlStub {
+ public:
+ RoutingControlStubDefault();
+
+ RoutingControlStubRemoteEvent* initStubAdapter(const std::shared_ptr<RoutingControlStubAdapter>& stubAdapter);
+
+
+ virtual void asyncAbort(am_Handle_s handle);
+
+ virtual void asyncConnect(am_Handle_s handle, am_connectionID_t connectionID, am_sourceID_t sourceID, am_sinkID_t sinkID, am_ConnectionFormat_pe connectionFormat);
+
+ virtual void asyncDisconnect(am_Handle_s handle, am_connectionID_t connectionID);
+
+ virtual void asyncSetSinkVolume(am_Handle_s handle, am_sinkID_t sinkID, am_volume_t volume, am_RampType_pe ramp, am_time_t time);
+
+ virtual void asyncSetSourceVolume(am_Handle_s handle, am_sourceID_t sourceID, am_volume_t volume, am_RampType_pe ramp, am_time_t time);
+
+ virtual void asyncSetSourceState(am_Handle_s handle, am_sourceID_t sourceID, am_SourceState_e state);
+
+ virtual void asyncSetSinkSoundProperties(am_Handle_s handle, am_sinkID_t sinkID, am_SoundProperty_L listSoundProperties);
+
+ virtual void asyncSetSinkSoundProperty(am_Handle_s handle, am_sinkID_t sinkID, am_SoundProperty_s soundProperty);
+
+ virtual void asyncSetSourceSoundProperties(am_Handle_s handle, am_sourceID_t sourceID, am_SoundProperty_L listSoundProperties);
+
+ virtual void asyncSetSourceSoundProperty(am_Handle_s handle, am_sourceID_t sourceID, am_SoundProperty_s soundProperty);
+
+ virtual void asyncCrossFade(am_Handle_s handle, am_crossfaderID_t crossfaderID, am_HotSink_e hotSink, am_RampType_pe rampType, am_time_t time);
+
+ virtual void setDomainState(am_domainID_t domainID, am_DomainState_e domainState, am_Error_e& error);
+
+ virtual void asyncSetVolumes(am_Handle_s handle, am_Volumes_L volumes);
+
+ virtual void asyncSetSinkNotificationConfiguration(am_Handle_s handle, am_sinkID_t sinkID, am_NotificationConfiguration_s notificationConfiguration);
+
+ virtual void asyncSetSourceNotificationConfiguration(am_Handle_s handle, am_sourceID_t sourceID, am_NotificationConfiguration_s notificationConfiguration);
+
+
+
+ protected:
+
+ private:
+ class RemoteEventHandler: public RoutingControlStubRemoteEvent {
+ public:
+ RemoteEventHandler(RoutingControlStubDefault* defaultStub);
+
+
+ private:
+ RoutingControlStubDefault* defaultStub_;
+ };
+
+ RemoteEventHandler remoteEventHandler_;
+ std::shared_ptr<RoutingControlStubAdapter> stubAdapter_;
+
+};
+
+} // namespace am
+} // namespace genivi
+} // namespace org
+
+#endif // ORG_GENIVI_AM_Routing_Control_STUB_DEFAULT_H_
diff --git a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/audiomanager/RoutingInterface.h b/PluginRoutingInterfaceCAPI/src-gen/org/genivi/audiomanager/RoutingInterface.h
deleted file mode 100644
index 50ececf..0000000
--- a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/audiomanager/RoutingInterface.h
+++ /dev/null
@@ -1,66 +0,0 @@
-/*
-* This file was generated by the CommonAPI Generators.
-*
- * Copyright (c) 2012 BMW
- *
- * \author Aleksandar Donchev, aleksander.donchev@partner.bmw.de BMW 2013
- *
- * \copyright
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction,
- * including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
- * subject to the following conditions:
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
- * THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- *
- * For further information see http://www.genivi.org/.
-*/
-#ifndef ORG_GENIVI_AUDIOMANAGER_Routing_Interface_H_
-#define ORG_GENIVI_AUDIOMANAGER_Routing_Interface_H_
-
-
-
-#define COMMONAPI_INTERNAL_COMPILATION
-
-#include <CommonAPI/types.h>
-
-#undef COMMONAPI_INTERNAL_COMPILATION
-
-namespace org {
-namespace genivi {
-namespace audiomanager {
-
-class RoutingInterface {
- public:
- virtual ~RoutingInterface() { }
-
- static inline const char* getInterfaceId();
- static inline CommonAPI::Version getInterfaceVersion();
-};
-
-const char* RoutingInterface::getInterfaceId() {
- return "org.genivi.audiomanager.RoutingInterface";
-}
-
-CommonAPI::Version RoutingInterface::getInterfaceVersion() {
- return CommonAPI::Version(0, 1);
-}
-
-
-} // namespace audiomanager
-} // namespace genivi
-} // namespace org
-
-namespace CommonAPI {
-
-}
-
-
-namespace std {
- //hashes for types
-
- //hashes for error types
-}
-
-#endif // ORG_GENIVI_AUDIOMANAGER_Routing_Interface_H_
diff --git a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/audiomanager/RoutingInterfaceDBusProxy.cpp b/PluginRoutingInterfaceCAPI/src-gen/org/genivi/audiomanager/RoutingInterfaceDBusProxy.cpp
deleted file mode 100644
index 2a19ff4..0000000
--- a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/audiomanager/RoutingInterfaceDBusProxy.cpp
+++ /dev/null
@@ -1,920 +0,0 @@
-/*
-* This file was generated by the CommonAPI Generators.
-*
- * Copyright (c) 2012 BMW
- *
- * \author Aleksandar Donchev, aleksander.donchev@partner.bmw.de BMW 2013
- *
- * \copyright
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction,
- * including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
- * subject to the following conditions:
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
- * THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- *
- * For further information see http://www.genivi.org/.
-*/
-#include "RoutingInterfaceDBusProxy.h"
-
-namespace org {
-namespace genivi {
-namespace audiomanager {
-
-std::shared_ptr<CommonAPI::DBus::DBusProxy> createRoutingInterfaceDBusProxy(
- const std::string& commonApiAddress,
- const std::string& interfaceName,
- const std::string& busName,
- const std::string& objectPath,
- const std::shared_ptr<CommonAPI::DBus::DBusProxyConnection>& dbusProxyConnection) {
- return std::make_shared<RoutingInterfaceDBusProxy>(commonApiAddress, interfaceName, busName, objectPath, dbusProxyConnection);
-}
-
-__attribute__((constructor)) void registerRoutingInterfaceDBusProxy(void) {
- CommonAPI::DBus::DBusFactory::registerProxyFactoryMethod(RoutingInterface::getInterfaceId(),
- &createRoutingInterfaceDBusProxy);
-}
-
-RoutingInterfaceDBusProxy::RoutingInterfaceDBusProxy(
- const std::string& commonApiAddress,
- const std::string& interfaceName,
- const std::string& busName,
- const std::string& objectPath,
- const std::shared_ptr<CommonAPI::DBus::DBusProxyConnection>& dbusProxyconnection):
- CommonAPI::DBus::DBusProxy(commonApiAddress, interfaceName, busName, objectPath, dbusProxyconnection)
-, setRoutingReady_(*this, "setRoutingReady", ""),
- setRoutingRundown_(*this, "setRoutingRundown", "")
- {
-}
-
-
-RoutingInterfaceDBusProxy::SetRoutingReadyEvent& RoutingInterfaceDBusProxy::getSetRoutingReadyEvent() {
- return setRoutingReady_;
-}
-RoutingInterfaceDBusProxy::SetRoutingRundownEvent& RoutingInterfaceDBusProxy::getSetRoutingRundownEvent() {
- return setRoutingRundown_;
-}
-
-void RoutingInterfaceDBusProxy::ackConnect(const uint16_t& handle, const am_gen::am_connectionID_t& connectionID, const uint16_t& error, CommonAPI::CallStatus& callStatus) {
- CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<uint16_t, am_gen::am_connectionID_t, uint16_t>,
- CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
- *this,
- "ackConnect",
- "qqq",
- handle, connectionID, error,
- callStatus
- );
-}
-std::future<CommonAPI::CallStatus> RoutingInterfaceDBusProxy::ackConnectAsync(const uint16_t& handle, const am_gen::am_connectionID_t& connectionID, const uint16_t& error, AckConnectAsyncCallback callback) {
- return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<uint16_t, am_gen::am_connectionID_t, uint16_t>,
- CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
- *this,
- "ackConnect",
- "qqq",
- handle, connectionID, error,
- std::move(callback));
-}
-void RoutingInterfaceDBusProxy::ackDisconnect(const uint16_t& handle, const am_gen::am_connectionID_t& connectionID, const uint16_t& error, CommonAPI::CallStatus& callStatus) {
- CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<uint16_t, am_gen::am_connectionID_t, uint16_t>,
- CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
- *this,
- "ackDisconnect",
- "qqq",
- handle, connectionID, error,
- callStatus
- );
-}
-std::future<CommonAPI::CallStatus> RoutingInterfaceDBusProxy::ackDisconnectAsync(const uint16_t& handle, const am_gen::am_connectionID_t& connectionID, const uint16_t& error, AckDisconnectAsyncCallback callback) {
- return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<uint16_t, am_gen::am_connectionID_t, uint16_t>,
- CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
- *this,
- "ackDisconnect",
- "qqq",
- handle, connectionID, error,
- std::move(callback));
-}
-void RoutingInterfaceDBusProxy::ackSetSinkVolume(const uint16_t& handle, const am_gen::am_volume_t& volume, const uint16_t& error, CommonAPI::CallStatus& callStatus) {
- CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<uint16_t, am_gen::am_volume_t, uint16_t>,
- CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
- *this,
- "ackSetSinkVolume",
- "qnq",
- handle, volume, error,
- callStatus
- );
-}
-std::future<CommonAPI::CallStatus> RoutingInterfaceDBusProxy::ackSetSinkVolumeAsync(const uint16_t& handle, const am_gen::am_volume_t& volume, const uint16_t& error, AckSetSinkVolumeAsyncCallback callback) {
- return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<uint16_t, am_gen::am_volume_t, uint16_t>,
- CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
- *this,
- "ackSetSinkVolume",
- "qnq",
- handle, volume, error,
- std::move(callback));
-}
-void RoutingInterfaceDBusProxy::ackSetSourceVolume(const uint16_t& handle, const am_gen::am_volume_t& volume, const uint16_t& error, CommonAPI::CallStatus& callStatus) {
- CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<uint16_t, am_gen::am_volume_t, uint16_t>,
- CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
- *this,
- "ackSetSourceVolume",
- "qnq",
- handle, volume, error,
- callStatus
- );
-}
-std::future<CommonAPI::CallStatus> RoutingInterfaceDBusProxy::ackSetSourceVolumeAsync(const uint16_t& handle, const am_gen::am_volume_t& volume, const uint16_t& error, AckSetSourceVolumeAsyncCallback callback) {
- return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<uint16_t, am_gen::am_volume_t, uint16_t>,
- CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
- *this,
- "ackSetSourceVolume",
- "qnq",
- handle, volume, error,
- std::move(callback));
-}
-void RoutingInterfaceDBusProxy::ackSetSourceState(const uint16_t& handle, const uint16_t& error, CommonAPI::CallStatus& callStatus) {
- CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<uint16_t, uint16_t>,
- CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
- *this,
- "ackSetSourceState",
- "qq",
- handle, error,
- callStatus
- );
-}
-std::future<CommonAPI::CallStatus> RoutingInterfaceDBusProxy::ackSetSourceStateAsync(const uint16_t& handle, const uint16_t& error, AckSetSourceStateAsyncCallback callback) {
- return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<uint16_t, uint16_t>,
- CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
- *this,
- "ackSetSourceState",
- "qq",
- handle, error,
- std::move(callback));
-}
-void RoutingInterfaceDBusProxy::ackSetSinkSoundProperties(const uint16_t& handle, const uint16_t& error, CommonAPI::CallStatus& callStatus) {
- CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<uint16_t, uint16_t>,
- CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
- *this,
- "ackSetSinkSoundProperties",
- "qq",
- handle, error,
- callStatus
- );
-}
-std::future<CommonAPI::CallStatus> RoutingInterfaceDBusProxy::ackSetSinkSoundPropertiesAsync(const uint16_t& handle, const uint16_t& error, AckSetSinkSoundPropertiesAsyncCallback callback) {
- return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<uint16_t, uint16_t>,
- CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
- *this,
- "ackSetSinkSoundProperties",
- "qq",
- handle, error,
- std::move(callback));
-}
-void RoutingInterfaceDBusProxy::ackSetSinkSoundProperty(const uint16_t& handle, const uint16_t& error, CommonAPI::CallStatus& callStatus) {
- CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<uint16_t, uint16_t>,
- CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
- *this,
- "ackSetSinkSoundProperty",
- "qq",
- handle, error,
- callStatus
- );
-}
-std::future<CommonAPI::CallStatus> RoutingInterfaceDBusProxy::ackSetSinkSoundPropertyAsync(const uint16_t& handle, const uint16_t& error, AckSetSinkSoundPropertyAsyncCallback callback) {
- return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<uint16_t, uint16_t>,
- CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
- *this,
- "ackSetSinkSoundProperty",
- "qq",
- handle, error,
- std::move(callback));
-}
-void RoutingInterfaceDBusProxy::ackSetSourceSoundProperties(const uint16_t& handle, const uint16_t& error, CommonAPI::CallStatus& callStatus) {
- CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<uint16_t, uint16_t>,
- CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
- *this,
- "ackSetSourceSoundProperties",
- "qq",
- handle, error,
- callStatus
- );
-}
-std::future<CommonAPI::CallStatus> RoutingInterfaceDBusProxy::ackSetSourceSoundPropertiesAsync(const uint16_t& handle, const uint16_t& error, AckSetSourceSoundPropertiesAsyncCallback callback) {
- return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<uint16_t, uint16_t>,
- CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
- *this,
- "ackSetSourceSoundProperties",
- "qq",
- handle, error,
- std::move(callback));
-}
-void RoutingInterfaceDBusProxy::ackSetSourceSoundProperty(const uint16_t& handle, const uint16_t& error, CommonAPI::CallStatus& callStatus) {
- CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<uint16_t, uint16_t>,
- CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
- *this,
- "ackSetSourceSoundProperty",
- "qq",
- handle, error,
- callStatus
- );
-}
-std::future<CommonAPI::CallStatus> RoutingInterfaceDBusProxy::ackSetSourceSoundPropertyAsync(const uint16_t& handle, const uint16_t& error, AckSetSourceSoundPropertyAsyncCallback callback) {
- return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<uint16_t, uint16_t>,
- CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
- *this,
- "ackSetSourceSoundProperty",
- "qq",
- handle, error,
- std::move(callback));
-}
-void RoutingInterfaceDBusProxy::ackSourceVolumeTick(const uint16_t& handle, const am_gen::am_sourceID_t& source, const am_gen::am_volume_t& volume, CommonAPI::CallStatus& callStatus) {
- CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<uint16_t, am_gen::am_sourceID_t, am_gen::am_volume_t>,
- CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
- *this,
- "ackSourceVolumeTick",
- "qqn",
- handle, source, volume,
- callStatus
- );
-}
-std::future<CommonAPI::CallStatus> RoutingInterfaceDBusProxy::ackSourceVolumeTickAsync(const uint16_t& handle, const am_gen::am_sourceID_t& source, const am_gen::am_volume_t& volume, AckSourceVolumeTickAsyncCallback callback) {
- return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<uint16_t, am_gen::am_sourceID_t, am_gen::am_volume_t>,
- CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
- *this,
- "ackSourceVolumeTick",
- "qqn",
- handle, source, volume,
- std::move(callback));
-}
-void RoutingInterfaceDBusProxy::ackSinkVolumeTick(const uint16_t& handle, const am_gen::am_sinkID_t& sink, const am_gen::am_volume_t& volume, CommonAPI::CallStatus& callStatus) {
- CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<uint16_t, am_gen::am_sinkID_t, am_gen::am_volume_t>,
- CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
- *this,
- "ackSinkVolumeTick",
- "qqn",
- handle, sink, volume,
- callStatus
- );
-}
-std::future<CommonAPI::CallStatus> RoutingInterfaceDBusProxy::ackSinkVolumeTickAsync(const uint16_t& handle, const am_gen::am_sinkID_t& sink, const am_gen::am_volume_t& volume, AckSinkVolumeTickAsyncCallback callback) {
- return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<uint16_t, am_gen::am_sinkID_t, am_gen::am_volume_t>,
- CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
- *this,
- "ackSinkVolumeTick",
- "qqn",
- handle, sink, volume,
- std::move(callback));
-}
-void RoutingInterfaceDBusProxy::ackCrossFading(const uint16_t& handle, const am_gen::am_HotSink_e& hotSink, const am_gen::am_Error_e& returnError, CommonAPI::CallStatus& callStatus) {
- CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<uint16_t, am_gen::am_HotSink_e, am_gen::am_Error_e>,
- CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
- *this,
- "ackCrossFading",
- "qii",
- handle, hotSink, returnError,
- callStatus
- );
-}
-std::future<CommonAPI::CallStatus> RoutingInterfaceDBusProxy::ackCrossFadingAsync(const uint16_t& handle, const am_gen::am_HotSink_e& hotSink, const am_gen::am_Error_e& returnError, AckCrossFadingAsyncCallback callback) {
- return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<uint16_t, am_gen::am_HotSink_e, am_gen::am_Error_e>,
- CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
- *this,
- "ackCrossFading",
- "qii",
- handle, hotSink, returnError,
- std::move(callback));
-}
-void RoutingInterfaceDBusProxy::peekDomain(const std::string& name, CommonAPI::CallStatus& callStatus, am_gen::am_domainID_t& domainID, am_gen::am_Error_e& error) {
- CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<std::string>,
- CommonAPI::DBus::DBusSerializableArguments<am_gen::am_domainID_t, am_gen::am_Error_e> >::callMethodWithReply(
- *this,
- "peekDomain",
- "s",
- name,
- callStatus
- , domainID, error);
-}
-std::future<CommonAPI::CallStatus> RoutingInterfaceDBusProxy::peekDomainAsync(const std::string& name, PeekDomainAsyncCallback callback) {
- return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<std::string>,
- CommonAPI::DBus::DBusSerializableArguments<am_gen::am_domainID_t, am_gen::am_Error_e> >::callMethodAsync(
- *this,
- "peekDomain",
- "s",
- name,
- std::move(callback));
-}
-void RoutingInterfaceDBusProxy::registerDomain(const am_gen::am_Domain_s& domainData, const std::string& returnBusname, const std::string& returnPath, const std::string& returnInterface, CommonAPI::CallStatus& callStatus, am_gen::am_domainID_t& domainID, am_gen::am_Error_e& error) {
- CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_gen::am_Domain_s, std::string, std::string, std::string>,
- CommonAPI::DBus::DBusSerializableArguments<am_gen::am_domainID_t, am_gen::am_Error_e> >::callMethodWithReply(
- *this,
- "registerDomain",
- "(qsssbbi)sss",
- domainData, returnBusname, returnPath, returnInterface,
- callStatus
- , domainID, error);
-}
-std::future<CommonAPI::CallStatus> RoutingInterfaceDBusProxy::registerDomainAsync(const am_gen::am_Domain_s& domainData, const std::string& returnBusname, const std::string& returnPath, const std::string& returnInterface, RegisterDomainAsyncCallback callback) {
- return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_gen::am_Domain_s, std::string, std::string, std::string>,
- CommonAPI::DBus::DBusSerializableArguments<am_gen::am_domainID_t, am_gen::am_Error_e> >::callMethodAsync(
- *this,
- "registerDomain",
- "(qsssbbi)sss",
- domainData, returnBusname, returnPath, returnInterface,
- std::move(callback));
-}
-void RoutingInterfaceDBusProxy::deregisterDomain(const am_gen::am_domainID_t& domainID, CommonAPI::CallStatus& callStatus, am_gen::am_Error_e& returnError) {
- CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_gen::am_domainID_t>,
- CommonAPI::DBus::DBusSerializableArguments<am_gen::am_Error_e> >::callMethodWithReply(
- *this,
- "deregisterDomain",
- "q",
- domainID,
- callStatus
- , returnError);
-}
-std::future<CommonAPI::CallStatus> RoutingInterfaceDBusProxy::deregisterDomainAsync(const am_gen::am_domainID_t& domainID, DeregisterDomainAsyncCallback callback) {
- return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_gen::am_domainID_t>,
- CommonAPI::DBus::DBusSerializableArguments<am_gen::am_Error_e> >::callMethodAsync(
- *this,
- "deregisterDomain",
- "q",
- domainID,
- std::move(callback));
-}
-void RoutingInterfaceDBusProxy::registerGateway(const am_gen::am_Gateway_s& gatewayData, CommonAPI::CallStatus& callStatus, am_gen::am_gatewayID_t& gatewayID, am_gen::am_Error_e& error) {
- CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_gen::am_Gateway_s>,
- CommonAPI::DBus::DBusSerializableArguments<am_gen::am_gatewayID_t, am_gen::am_Error_e> >::callMethodWithReply(
- *this,
- "registerGateway",
- "(qsqqqqqaiaiab)",
- gatewayData,
- callStatus
- , gatewayID, error);
-}
-std::future<CommonAPI::CallStatus> RoutingInterfaceDBusProxy::registerGatewayAsync(const am_gen::am_Gateway_s& gatewayData, RegisterGatewayAsyncCallback callback) {
- return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_gen::am_Gateway_s>,
- CommonAPI::DBus::DBusSerializableArguments<am_gen::am_gatewayID_t, am_gen::am_Error_e> >::callMethodAsync(
- *this,
- "registerGateway",
- "(qsqqqqqaiaiab)",
- gatewayData,
- std::move(callback));
-}
-void RoutingInterfaceDBusProxy::deregisterGateway(const am_gen::am_gatewayID_t& gatewayID, CommonAPI::CallStatus& callStatus, am_gen::am_Error_e& returnError) {
- CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_gen::am_gatewayID_t>,
- CommonAPI::DBus::DBusSerializableArguments<am_gen::am_Error_e> >::callMethodWithReply(
- *this,
- "deregisterGateway",
- "q",
- gatewayID,
- callStatus
- , returnError);
-}
-std::future<CommonAPI::CallStatus> RoutingInterfaceDBusProxy::deregisterGatewayAsync(const am_gen::am_gatewayID_t& gatewayID, DeregisterGatewayAsyncCallback callback) {
- return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_gen::am_gatewayID_t>,
- CommonAPI::DBus::DBusSerializableArguments<am_gen::am_Error_e> >::callMethodAsync(
- *this,
- "deregisterGateway",
- "q",
- gatewayID,
- std::move(callback));
-}
-void RoutingInterfaceDBusProxy::peekSink(const std::string& name, CommonAPI::CallStatus& callStatus, am_gen::am_sinkID_t& sinkID, am_gen::am_Error_e& error) {
- CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<std::string>,
- CommonAPI::DBus::DBusSerializableArguments<am_gen::am_sinkID_t, am_gen::am_Error_e> >::callMethodWithReply(
- *this,
- "peekSink",
- "s",
- name,
- callStatus
- , sinkID, error);
-}
-std::future<CommonAPI::CallStatus> RoutingInterfaceDBusProxy::peekSinkAsync(const std::string& name, PeekSinkAsyncCallback callback) {
- return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<std::string>,
- CommonAPI::DBus::DBusSerializableArguments<am_gen::am_sinkID_t, am_gen::am_Error_e> >::callMethodAsync(
- *this,
- "peekSink",
- "s",
- name,
- std::move(callback));
-}
-void RoutingInterfaceDBusProxy::registerSink(const am_gen::sinkData_s& sinkData, CommonAPI::CallStatus& callStatus, am_gen::am_sinkID_t& sinkID, am_gen::am_Error_e& error) {
- CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_gen::sinkData_s>,
- CommonAPI::DBus::DBusSerializableArguments<am_gen::am_sinkID_t, am_gen::am_Error_e> >::callMethodWithReply(
- *this,
- "registerSink",
- "(qsqqnb(ii)ina(in)aia(in)a(iin)a(iin))",
- sinkData,
- callStatus
- , sinkID, error);
-}
-std::future<CommonAPI::CallStatus> RoutingInterfaceDBusProxy::registerSinkAsync(const am_gen::sinkData_s& sinkData, RegisterSinkAsyncCallback callback) {
- return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_gen::sinkData_s>,
- CommonAPI::DBus::DBusSerializableArguments<am_gen::am_sinkID_t, am_gen::am_Error_e> >::callMethodAsync(
- *this,
- "registerSink",
- "(qsqqnb(ii)ina(in)aia(in)a(iin)a(iin))",
- sinkData,
- std::move(callback));
-}
-void RoutingInterfaceDBusProxy::deregisterSink(const am_gen::am_sinkID_t& sinkID, CommonAPI::CallStatus& callStatus, am_gen::am_Error_e& returnError) {
- CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_gen::am_sinkID_t>,
- CommonAPI::DBus::DBusSerializableArguments<am_gen::am_Error_e> >::callMethodWithReply(
- *this,
- "deregisterSink",
- "q",
- sinkID,
- callStatus
- , returnError);
-}
-std::future<CommonAPI::CallStatus> RoutingInterfaceDBusProxy::deregisterSinkAsync(const am_gen::am_sinkID_t& sinkID, DeregisterSinkAsyncCallback callback) {
- return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_gen::am_sinkID_t>,
- CommonAPI::DBus::DBusSerializableArguments<am_gen::am_Error_e> >::callMethodAsync(
- *this,
- "deregisterSink",
- "q",
- sinkID,
- std::move(callback));
-}
-void RoutingInterfaceDBusProxy::peekSource(const std::string& name, CommonAPI::CallStatus& callStatus, am_gen::am_sourceID_t& sourceID, am_gen::am_Error_e& error) {
- CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<std::string>,
- CommonAPI::DBus::DBusSerializableArguments<am_gen::am_sourceID_t, am_gen::am_Error_e> >::callMethodWithReply(
- *this,
- "peekSource",
- "s",
- name,
- callStatus
- , sourceID, error);
-}
-std::future<CommonAPI::CallStatus> RoutingInterfaceDBusProxy::peekSourceAsync(const std::string& name, PeekSourceAsyncCallback callback) {
- return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<std::string>,
- CommonAPI::DBus::DBusSerializableArguments<am_gen::am_sourceID_t, am_gen::am_Error_e> >::callMethodAsync(
- *this,
- "peekSource",
- "s",
- name,
- std::move(callback));
-}
-void RoutingInterfaceDBusProxy::registerSource(const am_gen::sourceData_s& sourceData, CommonAPI::CallStatus& callStatus, am_gen::am_sourceID_t& sourceID, am_gen::am_Error_e& error) {
- CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_gen::sourceData_s>,
- CommonAPI::DBus::DBusSerializableArguments<am_gen::am_sourceID_t, am_gen::am_Error_e> >::callMethodWithReply(
- *this,
- "registerSource",
- "(qqsqinb(ii)ia(in)aia(in)a(iin)a(iin))",
- sourceData,
- callStatus
- , sourceID, error);
-}
-std::future<CommonAPI::CallStatus> RoutingInterfaceDBusProxy::registerSourceAsync(const am_gen::sourceData_s& sourceData, RegisterSourceAsyncCallback callback) {
- return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_gen::sourceData_s>,
- CommonAPI::DBus::DBusSerializableArguments<am_gen::am_sourceID_t, am_gen::am_Error_e> >::callMethodAsync(
- *this,
- "registerSource",
- "(qqsqinb(ii)ia(in)aia(in)a(iin)a(iin))",
- sourceData,
- std::move(callback));
-}
-void RoutingInterfaceDBusProxy::deregisterSource(const am_gen::am_sourceID_t& sourceID, CommonAPI::CallStatus& callStatus, am_gen::am_Error_e& returnError) {
- CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_gen::am_sourceID_t>,
- CommonAPI::DBus::DBusSerializableArguments<am_gen::am_Error_e> >::callMethodWithReply(
- *this,
- "deregisterSource",
- "q",
- sourceID,
- callStatus
- , returnError);
-}
-std::future<CommonAPI::CallStatus> RoutingInterfaceDBusProxy::deregisterSourceAsync(const am_gen::am_sourceID_t& sourceID, DeregisterSourceAsyncCallback callback) {
- return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_gen::am_sourceID_t>,
- CommonAPI::DBus::DBusSerializableArguments<am_gen::am_Error_e> >::callMethodAsync(
- *this,
- "deregisterSource",
- "q",
- sourceID,
- std::move(callback));
-}
-void RoutingInterfaceDBusProxy::registerCrossfader(const am_gen::crossfaderData_s& crossfaderData, CommonAPI::CallStatus& callStatus, am_gen::am_crossfaderID_t& crossfaderID, am_gen::am_Error_e& error) {
- CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_gen::crossfaderData_s>,
- CommonAPI::DBus::DBusSerializableArguments<am_gen::am_crossfaderID_t, am_gen::am_Error_e> >::callMethodWithReply(
- *this,
- "registerCrossfader",
- "(qsqqqi)",
- crossfaderData,
- callStatus
- , crossfaderID, error);
-}
-std::future<CommonAPI::CallStatus> RoutingInterfaceDBusProxy::registerCrossfaderAsync(const am_gen::crossfaderData_s& crossfaderData, RegisterCrossfaderAsyncCallback callback) {
- return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_gen::crossfaderData_s>,
- CommonAPI::DBus::DBusSerializableArguments<am_gen::am_crossfaderID_t, am_gen::am_Error_e> >::callMethodAsync(
- *this,
- "registerCrossfader",
- "(qsqqqi)",
- crossfaderData,
- std::move(callback));
-}
-void RoutingInterfaceDBusProxy::deregisterCrossfader(const am_gen::am_crossfaderID_t& crossfaderID, CommonAPI::CallStatus& callStatus, am_gen::am_Error_e& returnError) {
- CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_gen::am_crossfaderID_t>,
- CommonAPI::DBus::DBusSerializableArguments<am_gen::am_Error_e> >::callMethodWithReply(
- *this,
- "deregisterCrossfader",
- "q",
- crossfaderID,
- callStatus
- , returnError);
-}
-std::future<CommonAPI::CallStatus> RoutingInterfaceDBusProxy::deregisterCrossfaderAsync(const am_gen::am_crossfaderID_t& crossfaderID, DeregisterCrossfaderAsyncCallback callback) {
- return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_gen::am_crossfaderID_t>,
- CommonAPI::DBus::DBusSerializableArguments<am_gen::am_Error_e> >::callMethodAsync(
- *this,
- "deregisterCrossfader",
- "q",
- crossfaderID,
- std::move(callback));
-}
-void RoutingInterfaceDBusProxy::peekSourceClassID(const std::string& name, CommonAPI::CallStatus& callStatus, am_gen::am_sourceClass_t& sourceClassID, am_gen::am_Error_e& error) {
- CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<std::string>,
- CommonAPI::DBus::DBusSerializableArguments<am_gen::am_sourceClass_t, am_gen::am_Error_e> >::callMethodWithReply(
- *this,
- "peekSourceClassID",
- "s",
- name,
- callStatus
- , sourceClassID, error);
-}
-std::future<CommonAPI::CallStatus> RoutingInterfaceDBusProxy::peekSourceClassIDAsync(const std::string& name, PeekSourceClassIDAsyncCallback callback) {
- return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<std::string>,
- CommonAPI::DBus::DBusSerializableArguments<am_gen::am_sourceClass_t, am_gen::am_Error_e> >::callMethodAsync(
- *this,
- "peekSourceClassID",
- "s",
- name,
- std::move(callback));
-}
-void RoutingInterfaceDBusProxy::peekSinkClassID(const std::string& name, CommonAPI::CallStatus& callStatus, am_gen::am_sinkClass_t& sinkClassID, am_gen::am_Error_e& error) {
- CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<std::string>,
- CommonAPI::DBus::DBusSerializableArguments<am_gen::am_sinkClass_t, am_gen::am_Error_e> >::callMethodWithReply(
- *this,
- "peekSinkClassID",
- "s",
- name,
- callStatus
- , sinkClassID, error);
-}
-std::future<CommonAPI::CallStatus> RoutingInterfaceDBusProxy::peekSinkClassIDAsync(const std::string& name, PeekSinkClassIDAsyncCallback callback) {
- return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<std::string>,
- CommonAPI::DBus::DBusSerializableArguments<am_gen::am_sinkClass_t, am_gen::am_Error_e> >::callMethodAsync(
- *this,
- "peekSinkClassID",
- "s",
- name,
- std::move(callback));
-}
-void RoutingInterfaceDBusProxy::hookInterruptStatusChange(const am_gen::am_sourceID_t& sourceID, const uint16_t& interruptState, CommonAPI::CallStatus& callStatus) {
- CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_gen::am_sourceID_t, uint16_t>,
- CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
- *this,
- "hookInterruptStatusChange",
- "qq",
- sourceID, interruptState,
- callStatus
- );
-}
-std::future<CommonAPI::CallStatus> RoutingInterfaceDBusProxy::hookInterruptStatusChangeAsync(const am_gen::am_sourceID_t& sourceID, const uint16_t& interruptState, HookInterruptStatusChangeAsyncCallback callback) {
- return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_gen::am_sourceID_t, uint16_t>,
- CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
- *this,
- "hookInterruptStatusChange",
- "qq",
- sourceID, interruptState,
- std::move(callback));
-}
-void RoutingInterfaceDBusProxy::hookDomainRegistrationComplete(const am_gen::am_domainID_t& domainID, CommonAPI::CallStatus& callStatus) {
- CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_gen::am_domainID_t>,
- CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
- *this,
- "hookDomainRegistrationComplete",
- "q",
- domainID,
- callStatus
- );
-}
-std::future<CommonAPI::CallStatus> RoutingInterfaceDBusProxy::hookDomainRegistrationCompleteAsync(const am_gen::am_domainID_t& domainID, HookDomainRegistrationCompleteAsyncCallback callback) {
- return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_gen::am_domainID_t>,
- CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
- *this,
- "hookDomainRegistrationComplete",
- "q",
- domainID,
- std::move(callback));
-}
-void RoutingInterfaceDBusProxy::hookSinkAvailablityStatusChange(const am_gen::am_sinkID_t& sinkID, const am_gen::am_Availability_s& availability, CommonAPI::CallStatus& callStatus) {
- CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_gen::am_sinkID_t, am_gen::am_Availability_s>,
- CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
- *this,
- "hookSinkAvailablityStatusChange",
- "q(ii)",
- sinkID, availability,
- callStatus
- );
-}
-std::future<CommonAPI::CallStatus> RoutingInterfaceDBusProxy::hookSinkAvailablityStatusChangeAsync(const am_gen::am_sinkID_t& sinkID, const am_gen::am_Availability_s& availability, HookSinkAvailablityStatusChangeAsyncCallback callback) {
- return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_gen::am_sinkID_t, am_gen::am_Availability_s>,
- CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
- *this,
- "hookSinkAvailablityStatusChange",
- "q(ii)",
- sinkID, availability,
- std::move(callback));
-}
-void RoutingInterfaceDBusProxy::hookSourceAvailablityStatusChange(const am_gen::am_sourceID_t& sourceID, const am_gen::am_Availability_s& availability, CommonAPI::CallStatus& callStatus) {
- CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_gen::am_sourceID_t, am_gen::am_Availability_s>,
- CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
- *this,
- "hookSourceAvailablityStatusChange",
- "q(ii)",
- sourceID, availability,
- callStatus
- );
-}
-std::future<CommonAPI::CallStatus> RoutingInterfaceDBusProxy::hookSourceAvailablityStatusChangeAsync(const am_gen::am_sourceID_t& sourceID, const am_gen::am_Availability_s& availability, HookSourceAvailablityStatusChangeAsyncCallback callback) {
- return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_gen::am_sourceID_t, am_gen::am_Availability_s>,
- CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
- *this,
- "hookSourceAvailablityStatusChange",
- "q(ii)",
- sourceID, availability,
- std::move(callback));
-}
-void RoutingInterfaceDBusProxy::hookDomainStateChange(const am_gen::am_domainID_t& domainID, const am_gen::am_DomainState_e& domainState, CommonAPI::CallStatus& callStatus) {
- CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_gen::am_domainID_t, am_gen::am_DomainState_e>,
- CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
- *this,
- "hookDomainStateChange",
- "qi",
- domainID, domainState,
- callStatus
- );
-}
-std::future<CommonAPI::CallStatus> RoutingInterfaceDBusProxy::hookDomainStateChangeAsync(const am_gen::am_domainID_t& domainID, const am_gen::am_DomainState_e& domainState, HookDomainStateChangeAsyncCallback callback) {
- return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_gen::am_domainID_t, am_gen::am_DomainState_e>,
- CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
- *this,
- "hookDomainStateChange",
- "qi",
- domainID, domainState,
- std::move(callback));
-}
-void RoutingInterfaceDBusProxy::hookTimingInformationChanged(const am_gen::am_connectionID_t& connectionID, const int16_t& delay, CommonAPI::CallStatus& callStatus) {
- CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_gen::am_connectionID_t, int16_t>,
- CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
- *this,
- "hookTimingInformationChanged",
- "qn",
- connectionID, delay,
- callStatus
- );
-}
-std::future<CommonAPI::CallStatus> RoutingInterfaceDBusProxy::hookTimingInformationChangedAsync(const am_gen::am_connectionID_t& connectionID, const int16_t& delay, HookTimingInformationChangedAsyncCallback callback) {
- return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_gen::am_connectionID_t, int16_t>,
- CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
- *this,
- "hookTimingInformationChanged",
- "qn",
- connectionID, delay,
- std::move(callback));
-}
-void RoutingInterfaceDBusProxy::sendChangedData(const am_gen::am_EarlyData_l& earlyData_volumes, const am_gen::am_EarlyData_l& earlyData_soundproperties, CommonAPI::CallStatus& callStatus) {
- CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_gen::am_EarlyData_l, am_gen::am_EarlyData_l>,
- CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
- *this,
- "sendChangedData",
- "a(i(yv)(yv))a(i(yv)(yv))",
- earlyData_volumes, earlyData_soundproperties,
- callStatus
- );
-}
-std::future<CommonAPI::CallStatus> RoutingInterfaceDBusProxy::sendChangedDataAsync(const am_gen::am_EarlyData_l& earlyData_volumes, const am_gen::am_EarlyData_l& earlyData_soundproperties, SendChangedDataAsyncCallback callback) {
- return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_gen::am_EarlyData_l, am_gen::am_EarlyData_l>,
- CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
- *this,
- "sendChangedData",
- "a(i(yv)(yv))a(i(yv)(yv))",
- earlyData_volumes, earlyData_soundproperties,
- std::move(callback));
-}
-void RoutingInterfaceDBusProxy::confirmRoutingReady(const am_gen::am_domainID_t& domainID, CommonAPI::CallStatus& callStatus) {
- CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_gen::am_domainID_t>,
- CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
- *this,
- "confirmRoutingReady",
- "q",
- domainID,
- callStatus
- );
-}
-std::future<CommonAPI::CallStatus> RoutingInterfaceDBusProxy::confirmRoutingReadyAsync(const am_gen::am_domainID_t& domainID, ConfirmRoutingReadyAsyncCallback callback) {
- return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_gen::am_domainID_t>,
- CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
- *this,
- "confirmRoutingReady",
- "q",
- domainID,
- std::move(callback));
-}
-void RoutingInterfaceDBusProxy::confirmRoutingRundown(const am_gen::am_domainID_t& domainID, CommonAPI::CallStatus& callStatus) {
- CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_gen::am_domainID_t>,
- CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
- *this,
- "confirmRoutingRundown",
- "q",
- domainID,
- callStatus
- );
-}
-std::future<CommonAPI::CallStatus> RoutingInterfaceDBusProxy::confirmRoutingRundownAsync(const am_gen::am_domainID_t& domainID, ConfirmRoutingRundownAsyncCallback callback) {
- return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_gen::am_domainID_t>,
- CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
- *this,
- "confirmRoutingRundown",
- "q",
- domainID,
- std::move(callback));
-}
-void RoutingInterfaceDBusProxy::updateGateway(const am_gen::am_gatewayID_t& gatewayID, const am_gen::am_ConnectionFormat_L& listSourceFormats, const am_gen::am_ConnectionFormat_L& listSinkFormats, const am_gen::bool_L& convertionMatrix, CommonAPI::CallStatus& callStatus) {
- CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_gen::am_gatewayID_t, am_gen::am_ConnectionFormat_L, am_gen::am_ConnectionFormat_L, am_gen::bool_L>,
- CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
- *this,
- "updateGateway",
- "qaiaiab",
- gatewayID, listSourceFormats, listSinkFormats, convertionMatrix,
- callStatus
- );
-}
-std::future<CommonAPI::CallStatus> RoutingInterfaceDBusProxy::updateGatewayAsync(const am_gen::am_gatewayID_t& gatewayID, const am_gen::am_ConnectionFormat_L& listSourceFormats, const am_gen::am_ConnectionFormat_L& listSinkFormats, const am_gen::bool_L& convertionMatrix, UpdateGatewayAsyncCallback callback) {
- return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_gen::am_gatewayID_t, am_gen::am_ConnectionFormat_L, am_gen::am_ConnectionFormat_L, am_gen::bool_L>,
- CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
- *this,
- "updateGateway",
- "qaiaiab",
- gatewayID, listSourceFormats, listSinkFormats, convertionMatrix,
- std::move(callback));
-}
-void RoutingInterfaceDBusProxy::updateSink(const am_gen::am_sinkID_t& sinkID, const am_gen::am_sinkClass_t& sinkClassID, const am_gen::am_SoundProperty_L& listSoundProperties, const am_gen::am_ConnectionFormat_L& listConnectionFormats, const am_gen::am_MainSoundProperty_L& listMainSoundProperties, CommonAPI::CallStatus& callStatus) {
- CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_gen::am_sinkID_t, am_gen::am_sinkClass_t, am_gen::am_SoundProperty_L, am_gen::am_ConnectionFormat_L, am_gen::am_MainSoundProperty_L>,
- CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
- *this,
- "updateSink",
- "qqa(in)aia(in)",
- sinkID, sinkClassID, listSoundProperties, listConnectionFormats, listMainSoundProperties,
- callStatus
- );
-}
-std::future<CommonAPI::CallStatus> RoutingInterfaceDBusProxy::updateSinkAsync(const am_gen::am_sinkID_t& sinkID, const am_gen::am_sinkClass_t& sinkClassID, const am_gen::am_SoundProperty_L& listSoundProperties, const am_gen::am_ConnectionFormat_L& listConnectionFormats, const am_gen::am_MainSoundProperty_L& listMainSoundProperties, UpdateSinkAsyncCallback callback) {
- return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_gen::am_sinkID_t, am_gen::am_sinkClass_t, am_gen::am_SoundProperty_L, am_gen::am_ConnectionFormat_L, am_gen::am_MainSoundProperty_L>,
- CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
- *this,
- "updateSink",
- "qqa(in)aia(in)",
- sinkID, sinkClassID, listSoundProperties, listConnectionFormats, listMainSoundProperties,
- std::move(callback));
-}
-void RoutingInterfaceDBusProxy::updateSource(const am_gen::am_sourceID_t& sourceID, const am_gen::am_sourceClass_t& sourceClassID, const am_gen::am_SoundProperty_L& listSoundProperties, const am_gen::am_ConnectionFormat_L& listConnectionFormats, const am_gen::am_MainSoundProperty_L& listMainSoundProperties, CommonAPI::CallStatus& callStatus) {
- CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_gen::am_sourceID_t, am_gen::am_sourceClass_t, am_gen::am_SoundProperty_L, am_gen::am_ConnectionFormat_L, am_gen::am_MainSoundProperty_L>,
- CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
- *this,
- "updateSource",
- "qqa(in)aia(in)",
- sourceID, sourceClassID, listSoundProperties, listConnectionFormats, listMainSoundProperties,
- callStatus
- );
-}
-std::future<CommonAPI::CallStatus> RoutingInterfaceDBusProxy::updateSourceAsync(const am_gen::am_sourceID_t& sourceID, const am_gen::am_sourceClass_t& sourceClassID, const am_gen::am_SoundProperty_L& listSoundProperties, const am_gen::am_ConnectionFormat_L& listConnectionFormats, const am_gen::am_MainSoundProperty_L& listMainSoundProperties, UpdateSourceAsyncCallback callback) {
- return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_gen::am_sourceID_t, am_gen::am_sourceClass_t, am_gen::am_SoundProperty_L, am_gen::am_ConnectionFormat_L, am_gen::am_MainSoundProperty_L>,
- CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
- *this,
- "updateSource",
- "qqa(in)aia(in)",
- sourceID, sourceClassID, listSoundProperties, listConnectionFormats, listMainSoundProperties,
- std::move(callback));
-}
-void RoutingInterfaceDBusProxy::ackSetVolumes(const uint16_t& handle, const am_gen::am_Volumes_l& listVolumes, const uint16_t& error, CommonAPI::CallStatus& callStatus) {
- CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<uint16_t, am_gen::am_Volumes_l, uint16_t>,
- CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
- *this,
- "ackSetVolumes",
- "qa(i(yv)niq)q",
- handle, listVolumes, error,
- callStatus
- );
-}
-std::future<CommonAPI::CallStatus> RoutingInterfaceDBusProxy::ackSetVolumesAsync(const uint16_t& handle, const am_gen::am_Volumes_l& listVolumes, const uint16_t& error, AckSetVolumesAsyncCallback callback) {
- return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<uint16_t, am_gen::am_Volumes_l, uint16_t>,
- CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
- *this,
- "ackSetVolumes",
- "qa(i(yv)niq)q",
- handle, listVolumes, error,
- std::move(callback));
-}
-void RoutingInterfaceDBusProxy::ackSinkNotificationConfiguration(const uint16_t& handle, const uint16_t& error, CommonAPI::CallStatus& callStatus) {
- CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<uint16_t, uint16_t>,
- CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
- *this,
- "ackSinkNotificationConfiguration",
- "qq",
- handle, error,
- callStatus
- );
-}
-std::future<CommonAPI::CallStatus> RoutingInterfaceDBusProxy::ackSinkNotificationConfigurationAsync(const uint16_t& handle, const uint16_t& error, AckSinkNotificationConfigurationAsyncCallback callback) {
- return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<uint16_t, uint16_t>,
- CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
- *this,
- "ackSinkNotificationConfiguration",
- "qq",
- handle, error,
- std::move(callback));
-}
-void RoutingInterfaceDBusProxy::ackSourceNotificationConfiguration(const uint16_t& handle, const uint16_t& error, CommonAPI::CallStatus& callStatus) {
- CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<uint16_t, uint16_t>,
- CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
- *this,
- "ackSourceNotificationConfiguration",
- "qq",
- handle, error,
- callStatus
- );
-}
-std::future<CommonAPI::CallStatus> RoutingInterfaceDBusProxy::ackSourceNotificationConfigurationAsync(const uint16_t& handle, const uint16_t& error, AckSourceNotificationConfigurationAsyncCallback callback) {
- return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<uint16_t, uint16_t>,
- CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
- *this,
- "ackSourceNotificationConfiguration",
- "qq",
- handle, error,
- std::move(callback));
-}
-void RoutingInterfaceDBusProxy::hookSinkNotificationDataChange(const am_gen::am_sinkID_t& sinkID, const am_gen::notificationPayload_s& payload, CommonAPI::CallStatus& callStatus) {
- CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_gen::am_sinkID_t, am_gen::notificationPayload_s>,
- CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
- *this,
- "hookSinkNotificationDataChange",
- "q(nn)",
- sinkID, payload,
- callStatus
- );
-}
-std::future<CommonAPI::CallStatus> RoutingInterfaceDBusProxy::hookSinkNotificationDataChangeAsync(const am_gen::am_sinkID_t& sinkID, const am_gen::notificationPayload_s& payload, HookSinkNotificationDataChangeAsyncCallback callback) {
- return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_gen::am_sinkID_t, am_gen::notificationPayload_s>,
- CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
- *this,
- "hookSinkNotificationDataChange",
- "q(nn)",
- sinkID, payload,
- std::move(callback));
-}
-void RoutingInterfaceDBusProxy::hookSourceNotificationDataChange(const am_gen::am_sourceID_t& sourceID, const am_gen::notificationPayload_s& payload, CommonAPI::CallStatus& callStatus) {
- CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_gen::am_sourceID_t, am_gen::notificationPayload_s>,
- CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
- *this,
- "hookSourceNotificationDataChange",
- "q(nn)",
- sourceID, payload,
- callStatus
- );
-}
-std::future<CommonAPI::CallStatus> RoutingInterfaceDBusProxy::hookSourceNotificationDataChangeAsync(const am_gen::am_sourceID_t& sourceID, const am_gen::notificationPayload_s& payload, HookSourceNotificationDataChangeAsyncCallback callback) {
- return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_gen::am_sourceID_t, am_gen::notificationPayload_s>,
- CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
- *this,
- "hookSourceNotificationDataChange",
- "q(nn)",
- sourceID, payload,
- std::move(callback));
-}
-void RoutingInterfaceDBusProxy::getRoutingReadyState(CommonAPI::CallStatus& callStatus, bool& readyState) {
- CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<>,
- CommonAPI::DBus::DBusSerializableArguments<bool> >::callMethodWithReply(
- *this,
- "getRoutingReadyState",
- "",
- callStatus
- , readyState);
-}
-std::future<CommonAPI::CallStatus> RoutingInterfaceDBusProxy::getRoutingReadyStateAsync(GetRoutingReadyStateAsyncCallback callback) {
- return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<>,
- CommonAPI::DBus::DBusSerializableArguments<bool> >::callMethodAsync(
- *this,
- "getRoutingReadyState",
- "",
- std::move(callback));
-}
-
-void RoutingInterfaceDBusProxy::getOwnVersion(uint16_t& ownVersionMajor, uint16_t& ownVersionMinor) const {
- ownVersionMajor = 0;
- ownVersionMinor = 1;
-}
-
-} // namespace audiomanager
-} // namespace genivi
-} // namespace org
diff --git a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/audiomanager/RoutingInterfaceDBusProxy.h b/PluginRoutingInterfaceCAPI/src-gen/org/genivi/audiomanager/RoutingInterfaceDBusProxy.h
deleted file mode 100644
index 893d736..0000000
--- a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/audiomanager/RoutingInterfaceDBusProxy.h
+++ /dev/null
@@ -1,201 +0,0 @@
-/*
-* This file was generated by the CommonAPI Generators.
-*
- * Copyright (c) 2012 BMW
- *
- * \author Aleksandar Donchev, aleksander.donchev@partner.bmw.de BMW 2013
- *
- * \copyright
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction,
- * including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
- * subject to the following conditions:
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
- * THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- *
- * For further information see http://www.genivi.org/.
-*/
-#ifndef ORG_GENIVI_AUDIOMANAGER_Routing_Interface_DBUS_PROXY_H_
-#define ORG_GENIVI_AUDIOMANAGER_Routing_Interface_DBUS_PROXY_H_
-
-#include <org/genivi/audiomanager/RoutingInterfaceProxyBase.h>
-
-#define COMMONAPI_INTERNAL_COMPILATION
-
-#include <CommonAPI/DBus/DBusFactory.h>
-#include <CommonAPI/DBus/DBusProxy.h>
-#include <CommonAPI/DBus/DBusEvent.h>
-
-#undef COMMONAPI_INTERNAL_COMPILATION
-
-#include <string>
-
-namespace org {
-namespace genivi {
-namespace audiomanager {
-
-class RoutingInterfaceDBusProxy: virtual public RoutingInterfaceProxyBase, virtual public CommonAPI::DBus::DBusProxy {
- public:
- RoutingInterfaceDBusProxy(
- const std::string& commonApiAddress,
- const std::string& interfaceName,
- const std::string& busName,
- const std::string& objectPath,
- const std::shared_ptr<CommonAPI::DBus::DBusProxyConnection>& dbusProxyconnection);
-
- virtual ~RoutingInterfaceDBusProxy() { }
-
-
- virtual SetRoutingReadyEvent& getSetRoutingReadyEvent();
- virtual SetRoutingRundownEvent& getSetRoutingRundownEvent();
-
-
- virtual void ackConnect(const uint16_t& handle, const am_gen::am_connectionID_t& connectionID, const uint16_t& error, CommonAPI::CallStatus& callStatus);
- virtual std::future<CommonAPI::CallStatus> ackConnectAsync(const uint16_t& handle, const am_gen::am_connectionID_t& connectionID, const uint16_t& error, AckConnectAsyncCallback callback);
-
- virtual void ackDisconnect(const uint16_t& handle, const am_gen::am_connectionID_t& connectionID, const uint16_t& error, CommonAPI::CallStatus& callStatus);
- virtual std::future<CommonAPI::CallStatus> ackDisconnectAsync(const uint16_t& handle, const am_gen::am_connectionID_t& connectionID, const uint16_t& error, AckDisconnectAsyncCallback callback);
-
- virtual void ackSetSinkVolume(const uint16_t& handle, const am_gen::am_volume_t& volume, const uint16_t& error, CommonAPI::CallStatus& callStatus);
- virtual std::future<CommonAPI::CallStatus> ackSetSinkVolumeAsync(const uint16_t& handle, const am_gen::am_volume_t& volume, const uint16_t& error, AckSetSinkVolumeAsyncCallback callback);
-
- virtual void ackSetSourceVolume(const uint16_t& handle, const am_gen::am_volume_t& volume, const uint16_t& error, CommonAPI::CallStatus& callStatus);
- virtual std::future<CommonAPI::CallStatus> ackSetSourceVolumeAsync(const uint16_t& handle, const am_gen::am_volume_t& volume, const uint16_t& error, AckSetSourceVolumeAsyncCallback callback);
-
- virtual void ackSetSourceState(const uint16_t& handle, const uint16_t& error, CommonAPI::CallStatus& callStatus);
- virtual std::future<CommonAPI::CallStatus> ackSetSourceStateAsync(const uint16_t& handle, const uint16_t& error, AckSetSourceStateAsyncCallback callback);
-
- virtual void ackSetSinkSoundProperties(const uint16_t& handle, const uint16_t& error, CommonAPI::CallStatus& callStatus);
- virtual std::future<CommonAPI::CallStatus> ackSetSinkSoundPropertiesAsync(const uint16_t& handle, const uint16_t& error, AckSetSinkSoundPropertiesAsyncCallback callback);
-
- virtual void ackSetSinkSoundProperty(const uint16_t& handle, const uint16_t& error, CommonAPI::CallStatus& callStatus);
- virtual std::future<CommonAPI::CallStatus> ackSetSinkSoundPropertyAsync(const uint16_t& handle, const uint16_t& error, AckSetSinkSoundPropertyAsyncCallback callback);
-
- virtual void ackSetSourceSoundProperties(const uint16_t& handle, const uint16_t& error, CommonAPI::CallStatus& callStatus);
- virtual std::future<CommonAPI::CallStatus> ackSetSourceSoundPropertiesAsync(const uint16_t& handle, const uint16_t& error, AckSetSourceSoundPropertiesAsyncCallback callback);
-
- virtual void ackSetSourceSoundProperty(const uint16_t& handle, const uint16_t& error, CommonAPI::CallStatus& callStatus);
- virtual std::future<CommonAPI::CallStatus> ackSetSourceSoundPropertyAsync(const uint16_t& handle, const uint16_t& error, AckSetSourceSoundPropertyAsyncCallback callback);
-
- virtual void ackSourceVolumeTick(const uint16_t& handle, const am_gen::am_sourceID_t& source, const am_gen::am_volume_t& volume, CommonAPI::CallStatus& callStatus);
- virtual std::future<CommonAPI::CallStatus> ackSourceVolumeTickAsync(const uint16_t& handle, const am_gen::am_sourceID_t& source, const am_gen::am_volume_t& volume, AckSourceVolumeTickAsyncCallback callback);
-
- virtual void ackSinkVolumeTick(const uint16_t& handle, const am_gen::am_sinkID_t& sink, const am_gen::am_volume_t& volume, CommonAPI::CallStatus& callStatus);
- virtual std::future<CommonAPI::CallStatus> ackSinkVolumeTickAsync(const uint16_t& handle, const am_gen::am_sinkID_t& sink, const am_gen::am_volume_t& volume, AckSinkVolumeTickAsyncCallback callback);
-
- virtual void ackCrossFading(const uint16_t& handle, const am_gen::am_HotSink_e& hotSink, const am_gen::am_Error_e& returnError, CommonAPI::CallStatus& callStatus);
- virtual std::future<CommonAPI::CallStatus> ackCrossFadingAsync(const uint16_t& handle, const am_gen::am_HotSink_e& hotSink, const am_gen::am_Error_e& returnError, AckCrossFadingAsyncCallback callback);
-
- virtual void peekDomain(const std::string& name, CommonAPI::CallStatus& callStatus, am_gen::am_domainID_t& domainID, am_gen::am_Error_e& error);
- virtual std::future<CommonAPI::CallStatus> peekDomainAsync(const std::string& name, PeekDomainAsyncCallback callback);
-
- virtual void registerDomain(const am_gen::am_Domain_s& domainData, const std::string& returnBusname, const std::string& returnPath, const std::string& returnInterface, CommonAPI::CallStatus& callStatus, am_gen::am_domainID_t& domainID, am_gen::am_Error_e& error);
- virtual std::future<CommonAPI::CallStatus> registerDomainAsync(const am_gen::am_Domain_s& domainData, const std::string& returnBusname, const std::string& returnPath, const std::string& returnInterface, RegisterDomainAsyncCallback callback);
-
- virtual void deregisterDomain(const am_gen::am_domainID_t& domainID, CommonAPI::CallStatus& callStatus, am_gen::am_Error_e& returnError);
- virtual std::future<CommonAPI::CallStatus> deregisterDomainAsync(const am_gen::am_domainID_t& domainID, DeregisterDomainAsyncCallback callback);
-
- virtual void registerGateway(const am_gen::am_Gateway_s& gatewayData, CommonAPI::CallStatus& callStatus, am_gen::am_gatewayID_t& gatewayID, am_gen::am_Error_e& error);
- virtual std::future<CommonAPI::CallStatus> registerGatewayAsync(const am_gen::am_Gateway_s& gatewayData, RegisterGatewayAsyncCallback callback);
-
- virtual void deregisterGateway(const am_gen::am_gatewayID_t& gatewayID, CommonAPI::CallStatus& callStatus, am_gen::am_Error_e& returnError);
- virtual std::future<CommonAPI::CallStatus> deregisterGatewayAsync(const am_gen::am_gatewayID_t& gatewayID, DeregisterGatewayAsyncCallback callback);
-
- virtual void peekSink(const std::string& name, CommonAPI::CallStatus& callStatus, am_gen::am_sinkID_t& sinkID, am_gen::am_Error_e& error);
- virtual std::future<CommonAPI::CallStatus> peekSinkAsync(const std::string& name, PeekSinkAsyncCallback callback);
-
- virtual void registerSink(const am_gen::sinkData_s& sinkData, CommonAPI::CallStatus& callStatus, am_gen::am_sinkID_t& sinkID, am_gen::am_Error_e& error);
- virtual std::future<CommonAPI::CallStatus> registerSinkAsync(const am_gen::sinkData_s& sinkData, RegisterSinkAsyncCallback callback);
-
- virtual void deregisterSink(const am_gen::am_sinkID_t& sinkID, CommonAPI::CallStatus& callStatus, am_gen::am_Error_e& returnError);
- virtual std::future<CommonAPI::CallStatus> deregisterSinkAsync(const am_gen::am_sinkID_t& sinkID, DeregisterSinkAsyncCallback callback);
-
- virtual void peekSource(const std::string& name, CommonAPI::CallStatus& callStatus, am_gen::am_sourceID_t& sourceID, am_gen::am_Error_e& error);
- virtual std::future<CommonAPI::CallStatus> peekSourceAsync(const std::string& name, PeekSourceAsyncCallback callback);
-
- virtual void registerSource(const am_gen::sourceData_s& sourceData, CommonAPI::CallStatus& callStatus, am_gen::am_sourceID_t& sourceID, am_gen::am_Error_e& error);
- virtual std::future<CommonAPI::CallStatus> registerSourceAsync(const am_gen::sourceData_s& sourceData, RegisterSourceAsyncCallback callback);
-
- virtual void deregisterSource(const am_gen::am_sourceID_t& sourceID, CommonAPI::CallStatus& callStatus, am_gen::am_Error_e& returnError);
- virtual std::future<CommonAPI::CallStatus> deregisterSourceAsync(const am_gen::am_sourceID_t& sourceID, DeregisterSourceAsyncCallback callback);
-
- virtual void registerCrossfader(const am_gen::crossfaderData_s& crossfaderData, CommonAPI::CallStatus& callStatus, am_gen::am_crossfaderID_t& crossfaderID, am_gen::am_Error_e& error);
- virtual std::future<CommonAPI::CallStatus> registerCrossfaderAsync(const am_gen::crossfaderData_s& crossfaderData, RegisterCrossfaderAsyncCallback callback);
-
- virtual void deregisterCrossfader(const am_gen::am_crossfaderID_t& crossfaderID, CommonAPI::CallStatus& callStatus, am_gen::am_Error_e& returnError);
- virtual std::future<CommonAPI::CallStatus> deregisterCrossfaderAsync(const am_gen::am_crossfaderID_t& crossfaderID, DeregisterCrossfaderAsyncCallback callback);
-
- virtual void peekSourceClassID(const std::string& name, CommonAPI::CallStatus& callStatus, am_gen::am_sourceClass_t& sourceClassID, am_gen::am_Error_e& error);
- virtual std::future<CommonAPI::CallStatus> peekSourceClassIDAsync(const std::string& name, PeekSourceClassIDAsyncCallback callback);
-
- virtual void peekSinkClassID(const std::string& name, CommonAPI::CallStatus& callStatus, am_gen::am_sinkClass_t& sinkClassID, am_gen::am_Error_e& error);
- virtual std::future<CommonAPI::CallStatus> peekSinkClassIDAsync(const std::string& name, PeekSinkClassIDAsyncCallback callback);
-
- virtual void hookInterruptStatusChange(const am_gen::am_sourceID_t& sourceID, const uint16_t& interruptState, CommonAPI::CallStatus& callStatus);
- virtual std::future<CommonAPI::CallStatus> hookInterruptStatusChangeAsync(const am_gen::am_sourceID_t& sourceID, const uint16_t& interruptState, HookInterruptStatusChangeAsyncCallback callback);
-
- virtual void hookDomainRegistrationComplete(const am_gen::am_domainID_t& domainID, CommonAPI::CallStatus& callStatus);
- virtual std::future<CommonAPI::CallStatus> hookDomainRegistrationCompleteAsync(const am_gen::am_domainID_t& domainID, HookDomainRegistrationCompleteAsyncCallback callback);
-
- virtual void hookSinkAvailablityStatusChange(const am_gen::am_sinkID_t& sinkID, const am_gen::am_Availability_s& availability, CommonAPI::CallStatus& callStatus);
- virtual std::future<CommonAPI::CallStatus> hookSinkAvailablityStatusChangeAsync(const am_gen::am_sinkID_t& sinkID, const am_gen::am_Availability_s& availability, HookSinkAvailablityStatusChangeAsyncCallback callback);
-
- virtual void hookSourceAvailablityStatusChange(const am_gen::am_sourceID_t& sourceID, const am_gen::am_Availability_s& availability, CommonAPI::CallStatus& callStatus);
- virtual std::future<CommonAPI::CallStatus> hookSourceAvailablityStatusChangeAsync(const am_gen::am_sourceID_t& sourceID, const am_gen::am_Availability_s& availability, HookSourceAvailablityStatusChangeAsyncCallback callback);
-
- virtual void hookDomainStateChange(const am_gen::am_domainID_t& domainID, const am_gen::am_DomainState_e& domainState, CommonAPI::CallStatus& callStatus);
- virtual std::future<CommonAPI::CallStatus> hookDomainStateChangeAsync(const am_gen::am_domainID_t& domainID, const am_gen::am_DomainState_e& domainState, HookDomainStateChangeAsyncCallback callback);
-
- virtual void hookTimingInformationChanged(const am_gen::am_connectionID_t& connectionID, const int16_t& delay, CommonAPI::CallStatus& callStatus);
- virtual std::future<CommonAPI::CallStatus> hookTimingInformationChangedAsync(const am_gen::am_connectionID_t& connectionID, const int16_t& delay, HookTimingInformationChangedAsyncCallback callback);
-
- virtual void sendChangedData(const am_gen::am_EarlyData_l& earlyData_volumes, const am_gen::am_EarlyData_l& earlyData_soundproperties, CommonAPI::CallStatus& callStatus);
- virtual std::future<CommonAPI::CallStatus> sendChangedDataAsync(const am_gen::am_EarlyData_l& earlyData_volumes, const am_gen::am_EarlyData_l& earlyData_soundproperties, SendChangedDataAsyncCallback callback);
-
- virtual void confirmRoutingReady(const am_gen::am_domainID_t& domainID, CommonAPI::CallStatus& callStatus);
- virtual std::future<CommonAPI::CallStatus> confirmRoutingReadyAsync(const am_gen::am_domainID_t& domainID, ConfirmRoutingReadyAsyncCallback callback);
-
- virtual void confirmRoutingRundown(const am_gen::am_domainID_t& domainID, CommonAPI::CallStatus& callStatus);
- virtual std::future<CommonAPI::CallStatus> confirmRoutingRundownAsync(const am_gen::am_domainID_t& domainID, ConfirmRoutingRundownAsyncCallback callback);
-
- virtual void updateGateway(const am_gen::am_gatewayID_t& gatewayID, const am_gen::am_ConnectionFormat_L& listSourceFormats, const am_gen::am_ConnectionFormat_L& listSinkFormats, const am_gen::bool_L& convertionMatrix, CommonAPI::CallStatus& callStatus);
- virtual std::future<CommonAPI::CallStatus> updateGatewayAsync(const am_gen::am_gatewayID_t& gatewayID, const am_gen::am_ConnectionFormat_L& listSourceFormats, const am_gen::am_ConnectionFormat_L& listSinkFormats, const am_gen::bool_L& convertionMatrix, UpdateGatewayAsyncCallback callback);
-
- virtual void updateSink(const am_gen::am_sinkID_t& sinkID, const am_gen::am_sinkClass_t& sinkClassID, const am_gen::am_SoundProperty_L& listSoundProperties, const am_gen::am_ConnectionFormat_L& listConnectionFormats, const am_gen::am_MainSoundProperty_L& listMainSoundProperties, CommonAPI::CallStatus& callStatus);
- virtual std::future<CommonAPI::CallStatus> updateSinkAsync(const am_gen::am_sinkID_t& sinkID, const am_gen::am_sinkClass_t& sinkClassID, const am_gen::am_SoundProperty_L& listSoundProperties, const am_gen::am_ConnectionFormat_L& listConnectionFormats, const am_gen::am_MainSoundProperty_L& listMainSoundProperties, UpdateSinkAsyncCallback callback);
-
- virtual void updateSource(const am_gen::am_sourceID_t& sourceID, const am_gen::am_sourceClass_t& sourceClassID, const am_gen::am_SoundProperty_L& listSoundProperties, const am_gen::am_ConnectionFormat_L& listConnectionFormats, const am_gen::am_MainSoundProperty_L& listMainSoundProperties, CommonAPI::CallStatus& callStatus);
- virtual std::future<CommonAPI::CallStatus> updateSourceAsync(const am_gen::am_sourceID_t& sourceID, const am_gen::am_sourceClass_t& sourceClassID, const am_gen::am_SoundProperty_L& listSoundProperties, const am_gen::am_ConnectionFormat_L& listConnectionFormats, const am_gen::am_MainSoundProperty_L& listMainSoundProperties, UpdateSourceAsyncCallback callback);
-
- virtual void ackSetVolumes(const uint16_t& handle, const am_gen::am_Volumes_l& listVolumes, const uint16_t& error, CommonAPI::CallStatus& callStatus);
- virtual std::future<CommonAPI::CallStatus> ackSetVolumesAsync(const uint16_t& handle, const am_gen::am_Volumes_l& listVolumes, const uint16_t& error, AckSetVolumesAsyncCallback callback);
-
- virtual void ackSinkNotificationConfiguration(const uint16_t& handle, const uint16_t& error, CommonAPI::CallStatus& callStatus);
- virtual std::future<CommonAPI::CallStatus> ackSinkNotificationConfigurationAsync(const uint16_t& handle, const uint16_t& error, AckSinkNotificationConfigurationAsyncCallback callback);
-
- virtual void ackSourceNotificationConfiguration(const uint16_t& handle, const uint16_t& error, CommonAPI::CallStatus& callStatus);
- virtual std::future<CommonAPI::CallStatus> ackSourceNotificationConfigurationAsync(const uint16_t& handle, const uint16_t& error, AckSourceNotificationConfigurationAsyncCallback callback);
-
- virtual void hookSinkNotificationDataChange(const am_gen::am_sinkID_t& sinkID, const am_gen::notificationPayload_s& payload, CommonAPI::CallStatus& callStatus);
- virtual std::future<CommonAPI::CallStatus> hookSinkNotificationDataChangeAsync(const am_gen::am_sinkID_t& sinkID, const am_gen::notificationPayload_s& payload, HookSinkNotificationDataChangeAsyncCallback callback);
-
- virtual void hookSourceNotificationDataChange(const am_gen::am_sourceID_t& sourceID, const am_gen::notificationPayload_s& payload, CommonAPI::CallStatus& callStatus);
- virtual std::future<CommonAPI::CallStatus> hookSourceNotificationDataChangeAsync(const am_gen::am_sourceID_t& sourceID, const am_gen::notificationPayload_s& payload, HookSourceNotificationDataChangeAsyncCallback callback);
-
- virtual void getRoutingReadyState(CommonAPI::CallStatus& callStatus, bool& readyState);
- virtual std::future<CommonAPI::CallStatus> getRoutingReadyStateAsync(GetRoutingReadyStateAsyncCallback callback);
-
- virtual void getOwnVersion(uint16_t& ownVersionMajor, uint16_t& ownVersionMinor) const;
-
- private:
-
- CommonAPI::DBus::DBusEvent<SetRoutingReadyEvent> setRoutingReady_;
- CommonAPI::DBus::DBusEvent<SetRoutingRundownEvent> setRoutingRundown_;
-};
-
-} // namespace audiomanager
-} // namespace genivi
-} // namespace org
-
-#endif // ORG_GENIVI_AUDIOMANAGER_Routing_Interface_DBUS_PROXY_H_
diff --git a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/audiomanager/RoutingInterfaceDBusStubAdapter.cpp b/PluginRoutingInterfaceCAPI/src-gen/org/genivi/audiomanager/RoutingInterfaceDBusStubAdapter.cpp
deleted file mode 100644
index 19ef262..0000000
--- a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/audiomanager/RoutingInterfaceDBusStubAdapter.cpp
+++ /dev/null
@@ -1,562 +0,0 @@
-/*
-* This file was generated by the CommonAPI Generators.
-*
- * Copyright (c) 2012 BMW
- *
- * \author Aleksandar Donchev, aleksander.donchev@partner.bmw.de BMW 2013
- *
- * \copyright
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction,
- * including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
- * subject to the following conditions:
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
- * THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- *
- * For further information see http://www.genivi.org/.
-*/
-#include "RoutingInterfaceDBusStubAdapter.h"
-#include <org/genivi/audiomanager/RoutingInterface.h>
-
-namespace org {
-namespace genivi {
-namespace audiomanager {
-
-std::shared_ptr<CommonAPI::DBus::DBusStubAdapter> createRoutingInterfaceDBusStubAdapter(
- const std::string& commonApiAddress,
- const std::string& interfaceName,
- const std::string& busName,
- const std::string& objectPath,
- const std::shared_ptr<CommonAPI::DBus::DBusProxyConnection>& dbusProxyConnection,
- const std::shared_ptr<CommonAPI::StubBase>& stubBase) {
- return std::make_shared<RoutingInterfaceDBusStubAdapter>(commonApiAddress, interfaceName, busName, objectPath, dbusProxyConnection, stubBase);
-}
-
-__attribute__((constructor)) void registerRoutingInterfaceDBusStubAdapter(void) {
- CommonAPI::DBus::DBusFactory::registerAdapterFactoryMethod(RoutingInterface::getInterfaceId(),
- &createRoutingInterfaceDBusStubAdapter);
-}
-
-RoutingInterfaceDBusStubAdapter::RoutingInterfaceDBusStubAdapter(
- const std::string& commonApiAddress,
- const std::string& dbusInterfaceName,
- const std::string& dbusBusName,
- const std::string& dbusObjectPath,
- const std::shared_ptr<CommonAPI::DBus::DBusProxyConnection>& dbusConnection,
- const std::shared_ptr<CommonAPI::StubBase>& stub):
- RoutingInterfaceDBusStubAdapterHelper(commonApiAddress, dbusInterfaceName, dbusBusName, dbusObjectPath, dbusConnection, std::dynamic_pointer_cast<RoutingInterfaceStub>(stub)) {
-}
-
-const char* RoutingInterfaceDBusStubAdapter::getMethodsDBusIntrospectionXmlData() const {
- return
- "<signal name=\"setRoutingReady\">\n"
- "</signal>\n"
- "<signal name=\"setRoutingRundown\">\n"
- "</signal>\n"
- "<method name=\"ackConnect\">\n"
- "<arg name=\"handle\" type=\"q\" direction=\"in\" />\n"
- "<arg name=\"connectionID\" type=\"q\" direction=\"in\" />\n"
- "<arg name=\"error\" type=\"q\" direction=\"in\" />\n"
- "</method>\n"
- "<method name=\"ackDisconnect\">\n"
- "<arg name=\"handle\" type=\"q\" direction=\"in\" />\n"
- "<arg name=\"connectionID\" type=\"q\" direction=\"in\" />\n"
- "<arg name=\"error\" type=\"q\" direction=\"in\" />\n"
- "</method>\n"
- "<method name=\"ackSetSinkVolume\">\n"
- "<arg name=\"handle\" type=\"q\" direction=\"in\" />\n"
- "<arg name=\"volume\" type=\"n\" direction=\"in\" />\n"
- "<arg name=\"error\" type=\"q\" direction=\"in\" />\n"
- "</method>\n"
- "<method name=\"ackSetSourceVolume\">\n"
- "<arg name=\"handle\" type=\"q\" direction=\"in\" />\n"
- "<arg name=\"volume\" type=\"n\" direction=\"in\" />\n"
- "<arg name=\"error\" type=\"q\" direction=\"in\" />\n"
- "</method>\n"
- "<method name=\"ackSetSourceState\">\n"
- "<arg name=\"handle\" type=\"q\" direction=\"in\" />\n"
- "<arg name=\"error\" type=\"q\" direction=\"in\" />\n"
- "</method>\n"
- "<method name=\"ackSetSinkSoundProperties\">\n"
- "<arg name=\"handle\" type=\"q\" direction=\"in\" />\n"
- "<arg name=\"error\" type=\"q\" direction=\"in\" />\n"
- "</method>\n"
- "<method name=\"ackSetSinkSoundProperty\">\n"
- "<arg name=\"handle\" type=\"q\" direction=\"in\" />\n"
- "<arg name=\"error\" type=\"q\" direction=\"in\" />\n"
- "</method>\n"
- "<method name=\"ackSetSourceSoundProperties\">\n"
- "<arg name=\"handle\" type=\"q\" direction=\"in\" />\n"
- "<arg name=\"error\" type=\"q\" direction=\"in\" />\n"
- "</method>\n"
- "<method name=\"ackSetSourceSoundProperty\">\n"
- "<arg name=\"handle\" type=\"q\" direction=\"in\" />\n"
- "<arg name=\"error\" type=\"q\" direction=\"in\" />\n"
- "</method>\n"
- "<method name=\"ackSourceVolumeTick\">\n"
- "<arg name=\"handle\" type=\"q\" direction=\"in\" />\n"
- "<arg name=\"source\" type=\"q\" direction=\"in\" />\n"
- "<arg name=\"volume\" type=\"n\" direction=\"in\" />\n"
- "</method>\n"
- "<method name=\"ackSinkVolumeTick\">\n"
- "<arg name=\"handle\" type=\"q\" direction=\"in\" />\n"
- "<arg name=\"sink\" type=\"q\" direction=\"in\" />\n"
- "<arg name=\"volume\" type=\"n\" direction=\"in\" />\n"
- "</method>\n"
- "<method name=\"ackCrossFading\">\n"
- "<arg name=\"handle\" type=\"q\" direction=\"in\" />\n"
- "<arg name=\"hotSink\" type=\"i\" direction=\"in\" />\n"
- "<arg name=\"returnError\" type=\"i\" direction=\"in\" />\n"
- "</method>\n"
- "<method name=\"peekDomain\">\n"
- "<arg name=\"name\" type=\"s\" direction=\"in\" />\n"
- "<arg name=\"domainID\" type=\"q\" direction=\"out\" />\n"
- "<arg name=\"error\" type=\"i\" direction=\"out\" />\n"
- "</method>\n"
- "<method name=\"registerDomain\">\n"
- "<arg name=\"domainData\" type=\"(qsssbbi)\" direction=\"in\" />\n"
- "<arg name=\"returnBusname\" type=\"s\" direction=\"in\" />\n"
- "<arg name=\"returnPath\" type=\"s\" direction=\"in\" />\n"
- "<arg name=\"returnInterface\" type=\"s\" direction=\"in\" />\n"
- "<arg name=\"domainID\" type=\"q\" direction=\"out\" />\n"
- "<arg name=\"error\" type=\"i\" direction=\"out\" />\n"
- "</method>\n"
- "<method name=\"deregisterDomain\">\n"
- "<arg name=\"domainID\" type=\"q\" direction=\"in\" />\n"
- "<arg name=\"returnError\" type=\"i\" direction=\"out\" />\n"
- "</method>\n"
- "<method name=\"registerGateway\">\n"
- "<arg name=\"gatewayData\" type=\"(qsqqqqqaiaiab)\" direction=\"in\" />\n"
- "<arg name=\"gatewayID\" type=\"q\" direction=\"out\" />\n"
- "<arg name=\"error\" type=\"i\" direction=\"out\" />\n"
- "</method>\n"
- "<method name=\"deregisterGateway\">\n"
- "<arg name=\"gatewayID\" type=\"q\" direction=\"in\" />\n"
- "<arg name=\"returnError\" type=\"i\" direction=\"out\" />\n"
- "</method>\n"
- "<method name=\"peekSink\">\n"
- "<arg name=\"name\" type=\"s\" direction=\"in\" />\n"
- "<arg name=\"sinkID\" type=\"q\" direction=\"out\" />\n"
- "<arg name=\"error\" type=\"i\" direction=\"out\" />\n"
- "</method>\n"
- "<method name=\"registerSink\">\n"
- "<arg name=\"sinkData\" type=\"(qsqqnb(ii)ina(in)aia(in)a(iin)a(iin))\" direction=\"in\" />\n"
- "<arg name=\"sinkID\" type=\"q\" direction=\"out\" />\n"
- "<arg name=\"error\" type=\"i\" direction=\"out\" />\n"
- "</method>\n"
- "<method name=\"deregisterSink\">\n"
- "<arg name=\"sinkID\" type=\"q\" direction=\"in\" />\n"
- "<arg name=\"returnError\" type=\"i\" direction=\"out\" />\n"
- "</method>\n"
- "<method name=\"peekSource\">\n"
- "<arg name=\"name\" type=\"s\" direction=\"in\" />\n"
- "<arg name=\"sourceID\" type=\"q\" direction=\"out\" />\n"
- "<arg name=\"error\" type=\"i\" direction=\"out\" />\n"
- "</method>\n"
- "<method name=\"registerSource\">\n"
- "<arg name=\"sourceData\" type=\"(qqsqinb(ii)ia(in)aia(in)a(iin)a(iin))\" direction=\"in\" />\n"
- "<arg name=\"sourceID\" type=\"q\" direction=\"out\" />\n"
- "<arg name=\"error\" type=\"i\" direction=\"out\" />\n"
- "</method>\n"
- "<method name=\"deregisterSource\">\n"
- "<arg name=\"sourceID\" type=\"q\" direction=\"in\" />\n"
- "<arg name=\"returnError\" type=\"i\" direction=\"out\" />\n"
- "</method>\n"
- "<method name=\"registerCrossfader\">\n"
- "<arg name=\"crossfaderData\" type=\"(qsqqqi)\" direction=\"in\" />\n"
- "<arg name=\"crossfaderID\" type=\"q\" direction=\"out\" />\n"
- "<arg name=\"error\" type=\"i\" direction=\"out\" />\n"
- "</method>\n"
- "<method name=\"deregisterCrossfader\">\n"
- "<arg name=\"crossfaderID\" type=\"q\" direction=\"in\" />\n"
- "<arg name=\"returnError\" type=\"i\" direction=\"out\" />\n"
- "</method>\n"
- "<method name=\"peekSourceClassID\">\n"
- "<arg name=\"name\" type=\"s\" direction=\"in\" />\n"
- "<arg name=\"sourceClassID\" type=\"q\" direction=\"out\" />\n"
- "<arg name=\"error\" type=\"i\" direction=\"out\" />\n"
- "</method>\n"
- "<method name=\"peekSinkClassID\">\n"
- "<arg name=\"name\" type=\"s\" direction=\"in\" />\n"
- "<arg name=\"sinkClassID\" type=\"q\" direction=\"out\" />\n"
- "<arg name=\"error\" type=\"i\" direction=\"out\" />\n"
- "</method>\n"
- "<method name=\"hookInterruptStatusChange\">\n"
- "<arg name=\"sourceID\" type=\"q\" direction=\"in\" />\n"
- "<arg name=\"interruptState\" type=\"q\" direction=\"in\" />\n"
- "</method>\n"
- "<method name=\"hookDomainRegistrationComplete\">\n"
- "<arg name=\"domainID\" type=\"q\" direction=\"in\" />\n"
- "</method>\n"
- "<method name=\"hookSinkAvailablityStatusChange\">\n"
- "<arg name=\"sinkID\" type=\"q\" direction=\"in\" />\n"
- "<arg name=\"availability\" type=\"(ii)\" direction=\"in\" />\n"
- "</method>\n"
- "<method name=\"hookSourceAvailablityStatusChange\">\n"
- "<arg name=\"sourceID\" type=\"q\" direction=\"in\" />\n"
- "<arg name=\"availability\" type=\"(ii)\" direction=\"in\" />\n"
- "</method>\n"
- "<method name=\"hookDomainStateChange\">\n"
- "<arg name=\"domainID\" type=\"q\" direction=\"in\" />\n"
- "<arg name=\"domainState\" type=\"i\" direction=\"in\" />\n"
- "</method>\n"
- "<method name=\"hookTimingInformationChanged\">\n"
- "<arg name=\"connectionID\" type=\"q\" direction=\"in\" />\n"
- "<arg name=\"delay\" type=\"n\" direction=\"in\" />\n"
- "</method>\n"
- "<method name=\"sendChangedData\">\n"
- "<arg name=\"earlyData_volumes\" type=\"a(i(yv)(yv))\" direction=\"in\" />\n"
- "<arg name=\"earlyData_soundproperties\" type=\"a(i(yv)(yv))\" direction=\"in\" />\n"
- "</method>\n"
- "<method name=\"confirmRoutingReady\">\n"
- "<arg name=\"domainID\" type=\"q\" direction=\"in\" />\n"
- "</method>\n"
- "<method name=\"confirmRoutingRundown\">\n"
- "<arg name=\"domainID\" type=\"q\" direction=\"in\" />\n"
- "</method>\n"
- "<method name=\"updateGateway\">\n"
- "<arg name=\"gatewayID\" type=\"q\" direction=\"in\" />\n"
- "<arg name=\"listSourceFormats\" type=\"ai\" direction=\"in\" />\n"
- "<arg name=\"listSinkFormats\" type=\"ai\" direction=\"in\" />\n"
- "<arg name=\"convertionMatrix\" type=\"ab\" direction=\"in\" />\n"
- "</method>\n"
- "<method name=\"updateSink\">\n"
- "<arg name=\"sinkID\" type=\"q\" direction=\"in\" />\n"
- "<arg name=\"sinkClassID\" type=\"q\" direction=\"in\" />\n"
- "<arg name=\"listSoundProperties\" type=\"a(in)\" direction=\"in\" />\n"
- "<arg name=\"listConnectionFormats\" type=\"ai\" direction=\"in\" />\n"
- "<arg name=\"listMainSoundProperties\" type=\"a(in)\" direction=\"in\" />\n"
- "</method>\n"
- "<method name=\"updateSource\">\n"
- "<arg name=\"sourceID\" type=\"q\" direction=\"in\" />\n"
- "<arg name=\"sourceClassID\" type=\"q\" direction=\"in\" />\n"
- "<arg name=\"listSoundProperties\" type=\"a(in)\" direction=\"in\" />\n"
- "<arg name=\"listConnectionFormats\" type=\"ai\" direction=\"in\" />\n"
- "<arg name=\"listMainSoundProperties\" type=\"a(in)\" direction=\"in\" />\n"
- "</method>\n"
- "<method name=\"ackSetVolumes\">\n"
- "<arg name=\"handle\" type=\"q\" direction=\"in\" />\n"
- "<arg name=\"listVolumes\" type=\"a(i(yv)niq)\" direction=\"in\" />\n"
- "<arg name=\"error\" type=\"q\" direction=\"in\" />\n"
- "</method>\n"
- "<method name=\"ackSinkNotificationConfiguration\">\n"
- "<arg name=\"handle\" type=\"q\" direction=\"in\" />\n"
- "<arg name=\"error\" type=\"q\" direction=\"in\" />\n"
- "</method>\n"
- "<method name=\"ackSourceNotificationConfiguration\">\n"
- "<arg name=\"handle\" type=\"q\" direction=\"in\" />\n"
- "<arg name=\"error\" type=\"q\" direction=\"in\" />\n"
- "</method>\n"
- "<method name=\"hookSinkNotificationDataChange\">\n"
- "<arg name=\"sinkID\" type=\"q\" direction=\"in\" />\n"
- "<arg name=\"payload\" type=\"(nn)\" direction=\"in\" />\n"
- "</method>\n"
- "<method name=\"hookSourceNotificationDataChange\">\n"
- "<arg name=\"sourceID\" type=\"q\" direction=\"in\" />\n"
- "<arg name=\"payload\" type=\"(nn)\" direction=\"in\" />\n"
- "</method>\n"
- "<method name=\"getRoutingReadyState\">\n"
- "<arg name=\"readyState\" type=\"b\" direction=\"out\" />\n"
- "</method>\n"
- ;
-}
-
-
-
-static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
- RoutingInterfaceStub,
- std::tuple<uint16_t, am_gen::am_connectionID_t, uint16_t>,
- std::tuple<>
- > ackConnectStubDispatcher(&RoutingInterfaceStub::ackConnect, "");
-static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
- RoutingInterfaceStub,
- std::tuple<uint16_t, am_gen::am_connectionID_t, uint16_t>,
- std::tuple<>
- > ackDisconnectStubDispatcher(&RoutingInterfaceStub::ackDisconnect, "");
-static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
- RoutingInterfaceStub,
- std::tuple<uint16_t, am_gen::am_volume_t, uint16_t>,
- std::tuple<>
- > ackSetSinkVolumeStubDispatcher(&RoutingInterfaceStub::ackSetSinkVolume, "");
-static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
- RoutingInterfaceStub,
- std::tuple<uint16_t, am_gen::am_volume_t, uint16_t>,
- std::tuple<>
- > ackSetSourceVolumeStubDispatcher(&RoutingInterfaceStub::ackSetSourceVolume, "");
-static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
- RoutingInterfaceStub,
- std::tuple<uint16_t, uint16_t>,
- std::tuple<>
- > ackSetSourceStateStubDispatcher(&RoutingInterfaceStub::ackSetSourceState, "");
-static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
- RoutingInterfaceStub,
- std::tuple<uint16_t, uint16_t>,
- std::tuple<>
- > ackSetSinkSoundPropertiesStubDispatcher(&RoutingInterfaceStub::ackSetSinkSoundProperties, "");
-static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
- RoutingInterfaceStub,
- std::tuple<uint16_t, uint16_t>,
- std::tuple<>
- > ackSetSinkSoundPropertyStubDispatcher(&RoutingInterfaceStub::ackSetSinkSoundProperty, "");
-static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
- RoutingInterfaceStub,
- std::tuple<uint16_t, uint16_t>,
- std::tuple<>
- > ackSetSourceSoundPropertiesStubDispatcher(&RoutingInterfaceStub::ackSetSourceSoundProperties, "");
-static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
- RoutingInterfaceStub,
- std::tuple<uint16_t, uint16_t>,
- std::tuple<>
- > ackSetSourceSoundPropertyStubDispatcher(&RoutingInterfaceStub::ackSetSourceSoundProperty, "");
-static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
- RoutingInterfaceStub,
- std::tuple<uint16_t, am_gen::am_sourceID_t, am_gen::am_volume_t>,
- std::tuple<>
- > ackSourceVolumeTickStubDispatcher(&RoutingInterfaceStub::ackSourceVolumeTick, "");
-static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
- RoutingInterfaceStub,
- std::tuple<uint16_t, am_gen::am_sinkID_t, am_gen::am_volume_t>,
- std::tuple<>
- > ackSinkVolumeTickStubDispatcher(&RoutingInterfaceStub::ackSinkVolumeTick, "");
-static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
- RoutingInterfaceStub,
- std::tuple<uint16_t, am_gen::am_HotSink_e, am_gen::am_Error_e>,
- std::tuple<>
- > ackCrossFadingStubDispatcher(&RoutingInterfaceStub::ackCrossFading, "");
-static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
- RoutingInterfaceStub,
- std::tuple<std::string>,
- std::tuple<am_gen::am_domainID_t, am_gen::am_Error_e>
- > peekDomainStubDispatcher(&RoutingInterfaceStub::peekDomain, "qi");
-static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
- RoutingInterfaceStub,
- std::tuple<am_gen::am_Domain_s, std::string, std::string, std::string>,
- std::tuple<am_gen::am_domainID_t, am_gen::am_Error_e>
- > registerDomainStubDispatcher(&RoutingInterfaceStub::registerDomain, "qi");
-static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
- RoutingInterfaceStub,
- std::tuple<am_gen::am_domainID_t>,
- std::tuple<am_gen::am_Error_e>
- > deregisterDomainStubDispatcher(&RoutingInterfaceStub::deregisterDomain, "i");
-static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
- RoutingInterfaceStub,
- std::tuple<am_gen::am_Gateway_s>,
- std::tuple<am_gen::am_gatewayID_t, am_gen::am_Error_e>
- > registerGatewayStubDispatcher(&RoutingInterfaceStub::registerGateway, "qi");
-static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
- RoutingInterfaceStub,
- std::tuple<am_gen::am_gatewayID_t>,
- std::tuple<am_gen::am_Error_e>
- > deregisterGatewayStubDispatcher(&RoutingInterfaceStub::deregisterGateway, "i");
-static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
- RoutingInterfaceStub,
- std::tuple<std::string>,
- std::tuple<am_gen::am_sinkID_t, am_gen::am_Error_e>
- > peekSinkStubDispatcher(&RoutingInterfaceStub::peekSink, "qi");
-static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
- RoutingInterfaceStub,
- std::tuple<am_gen::sinkData_s>,
- std::tuple<am_gen::am_sinkID_t, am_gen::am_Error_e>
- > registerSinkStubDispatcher(&RoutingInterfaceStub::registerSink, "qi");
-static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
- RoutingInterfaceStub,
- std::tuple<am_gen::am_sinkID_t>,
- std::tuple<am_gen::am_Error_e>
- > deregisterSinkStubDispatcher(&RoutingInterfaceStub::deregisterSink, "i");
-static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
- RoutingInterfaceStub,
- std::tuple<std::string>,
- std::tuple<am_gen::am_sourceID_t, am_gen::am_Error_e>
- > peekSourceStubDispatcher(&RoutingInterfaceStub::peekSource, "qi");
-static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
- RoutingInterfaceStub,
- std::tuple<am_gen::sourceData_s>,
- std::tuple<am_gen::am_sourceID_t, am_gen::am_Error_e>
- > registerSourceStubDispatcher(&RoutingInterfaceStub::registerSource, "qi");
-static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
- RoutingInterfaceStub,
- std::tuple<am_gen::am_sourceID_t>,
- std::tuple<am_gen::am_Error_e>
- > deregisterSourceStubDispatcher(&RoutingInterfaceStub::deregisterSource, "i");
-static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
- RoutingInterfaceStub,
- std::tuple<am_gen::crossfaderData_s>,
- std::tuple<am_gen::am_crossfaderID_t, am_gen::am_Error_e>
- > registerCrossfaderStubDispatcher(&RoutingInterfaceStub::registerCrossfader, "qi");
-static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
- RoutingInterfaceStub,
- std::tuple<am_gen::am_crossfaderID_t>,
- std::tuple<am_gen::am_Error_e>
- > deregisterCrossfaderStubDispatcher(&RoutingInterfaceStub::deregisterCrossfader, "i");
-static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
- RoutingInterfaceStub,
- std::tuple<std::string>,
- std::tuple<am_gen::am_sourceClass_t, am_gen::am_Error_e>
- > peekSourceClassIDStubDispatcher(&RoutingInterfaceStub::peekSourceClassID, "qi");
-static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
- RoutingInterfaceStub,
- std::tuple<std::string>,
- std::tuple<am_gen::am_sinkClass_t, am_gen::am_Error_e>
- > peekSinkClassIDStubDispatcher(&RoutingInterfaceStub::peekSinkClassID, "qi");
-static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
- RoutingInterfaceStub,
- std::tuple<am_gen::am_sourceID_t, uint16_t>,
- std::tuple<>
- > hookInterruptStatusChangeStubDispatcher(&RoutingInterfaceStub::hookInterruptStatusChange, "");
-static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
- RoutingInterfaceStub,
- std::tuple<am_gen::am_domainID_t>,
- std::tuple<>
- > hookDomainRegistrationCompleteStubDispatcher(&RoutingInterfaceStub::hookDomainRegistrationComplete, "");
-static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
- RoutingInterfaceStub,
- std::tuple<am_gen::am_sinkID_t, am_gen::am_Availability_s>,
- std::tuple<>
- > hookSinkAvailablityStatusChangeStubDispatcher(&RoutingInterfaceStub::hookSinkAvailablityStatusChange, "");
-static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
- RoutingInterfaceStub,
- std::tuple<am_gen::am_sourceID_t, am_gen::am_Availability_s>,
- std::tuple<>
- > hookSourceAvailablityStatusChangeStubDispatcher(&RoutingInterfaceStub::hookSourceAvailablityStatusChange, "");
-static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
- RoutingInterfaceStub,
- std::tuple<am_gen::am_domainID_t, am_gen::am_DomainState_e>,
- std::tuple<>
- > hookDomainStateChangeStubDispatcher(&RoutingInterfaceStub::hookDomainStateChange, "");
-static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
- RoutingInterfaceStub,
- std::tuple<am_gen::am_connectionID_t, int16_t>,
- std::tuple<>
- > hookTimingInformationChangedStubDispatcher(&RoutingInterfaceStub::hookTimingInformationChanged, "");
-static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
- RoutingInterfaceStub,
- std::tuple<am_gen::am_EarlyData_l, am_gen::am_EarlyData_l>,
- std::tuple<>
- > sendChangedDataStubDispatcher(&RoutingInterfaceStub::sendChangedData, "");
-static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
- RoutingInterfaceStub,
- std::tuple<am_gen::am_domainID_t>,
- std::tuple<>
- > confirmRoutingReadyStubDispatcher(&RoutingInterfaceStub::confirmRoutingReady, "");
-static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
- RoutingInterfaceStub,
- std::tuple<am_gen::am_domainID_t>,
- std::tuple<>
- > confirmRoutingRundownStubDispatcher(&RoutingInterfaceStub::confirmRoutingRundown, "");
-static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
- RoutingInterfaceStub,
- std::tuple<am_gen::am_gatewayID_t, am_gen::am_ConnectionFormat_L, am_gen::am_ConnectionFormat_L, am_gen::bool_L>,
- std::tuple<>
- > updateGatewayStubDispatcher(&RoutingInterfaceStub::updateGateway, "");
-static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
- RoutingInterfaceStub,
- std::tuple<am_gen::am_sinkID_t, am_gen::am_sinkClass_t, am_gen::am_SoundProperty_L, am_gen::am_ConnectionFormat_L, am_gen::am_MainSoundProperty_L>,
- std::tuple<>
- > updateSinkStubDispatcher(&RoutingInterfaceStub::updateSink, "");
-static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
- RoutingInterfaceStub,
- std::tuple<am_gen::am_sourceID_t, am_gen::am_sourceClass_t, am_gen::am_SoundProperty_L, am_gen::am_ConnectionFormat_L, am_gen::am_MainSoundProperty_L>,
- std::tuple<>
- > updateSourceStubDispatcher(&RoutingInterfaceStub::updateSource, "");
-static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
- RoutingInterfaceStub,
- std::tuple<uint16_t, am_gen::am_Volumes_l, uint16_t>,
- std::tuple<>
- > ackSetVolumesStubDispatcher(&RoutingInterfaceStub::ackSetVolumes, "");
-static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
- RoutingInterfaceStub,
- std::tuple<uint16_t, uint16_t>,
- std::tuple<>
- > ackSinkNotificationConfigurationStubDispatcher(&RoutingInterfaceStub::ackSinkNotificationConfiguration, "");
-static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
- RoutingInterfaceStub,
- std::tuple<uint16_t, uint16_t>,
- std::tuple<>
- > ackSourceNotificationConfigurationStubDispatcher(&RoutingInterfaceStub::ackSourceNotificationConfiguration, "");
-static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
- RoutingInterfaceStub,
- std::tuple<am_gen::am_sinkID_t, am_gen::notificationPayload_s>,
- std::tuple<>
- > hookSinkNotificationDataChangeStubDispatcher(&RoutingInterfaceStub::hookSinkNotificationDataChange, "");
-static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
- RoutingInterfaceStub,
- std::tuple<am_gen::am_sourceID_t, am_gen::notificationPayload_s>,
- std::tuple<>
- > hookSourceNotificationDataChangeStubDispatcher(&RoutingInterfaceStub::hookSourceNotificationDataChange, "");
-static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
- RoutingInterfaceStub,
- std::tuple<>,
- std::tuple<bool>
- > getRoutingReadyStateStubDispatcher(&RoutingInterfaceStub::getRoutingReadyState, "b");
-
-
-void RoutingInterfaceDBusStubAdapter::fireSetRoutingReadyEvent() {
- CommonAPI::DBus::DBusStubSignalHelper<CommonAPI::DBus::DBusSerializableArguments<>>
- ::sendSignal(
- *this,
- "setRoutingReady",
- ""
- );
-}
-void RoutingInterfaceDBusStubAdapter::fireSetRoutingRundownEvent() {
- CommonAPI::DBus::DBusStubSignalHelper<CommonAPI::DBus::DBusSerializableArguments<>>
- ::sendSignal(
- *this,
- "setRoutingRundown",
- ""
- );
-}
-
-} // namespace audiomanager
-} // namespace genivi
-} // namespace org
-
-template<>
-const org::genivi::audiomanager::RoutingInterfaceDBusStubAdapterHelper::StubDispatcherTable org::genivi::audiomanager::RoutingInterfaceDBusStubAdapterHelper::stubDispatcherTable_ = {
- { { "ackConnect", "qqq" }, &org::genivi::audiomanager::ackConnectStubDispatcher },
- { { "ackDisconnect", "qqq" }, &org::genivi::audiomanager::ackDisconnectStubDispatcher },
- { { "ackSetSinkVolume", "qnq" }, &org::genivi::audiomanager::ackSetSinkVolumeStubDispatcher },
- { { "ackSetSourceVolume", "qnq" }, &org::genivi::audiomanager::ackSetSourceVolumeStubDispatcher },
- { { "ackSetSourceState", "qq" }, &org::genivi::audiomanager::ackSetSourceStateStubDispatcher },
- { { "ackSetSinkSoundProperties", "qq" }, &org::genivi::audiomanager::ackSetSinkSoundPropertiesStubDispatcher },
- { { "ackSetSinkSoundProperty", "qq" }, &org::genivi::audiomanager::ackSetSinkSoundPropertyStubDispatcher },
- { { "ackSetSourceSoundProperties", "qq" }, &org::genivi::audiomanager::ackSetSourceSoundPropertiesStubDispatcher },
- { { "ackSetSourceSoundProperty", "qq" }, &org::genivi::audiomanager::ackSetSourceSoundPropertyStubDispatcher },
- { { "ackSourceVolumeTick", "qqn" }, &org::genivi::audiomanager::ackSourceVolumeTickStubDispatcher },
- { { "ackSinkVolumeTick", "qqn" }, &org::genivi::audiomanager::ackSinkVolumeTickStubDispatcher },
- { { "ackCrossFading", "qii" }, &org::genivi::audiomanager::ackCrossFadingStubDispatcher },
- { { "peekDomain", "s" }, &org::genivi::audiomanager::peekDomainStubDispatcher },
- { { "registerDomain", "(qsssbbi)sss" }, &org::genivi::audiomanager::registerDomainStubDispatcher },
- { { "deregisterDomain", "q" }, &org::genivi::audiomanager::deregisterDomainStubDispatcher },
- { { "registerGateway", "(qsqqqqqaiaiab)" }, &org::genivi::audiomanager::registerGatewayStubDispatcher },
- { { "deregisterGateway", "q" }, &org::genivi::audiomanager::deregisterGatewayStubDispatcher },
- { { "peekSink", "s" }, &org::genivi::audiomanager::peekSinkStubDispatcher },
- { { "registerSink", "(qsqqnb(ii)ina(in)aia(in)a(iin)a(iin))" }, &org::genivi::audiomanager::registerSinkStubDispatcher },
- { { "deregisterSink", "q" }, &org::genivi::audiomanager::deregisterSinkStubDispatcher },
- { { "peekSource", "s" }, &org::genivi::audiomanager::peekSourceStubDispatcher },
- { { "registerSource", "(qqsqinb(ii)ia(in)aia(in)a(iin)a(iin))" }, &org::genivi::audiomanager::registerSourceStubDispatcher },
- { { "deregisterSource", "q" }, &org::genivi::audiomanager::deregisterSourceStubDispatcher },
- { { "registerCrossfader", "(qsqqqi)" }, &org::genivi::audiomanager::registerCrossfaderStubDispatcher },
- { { "deregisterCrossfader", "q" }, &org::genivi::audiomanager::deregisterCrossfaderStubDispatcher },
- { { "peekSourceClassID", "s" }, &org::genivi::audiomanager::peekSourceClassIDStubDispatcher },
- { { "peekSinkClassID", "s" }, &org::genivi::audiomanager::peekSinkClassIDStubDispatcher },
- { { "hookInterruptStatusChange", "qq" }, &org::genivi::audiomanager::hookInterruptStatusChangeStubDispatcher },
- { { "hookDomainRegistrationComplete", "q" }, &org::genivi::audiomanager::hookDomainRegistrationCompleteStubDispatcher },
- { { "hookSinkAvailablityStatusChange", "q(ii)" }, &org::genivi::audiomanager::hookSinkAvailablityStatusChangeStubDispatcher },
- { { "hookSourceAvailablityStatusChange", "q(ii)" }, &org::genivi::audiomanager::hookSourceAvailablityStatusChangeStubDispatcher },
- { { "hookDomainStateChange", "qi" }, &org::genivi::audiomanager::hookDomainStateChangeStubDispatcher },
- { { "hookTimingInformationChanged", "qn" }, &org::genivi::audiomanager::hookTimingInformationChangedStubDispatcher },
- { { "sendChangedData", "a(i(yv)(yv))a(i(yv)(yv))" }, &org::genivi::audiomanager::sendChangedDataStubDispatcher },
- { { "confirmRoutingReady", "q" }, &org::genivi::audiomanager::confirmRoutingReadyStubDispatcher },
- { { "confirmRoutingRundown", "q" }, &org::genivi::audiomanager::confirmRoutingRundownStubDispatcher },
- { { "updateGateway", "qaiaiab" }, &org::genivi::audiomanager::updateGatewayStubDispatcher },
- { { "updateSink", "qqa(in)aia(in)" }, &org::genivi::audiomanager::updateSinkStubDispatcher },
- { { "updateSource", "qqa(in)aia(in)" }, &org::genivi::audiomanager::updateSourceStubDispatcher },
- { { "ackSetVolumes", "qa(i(yv)niq)q" }, &org::genivi::audiomanager::ackSetVolumesStubDispatcher },
- { { "ackSinkNotificationConfiguration", "qq" }, &org::genivi::audiomanager::ackSinkNotificationConfigurationStubDispatcher },
- { { "ackSourceNotificationConfiguration", "qq" }, &org::genivi::audiomanager::ackSourceNotificationConfigurationStubDispatcher },
- { { "hookSinkNotificationDataChange", "q(nn)" }, &org::genivi::audiomanager::hookSinkNotificationDataChangeStubDispatcher },
- { { "hookSourceNotificationDataChange", "q(nn)" }, &org::genivi::audiomanager::hookSourceNotificationDataChangeStubDispatcher },
- { { "getRoutingReadyState", "" }, &org::genivi::audiomanager::getRoutingReadyStateStubDispatcher }
-};
diff --git a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/audiomanager/RoutingInterfaceDBusStubAdapter.h b/PluginRoutingInterfaceCAPI/src-gen/org/genivi/audiomanager/RoutingInterfaceDBusStubAdapter.h
deleted file mode 100644
index 7718954..0000000
--- a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/audiomanager/RoutingInterfaceDBusStubAdapter.h
+++ /dev/null
@@ -1,59 +0,0 @@
-/*
-* This file was generated by the CommonAPI Generators.
-*
- * Copyright (c) 2012 BMW
- *
- * \author Aleksandar Donchev, aleksander.donchev@partner.bmw.de BMW 2013
- *
- * \copyright
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction,
- * including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
- * subject to the following conditions:
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
- * THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- *
- * For further information see http://www.genivi.org/.
-*/
-#ifndef ORG_GENIVI_AUDIOMANAGER_Routing_Interface_DBUS_STUB_ADAPTER_H_
-#define ORG_GENIVI_AUDIOMANAGER_Routing_Interface_DBUS_STUB_ADAPTER_H_
-
-#include <org/genivi/audiomanager/RoutingInterfaceStub.h>
-
-#define COMMONAPI_INTERNAL_COMPILATION
-
-#include <CommonAPI/DBus/DBusStubAdapterHelper.h>
-#include <CommonAPI/DBus/DBusFactory.h>
-
-#undef COMMONAPI_INTERNAL_COMPILATION
-
-namespace org {
-namespace genivi {
-namespace audiomanager {
-
-typedef CommonAPI::DBus::DBusStubAdapterHelper<RoutingInterfaceStub> RoutingInterfaceDBusStubAdapterHelper;
-
-class RoutingInterfaceDBusStubAdapter: public RoutingInterfaceStubAdapter, public RoutingInterfaceDBusStubAdapterHelper {
- public:
- RoutingInterfaceDBusStubAdapter(
- const std::string& commonApiAddress,
- const std::string& dbusInterfaceName,
- const std::string& dbusBusName,
- const std::string& dbusObjectPath,
- const std::shared_ptr<CommonAPI::DBus::DBusProxyConnection>& dbusConnection,
- const std::shared_ptr<CommonAPI::StubBase>& stub);
-
-
- void fireSetRoutingReadyEvent();
- void fireSetRoutingRundownEvent();
-
- protected:
- virtual const char* getMethodsDBusIntrospectionXmlData() const;
-};
-
-} // namespace audiomanager
-} // namespace genivi
-} // namespace org
-
-#endif // ORG_GENIVI_AUDIOMANAGER_Routing_Interface_DBUS_STUB_ADAPTER_H_
diff --git a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/audiomanager/RoutingInterfaceProxyBase.h b/PluginRoutingInterfaceCAPI/src-gen/org/genivi/audiomanager/RoutingInterfaceProxyBase.h
deleted file mode 100644
index f0726f5..0000000
--- a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/audiomanager/RoutingInterfaceProxyBase.h
+++ /dev/null
@@ -1,242 +0,0 @@
- /*
- * This file was generated by the CommonAPI Generators.
- *
- * Copyright (c) 2012 BMW
- *
- * \author Aleksandar Donchev, aleksander.donchev@partner.bmw.de BMW 2013
- *
- * \copyright
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction,
- * including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
- * subject to the following conditions:
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
- * THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- *
- * For further information see http://www.genivi.org/.
- */
- #ifndef ORG_GENIVI_AUDIOMANAGER_Routing_Interface_PROXY_BASE_H_
- #define ORG_GENIVI_AUDIOMANAGER_Routing_Interface_PROXY_BASE_H_
-
- #include "RoutingInterface.h"
-
-
- #include <org/genivi/audiomanager/am_gen.h>
-
- #define COMMONAPI_INTERNAL_COMPILATION
-
- #include <CommonAPI/InputStream.h>
- #include <CommonAPI/OutputStream.h>
- #include <CommonAPI/SerializableStruct.h>
- #include <cstdint>
- #include <string>
- #include <vector>
-
- #include <CommonAPI/Event.h>
- #include <CommonAPI/Proxy.h>
- #include <functional>
- #include <future>
-
- #undef COMMONAPI_INTERNAL_COMPILATION
-
- namespace org {
- namespace genivi {
- namespace audiomanager {
-
- class RoutingInterfaceProxyBase: virtual public CommonAPI::Proxy {
- public:
- typedef CommonAPI::Event<> SetRoutingReadyEvent;
- typedef CommonAPI::Event<> SetRoutingRundownEvent;
- typedef std::function<void(const CommonAPI::CallStatus&)> AckConnectAsyncCallback;
- typedef std::function<void(const CommonAPI::CallStatus&)> AckDisconnectAsyncCallback;
- typedef std::function<void(const CommonAPI::CallStatus&)> AckSetSinkVolumeAsyncCallback;
- typedef std::function<void(const CommonAPI::CallStatus&)> AckSetSourceVolumeAsyncCallback;
- typedef std::function<void(const CommonAPI::CallStatus&)> AckSetSourceStateAsyncCallback;
- typedef std::function<void(const CommonAPI::CallStatus&)> AckSetSinkSoundPropertiesAsyncCallback;
- typedef std::function<void(const CommonAPI::CallStatus&)> AckSetSinkSoundPropertyAsyncCallback;
- typedef std::function<void(const CommonAPI::CallStatus&)> AckSetSourceSoundPropertiesAsyncCallback;
- typedef std::function<void(const CommonAPI::CallStatus&)> AckSetSourceSoundPropertyAsyncCallback;
- typedef std::function<void(const CommonAPI::CallStatus&)> AckSourceVolumeTickAsyncCallback;
- typedef std::function<void(const CommonAPI::CallStatus&)> AckSinkVolumeTickAsyncCallback;
- typedef std::function<void(const CommonAPI::CallStatus&)> AckCrossFadingAsyncCallback;
- typedef std::function<void(const CommonAPI::CallStatus&, const am_gen::am_domainID_t&, const am_gen::am_Error_e&)> PeekDomainAsyncCallback;
- typedef std::function<void(const CommonAPI::CallStatus&, const am_gen::am_domainID_t&, const am_gen::am_Error_e&)> RegisterDomainAsyncCallback;
- typedef std::function<void(const CommonAPI::CallStatus&, const am_gen::am_Error_e&)> DeregisterDomainAsyncCallback;
- typedef std::function<void(const CommonAPI::CallStatus&, const am_gen::am_gatewayID_t&, const am_gen::am_Error_e&)> RegisterGatewayAsyncCallback;
- typedef std::function<void(const CommonAPI::CallStatus&, const am_gen::am_Error_e&)> DeregisterGatewayAsyncCallback;
- typedef std::function<void(const CommonAPI::CallStatus&, const am_gen::am_sinkID_t&, const am_gen::am_Error_e&)> PeekSinkAsyncCallback;
- typedef std::function<void(const CommonAPI::CallStatus&, const am_gen::am_sinkID_t&, const am_gen::am_Error_e&)> RegisterSinkAsyncCallback;
- typedef std::function<void(const CommonAPI::CallStatus&, const am_gen::am_Error_e&)> DeregisterSinkAsyncCallback;
- typedef std::function<void(const CommonAPI::CallStatus&, const am_gen::am_sourceID_t&, const am_gen::am_Error_e&)> PeekSourceAsyncCallback;
- typedef std::function<void(const CommonAPI::CallStatus&, const am_gen::am_sourceID_t&, const am_gen::am_Error_e&)> RegisterSourceAsyncCallback;
- typedef std::function<void(const CommonAPI::CallStatus&, const am_gen::am_Error_e&)> DeregisterSourceAsyncCallback;
- typedef std::function<void(const CommonAPI::CallStatus&, const am_gen::am_crossfaderID_t&, const am_gen::am_Error_e&)> RegisterCrossfaderAsyncCallback;
- typedef std::function<void(const CommonAPI::CallStatus&, const am_gen::am_Error_e&)> DeregisterCrossfaderAsyncCallback;
- typedef std::function<void(const CommonAPI::CallStatus&, const am_gen::am_sourceClass_t&, const am_gen::am_Error_e&)> PeekSourceClassIDAsyncCallback;
- typedef std::function<void(const CommonAPI::CallStatus&, const am_gen::am_sinkClass_t&, const am_gen::am_Error_e&)> PeekSinkClassIDAsyncCallback;
- typedef std::function<void(const CommonAPI::CallStatus&)> HookInterruptStatusChangeAsyncCallback;
- typedef std::function<void(const CommonAPI::CallStatus&)> HookDomainRegistrationCompleteAsyncCallback;
- typedef std::function<void(const CommonAPI::CallStatus&)> HookSinkAvailablityStatusChangeAsyncCallback;
- typedef std::function<void(const CommonAPI::CallStatus&)> HookSourceAvailablityStatusChangeAsyncCallback;
- typedef std::function<void(const CommonAPI::CallStatus&)> HookDomainStateChangeAsyncCallback;
- typedef std::function<void(const CommonAPI::CallStatus&)> HookTimingInformationChangedAsyncCallback;
- typedef std::function<void(const CommonAPI::CallStatus&)> SendChangedDataAsyncCallback;
- typedef std::function<void(const CommonAPI::CallStatus&)> ConfirmRoutingReadyAsyncCallback;
- typedef std::function<void(const CommonAPI::CallStatus&)> ConfirmRoutingRundownAsyncCallback;
- typedef std::function<void(const CommonAPI::CallStatus&)> UpdateGatewayAsyncCallback;
- typedef std::function<void(const CommonAPI::CallStatus&)> UpdateSinkAsyncCallback;
- typedef std::function<void(const CommonAPI::CallStatus&)> UpdateSourceAsyncCallback;
- typedef std::function<void(const CommonAPI::CallStatus&)> AckSetVolumesAsyncCallback;
- typedef std::function<void(const CommonAPI::CallStatus&)> AckSinkNotificationConfigurationAsyncCallback;
- typedef std::function<void(const CommonAPI::CallStatus&)> AckSourceNotificationConfigurationAsyncCallback;
- typedef std::function<void(const CommonAPI::CallStatus&)> HookSinkNotificationDataChangeAsyncCallback;
- typedef std::function<void(const CommonAPI::CallStatus&)> HookSourceNotificationDataChangeAsyncCallback;
- typedef std::function<void(const CommonAPI::CallStatus&, const bool&)> GetRoutingReadyStateAsyncCallback;
-
-
- virtual SetRoutingReadyEvent& getSetRoutingReadyEvent() = 0;
- virtual SetRoutingRundownEvent& getSetRoutingRundownEvent() = 0;
-
-
- virtual void ackConnect(const uint16_t& handle, const am_gen::am_connectionID_t& connectionID, const uint16_t& error, CommonAPI::CallStatus& callStatus) = 0;
- virtual std::future<CommonAPI::CallStatus> ackConnectAsync(const uint16_t& handle, const am_gen::am_connectionID_t& connectionID, const uint16_t& error, AckConnectAsyncCallback callback) = 0;
-
- virtual void ackDisconnect(const uint16_t& handle, const am_gen::am_connectionID_t& connectionID, const uint16_t& error, CommonAPI::CallStatus& callStatus) = 0;
- virtual std::future<CommonAPI::CallStatus> ackDisconnectAsync(const uint16_t& handle, const am_gen::am_connectionID_t& connectionID, const uint16_t& error, AckDisconnectAsyncCallback callback) = 0;
-
- virtual void ackSetSinkVolume(const uint16_t& handle, const am_gen::am_volume_t& volume, const uint16_t& error, CommonAPI::CallStatus& callStatus) = 0;
- virtual std::future<CommonAPI::CallStatus> ackSetSinkVolumeAsync(const uint16_t& handle, const am_gen::am_volume_t& volume, const uint16_t& error, AckSetSinkVolumeAsyncCallback callback) = 0;
-
- virtual void ackSetSourceVolume(const uint16_t& handle, const am_gen::am_volume_t& volume, const uint16_t& error, CommonAPI::CallStatus& callStatus) = 0;
- virtual std::future<CommonAPI::CallStatus> ackSetSourceVolumeAsync(const uint16_t& handle, const am_gen::am_volume_t& volume, const uint16_t& error, AckSetSourceVolumeAsyncCallback callback) = 0;
-
- virtual void ackSetSourceState(const uint16_t& handle, const uint16_t& error, CommonAPI::CallStatus& callStatus) = 0;
- virtual std::future<CommonAPI::CallStatus> ackSetSourceStateAsync(const uint16_t& handle, const uint16_t& error, AckSetSourceStateAsyncCallback callback) = 0;
-
- virtual void ackSetSinkSoundProperties(const uint16_t& handle, const uint16_t& error, CommonAPI::CallStatus& callStatus) = 0;
- virtual std::future<CommonAPI::CallStatus> ackSetSinkSoundPropertiesAsync(const uint16_t& handle, const uint16_t& error, AckSetSinkSoundPropertiesAsyncCallback callback) = 0;
-
- virtual void ackSetSinkSoundProperty(const uint16_t& handle, const uint16_t& error, CommonAPI::CallStatus& callStatus) = 0;
- virtual std::future<CommonAPI::CallStatus> ackSetSinkSoundPropertyAsync(const uint16_t& handle, const uint16_t& error, AckSetSinkSoundPropertyAsyncCallback callback) = 0;
-
- virtual void ackSetSourceSoundProperties(const uint16_t& handle, const uint16_t& error, CommonAPI::CallStatus& callStatus) = 0;
- virtual std::future<CommonAPI::CallStatus> ackSetSourceSoundPropertiesAsync(const uint16_t& handle, const uint16_t& error, AckSetSourceSoundPropertiesAsyncCallback callback) = 0;
-
- virtual void ackSetSourceSoundProperty(const uint16_t& handle, const uint16_t& error, CommonAPI::CallStatus& callStatus) = 0;
- virtual std::future<CommonAPI::CallStatus> ackSetSourceSoundPropertyAsync(const uint16_t& handle, const uint16_t& error, AckSetSourceSoundPropertyAsyncCallback callback) = 0;
-
- virtual void ackSourceVolumeTick(const uint16_t& handle, const am_gen::am_sourceID_t& source, const am_gen::am_volume_t& volume, CommonAPI::CallStatus& callStatus) = 0;
- virtual std::future<CommonAPI::CallStatus> ackSourceVolumeTickAsync(const uint16_t& handle, const am_gen::am_sourceID_t& source, const am_gen::am_volume_t& volume, AckSourceVolumeTickAsyncCallback callback) = 0;
-
- virtual void ackSinkVolumeTick(const uint16_t& handle, const am_gen::am_sinkID_t& sink, const am_gen::am_volume_t& volume, CommonAPI::CallStatus& callStatus) = 0;
- virtual std::future<CommonAPI::CallStatus> ackSinkVolumeTickAsync(const uint16_t& handle, const am_gen::am_sinkID_t& sink, const am_gen::am_volume_t& volume, AckSinkVolumeTickAsyncCallback callback) = 0;
-
- virtual void ackCrossFading(const uint16_t& handle, const am_gen::am_HotSink_e& hotSink, const am_gen::am_Error_e& returnError, CommonAPI::CallStatus& callStatus) = 0;
- virtual std::future<CommonAPI::CallStatus> ackCrossFadingAsync(const uint16_t& handle, const am_gen::am_HotSink_e& hotSink, const am_gen::am_Error_e& returnError, AckCrossFadingAsyncCallback callback) = 0;
-
- virtual void peekDomain(const std::string& name, CommonAPI::CallStatus& callStatus, am_gen::am_domainID_t& domainID, am_gen::am_Error_e& error) = 0;
- virtual std::future<CommonAPI::CallStatus> peekDomainAsync(const std::string& name, PeekDomainAsyncCallback callback) = 0;
-
- virtual void registerDomain(const am_gen::am_Domain_s& domainData, const std::string& returnBusname, const std::string& returnPath, const std::string& returnInterface, CommonAPI::CallStatus& callStatus, am_gen::am_domainID_t& domainID, am_gen::am_Error_e& error) = 0;
- virtual std::future<CommonAPI::CallStatus> registerDomainAsync(const am_gen::am_Domain_s& domainData, const std::string& returnBusname, const std::string& returnPath, const std::string& returnInterface, RegisterDomainAsyncCallback callback) = 0;
-
- virtual void deregisterDomain(const am_gen::am_domainID_t& domainID, CommonAPI::CallStatus& callStatus, am_gen::am_Error_e& returnError) = 0;
- virtual std::future<CommonAPI::CallStatus> deregisterDomainAsync(const am_gen::am_domainID_t& domainID, DeregisterDomainAsyncCallback callback) = 0;
-
- virtual void registerGateway(const am_gen::am_Gateway_s& gatewayData, CommonAPI::CallStatus& callStatus, am_gen::am_gatewayID_t& gatewayID, am_gen::am_Error_e& error) = 0;
- virtual std::future<CommonAPI::CallStatus> registerGatewayAsync(const am_gen::am_Gateway_s& gatewayData, RegisterGatewayAsyncCallback callback) = 0;
-
- virtual void deregisterGateway(const am_gen::am_gatewayID_t& gatewayID, CommonAPI::CallStatus& callStatus, am_gen::am_Error_e& returnError) = 0;
- virtual std::future<CommonAPI::CallStatus> deregisterGatewayAsync(const am_gen::am_gatewayID_t& gatewayID, DeregisterGatewayAsyncCallback callback) = 0;
-
- virtual void peekSink(const std::string& name, CommonAPI::CallStatus& callStatus, am_gen::am_sinkID_t& sinkID, am_gen::am_Error_e& error) = 0;
- virtual std::future<CommonAPI::CallStatus> peekSinkAsync(const std::string& name, PeekSinkAsyncCallback callback) = 0;
-
- virtual void registerSink(const am_gen::sinkData_s& sinkData, CommonAPI::CallStatus& callStatus, am_gen::am_sinkID_t& sinkID, am_gen::am_Error_e& error) = 0;
- virtual std::future<CommonAPI::CallStatus> registerSinkAsync(const am_gen::sinkData_s& sinkData, RegisterSinkAsyncCallback callback) = 0;
-
- virtual void deregisterSink(const am_gen::am_sinkID_t& sinkID, CommonAPI::CallStatus& callStatus, am_gen::am_Error_e& returnError) = 0;
- virtual std::future<CommonAPI::CallStatus> deregisterSinkAsync(const am_gen::am_sinkID_t& sinkID, DeregisterSinkAsyncCallback callback) = 0;
-
- virtual void peekSource(const std::string& name, CommonAPI::CallStatus& callStatus, am_gen::am_sourceID_t& sourceID, am_gen::am_Error_e& error) = 0;
- virtual std::future<CommonAPI::CallStatus> peekSourceAsync(const std::string& name, PeekSourceAsyncCallback callback) = 0;
-
- virtual void registerSource(const am_gen::sourceData_s& sourceData, CommonAPI::CallStatus& callStatus, am_gen::am_sourceID_t& sourceID, am_gen::am_Error_e& error) = 0;
- virtual std::future<CommonAPI::CallStatus> registerSourceAsync(const am_gen::sourceData_s& sourceData, RegisterSourceAsyncCallback callback) = 0;
-
- virtual void deregisterSource(const am_gen::am_sourceID_t& sourceID, CommonAPI::CallStatus& callStatus, am_gen::am_Error_e& returnError) = 0;
- virtual std::future<CommonAPI::CallStatus> deregisterSourceAsync(const am_gen::am_sourceID_t& sourceID, DeregisterSourceAsyncCallback callback) = 0;
-
- virtual void registerCrossfader(const am_gen::crossfaderData_s& crossfaderData, CommonAPI::CallStatus& callStatus, am_gen::am_crossfaderID_t& crossfaderID, am_gen::am_Error_e& error) = 0;
- virtual std::future<CommonAPI::CallStatus> registerCrossfaderAsync(const am_gen::crossfaderData_s& crossfaderData, RegisterCrossfaderAsyncCallback callback) = 0;
-
- virtual void deregisterCrossfader(const am_gen::am_crossfaderID_t& crossfaderID, CommonAPI::CallStatus& callStatus, am_gen::am_Error_e& returnError) = 0;
- virtual std::future<CommonAPI::CallStatus> deregisterCrossfaderAsync(const am_gen::am_crossfaderID_t& crossfaderID, DeregisterCrossfaderAsyncCallback callback) = 0;
-
- virtual void peekSourceClassID(const std::string& name, CommonAPI::CallStatus& callStatus, am_gen::am_sourceClass_t& sourceClassID, am_gen::am_Error_e& error) = 0;
- virtual std::future<CommonAPI::CallStatus> peekSourceClassIDAsync(const std::string& name, PeekSourceClassIDAsyncCallback callback) = 0;
-
- virtual void peekSinkClassID(const std::string& name, CommonAPI::CallStatus& callStatus, am_gen::am_sinkClass_t& sinkClassID, am_gen::am_Error_e& error) = 0;
- virtual std::future<CommonAPI::CallStatus> peekSinkClassIDAsync(const std::string& name, PeekSinkClassIDAsyncCallback callback) = 0;
-
- virtual void hookInterruptStatusChange(const am_gen::am_sourceID_t& sourceID, const uint16_t& interruptState, CommonAPI::CallStatus& callStatus) = 0;
- virtual std::future<CommonAPI::CallStatus> hookInterruptStatusChangeAsync(const am_gen::am_sourceID_t& sourceID, const uint16_t& interruptState, HookInterruptStatusChangeAsyncCallback callback) = 0;
-
- virtual void hookDomainRegistrationComplete(const am_gen::am_domainID_t& domainID, CommonAPI::CallStatus& callStatus) = 0;
- virtual std::future<CommonAPI::CallStatus> hookDomainRegistrationCompleteAsync(const am_gen::am_domainID_t& domainID, HookDomainRegistrationCompleteAsyncCallback callback) = 0;
-
- virtual void hookSinkAvailablityStatusChange(const am_gen::am_sinkID_t& sinkID, const am_gen::am_Availability_s& availability, CommonAPI::CallStatus& callStatus) = 0;
- virtual std::future<CommonAPI::CallStatus> hookSinkAvailablityStatusChangeAsync(const am_gen::am_sinkID_t& sinkID, const am_gen::am_Availability_s& availability, HookSinkAvailablityStatusChangeAsyncCallback callback) = 0;
-
- virtual void hookSourceAvailablityStatusChange(const am_gen::am_sourceID_t& sourceID, const am_gen::am_Availability_s& availability, CommonAPI::CallStatus& callStatus) = 0;
- virtual std::future<CommonAPI::CallStatus> hookSourceAvailablityStatusChangeAsync(const am_gen::am_sourceID_t& sourceID, const am_gen::am_Availability_s& availability, HookSourceAvailablityStatusChangeAsyncCallback callback) = 0;
-
- virtual void hookDomainStateChange(const am_gen::am_domainID_t& domainID, const am_gen::am_DomainState_e& domainState, CommonAPI::CallStatus& callStatus) = 0;
- virtual std::future<CommonAPI::CallStatus> hookDomainStateChangeAsync(const am_gen::am_domainID_t& domainID, const am_gen::am_DomainState_e& domainState, HookDomainStateChangeAsyncCallback callback) = 0;
-
- virtual void hookTimingInformationChanged(const am_gen::am_connectionID_t& connectionID, const int16_t& delay, CommonAPI::CallStatus& callStatus) = 0;
- virtual std::future<CommonAPI::CallStatus> hookTimingInformationChangedAsync(const am_gen::am_connectionID_t& connectionID, const int16_t& delay, HookTimingInformationChangedAsyncCallback callback) = 0;
-
- virtual void sendChangedData(const am_gen::am_EarlyData_l& earlyData_volumes, const am_gen::am_EarlyData_l& earlyData_soundproperties, CommonAPI::CallStatus& callStatus) = 0;
- virtual std::future<CommonAPI::CallStatus> sendChangedDataAsync(const am_gen::am_EarlyData_l& earlyData_volumes, const am_gen::am_EarlyData_l& earlyData_soundproperties, SendChangedDataAsyncCallback callback) = 0;
-
- virtual void confirmRoutingReady(const am_gen::am_domainID_t& domainID, CommonAPI::CallStatus& callStatus) = 0;
- virtual std::future<CommonAPI::CallStatus> confirmRoutingReadyAsync(const am_gen::am_domainID_t& domainID, ConfirmRoutingReadyAsyncCallback callback) = 0;
-
- virtual void confirmRoutingRundown(const am_gen::am_domainID_t& domainID, CommonAPI::CallStatus& callStatus) = 0;
- virtual std::future<CommonAPI::CallStatus> confirmRoutingRundownAsync(const am_gen::am_domainID_t& domainID, ConfirmRoutingRundownAsyncCallback callback) = 0;
-
- virtual void updateGateway(const am_gen::am_gatewayID_t& gatewayID, const am_gen::am_ConnectionFormat_L& listSourceFormats, const am_gen::am_ConnectionFormat_L& listSinkFormats, const am_gen::bool_L& convertionMatrix, CommonAPI::CallStatus& callStatus) = 0;
- virtual std::future<CommonAPI::CallStatus> updateGatewayAsync(const am_gen::am_gatewayID_t& gatewayID, const am_gen::am_ConnectionFormat_L& listSourceFormats, const am_gen::am_ConnectionFormat_L& listSinkFormats, const am_gen::bool_L& convertionMatrix, UpdateGatewayAsyncCallback callback) = 0;
-
- virtual void updateSink(const am_gen::am_sinkID_t& sinkID, const am_gen::am_sinkClass_t& sinkClassID, const am_gen::am_SoundProperty_L& listSoundProperties, const am_gen::am_ConnectionFormat_L& listConnectionFormats, const am_gen::am_MainSoundProperty_L& listMainSoundProperties, CommonAPI::CallStatus& callStatus) = 0;
- virtual std::future<CommonAPI::CallStatus> updateSinkAsync(const am_gen::am_sinkID_t& sinkID, const am_gen::am_sinkClass_t& sinkClassID, const am_gen::am_SoundProperty_L& listSoundProperties, const am_gen::am_ConnectionFormat_L& listConnectionFormats, const am_gen::am_MainSoundProperty_L& listMainSoundProperties, UpdateSinkAsyncCallback callback) = 0;
-
- virtual void updateSource(const am_gen::am_sourceID_t& sourceID, const am_gen::am_sourceClass_t& sourceClassID, const am_gen::am_SoundProperty_L& listSoundProperties, const am_gen::am_ConnectionFormat_L& listConnectionFormats, const am_gen::am_MainSoundProperty_L& listMainSoundProperties, CommonAPI::CallStatus& callStatus) = 0;
- virtual std::future<CommonAPI::CallStatus> updateSourceAsync(const am_gen::am_sourceID_t& sourceID, const am_gen::am_sourceClass_t& sourceClassID, const am_gen::am_SoundProperty_L& listSoundProperties, const am_gen::am_ConnectionFormat_L& listConnectionFormats, const am_gen::am_MainSoundProperty_L& listMainSoundProperties, UpdateSourceAsyncCallback callback) = 0;
-
- virtual void ackSetVolumes(const uint16_t& handle, const am_gen::am_Volumes_l& listVolumes, const uint16_t& error, CommonAPI::CallStatus& callStatus) = 0;
- virtual std::future<CommonAPI::CallStatus> ackSetVolumesAsync(const uint16_t& handle, const am_gen::am_Volumes_l& listVolumes, const uint16_t& error, AckSetVolumesAsyncCallback callback) = 0;
-
- virtual void ackSinkNotificationConfiguration(const uint16_t& handle, const uint16_t& error, CommonAPI::CallStatus& callStatus) = 0;
- virtual std::future<CommonAPI::CallStatus> ackSinkNotificationConfigurationAsync(const uint16_t& handle, const uint16_t& error, AckSinkNotificationConfigurationAsyncCallback callback) = 0;
-
- virtual void ackSourceNotificationConfiguration(const uint16_t& handle, const uint16_t& error, CommonAPI::CallStatus& callStatus) = 0;
- virtual std::future<CommonAPI::CallStatus> ackSourceNotificationConfigurationAsync(const uint16_t& handle, const uint16_t& error, AckSourceNotificationConfigurationAsyncCallback callback) = 0;
-
- virtual void hookSinkNotificationDataChange(const am_gen::am_sinkID_t& sinkID, const am_gen::notificationPayload_s& payload, CommonAPI::CallStatus& callStatus) = 0;
- virtual std::future<CommonAPI::CallStatus> hookSinkNotificationDataChangeAsync(const am_gen::am_sinkID_t& sinkID, const am_gen::notificationPayload_s& payload, HookSinkNotificationDataChangeAsyncCallback callback) = 0;
-
- virtual void hookSourceNotificationDataChange(const am_gen::am_sourceID_t& sourceID, const am_gen::notificationPayload_s& payload, CommonAPI::CallStatus& callStatus) = 0;
- virtual std::future<CommonAPI::CallStatus> hookSourceNotificationDataChangeAsync(const am_gen::am_sourceID_t& sourceID, const am_gen::notificationPayload_s& payload, HookSourceNotificationDataChangeAsyncCallback callback) = 0;
-
- virtual void getRoutingReadyState(CommonAPI::CallStatus& callStatus, bool& readyState) = 0;
- virtual std::future<CommonAPI::CallStatus> getRoutingReadyStateAsync(GetRoutingReadyStateAsyncCallback callback) = 0;
- };
-
- } // namespace audiomanager
- } // namespace genivi
- } // namespace org
-
- #endif // ORG_GENIVI_AUDIOMANAGER_Routing_Interface_PROXY_BASE_H_
diff --git a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/audiomanager/RoutingInterfaceStub.h b/PluginRoutingInterfaceCAPI/src-gen/org/genivi/audiomanager/RoutingInterfaceStub.h
deleted file mode 100644
index a6fc8f3..0000000
--- a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/audiomanager/RoutingInterfaceStub.h
+++ /dev/null
@@ -1,198 +0,0 @@
-/*
-* This file was generated by the CommonAPI Generators.
-*
- * Copyright (c) 2012 BMW
- *
- * \author Aleksandar Donchev, aleksander.donchev@partner.bmw.de BMW 2013
- *
- * \copyright
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction,
- * including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
- * subject to the following conditions:
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
- * THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- *
- * For further information see http://www.genivi.org/.
-*/
-#ifndef ORG_GENIVI_AUDIOMANAGER_Routing_Interface_STUB_H_
-#define ORG_GENIVI_AUDIOMANAGER_Routing_Interface_STUB_H_
-
-
-
-#include <org/genivi/audiomanager/am_gen.h>
-
-#include "RoutingInterface.h"
-
-#define COMMONAPI_INTERNAL_COMPILATION
-
-#include <CommonAPI/InputStream.h>
-#include <CommonAPI/OutputStream.h>
-#include <CommonAPI/SerializableStruct.h>
-#include <cstdint>
-#include <string>
-#include <vector>
-
-#include <CommonAPI/Stub.h>
-
-#undef COMMONAPI_INTERNAL_COMPILATION
-
-namespace org {
-namespace genivi {
-namespace audiomanager {
-
-/**
- * Receives messages from remote and handles all dispatching of deserialized calls
- * to a stub for the service RoutingInterface. Also provides means to send broadcasts
- * and attribute-changed-notifications of observable attributes as defined by this service.
- * An application developer should not need to bother with this class.
- */
-class RoutingInterfaceStubAdapter: virtual public CommonAPI::StubAdapter, public RoutingInterface {
- public:
-
- /**
- * Sends a broadcast event for setRoutingReady. Should not be called directly.
- * Instead, the "fire<broadcastName>Event" methods of the stub should be used.
- */
- virtual void fireSetRoutingReadyEvent() = 0;
- /**
- * Sends a broadcast event for setRoutingRundown. Should not be called directly.
- * Instead, the "fire<broadcastName>Event" methods of the stub should be used.
- */
- virtual void fireSetRoutingRundownEvent() = 0;
-};
-
-
-/**
- * Defines the necessary callbacks to handle remote set events related to the attributes
- * defined in the IDL description for RoutingInterface.
- * For each attribute two callbacks are defined:
- * - a verification callback that allows to verify the requested value and to prevent setting
- * e.g. an invalid value ("onRemoteSet<AttributeName>").
- * - an action callback to do local work after the attribute value has been changed
- * ("onRemote<AttributeName>Changed").
- *
- * This class and the one below are the ones an application developer needs to have
- * a look at if he wants to implement a service.
- */
-class RoutingInterfaceStubRemoteEvent {
- public:
- virtual ~RoutingInterfaceStubRemoteEvent() { }
-
-};
-
-
-/**
- * Defines the interface that must be implemented by any class that should provide
- * the service RoutingInterface to remote clients.
- * This class and the one above are the ones an application developer needs to have
- * a look at if he wants to implement a service.
- */
-class RoutingInterfaceStub : public CommonAPI::Stub<RoutingInterfaceStubAdapter , RoutingInterfaceStubRemoteEvent> {
- public:
- virtual ~RoutingInterfaceStub() { }
-
-
- /// This is the method that will be called on remote calls on the method ackConnect.
- virtual void ackConnect(uint16_t handle, am_gen::am_connectionID_t connectionID, uint16_t error) = 0;
- /// This is the method that will be called on remote calls on the method ackDisconnect.
- virtual void ackDisconnect(uint16_t handle, am_gen::am_connectionID_t connectionID, uint16_t error) = 0;
- /// This is the method that will be called on remote calls on the method ackSetSinkVolume.
- virtual void ackSetSinkVolume(uint16_t handle, am_gen::am_volume_t volume, uint16_t error) = 0;
- /// This is the method that will be called on remote calls on the method ackSetSourceVolume.
- virtual void ackSetSourceVolume(uint16_t handle, am_gen::am_volume_t volume, uint16_t error) = 0;
- /// This is the method that will be called on remote calls on the method ackSetSourceState.
- virtual void ackSetSourceState(uint16_t handle, uint16_t error) = 0;
- /// This is the method that will be called on remote calls on the method ackSetSinkSoundProperties.
- virtual void ackSetSinkSoundProperties(uint16_t handle, uint16_t error) = 0;
- /// This is the method that will be called on remote calls on the method ackSetSinkSoundProperty.
- virtual void ackSetSinkSoundProperty(uint16_t handle, uint16_t error) = 0;
- /// This is the method that will be called on remote calls on the method ackSetSourceSoundProperties.
- virtual void ackSetSourceSoundProperties(uint16_t handle, uint16_t error) = 0;
- /// This is the method that will be called on remote calls on the method ackSetSourceSoundProperty.
- virtual void ackSetSourceSoundProperty(uint16_t handle, uint16_t error) = 0;
- /// This is the method that will be called on remote calls on the method ackSourceVolumeTick.
- virtual void ackSourceVolumeTick(uint16_t handle, am_gen::am_sourceID_t source, am_gen::am_volume_t volume) = 0;
- /// This is the method that will be called on remote calls on the method ackSinkVolumeTick.
- virtual void ackSinkVolumeTick(uint16_t handle, am_gen::am_sinkID_t sink, am_gen::am_volume_t volume) = 0;
- /// This is the method that will be called on remote calls on the method ackCrossFading.
- virtual void ackCrossFading(uint16_t handle, am_gen::am_HotSink_e hotSink, am_gen::am_Error_e returnError) = 0;
- /// This is the method that will be called on remote calls on the method peekDomain.
- virtual void peekDomain(std::string name, am_gen::am_domainID_t& domainID, am_gen::am_Error_e& error) = 0;
- /// This is the method that will be called on remote calls on the method registerDomain.
- virtual void registerDomain(am_gen::am_Domain_s domainData, std::string returnBusname, std::string returnPath, std::string returnInterface, am_gen::am_domainID_t& domainID, am_gen::am_Error_e& error) = 0;
- /// This is the method that will be called on remote calls on the method deregisterDomain.
- virtual void deregisterDomain(am_gen::am_domainID_t domainID, am_gen::am_Error_e& returnError) = 0;
- /// This is the method that will be called on remote calls on the method registerGateway.
- virtual void registerGateway(am_gen::am_Gateway_s gatewayData, am_gen::am_gatewayID_t& gatewayID, am_gen::am_Error_e& error) = 0;
- /// This is the method that will be called on remote calls on the method deregisterGateway.
- virtual void deregisterGateway(am_gen::am_gatewayID_t gatewayID, am_gen::am_Error_e& returnError) = 0;
- /// This is the method that will be called on remote calls on the method peekSink.
- virtual void peekSink(std::string name, am_gen::am_sinkID_t& sinkID, am_gen::am_Error_e& error) = 0;
- /// This is the method that will be called on remote calls on the method registerSink.
- virtual void registerSink(am_gen::sinkData_s sinkData, am_gen::am_sinkID_t& sinkID, am_gen::am_Error_e& error) = 0;
- /// This is the method that will be called on remote calls on the method deregisterSink.
- virtual void deregisterSink(am_gen::am_sinkID_t sinkID, am_gen::am_Error_e& returnError) = 0;
- /// This is the method that will be called on remote calls on the method peekSource.
- virtual void peekSource(std::string name, am_gen::am_sourceID_t& sourceID, am_gen::am_Error_e& error) = 0;
- /// This is the method that will be called on remote calls on the method registerSource.
- virtual void registerSource(am_gen::sourceData_s sourceData, am_gen::am_sourceID_t& sourceID, am_gen::am_Error_e& error) = 0;
- /// This is the method that will be called on remote calls on the method deregisterSource.
- virtual void deregisterSource(am_gen::am_sourceID_t sourceID, am_gen::am_Error_e& returnError) = 0;
- /// This is the method that will be called on remote calls on the method registerCrossfader.
- virtual void registerCrossfader(am_gen::crossfaderData_s crossfaderData, am_gen::am_crossfaderID_t& crossfaderID, am_gen::am_Error_e& error) = 0;
- /// This is the method that will be called on remote calls on the method deregisterCrossfader.
- virtual void deregisterCrossfader(am_gen::am_crossfaderID_t crossfaderID, am_gen::am_Error_e& returnError) = 0;
- /// This is the method that will be called on remote calls on the method peekSourceClassID.
- virtual void peekSourceClassID(std::string name, am_gen::am_sourceClass_t& sourceClassID, am_gen::am_Error_e& error) = 0;
- /// This is the method that will be called on remote calls on the method peekSinkClassID.
- virtual void peekSinkClassID(std::string name, am_gen::am_sinkClass_t& sinkClassID, am_gen::am_Error_e& error) = 0;
- /// This is the method that will be called on remote calls on the method hookInterruptStatusChange.
- virtual void hookInterruptStatusChange(am_gen::am_sourceID_t sourceID, uint16_t interruptState) = 0;
- /// This is the method that will be called on remote calls on the method hookDomainRegistrationComplete.
- virtual void hookDomainRegistrationComplete(am_gen::am_domainID_t domainID) = 0;
- /// This is the method that will be called on remote calls on the method hookSinkAvailablityStatusChange.
- virtual void hookSinkAvailablityStatusChange(am_gen::am_sinkID_t sinkID, am_gen::am_Availability_s availability) = 0;
- /// This is the method that will be called on remote calls on the method hookSourceAvailablityStatusChange.
- virtual void hookSourceAvailablityStatusChange(am_gen::am_sourceID_t sourceID, am_gen::am_Availability_s availability) = 0;
- /// This is the method that will be called on remote calls on the method hookDomainStateChange.
- virtual void hookDomainStateChange(am_gen::am_domainID_t domainID, am_gen::am_DomainState_e domainState) = 0;
- /// This is the method that will be called on remote calls on the method hookTimingInformationChanged.
- virtual void hookTimingInformationChanged(am_gen::am_connectionID_t connectionID, int16_t delay) = 0;
- /// This is the method that will be called on remote calls on the method sendChangedData.
- virtual void sendChangedData(am_gen::am_EarlyData_l earlyData_volumes, am_gen::am_EarlyData_l earlyData_soundproperties) = 0;
- /// This is the method that will be called on remote calls on the method confirmRoutingReady.
- virtual void confirmRoutingReady(am_gen::am_domainID_t domainID) = 0;
- /// This is the method that will be called on remote calls on the method confirmRoutingRundown.
- virtual void confirmRoutingRundown(am_gen::am_domainID_t domainID) = 0;
- /// This is the method that will be called on remote calls on the method updateGateway.
- virtual void updateGateway(am_gen::am_gatewayID_t gatewayID, am_gen::am_ConnectionFormat_L listSourceFormats, am_gen::am_ConnectionFormat_L listSinkFormats, am_gen::bool_L convertionMatrix) = 0;
- /// This is the method that will be called on remote calls on the method updateSink.
- virtual void updateSink(am_gen::am_sinkID_t sinkID, am_gen::am_sinkClass_t sinkClassID, am_gen::am_SoundProperty_L listSoundProperties, am_gen::am_ConnectionFormat_L listConnectionFormats, am_gen::am_MainSoundProperty_L listMainSoundProperties) = 0;
- /// This is the method that will be called on remote calls on the method updateSource.
- virtual void updateSource(am_gen::am_sourceID_t sourceID, am_gen::am_sourceClass_t sourceClassID, am_gen::am_SoundProperty_L listSoundProperties, am_gen::am_ConnectionFormat_L listConnectionFormats, am_gen::am_MainSoundProperty_L listMainSoundProperties) = 0;
- /// This is the method that will be called on remote calls on the method ackSetVolumes.
- virtual void ackSetVolumes(uint16_t handle, am_gen::am_Volumes_l listVolumes, uint16_t error) = 0;
- /// This is the method that will be called on remote calls on the method ackSinkNotificationConfiguration.
- virtual void ackSinkNotificationConfiguration(uint16_t handle, uint16_t error) = 0;
- /// This is the method that will be called on remote calls on the method ackSourceNotificationConfiguration.
- virtual void ackSourceNotificationConfiguration(uint16_t handle, uint16_t error) = 0;
- /// This is the method that will be called on remote calls on the method hookSinkNotificationDataChange.
- virtual void hookSinkNotificationDataChange(am_gen::am_sinkID_t sinkID, am_gen::notificationPayload_s payload) = 0;
- /// This is the method that will be called on remote calls on the method hookSourceNotificationDataChange.
- virtual void hookSourceNotificationDataChange(am_gen::am_sourceID_t sourceID, am_gen::notificationPayload_s payload) = 0;
- /// This is the method that will be called on remote calls on the method getRoutingReadyState.
- virtual void getRoutingReadyState(bool& readyState) = 0;
-
- /// Sends a broadcast event for setRoutingReady.
- virtual void fireSetRoutingReadyEvent() = 0;
- /// Sends a broadcast event for setRoutingRundown.
- virtual void fireSetRoutingRundownEvent() = 0;
-};
-
-} // namespace audiomanager
-} // namespace genivi
-} // namespace org
-
-#endif // ORG_GENIVI_AUDIOMANAGER_Routing_Interface_STUB_H_
diff --git a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/audiomanager/RoutingInterfaceStubDefault.cpp b/PluginRoutingInterfaceCAPI/src-gen/org/genivi/audiomanager/RoutingInterfaceStubDefault.cpp
deleted file mode 100644
index ca0b6c2..0000000
--- a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/audiomanager/RoutingInterfaceStubDefault.cpp
+++ /dev/null
@@ -1,229 +0,0 @@
-/*
-* This file was generated by the CommonAPI Generators.
-*
- * Copyright (c) 2012 BMW
- *
- * \author Aleksandar Donchev, aleksander.donchev@partner.bmw.de BMW 2013
- *
- * \copyright
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction,
- * including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
- * subject to the following conditions:
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
- * THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- *
- * For further information see http://www.genivi.org/.
-*/
-#include <org/genivi/audiomanager/RoutingInterfaceStubDefault.h>
-
-namespace org {
-namespace genivi {
-namespace audiomanager {
-
-RoutingInterfaceStubDefault::RoutingInterfaceStubDefault():
- remoteEventHandler_(this) {
-}
-
-RoutingInterfaceStubRemoteEvent* RoutingInterfaceStubDefault::initStubAdapter(const std::shared_ptr<RoutingInterfaceStubAdapter>& stubAdapter) {
- stubAdapter_ = stubAdapter;
- return &remoteEventHandler_;
-}
-
-
-void RoutingInterfaceStubDefault::ackConnect(uint16_t handle, am_gen::am_connectionID_t connectionID, uint16_t error) {
- // No operation in default
-}
-
-void RoutingInterfaceStubDefault::ackDisconnect(uint16_t handle, am_gen::am_connectionID_t connectionID, uint16_t error) {
- // No operation in default
-}
-
-void RoutingInterfaceStubDefault::ackSetSinkVolume(uint16_t handle, am_gen::am_volume_t volume, uint16_t error) {
- // No operation in default
-}
-
-void RoutingInterfaceStubDefault::ackSetSourceVolume(uint16_t handle, am_gen::am_volume_t volume, uint16_t error) {
- // No operation in default
-}
-
-void RoutingInterfaceStubDefault::ackSetSourceState(uint16_t handle, uint16_t error) {
- // No operation in default
-}
-
-void RoutingInterfaceStubDefault::ackSetSinkSoundProperties(uint16_t handle, uint16_t error) {
- // No operation in default
-}
-
-void RoutingInterfaceStubDefault::ackSetSinkSoundProperty(uint16_t handle, uint16_t error) {
- // No operation in default
-}
-
-void RoutingInterfaceStubDefault::ackSetSourceSoundProperties(uint16_t handle, uint16_t error) {
- // No operation in default
-}
-
-void RoutingInterfaceStubDefault::ackSetSourceSoundProperty(uint16_t handle, uint16_t error) {
- // No operation in default
-}
-
-void RoutingInterfaceStubDefault::ackSourceVolumeTick(uint16_t handle, am_gen::am_sourceID_t source, am_gen::am_volume_t volume) {
- // No operation in default
-}
-
-void RoutingInterfaceStubDefault::ackSinkVolumeTick(uint16_t handle, am_gen::am_sinkID_t sink, am_gen::am_volume_t volume) {
- // No operation in default
-}
-
-void RoutingInterfaceStubDefault::ackCrossFading(uint16_t handle, am_gen::am_HotSink_e hotSink, am_gen::am_Error_e returnError) {
- // No operation in default
-}
-
-void RoutingInterfaceStubDefault::peekDomain(std::string name, am_gen::am_domainID_t& domainID, am_gen::am_Error_e& error) {
- // No operation in default
-}
-
-void RoutingInterfaceStubDefault::registerDomain(am_gen::am_Domain_s domainData, std::string returnBusname, std::string returnPath, std::string returnInterface, am_gen::am_domainID_t& domainID, am_gen::am_Error_e& error) {
- // No operation in default
-}
-
-void RoutingInterfaceStubDefault::deregisterDomain(am_gen::am_domainID_t domainID, am_gen::am_Error_e& returnError) {
- // No operation in default
-}
-
-void RoutingInterfaceStubDefault::registerGateway(am_gen::am_Gateway_s gatewayData, am_gen::am_gatewayID_t& gatewayID, am_gen::am_Error_e& error) {
- // No operation in default
-}
-
-void RoutingInterfaceStubDefault::deregisterGateway(am_gen::am_gatewayID_t gatewayID, am_gen::am_Error_e& returnError) {
- // No operation in default
-}
-
-void RoutingInterfaceStubDefault::peekSink(std::string name, am_gen::am_sinkID_t& sinkID, am_gen::am_Error_e& error) {
- // No operation in default
-}
-
-void RoutingInterfaceStubDefault::registerSink(am_gen::sinkData_s sinkData, am_gen::am_sinkID_t& sinkID, am_gen::am_Error_e& error) {
- // No operation in default
-}
-
-void RoutingInterfaceStubDefault::deregisterSink(am_gen::am_sinkID_t sinkID, am_gen::am_Error_e& returnError) {
- // No operation in default
-}
-
-void RoutingInterfaceStubDefault::peekSource(std::string name, am_gen::am_sourceID_t& sourceID, am_gen::am_Error_e& error) {
- // No operation in default
-}
-
-void RoutingInterfaceStubDefault::registerSource(am_gen::sourceData_s sourceData, am_gen::am_sourceID_t& sourceID, am_gen::am_Error_e& error) {
- // No operation in default
-}
-
-void RoutingInterfaceStubDefault::deregisterSource(am_gen::am_sourceID_t sourceID, am_gen::am_Error_e& returnError) {
- // No operation in default
-}
-
-void RoutingInterfaceStubDefault::registerCrossfader(am_gen::crossfaderData_s crossfaderData, am_gen::am_crossfaderID_t& crossfaderID, am_gen::am_Error_e& error) {
- // No operation in default
-}
-
-void RoutingInterfaceStubDefault::deregisterCrossfader(am_gen::am_crossfaderID_t crossfaderID, am_gen::am_Error_e& returnError) {
- // No operation in default
-}
-
-void RoutingInterfaceStubDefault::peekSourceClassID(std::string name, am_gen::am_sourceClass_t& sourceClassID, am_gen::am_Error_e& error) {
- // No operation in default
-}
-
-void RoutingInterfaceStubDefault::peekSinkClassID(std::string name, am_gen::am_sinkClass_t& sinkClassID, am_gen::am_Error_e& error) {
- // No operation in default
-}
-
-void RoutingInterfaceStubDefault::hookInterruptStatusChange(am_gen::am_sourceID_t sourceID, uint16_t interruptState) {
- // No operation in default
-}
-
-void RoutingInterfaceStubDefault::hookDomainRegistrationComplete(am_gen::am_domainID_t domainID) {
- // No operation in default
-}
-
-void RoutingInterfaceStubDefault::hookSinkAvailablityStatusChange(am_gen::am_sinkID_t sinkID, am_gen::am_Availability_s availability) {
- // No operation in default
-}
-
-void RoutingInterfaceStubDefault::hookSourceAvailablityStatusChange(am_gen::am_sourceID_t sourceID, am_gen::am_Availability_s availability) {
- // No operation in default
-}
-
-void RoutingInterfaceStubDefault::hookDomainStateChange(am_gen::am_domainID_t domainID, am_gen::am_DomainState_e domainState) {
- // No operation in default
-}
-
-void RoutingInterfaceStubDefault::hookTimingInformationChanged(am_gen::am_connectionID_t connectionID, int16_t delay) {
- // No operation in default
-}
-
-void RoutingInterfaceStubDefault::sendChangedData(am_gen::am_EarlyData_l earlyData_volumes, am_gen::am_EarlyData_l earlyData_soundproperties) {
- // No operation in default
-}
-
-void RoutingInterfaceStubDefault::confirmRoutingReady(am_gen::am_domainID_t domainID) {
- // No operation in default
-}
-
-void RoutingInterfaceStubDefault::confirmRoutingRundown(am_gen::am_domainID_t domainID) {
- // No operation in default
-}
-
-void RoutingInterfaceStubDefault::updateGateway(am_gen::am_gatewayID_t gatewayID, am_gen::am_ConnectionFormat_L listSourceFormats, am_gen::am_ConnectionFormat_L listSinkFormats, am_gen::bool_L convertionMatrix) {
- // No operation in default
-}
-
-void RoutingInterfaceStubDefault::updateSink(am_gen::am_sinkID_t sinkID, am_gen::am_sinkClass_t sinkClassID, am_gen::am_SoundProperty_L listSoundProperties, am_gen::am_ConnectionFormat_L listConnectionFormats, am_gen::am_MainSoundProperty_L listMainSoundProperties) {
- // No operation in default
-}
-
-void RoutingInterfaceStubDefault::updateSource(am_gen::am_sourceID_t sourceID, am_gen::am_sourceClass_t sourceClassID, am_gen::am_SoundProperty_L listSoundProperties, am_gen::am_ConnectionFormat_L listConnectionFormats, am_gen::am_MainSoundProperty_L listMainSoundProperties) {
- // No operation in default
-}
-
-void RoutingInterfaceStubDefault::ackSetVolumes(uint16_t handle, am_gen::am_Volumes_l listVolumes, uint16_t error) {
- // No operation in default
-}
-
-void RoutingInterfaceStubDefault::ackSinkNotificationConfiguration(uint16_t handle, uint16_t error) {
- // No operation in default
-}
-
-void RoutingInterfaceStubDefault::ackSourceNotificationConfiguration(uint16_t handle, uint16_t error) {
- // No operation in default
-}
-
-void RoutingInterfaceStubDefault::hookSinkNotificationDataChange(am_gen::am_sinkID_t sinkID, am_gen::notificationPayload_s payload) {
- // No operation in default
-}
-
-void RoutingInterfaceStubDefault::hookSourceNotificationDataChange(am_gen::am_sourceID_t sourceID, am_gen::notificationPayload_s payload) {
- // No operation in default
-}
-
-void RoutingInterfaceStubDefault::getRoutingReadyState(bool& readyState) {
- // No operation in default
-}
-
-
-void RoutingInterfaceStubDefault::fireSetRoutingReadyEvent() {
- stubAdapter_->fireSetRoutingReadyEvent();
-}
-void RoutingInterfaceStubDefault::fireSetRoutingRundownEvent() {
- stubAdapter_->fireSetRoutingRundownEvent();
-}
-
-RoutingInterfaceStubDefault::RemoteEventHandler::RemoteEventHandler(RoutingInterfaceStubDefault* defaultStub):
- defaultStub_(defaultStub) {
-}
-
-} // namespace audiomanager
-} // namespace genivi
-} // namespace org
diff --git a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/audiomanager/RoutingInterfaceStubDefault.h b/PluginRoutingInterfaceCAPI/src-gen/org/genivi/audiomanager/RoutingInterfaceStubDefault.h
deleted file mode 100644
index b5ecd98..0000000
--- a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/audiomanager/RoutingInterfaceStubDefault.h
+++ /dev/null
@@ -1,160 +0,0 @@
-/*
-* This file was generated by the CommonAPI Generators.
-*
- * Copyright (c) 2012 BMW
- *
- * \author Aleksandar Donchev, aleksander.donchev@partner.bmw.de BMW 2013
- *
- * \copyright
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction,
- * including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
- * subject to the following conditions:
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
- * THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- *
- * For further information see http://www.genivi.org/.
-*/
-#ifndef ORG_GENIVI_AUDIOMANAGER_Routing_Interface_STUB_DEFAULT_H_
-#define ORG_GENIVI_AUDIOMANAGER_Routing_Interface_STUB_DEFAULT_H_
-
-#include <org/genivi/audiomanager/RoutingInterfaceStub.h>
-
-namespace org {
-namespace genivi {
-namespace audiomanager {
-
-/**
- * Provides a default implementation for RoutingInterfaceStubRemoteEvent and
- * RoutingInterfaceStub. Method callbacks have an empty implementation,
- * remote set calls on attributes will always change the value of the attribute
- * to the one received.
- *
- * Override this stub if you only want to provide a subset of the functionality
- * that would be defined for this service, and/or if you do not need any non-default
- * behaviour.
- */
-class RoutingInterfaceStubDefault : public RoutingInterfaceStub {
- public:
- RoutingInterfaceStubDefault();
-
- RoutingInterfaceStubRemoteEvent* initStubAdapter(const std::shared_ptr<RoutingInterfaceStubAdapter>& stubAdapter);
-
-
- virtual void ackConnect(uint16_t handle, am_gen::am_connectionID_t connectionID, uint16_t error);
-
- virtual void ackDisconnect(uint16_t handle, am_gen::am_connectionID_t connectionID, uint16_t error);
-
- virtual void ackSetSinkVolume(uint16_t handle, am_gen::am_volume_t volume, uint16_t error);
-
- virtual void ackSetSourceVolume(uint16_t handle, am_gen::am_volume_t volume, uint16_t error);
-
- virtual void ackSetSourceState(uint16_t handle, uint16_t error);
-
- virtual void ackSetSinkSoundProperties(uint16_t handle, uint16_t error);
-
- virtual void ackSetSinkSoundProperty(uint16_t handle, uint16_t error);
-
- virtual void ackSetSourceSoundProperties(uint16_t handle, uint16_t error);
-
- virtual void ackSetSourceSoundProperty(uint16_t handle, uint16_t error);
-
- virtual void ackSourceVolumeTick(uint16_t handle, am_gen::am_sourceID_t source, am_gen::am_volume_t volume);
-
- virtual void ackSinkVolumeTick(uint16_t handle, am_gen::am_sinkID_t sink, am_gen::am_volume_t volume);
-
- virtual void ackCrossFading(uint16_t handle, am_gen::am_HotSink_e hotSink, am_gen::am_Error_e returnError);
-
- virtual void peekDomain(std::string name, am_gen::am_domainID_t& domainID, am_gen::am_Error_e& error);
-
- virtual void registerDomain(am_gen::am_Domain_s domainData, std::string returnBusname, std::string returnPath, std::string returnInterface, am_gen::am_domainID_t& domainID, am_gen::am_Error_e& error);
-
- virtual void deregisterDomain(am_gen::am_domainID_t domainID, am_gen::am_Error_e& returnError);
-
- virtual void registerGateway(am_gen::am_Gateway_s gatewayData, am_gen::am_gatewayID_t& gatewayID, am_gen::am_Error_e& error);
-
- virtual void deregisterGateway(am_gen::am_gatewayID_t gatewayID, am_gen::am_Error_e& returnError);
-
- virtual void peekSink(std::string name, am_gen::am_sinkID_t& sinkID, am_gen::am_Error_e& error);
-
- virtual void registerSink(am_gen::sinkData_s sinkData, am_gen::am_sinkID_t& sinkID, am_gen::am_Error_e& error);
-
- virtual void deregisterSink(am_gen::am_sinkID_t sinkID, am_gen::am_Error_e& returnError);
-
- virtual void peekSource(std::string name, am_gen::am_sourceID_t& sourceID, am_gen::am_Error_e& error);
-
- virtual void registerSource(am_gen::sourceData_s sourceData, am_gen::am_sourceID_t& sourceID, am_gen::am_Error_e& error);
-
- virtual void deregisterSource(am_gen::am_sourceID_t sourceID, am_gen::am_Error_e& returnError);
-
- virtual void registerCrossfader(am_gen::crossfaderData_s crossfaderData, am_gen::am_crossfaderID_t& crossfaderID, am_gen::am_Error_e& error);
-
- virtual void deregisterCrossfader(am_gen::am_crossfaderID_t crossfaderID, am_gen::am_Error_e& returnError);
-
- virtual void peekSourceClassID(std::string name, am_gen::am_sourceClass_t& sourceClassID, am_gen::am_Error_e& error);
-
- virtual void peekSinkClassID(std::string name, am_gen::am_sinkClass_t& sinkClassID, am_gen::am_Error_e& error);
-
- virtual void hookInterruptStatusChange(am_gen::am_sourceID_t sourceID, uint16_t interruptState);
-
- virtual void hookDomainRegistrationComplete(am_gen::am_domainID_t domainID);
-
- virtual void hookSinkAvailablityStatusChange(am_gen::am_sinkID_t sinkID, am_gen::am_Availability_s availability);
-
- virtual void hookSourceAvailablityStatusChange(am_gen::am_sourceID_t sourceID, am_gen::am_Availability_s availability);
-
- virtual void hookDomainStateChange(am_gen::am_domainID_t domainID, am_gen::am_DomainState_e domainState);
-
- virtual void hookTimingInformationChanged(am_gen::am_connectionID_t connectionID, int16_t delay);
-
- virtual void sendChangedData(am_gen::am_EarlyData_l earlyData_volumes, am_gen::am_EarlyData_l earlyData_soundproperties);
-
- virtual void confirmRoutingReady(am_gen::am_domainID_t domainID);
-
- virtual void confirmRoutingRundown(am_gen::am_domainID_t domainID);
-
- virtual void updateGateway(am_gen::am_gatewayID_t gatewayID, am_gen::am_ConnectionFormat_L listSourceFormats, am_gen::am_ConnectionFormat_L listSinkFormats, am_gen::bool_L convertionMatrix);
-
- virtual void updateSink(am_gen::am_sinkID_t sinkID, am_gen::am_sinkClass_t sinkClassID, am_gen::am_SoundProperty_L listSoundProperties, am_gen::am_ConnectionFormat_L listConnectionFormats, am_gen::am_MainSoundProperty_L listMainSoundProperties);
-
- virtual void updateSource(am_gen::am_sourceID_t sourceID, am_gen::am_sourceClass_t sourceClassID, am_gen::am_SoundProperty_L listSoundProperties, am_gen::am_ConnectionFormat_L listConnectionFormats, am_gen::am_MainSoundProperty_L listMainSoundProperties);
-
- virtual void ackSetVolumes(uint16_t handle, am_gen::am_Volumes_l listVolumes, uint16_t error);
-
- virtual void ackSinkNotificationConfiguration(uint16_t handle, uint16_t error);
-
- virtual void ackSourceNotificationConfiguration(uint16_t handle, uint16_t error);
-
- virtual void hookSinkNotificationDataChange(am_gen::am_sinkID_t sinkID, am_gen::notificationPayload_s payload);
-
- virtual void hookSourceNotificationDataChange(am_gen::am_sourceID_t sourceID, am_gen::notificationPayload_s payload);
-
- virtual void getRoutingReadyState(bool& readyState);
-
-
- virtual void fireSetRoutingReadyEvent();
- virtual void fireSetRoutingRundownEvent();
-
- protected:
-
- private:
- class RemoteEventHandler: public RoutingInterfaceStubRemoteEvent {
- public:
- RemoteEventHandler(RoutingInterfaceStubDefault* defaultStub);
-
-
- private:
- RoutingInterfaceStubDefault* defaultStub_;
- };
-
- RemoteEventHandler remoteEventHandler_;
- std::shared_ptr<RoutingInterfaceStubAdapter> stubAdapter_;
-
-};
-
-} // namespace audiomanager
-} // namespace genivi
-} // namespace org
-
-#endif // ORG_GENIVI_AUDIOMANAGER_Routing_Interface_STUB_DEFAULT_H_
diff --git a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/audiomanager/RoutingSender.h b/PluginRoutingInterfaceCAPI/src-gen/org/genivi/audiomanager/RoutingSender.h
deleted file mode 100644
index 077f1f0..0000000
--- a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/audiomanager/RoutingSender.h
+++ /dev/null
@@ -1,66 +0,0 @@
-/*
-* This file was generated by the CommonAPI Generators.
-*
- * Copyright (c) 2012 BMW
- *
- * \author Aleksandar Donchev, aleksander.donchev@partner.bmw.de BMW 2013
- *
- * \copyright
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction,
- * including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
- * subject to the following conditions:
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
- * THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- *
- * For further information see http://www.genivi.org/.
-*/
-#ifndef ORG_GENIVI_AUDIOMANAGER_Routing_Sender_H_
-#define ORG_GENIVI_AUDIOMANAGER_Routing_Sender_H_
-
-
-
-#define COMMONAPI_INTERNAL_COMPILATION
-
-#include <CommonAPI/types.h>
-
-#undef COMMONAPI_INTERNAL_COMPILATION
-
-namespace org {
-namespace genivi {
-namespace audiomanager {
-
-class RoutingSender {
- public:
- virtual ~RoutingSender() { }
-
- static inline const char* getInterfaceId();
- static inline CommonAPI::Version getInterfaceVersion();
-};
-
-const char* RoutingSender::getInterfaceId() {
- return "org.genivi.audiomanager.RoutingSender";
-}
-
-CommonAPI::Version RoutingSender::getInterfaceVersion() {
- return CommonAPI::Version(0, 1);
-}
-
-
-} // namespace audiomanager
-} // namespace genivi
-} // namespace org
-
-namespace CommonAPI {
-
-}
-
-
-namespace std {
- //hashes for types
-
- //hashes for error types
-}
-
-#endif // ORG_GENIVI_AUDIOMANAGER_Routing_Sender_H_
diff --git a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/audiomanager/RoutingSenderDBusProxy.cpp b/PluginRoutingInterfaceCAPI/src-gen/org/genivi/audiomanager/RoutingSenderDBusProxy.cpp
deleted file mode 100644
index 00071a1..0000000
--- a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/audiomanager/RoutingSenderDBusProxy.cpp
+++ /dev/null
@@ -1,344 +0,0 @@
-/*
-* This file was generated by the CommonAPI Generators.
-*
- * Copyright (c) 2012 BMW
- *
- * \author Aleksandar Donchev, aleksander.donchev@partner.bmw.de BMW 2013
- *
- * \copyright
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction,
- * including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
- * subject to the following conditions:
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
- * THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- *
- * For further information see http://www.genivi.org/.
-*/
-#include "RoutingSenderDBusProxy.h"
-
-namespace org {
-namespace genivi {
-namespace audiomanager {
-
-std::shared_ptr<CommonAPI::DBus::DBusProxy> createRoutingSenderDBusProxy(
- const std::string& commonApiAddress,
- const std::string& interfaceName,
- const std::string& busName,
- const std::string& objectPath,
- const std::shared_ptr<CommonAPI::DBus::DBusProxyConnection>& dbusProxyConnection) {
- return std::make_shared<RoutingSenderDBusProxy>(commonApiAddress, interfaceName, busName, objectPath, dbusProxyConnection);
-}
-
-__attribute__((constructor)) void registerRoutingSenderDBusProxy(void) {
- CommonAPI::DBus::DBusFactory::registerProxyFactoryMethod(RoutingSender::getInterfaceId(),
- &createRoutingSenderDBusProxy);
-}
-
-RoutingSenderDBusProxy::RoutingSenderDBusProxy(
- const std::string& commonApiAddress,
- const std::string& interfaceName,
- const std::string& busName,
- const std::string& objectPath,
- const std::shared_ptr<CommonAPI::DBus::DBusProxyConnection>& dbusProxyconnection):
- CommonAPI::DBus::DBusProxy(commonApiAddress, interfaceName, busName, objectPath, dbusProxyconnection)
- {
-}
-
-
-
-void RoutingSenderDBusProxy::asyncSetSourceState(const uint16_t& handle, const am_gen::am_sourceID_t& sourceID, const am_gen::am_SourceState_e& sourceState, CommonAPI::CallStatus& callStatus) {
- CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<uint16_t, am_gen::am_sourceID_t, am_gen::am_SourceState_e>,
- CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
- *this,
- "asyncSetSourceState",
- "qqi",
- handle, sourceID, sourceState,
- callStatus
- );
-}
-std::future<CommonAPI::CallStatus> RoutingSenderDBusProxy::asyncSetSourceStateAsync(const uint16_t& handle, const am_gen::am_sourceID_t& sourceID, const am_gen::am_SourceState_e& sourceState, AsyncSetSourceStateAsyncCallback callback) {
- return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<uint16_t, am_gen::am_sourceID_t, am_gen::am_SourceState_e>,
- CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
- *this,
- "asyncSetSourceState",
- "qqi",
- handle, sourceID, sourceState,
- std::move(callback));
-}
-void RoutingSenderDBusProxy::setDomainState(const am_gen::am_domainID_t& domainID, const am_gen::am_DomainState_e& domainState, CommonAPI::CallStatus& callStatus, am_gen::am_Error_e& error) {
- CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_gen::am_domainID_t, am_gen::am_DomainState_e>,
- CommonAPI::DBus::DBusSerializableArguments<am_gen::am_Error_e> >::callMethodWithReply(
- *this,
- "setDomainState",
- "qi",
- domainID, domainState,
- callStatus
- , error);
-}
-std::future<CommonAPI::CallStatus> RoutingSenderDBusProxy::setDomainStateAsync(const am_gen::am_domainID_t& domainID, const am_gen::am_DomainState_e& domainState, SetDomainStateAsyncCallback callback) {
- return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_gen::am_domainID_t, am_gen::am_DomainState_e>,
- CommonAPI::DBus::DBusSerializableArguments<am_gen::am_Error_e> >::callMethodAsync(
- *this,
- "setDomainState",
- "qi",
- domainID, domainState,
- std::move(callback));
-}
-void RoutingSenderDBusProxy::asyncSetSourceVolume(const am_gen::am_handle_t& handle, const am_gen::am_sourceID_t& sourceID, const am_gen::am_volume_t& volume, const am_gen::am_RampType_e& ramp, const am_gen::am_time_t& time, CommonAPI::CallStatus& callStatus) {
- CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_gen::am_handle_t, am_gen::am_sourceID_t, am_gen::am_volume_t, am_gen::am_RampType_e, am_gen::am_time_t>,
- CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
- *this,
- "asyncSetSourceVolume",
- "qqniq",
- handle, sourceID, volume, ramp, time,
- callStatus
- );
-}
-std::future<CommonAPI::CallStatus> RoutingSenderDBusProxy::asyncSetSourceVolumeAsync(const am_gen::am_handle_t& handle, const am_gen::am_sourceID_t& sourceID, const am_gen::am_volume_t& volume, const am_gen::am_RampType_e& ramp, const am_gen::am_time_t& time, AsyncSetSourceVolumeAsyncCallback callback) {
- return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_gen::am_handle_t, am_gen::am_sourceID_t, am_gen::am_volume_t, am_gen::am_RampType_e, am_gen::am_time_t>,
- CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
- *this,
- "asyncSetSourceVolume",
- "qqniq",
- handle, sourceID, volume, ramp, time,
- std::move(callback));
-}
-void RoutingSenderDBusProxy::asyncSetSinkVolume(const am_gen::am_handle_t& handle, const am_gen::am_sinkID_t& sinkID, const am_gen::am_volume_t& volume, const am_gen::am_RampType_e& ramp, const am_gen::am_time_t& time, CommonAPI::CallStatus& callStatus) {
- CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_gen::am_handle_t, am_gen::am_sinkID_t, am_gen::am_volume_t, am_gen::am_RampType_e, am_gen::am_time_t>,
- CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
- *this,
- "asyncSetSinkVolume",
- "qqniq",
- handle, sinkID, volume, ramp, time,
- callStatus
- );
-}
-std::future<CommonAPI::CallStatus> RoutingSenderDBusProxy::asyncSetSinkVolumeAsync(const am_gen::am_handle_t& handle, const am_gen::am_sinkID_t& sinkID, const am_gen::am_volume_t& volume, const am_gen::am_RampType_e& ramp, const am_gen::am_time_t& time, AsyncSetSinkVolumeAsyncCallback callback) {
- return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_gen::am_handle_t, am_gen::am_sinkID_t, am_gen::am_volume_t, am_gen::am_RampType_e, am_gen::am_time_t>,
- CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
- *this,
- "asyncSetSinkVolume",
- "qqniq",
- handle, sinkID, volume, ramp, time,
- std::move(callback));
-}
-void RoutingSenderDBusProxy::asyncConnect(const am_gen::am_handle_t& handle, const am_gen::am_connectionID_t& connectionID, const am_gen::am_sourceID_t& sourceID, const am_gen::am_sinkID_t& sinkID, const am_gen::am_ConnectionFormat_e& connectionFormat, CommonAPI::CallStatus& callStatus) {
- CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_gen::am_handle_t, am_gen::am_connectionID_t, am_gen::am_sourceID_t, am_gen::am_sinkID_t, am_gen::am_ConnectionFormat_e>,
- CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
- *this,
- "asyncConnect",
- "qqqqi",
- handle, connectionID, sourceID, sinkID, connectionFormat,
- callStatus
- );
-}
-std::future<CommonAPI::CallStatus> RoutingSenderDBusProxy::asyncConnectAsync(const am_gen::am_handle_t& handle, const am_gen::am_connectionID_t& connectionID, const am_gen::am_sourceID_t& sourceID, const am_gen::am_sinkID_t& sinkID, const am_gen::am_ConnectionFormat_e& connectionFormat, AsyncConnectAsyncCallback callback) {
- return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_gen::am_handle_t, am_gen::am_connectionID_t, am_gen::am_sourceID_t, am_gen::am_sinkID_t, am_gen::am_ConnectionFormat_e>,
- CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
- *this,
- "asyncConnect",
- "qqqqi",
- handle, connectionID, sourceID, sinkID, connectionFormat,
- std::move(callback));
-}
-void RoutingSenderDBusProxy::asyncDisconnect(const am_gen::am_handle_t& handle, const am_gen::am_connectionID_t& connectionID, CommonAPI::CallStatus& callStatus) {
- CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_gen::am_handle_t, am_gen::am_connectionID_t>,
- CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
- *this,
- "asyncDisconnect",
- "qq",
- handle, connectionID,
- callStatus
- );
-}
-std::future<CommonAPI::CallStatus> RoutingSenderDBusProxy::asyncDisconnectAsync(const am_gen::am_handle_t& handle, const am_gen::am_connectionID_t& connectionID, AsyncDisconnectAsyncCallback callback) {
- return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_gen::am_handle_t, am_gen::am_connectionID_t>,
- CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
- *this,
- "asyncDisconnect",
- "qq",
- handle, connectionID,
- std::move(callback));
-}
-void RoutingSenderDBusProxy::asyncAbort(const am_gen::am_handle_t& handle, CommonAPI::CallStatus& callStatus, am_gen::am_Error_e& error) {
- CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_gen::am_handle_t>,
- CommonAPI::DBus::DBusSerializableArguments<am_gen::am_Error_e> >::callMethodWithReply(
- *this,
- "asyncAbort",
- "q",
- handle,
- callStatus
- , error);
-}
-std::future<CommonAPI::CallStatus> RoutingSenderDBusProxy::asyncAbortAsync(const am_gen::am_handle_t& handle, AsyncAbortAsyncCallback callback) {
- return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_gen::am_handle_t>,
- CommonAPI::DBus::DBusSerializableArguments<am_gen::am_Error_e> >::callMethodAsync(
- *this,
- "asyncAbort",
- "q",
- handle,
- std::move(callback));
-}
-void RoutingSenderDBusProxy::asyncSetSinkSoundProperties(const am_gen::am_handle_t& handle, const am_gen::am_sinkID_t& sinkID, const am_gen::am_SoundProperty_L& listSoundProperties, CommonAPI::CallStatus& callStatus) {
- CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_gen::am_handle_t, am_gen::am_sinkID_t, am_gen::am_SoundProperty_L>,
- CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
- *this,
- "asyncSetSinkSoundProperties",
- "qqa(in)",
- handle, sinkID, listSoundProperties,
- callStatus
- );
-}
-std::future<CommonAPI::CallStatus> RoutingSenderDBusProxy::asyncSetSinkSoundPropertiesAsync(const am_gen::am_handle_t& handle, const am_gen::am_sinkID_t& sinkID, const am_gen::am_SoundProperty_L& listSoundProperties, AsyncSetSinkSoundPropertiesAsyncCallback callback) {
- return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_gen::am_handle_t, am_gen::am_sinkID_t, am_gen::am_SoundProperty_L>,
- CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
- *this,
- "asyncSetSinkSoundProperties",
- "qqa(in)",
- handle, sinkID, listSoundProperties,
- std::move(callback));
-}
-void RoutingSenderDBusProxy::asyncSetSinkSoundProperty(const am_gen::am_handle_t& handle, const am_gen::am_sinkID_t& sinkID, const am_gen::am_SoundProperty_s& soundProperty, CommonAPI::CallStatus& callStatus) {
- CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_gen::am_handle_t, am_gen::am_sinkID_t, am_gen::am_SoundProperty_s>,
- CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
- *this,
- "asyncSetSinkSoundProperty",
- "qq(in)",
- handle, sinkID, soundProperty,
- callStatus
- );
-}
-std::future<CommonAPI::CallStatus> RoutingSenderDBusProxy::asyncSetSinkSoundPropertyAsync(const am_gen::am_handle_t& handle, const am_gen::am_sinkID_t& sinkID, const am_gen::am_SoundProperty_s& soundProperty, AsyncSetSinkSoundPropertyAsyncCallback callback) {
- return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_gen::am_handle_t, am_gen::am_sinkID_t, am_gen::am_SoundProperty_s>,
- CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
- *this,
- "asyncSetSinkSoundProperty",
- "qq(in)",
- handle, sinkID, soundProperty,
- std::move(callback));
-}
-void RoutingSenderDBusProxy::asyncSetSourceSoundProperties(const am_gen::am_handle_t& handle, const am_gen::am_sourceID_t& sourceID, const am_gen::am_SoundProperty_L& listSoundProperties, CommonAPI::CallStatus& callStatus) {
- CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_gen::am_handle_t, am_gen::am_sourceID_t, am_gen::am_SoundProperty_L>,
- CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
- *this,
- "asyncSetSourceSoundProperties",
- "qqa(in)",
- handle, sourceID, listSoundProperties,
- callStatus
- );
-}
-std::future<CommonAPI::CallStatus> RoutingSenderDBusProxy::asyncSetSourceSoundPropertiesAsync(const am_gen::am_handle_t& handle, const am_gen::am_sourceID_t& sourceID, const am_gen::am_SoundProperty_L& listSoundProperties, AsyncSetSourceSoundPropertiesAsyncCallback callback) {
- return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_gen::am_handle_t, am_gen::am_sourceID_t, am_gen::am_SoundProperty_L>,
- CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
- *this,
- "asyncSetSourceSoundProperties",
- "qqa(in)",
- handle, sourceID, listSoundProperties,
- std::move(callback));
-}
-void RoutingSenderDBusProxy::asyncSetSourceSoundProperty(const am_gen::am_handle_t& handle, const am_gen::am_sourceID_t& sourceID, const am_gen::am_SoundProperty_s& soundProperty, CommonAPI::CallStatus& callStatus) {
- CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_gen::am_handle_t, am_gen::am_sourceID_t, am_gen::am_SoundProperty_s>,
- CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
- *this,
- "asyncSetSourceSoundProperty",
- "qq(in)",
- handle, sourceID, soundProperty,
- callStatus
- );
-}
-std::future<CommonAPI::CallStatus> RoutingSenderDBusProxy::asyncSetSourceSoundPropertyAsync(const am_gen::am_handle_t& handle, const am_gen::am_sourceID_t& sourceID, const am_gen::am_SoundProperty_s& soundProperty, AsyncSetSourceSoundPropertyAsyncCallback callback) {
- return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_gen::am_handle_t, am_gen::am_sourceID_t, am_gen::am_SoundProperty_s>,
- CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
- *this,
- "asyncSetSourceSoundProperty",
- "qq(in)",
- handle, sourceID, soundProperty,
- std::move(callback));
-}
-void RoutingSenderDBusProxy::asyncCrossFade(const am_gen::am_handle_t& handle, const am_gen::am_crossfaderID_t& crossfaderID, const am_gen::am_HotSink_e& hotSink, const am_gen::am_RampType_e& rampType, const am_gen::am_time_t& time, CommonAPI::CallStatus& callStatus) {
- CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_gen::am_handle_t, am_gen::am_crossfaderID_t, am_gen::am_HotSink_e, am_gen::am_RampType_e, am_gen::am_time_t>,
- CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
- *this,
- "asyncCrossFade",
- "qqiiq",
- handle, crossfaderID, hotSink, rampType, time,
- callStatus
- );
-}
-std::future<CommonAPI::CallStatus> RoutingSenderDBusProxy::asyncCrossFadeAsync(const am_gen::am_handle_t& handle, const am_gen::am_crossfaderID_t& crossfaderID, const am_gen::am_HotSink_e& hotSink, const am_gen::am_RampType_e& rampType, const am_gen::am_time_t& time, AsyncCrossFadeAsyncCallback callback) {
- return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_gen::am_handle_t, am_gen::am_crossfaderID_t, am_gen::am_HotSink_e, am_gen::am_RampType_e, am_gen::am_time_t>,
- CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
- *this,
- "asyncCrossFade",
- "qqiiq",
- handle, crossfaderID, hotSink, rampType, time,
- std::move(callback));
-}
-void RoutingSenderDBusProxy::asyncSetVolumes(const am_gen::am_handle_t& handle, const am_gen::am_Volumes_l& volumes, CommonAPI::CallStatus& callStatus) {
- CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_gen::am_handle_t, am_gen::am_Volumes_l>,
- CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
- *this,
- "asyncSetVolumes",
- "qa(i(yv)niq)",
- handle, volumes,
- callStatus
- );
-}
-std::future<CommonAPI::CallStatus> RoutingSenderDBusProxy::asyncSetVolumesAsync(const am_gen::am_handle_t& handle, const am_gen::am_Volumes_l& volumes, AsyncSetVolumesAsyncCallback callback) {
- return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_gen::am_handle_t, am_gen::am_Volumes_l>,
- CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
- *this,
- "asyncSetVolumes",
- "qa(i(yv)niq)",
- handle, volumes,
- std::move(callback));
-}
-void RoutingSenderDBusProxy::asyncSetSinkNotificationConfiguration(const am_gen::am_handle_t& handle, const am_gen::am_sinkID_t& sinkID, const am_gen::am_NotificationConfiguration_s& notificationConfiguration, CommonAPI::CallStatus& callStatus) {
- CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_gen::am_handle_t, am_gen::am_sinkID_t, am_gen::am_NotificationConfiguration_s>,
- CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
- *this,
- "asyncSetSinkNotificationConfiguration",
- "qq(iin)",
- handle, sinkID, notificationConfiguration,
- callStatus
- );
-}
-std::future<CommonAPI::CallStatus> RoutingSenderDBusProxy::asyncSetSinkNotificationConfigurationAsync(const am_gen::am_handle_t& handle, const am_gen::am_sinkID_t& sinkID, const am_gen::am_NotificationConfiguration_s& notificationConfiguration, AsyncSetSinkNotificationConfigurationAsyncCallback callback) {
- return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_gen::am_handle_t, am_gen::am_sinkID_t, am_gen::am_NotificationConfiguration_s>,
- CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
- *this,
- "asyncSetSinkNotificationConfiguration",
- "qq(iin)",
- handle, sinkID, notificationConfiguration,
- std::move(callback));
-}
-void RoutingSenderDBusProxy::asyncSetSourceNotificationConfiguration(const am_gen::am_handle_t& handle, const am_gen::am_sourceID_t& sourceID, const am_gen::am_NotificationConfiguration_s& notificationConfiguration, CommonAPI::CallStatus& callStatus) {
- CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_gen::am_handle_t, am_gen::am_sourceID_t, am_gen::am_NotificationConfiguration_s>,
- CommonAPI::DBus::DBusSerializableArguments<> >::callMethodWithReply(
- *this,
- "asyncSetSourceNotificationConfiguration",
- "qq(iin)",
- handle, sourceID, notificationConfiguration,
- callStatus
- );
-}
-std::future<CommonAPI::CallStatus> RoutingSenderDBusProxy::asyncSetSourceNotificationConfigurationAsync(const am_gen::am_handle_t& handle, const am_gen::am_sourceID_t& sourceID, const am_gen::am_NotificationConfiguration_s& notificationConfiguration, AsyncSetSourceNotificationConfigurationAsyncCallback callback) {
- return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<am_gen::am_handle_t, am_gen::am_sourceID_t, am_gen::am_NotificationConfiguration_s>,
- CommonAPI::DBus::DBusSerializableArguments<> >::callMethodAsync(
- *this,
- "asyncSetSourceNotificationConfiguration",
- "qq(iin)",
- handle, sourceID, notificationConfiguration,
- std::move(callback));
-}
-
-void RoutingSenderDBusProxy::getOwnVersion(uint16_t& ownVersionMajor, uint16_t& ownVersionMinor) const {
- ownVersionMajor = 0;
- ownVersionMinor = 1;
-}
-
-} // namespace audiomanager
-} // namespace genivi
-} // namespace org
diff --git a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/audiomanager/RoutingSenderDBusProxy.h b/PluginRoutingInterfaceCAPI/src-gen/org/genivi/audiomanager/RoutingSenderDBusProxy.h
deleted file mode 100644
index af46069..0000000
--- a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/audiomanager/RoutingSenderDBusProxy.h
+++ /dev/null
@@ -1,106 +0,0 @@
-/*
-* This file was generated by the CommonAPI Generators.
-*
- * Copyright (c) 2012 BMW
- *
- * \author Aleksandar Donchev, aleksander.donchev@partner.bmw.de BMW 2013
- *
- * \copyright
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction,
- * including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
- * subject to the following conditions:
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
- * THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- *
- * For further information see http://www.genivi.org/.
-*/
-#ifndef ORG_GENIVI_AUDIOMANAGER_Routing_Sender_DBUS_PROXY_H_
-#define ORG_GENIVI_AUDIOMANAGER_Routing_Sender_DBUS_PROXY_H_
-
-#include <org/genivi/audiomanager/RoutingSenderProxyBase.h>
-
-#define COMMONAPI_INTERNAL_COMPILATION
-
-#include <CommonAPI/DBus/DBusFactory.h>
-#include <CommonAPI/DBus/DBusProxy.h>
-
-#undef COMMONAPI_INTERNAL_COMPILATION
-
-#include <string>
-
-namespace org {
-namespace genivi {
-namespace audiomanager {
-
-class RoutingSenderDBusProxy: virtual public RoutingSenderProxyBase, virtual public CommonAPI::DBus::DBusProxy {
- public:
- RoutingSenderDBusProxy(
- const std::string& commonApiAddress,
- const std::string& interfaceName,
- const std::string& busName,
- const std::string& objectPath,
- const std::shared_ptr<CommonAPI::DBus::DBusProxyConnection>& dbusProxyconnection);
-
- virtual ~RoutingSenderDBusProxy() { }
-
-
-
-
- virtual void asyncSetSourceState(const uint16_t& handle, const am_gen::am_sourceID_t& sourceID, const am_gen::am_SourceState_e& sourceState, CommonAPI::CallStatus& callStatus);
- virtual std::future<CommonAPI::CallStatus> asyncSetSourceStateAsync(const uint16_t& handle, const am_gen::am_sourceID_t& sourceID, const am_gen::am_SourceState_e& sourceState, AsyncSetSourceStateAsyncCallback callback);
-
- virtual void setDomainState(const am_gen::am_domainID_t& domainID, const am_gen::am_DomainState_e& domainState, CommonAPI::CallStatus& callStatus, am_gen::am_Error_e& error);
- virtual std::future<CommonAPI::CallStatus> setDomainStateAsync(const am_gen::am_domainID_t& domainID, const am_gen::am_DomainState_e& domainState, SetDomainStateAsyncCallback callback);
-
- virtual void asyncSetSourceVolume(const am_gen::am_handle_t& handle, const am_gen::am_sourceID_t& sourceID, const am_gen::am_volume_t& volume, const am_gen::am_RampType_e& ramp, const am_gen::am_time_t& time, CommonAPI::CallStatus& callStatus);
- virtual std::future<CommonAPI::CallStatus> asyncSetSourceVolumeAsync(const am_gen::am_handle_t& handle, const am_gen::am_sourceID_t& sourceID, const am_gen::am_volume_t& volume, const am_gen::am_RampType_e& ramp, const am_gen::am_time_t& time, AsyncSetSourceVolumeAsyncCallback callback);
-
- virtual void asyncSetSinkVolume(const am_gen::am_handle_t& handle, const am_gen::am_sinkID_t& sinkID, const am_gen::am_volume_t& volume, const am_gen::am_RampType_e& ramp, const am_gen::am_time_t& time, CommonAPI::CallStatus& callStatus);
- virtual std::future<CommonAPI::CallStatus> asyncSetSinkVolumeAsync(const am_gen::am_handle_t& handle, const am_gen::am_sinkID_t& sinkID, const am_gen::am_volume_t& volume, const am_gen::am_RampType_e& ramp, const am_gen::am_time_t& time, AsyncSetSinkVolumeAsyncCallback callback);
-
- virtual void asyncConnect(const am_gen::am_handle_t& handle, const am_gen::am_connectionID_t& connectionID, const am_gen::am_sourceID_t& sourceID, const am_gen::am_sinkID_t& sinkID, const am_gen::am_ConnectionFormat_e& connectionFormat, CommonAPI::CallStatus& callStatus);
- virtual std::future<CommonAPI::CallStatus> asyncConnectAsync(const am_gen::am_handle_t& handle, const am_gen::am_connectionID_t& connectionID, const am_gen::am_sourceID_t& sourceID, const am_gen::am_sinkID_t& sinkID, const am_gen::am_ConnectionFormat_e& connectionFormat, AsyncConnectAsyncCallback callback);
-
- virtual void asyncDisconnect(const am_gen::am_handle_t& handle, const am_gen::am_connectionID_t& connectionID, CommonAPI::CallStatus& callStatus);
- virtual std::future<CommonAPI::CallStatus> asyncDisconnectAsync(const am_gen::am_handle_t& handle, const am_gen::am_connectionID_t& connectionID, AsyncDisconnectAsyncCallback callback);
-
- virtual void asyncAbort(const am_gen::am_handle_t& handle, CommonAPI::CallStatus& callStatus, am_gen::am_Error_e& error);
- virtual std::future<CommonAPI::CallStatus> asyncAbortAsync(const am_gen::am_handle_t& handle, AsyncAbortAsyncCallback callback);
-
- virtual void asyncSetSinkSoundProperties(const am_gen::am_handle_t& handle, const am_gen::am_sinkID_t& sinkID, const am_gen::am_SoundProperty_L& listSoundProperties, CommonAPI::CallStatus& callStatus);
- virtual std::future<CommonAPI::CallStatus> asyncSetSinkSoundPropertiesAsync(const am_gen::am_handle_t& handle, const am_gen::am_sinkID_t& sinkID, const am_gen::am_SoundProperty_L& listSoundProperties, AsyncSetSinkSoundPropertiesAsyncCallback callback);
-
- virtual void asyncSetSinkSoundProperty(const am_gen::am_handle_t& handle, const am_gen::am_sinkID_t& sinkID, const am_gen::am_SoundProperty_s& soundProperty, CommonAPI::CallStatus& callStatus);
- virtual std::future<CommonAPI::CallStatus> asyncSetSinkSoundPropertyAsync(const am_gen::am_handle_t& handle, const am_gen::am_sinkID_t& sinkID, const am_gen::am_SoundProperty_s& soundProperty, AsyncSetSinkSoundPropertyAsyncCallback callback);
-
- virtual void asyncSetSourceSoundProperties(const am_gen::am_handle_t& handle, const am_gen::am_sourceID_t& sourceID, const am_gen::am_SoundProperty_L& listSoundProperties, CommonAPI::CallStatus& callStatus);
- virtual std::future<CommonAPI::CallStatus> asyncSetSourceSoundPropertiesAsync(const am_gen::am_handle_t& handle, const am_gen::am_sourceID_t& sourceID, const am_gen::am_SoundProperty_L& listSoundProperties, AsyncSetSourceSoundPropertiesAsyncCallback callback);
-
- virtual void asyncSetSourceSoundProperty(const am_gen::am_handle_t& handle, const am_gen::am_sourceID_t& sourceID, const am_gen::am_SoundProperty_s& soundProperty, CommonAPI::CallStatus& callStatus);
- virtual std::future<CommonAPI::CallStatus> asyncSetSourceSoundPropertyAsync(const am_gen::am_handle_t& handle, const am_gen::am_sourceID_t& sourceID, const am_gen::am_SoundProperty_s& soundProperty, AsyncSetSourceSoundPropertyAsyncCallback callback);
-
- virtual void asyncCrossFade(const am_gen::am_handle_t& handle, const am_gen::am_crossfaderID_t& crossfaderID, const am_gen::am_HotSink_e& hotSink, const am_gen::am_RampType_e& rampType, const am_gen::am_time_t& time, CommonAPI::CallStatus& callStatus);
- virtual std::future<CommonAPI::CallStatus> asyncCrossFadeAsync(const am_gen::am_handle_t& handle, const am_gen::am_crossfaderID_t& crossfaderID, const am_gen::am_HotSink_e& hotSink, const am_gen::am_RampType_e& rampType, const am_gen::am_time_t& time, AsyncCrossFadeAsyncCallback callback);
-
- virtual void asyncSetVolumes(const am_gen::am_handle_t& handle, const am_gen::am_Volumes_l& volumes, CommonAPI::CallStatus& callStatus);
- virtual std::future<CommonAPI::CallStatus> asyncSetVolumesAsync(const am_gen::am_handle_t& handle, const am_gen::am_Volumes_l& volumes, AsyncSetVolumesAsyncCallback callback);
-
- virtual void asyncSetSinkNotificationConfiguration(const am_gen::am_handle_t& handle, const am_gen::am_sinkID_t& sinkID, const am_gen::am_NotificationConfiguration_s& notificationConfiguration, CommonAPI::CallStatus& callStatus);
- virtual std::future<CommonAPI::CallStatus> asyncSetSinkNotificationConfigurationAsync(const am_gen::am_handle_t& handle, const am_gen::am_sinkID_t& sinkID, const am_gen::am_NotificationConfiguration_s& notificationConfiguration, AsyncSetSinkNotificationConfigurationAsyncCallback callback);
-
- virtual void asyncSetSourceNotificationConfiguration(const am_gen::am_handle_t& handle, const am_gen::am_sourceID_t& sourceID, const am_gen::am_NotificationConfiguration_s& notificationConfiguration, CommonAPI::CallStatus& callStatus);
- virtual std::future<CommonAPI::CallStatus> asyncSetSourceNotificationConfigurationAsync(const am_gen::am_handle_t& handle, const am_gen::am_sourceID_t& sourceID, const am_gen::am_NotificationConfiguration_s& notificationConfiguration, AsyncSetSourceNotificationConfigurationAsyncCallback callback);
-
- virtual void getOwnVersion(uint16_t& ownVersionMajor, uint16_t& ownVersionMinor) const;
-
- private:
-
-};
-
-} // namespace audiomanager
-} // namespace genivi
-} // namespace org
-
-#endif // ORG_GENIVI_AUDIOMANAGER_Routing_Sender_DBUS_PROXY_H_
diff --git a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/audiomanager/RoutingSenderDBusStubAdapter.cpp b/PluginRoutingInterfaceCAPI/src-gen/org/genivi/audiomanager/RoutingSenderDBusStubAdapter.cpp
deleted file mode 100644
index 1c43bc6..0000000
--- a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/audiomanager/RoutingSenderDBusStubAdapter.cpp
+++ /dev/null
@@ -1,237 +0,0 @@
-/*
-* This file was generated by the CommonAPI Generators.
-*
- * Copyright (c) 2012 BMW
- *
- * \author Aleksandar Donchev, aleksander.donchev@partner.bmw.de BMW 2013
- *
- * \copyright
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction,
- * including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
- * subject to the following conditions:
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
- * THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- *
- * For further information see http://www.genivi.org/.
-*/
-#include "RoutingSenderDBusStubAdapter.h"
-#include <org/genivi/audiomanager/RoutingSender.h>
-
-namespace org {
-namespace genivi {
-namespace audiomanager {
-
-std::shared_ptr<CommonAPI::DBus::DBusStubAdapter> createRoutingSenderDBusStubAdapter(
- const std::string& commonApiAddress,
- const std::string& interfaceName,
- const std::string& busName,
- const std::string& objectPath,
- const std::shared_ptr<CommonAPI::DBus::DBusProxyConnection>& dbusProxyConnection,
- const std::shared_ptr<CommonAPI::StubBase>& stubBase) {
- return std::make_shared<RoutingSenderDBusStubAdapter>(commonApiAddress, interfaceName, busName, objectPath, dbusProxyConnection, stubBase);
-}
-
-__attribute__((constructor)) void registerRoutingSenderDBusStubAdapter(void) {
- CommonAPI::DBus::DBusFactory::registerAdapterFactoryMethod(RoutingSender::getInterfaceId(),
- &createRoutingSenderDBusStubAdapter);
-}
-
-RoutingSenderDBusStubAdapter::RoutingSenderDBusStubAdapter(
- const std::string& commonApiAddress,
- const std::string& dbusInterfaceName,
- const std::string& dbusBusName,
- const std::string& dbusObjectPath,
- const std::shared_ptr<CommonAPI::DBus::DBusProxyConnection>& dbusConnection,
- const std::shared_ptr<CommonAPI::StubBase>& stub):
- RoutingSenderDBusStubAdapterHelper(commonApiAddress, dbusInterfaceName, dbusBusName, dbusObjectPath, dbusConnection, std::dynamic_pointer_cast<RoutingSenderStub>(stub)) {
-}
-
-const char* RoutingSenderDBusStubAdapter::getMethodsDBusIntrospectionXmlData() const {
- return
- "<method name=\"asyncSetSourceState\">\n"
- "<arg name=\"handle\" type=\"q\" direction=\"in\" />\n"
- "<arg name=\"sourceID\" type=\"q\" direction=\"in\" />\n"
- "<arg name=\"sourceState\" type=\"i\" direction=\"in\" />\n"
- "</method>\n"
- "<method name=\"setDomainState\">\n"
- "<arg name=\"domainID\" type=\"q\" direction=\"in\" />\n"
- "<arg name=\"domainState\" type=\"i\" direction=\"in\" />\n"
- "<arg name=\"error\" type=\"i\" direction=\"out\" />\n"
- "</method>\n"
- "<method name=\"asyncSetSourceVolume\">\n"
- "<arg name=\"handle\" type=\"q\" direction=\"in\" />\n"
- "<arg name=\"sourceID\" type=\"q\" direction=\"in\" />\n"
- "<arg name=\"volume\" type=\"n\" direction=\"in\" />\n"
- "<arg name=\"ramp\" type=\"i\" direction=\"in\" />\n"
- "<arg name=\"time\" type=\"q\" direction=\"in\" />\n"
- "</method>\n"
- "<method name=\"asyncSetSinkVolume\">\n"
- "<arg name=\"handle\" type=\"q\" direction=\"in\" />\n"
- "<arg name=\"sinkID\" type=\"q\" direction=\"in\" />\n"
- "<arg name=\"volume\" type=\"n\" direction=\"in\" />\n"
- "<arg name=\"ramp\" type=\"i\" direction=\"in\" />\n"
- "<arg name=\"time\" type=\"q\" direction=\"in\" />\n"
- "</method>\n"
- "<method name=\"asyncConnect\">\n"
- "<arg name=\"handle\" type=\"q\" direction=\"in\" />\n"
- "<arg name=\"connectionID\" type=\"q\" direction=\"in\" />\n"
- "<arg name=\"sourceID\" type=\"q\" direction=\"in\" />\n"
- "<arg name=\"sinkID\" type=\"q\" direction=\"in\" />\n"
- "<arg name=\"connectionFormat\" type=\"i\" direction=\"in\" />\n"
- "</method>\n"
- "<method name=\"asyncDisconnect\">\n"
- "<arg name=\"handle\" type=\"q\" direction=\"in\" />\n"
- "<arg name=\"connectionID\" type=\"q\" direction=\"in\" />\n"
- "</method>\n"
- "<method name=\"asyncAbort\">\n"
- "<arg name=\"handle\" type=\"q\" direction=\"in\" />\n"
- "<arg name=\"error\" type=\"i\" direction=\"out\" />\n"
- "</method>\n"
- "<method name=\"asyncSetSinkSoundProperties\">\n"
- "<arg name=\"handle\" type=\"q\" direction=\"in\" />\n"
- "<arg name=\"sinkID\" type=\"q\" direction=\"in\" />\n"
- "<arg name=\"listSoundProperties\" type=\"a(in)\" direction=\"in\" />\n"
- "</method>\n"
- "<method name=\"asyncSetSinkSoundProperty\">\n"
- "<arg name=\"handle\" type=\"q\" direction=\"in\" />\n"
- "<arg name=\"sinkID\" type=\"q\" direction=\"in\" />\n"
- "<arg name=\"soundProperty\" type=\"(in)\" direction=\"in\" />\n"
- "</method>\n"
- "<method name=\"asyncSetSourceSoundProperties\">\n"
- "<arg name=\"handle\" type=\"q\" direction=\"in\" />\n"
- "<arg name=\"sourceID\" type=\"q\" direction=\"in\" />\n"
- "<arg name=\"listSoundProperties\" type=\"a(in)\" direction=\"in\" />\n"
- "</method>\n"
- "<method name=\"asyncSetSourceSoundProperty\">\n"
- "<arg name=\"handle\" type=\"q\" direction=\"in\" />\n"
- "<arg name=\"sourceID\" type=\"q\" direction=\"in\" />\n"
- "<arg name=\"soundProperty\" type=\"(in)\" direction=\"in\" />\n"
- "</method>\n"
- "<method name=\"asyncCrossFade\">\n"
- "<arg name=\"handle\" type=\"q\" direction=\"in\" />\n"
- "<arg name=\"crossfaderID\" type=\"q\" direction=\"in\" />\n"
- "<arg name=\"hotSink\" type=\"i\" direction=\"in\" />\n"
- "<arg name=\"rampType\" type=\"i\" direction=\"in\" />\n"
- "<arg name=\"time\" type=\"q\" direction=\"in\" />\n"
- "</method>\n"
- "<method name=\"asyncSetVolumes\">\n"
- "<arg name=\"handle\" type=\"q\" direction=\"in\" />\n"
- "<arg name=\"volumes\" type=\"a(i(yv)niq)\" direction=\"in\" />\n"
- "</method>\n"
- "<method name=\"asyncSetSinkNotificationConfiguration\">\n"
- "<arg name=\"handle\" type=\"q\" direction=\"in\" />\n"
- "<arg name=\"sinkID\" type=\"q\" direction=\"in\" />\n"
- "<arg name=\"notificationConfiguration\" type=\"(iin)\" direction=\"in\" />\n"
- "</method>\n"
- "<method name=\"asyncSetSourceNotificationConfiguration\">\n"
- "<arg name=\"handle\" type=\"q\" direction=\"in\" />\n"
- "<arg name=\"sourceID\" type=\"q\" direction=\"in\" />\n"
- "<arg name=\"notificationConfiguration\" type=\"(iin)\" direction=\"in\" />\n"
- "</method>\n"
- ;
-}
-
-
-
-static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
- RoutingSenderStub,
- std::tuple<uint16_t, am_gen::am_sourceID_t, am_gen::am_SourceState_e>,
- std::tuple<>
- > asyncSetSourceStateStubDispatcher(&RoutingSenderStub::asyncSetSourceState, "");
-static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
- RoutingSenderStub,
- std::tuple<am_gen::am_domainID_t, am_gen::am_DomainState_e>,
- std::tuple<am_gen::am_Error_e>
- > setDomainStateStubDispatcher(&RoutingSenderStub::setDomainState, "i");
-static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
- RoutingSenderStub,
- std::tuple<am_gen::am_handle_t, am_gen::am_sourceID_t, am_gen::am_volume_t, am_gen::am_RampType_e, am_gen::am_time_t>,
- std::tuple<>
- > asyncSetSourceVolumeStubDispatcher(&RoutingSenderStub::asyncSetSourceVolume, "");
-static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
- RoutingSenderStub,
- std::tuple<am_gen::am_handle_t, am_gen::am_sinkID_t, am_gen::am_volume_t, am_gen::am_RampType_e, am_gen::am_time_t>,
- std::tuple<>
- > asyncSetSinkVolumeStubDispatcher(&RoutingSenderStub::asyncSetSinkVolume, "");
-static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
- RoutingSenderStub,
- std::tuple<am_gen::am_handle_t, am_gen::am_connectionID_t, am_gen::am_sourceID_t, am_gen::am_sinkID_t, am_gen::am_ConnectionFormat_e>,
- std::tuple<>
- > asyncConnectStubDispatcher(&RoutingSenderStub::asyncConnect, "");
-static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
- RoutingSenderStub,
- std::tuple<am_gen::am_handle_t, am_gen::am_connectionID_t>,
- std::tuple<>
- > asyncDisconnectStubDispatcher(&RoutingSenderStub::asyncDisconnect, "");
-static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
- RoutingSenderStub,
- std::tuple<am_gen::am_handle_t>,
- std::tuple<am_gen::am_Error_e>
- > asyncAbortStubDispatcher(&RoutingSenderStub::asyncAbort, "i");
-static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
- RoutingSenderStub,
- std::tuple<am_gen::am_handle_t, am_gen::am_sinkID_t, am_gen::am_SoundProperty_L>,
- std::tuple<>
- > asyncSetSinkSoundPropertiesStubDispatcher(&RoutingSenderStub::asyncSetSinkSoundProperties, "");
-static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
- RoutingSenderStub,
- std::tuple<am_gen::am_handle_t, am_gen::am_sinkID_t, am_gen::am_SoundProperty_s>,
- std::tuple<>
- > asyncSetSinkSoundPropertyStubDispatcher(&RoutingSenderStub::asyncSetSinkSoundProperty, "");
-static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
- RoutingSenderStub,
- std::tuple<am_gen::am_handle_t, am_gen::am_sourceID_t, am_gen::am_SoundProperty_L>,
- std::tuple<>
- > asyncSetSourceSoundPropertiesStubDispatcher(&RoutingSenderStub::asyncSetSourceSoundProperties, "");
-static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
- RoutingSenderStub,
- std::tuple<am_gen::am_handle_t, am_gen::am_sourceID_t, am_gen::am_SoundProperty_s>,
- std::tuple<>
- > asyncSetSourceSoundPropertyStubDispatcher(&RoutingSenderStub::asyncSetSourceSoundProperty, "");
-static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
- RoutingSenderStub,
- std::tuple<am_gen::am_handle_t, am_gen::am_crossfaderID_t, am_gen::am_HotSink_e, am_gen::am_RampType_e, am_gen::am_time_t>,
- std::tuple<>
- > asyncCrossFadeStubDispatcher(&RoutingSenderStub::asyncCrossFade, "");
-static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
- RoutingSenderStub,
- std::tuple<am_gen::am_handle_t, am_gen::am_Volumes_l>,
- std::tuple<>
- > asyncSetVolumesStubDispatcher(&RoutingSenderStub::asyncSetVolumes, "");
-static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
- RoutingSenderStub,
- std::tuple<am_gen::am_handle_t, am_gen::am_sinkID_t, am_gen::am_NotificationConfiguration_s>,
- std::tuple<>
- > asyncSetSinkNotificationConfigurationStubDispatcher(&RoutingSenderStub::asyncSetSinkNotificationConfiguration, "");
-static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
- RoutingSenderStub,
- std::tuple<am_gen::am_handle_t, am_gen::am_sourceID_t, am_gen::am_NotificationConfiguration_s>,
- std::tuple<>
- > asyncSetSourceNotificationConfigurationStubDispatcher(&RoutingSenderStub::asyncSetSourceNotificationConfiguration, "");
-
-
-
-} // namespace audiomanager
-} // namespace genivi
-} // namespace org
-
-template<>
-const org::genivi::audiomanager::RoutingSenderDBusStubAdapterHelper::StubDispatcherTable org::genivi::audiomanager::RoutingSenderDBusStubAdapterHelper::stubDispatcherTable_ = {
- { { "asyncSetSourceState", "qqi" }, &org::genivi::audiomanager::asyncSetSourceStateStubDispatcher },
- { { "setDomainState", "qi" }, &org::genivi::audiomanager::setDomainStateStubDispatcher },
- { { "asyncSetSourceVolume", "qqniq" }, &org::genivi::audiomanager::asyncSetSourceVolumeStubDispatcher },
- { { "asyncSetSinkVolume", "qqniq" }, &org::genivi::audiomanager::asyncSetSinkVolumeStubDispatcher },
- { { "asyncConnect", "qqqqi" }, &org::genivi::audiomanager::asyncConnectStubDispatcher },
- { { "asyncDisconnect", "qq" }, &org::genivi::audiomanager::asyncDisconnectStubDispatcher },
- { { "asyncAbort", "q" }, &org::genivi::audiomanager::asyncAbortStubDispatcher },
- { { "asyncSetSinkSoundProperties", "qqa(in)" }, &org::genivi::audiomanager::asyncSetSinkSoundPropertiesStubDispatcher },
- { { "asyncSetSinkSoundProperty", "qq(in)" }, &org::genivi::audiomanager::asyncSetSinkSoundPropertyStubDispatcher },
- { { "asyncSetSourceSoundProperties", "qqa(in)" }, &org::genivi::audiomanager::asyncSetSourceSoundPropertiesStubDispatcher },
- { { "asyncSetSourceSoundProperty", "qq(in)" }, &org::genivi::audiomanager::asyncSetSourceSoundPropertyStubDispatcher },
- { { "asyncCrossFade", "qqiiq" }, &org::genivi::audiomanager::asyncCrossFadeStubDispatcher },
- { { "asyncSetVolumes", "qa(i(yv)niq)" }, &org::genivi::audiomanager::asyncSetVolumesStubDispatcher },
- { { "asyncSetSinkNotificationConfiguration", "qq(iin)" }, &org::genivi::audiomanager::asyncSetSinkNotificationConfigurationStubDispatcher },
- { { "asyncSetSourceNotificationConfiguration", "qq(iin)" }, &org::genivi::audiomanager::asyncSetSourceNotificationConfigurationStubDispatcher }
-};
diff --git a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/audiomanager/RoutingSenderDBusStubAdapter.h b/PluginRoutingInterfaceCAPI/src-gen/org/genivi/audiomanager/RoutingSenderDBusStubAdapter.h
deleted file mode 100644
index cedcf9f..0000000
--- a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/audiomanager/RoutingSenderDBusStubAdapter.h
+++ /dev/null
@@ -1,57 +0,0 @@
-/*
-* This file was generated by the CommonAPI Generators.
-*
- * Copyright (c) 2012 BMW
- *
- * \author Aleksandar Donchev, aleksander.donchev@partner.bmw.de BMW 2013
- *
- * \copyright
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction,
- * including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
- * subject to the following conditions:
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
- * THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- *
- * For further information see http://www.genivi.org/.
-*/
-#ifndef ORG_GENIVI_AUDIOMANAGER_Routing_Sender_DBUS_STUB_ADAPTER_H_
-#define ORG_GENIVI_AUDIOMANAGER_Routing_Sender_DBUS_STUB_ADAPTER_H_
-
-#include <org/genivi/audiomanager/RoutingSenderStub.h>
-
-#define COMMONAPI_INTERNAL_COMPILATION
-
-#include <CommonAPI/DBus/DBusStubAdapterHelper.h>
-#include <CommonAPI/DBus/DBusFactory.h>
-
-#undef COMMONAPI_INTERNAL_COMPILATION
-
-namespace org {
-namespace genivi {
-namespace audiomanager {
-
-typedef CommonAPI::DBus::DBusStubAdapterHelper<RoutingSenderStub> RoutingSenderDBusStubAdapterHelper;
-
-class RoutingSenderDBusStubAdapter: public RoutingSenderStubAdapter, public RoutingSenderDBusStubAdapterHelper {
- public:
- RoutingSenderDBusStubAdapter(
- const std::string& commonApiAddress,
- const std::string& dbusInterfaceName,
- const std::string& dbusBusName,
- const std::string& dbusObjectPath,
- const std::shared_ptr<CommonAPI::DBus::DBusProxyConnection>& dbusConnection,
- const std::shared_ptr<CommonAPI::StubBase>& stub);
-
-
-
- protected:
- virtual const char* getMethodsDBusIntrospectionXmlData() const;
-};
-
-} // namespace audiomanager
-} // namespace genivi
-} // namespace org
-
-#endif // ORG_GENIVI_AUDIOMANAGER_Routing_Sender_DBUS_STUB_ADAPTER_H_
diff --git a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/audiomanager/RoutingSenderProxyBase.h b/PluginRoutingInterfaceCAPI/src-gen/org/genivi/audiomanager/RoutingSenderProxyBase.h
deleted file mode 100644
index 457c8ae..0000000
--- a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/audiomanager/RoutingSenderProxyBase.h
+++ /dev/null
@@ -1,116 +0,0 @@
- /*
- * This file was generated by the CommonAPI Generators.
- *
- * Copyright (c) 2012 BMW
- *
- * \author Aleksandar Donchev, aleksander.donchev@partner.bmw.de BMW 2013
- *
- * \copyright
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction,
- * including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
- * subject to the following conditions:
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
- * THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- *
- * For further information see http://www.genivi.org/.
- */
- #ifndef ORG_GENIVI_AUDIOMANAGER_Routing_Sender_PROXY_BASE_H_
- #define ORG_GENIVI_AUDIOMANAGER_Routing_Sender_PROXY_BASE_H_
-
- #include "RoutingSender.h"
-
-
- #include <org/genivi/audiomanager/am_gen.h>
-
- #define COMMONAPI_INTERNAL_COMPILATION
-
- #include <CommonAPI/InputStream.h>
- #include <CommonAPI/OutputStream.h>
- #include <CommonAPI/SerializableStruct.h>
- #include <cstdint>
- #include <vector>
-
- #include <CommonAPI/Proxy.h>
- #include <functional>
- #include <future>
-
- #undef COMMONAPI_INTERNAL_COMPILATION
-
- namespace org {
- namespace genivi {
- namespace audiomanager {
-
- class RoutingSenderProxyBase: virtual public CommonAPI::Proxy {
- public:
- typedef std::function<void(const CommonAPI::CallStatus&)> AsyncSetSourceStateAsyncCallback;
- typedef std::function<void(const CommonAPI::CallStatus&, const am_gen::am_Error_e&)> SetDomainStateAsyncCallback;
- typedef std::function<void(const CommonAPI::CallStatus&)> AsyncSetSourceVolumeAsyncCallback;
- typedef std::function<void(const CommonAPI::CallStatus&)> AsyncSetSinkVolumeAsyncCallback;
- typedef std::function<void(const CommonAPI::CallStatus&)> AsyncConnectAsyncCallback;
- typedef std::function<void(const CommonAPI::CallStatus&)> AsyncDisconnectAsyncCallback;
- typedef std::function<void(const CommonAPI::CallStatus&, const am_gen::am_Error_e&)> AsyncAbortAsyncCallback;
- typedef std::function<void(const CommonAPI::CallStatus&)> AsyncSetSinkSoundPropertiesAsyncCallback;
- typedef std::function<void(const CommonAPI::CallStatus&)> AsyncSetSinkSoundPropertyAsyncCallback;
- typedef std::function<void(const CommonAPI::CallStatus&)> AsyncSetSourceSoundPropertiesAsyncCallback;
- typedef std::function<void(const CommonAPI::CallStatus&)> AsyncSetSourceSoundPropertyAsyncCallback;
- typedef std::function<void(const CommonAPI::CallStatus&)> AsyncCrossFadeAsyncCallback;
- typedef std::function<void(const CommonAPI::CallStatus&)> AsyncSetVolumesAsyncCallback;
- typedef std::function<void(const CommonAPI::CallStatus&)> AsyncSetSinkNotificationConfigurationAsyncCallback;
- typedef std::function<void(const CommonAPI::CallStatus&)> AsyncSetSourceNotificationConfigurationAsyncCallback;
-
-
-
-
- virtual void asyncSetSourceState(const uint16_t& handle, const am_gen::am_sourceID_t& sourceID, const am_gen::am_SourceState_e& sourceState, CommonAPI::CallStatus& callStatus) = 0;
- virtual std::future<CommonAPI::CallStatus> asyncSetSourceStateAsync(const uint16_t& handle, const am_gen::am_sourceID_t& sourceID, const am_gen::am_SourceState_e& sourceState, AsyncSetSourceStateAsyncCallback callback) = 0;
-
- virtual void setDomainState(const am_gen::am_domainID_t& domainID, const am_gen::am_DomainState_e& domainState, CommonAPI::CallStatus& callStatus, am_gen::am_Error_e& error) = 0;
- virtual std::future<CommonAPI::CallStatus> setDomainStateAsync(const am_gen::am_domainID_t& domainID, const am_gen::am_DomainState_e& domainState, SetDomainStateAsyncCallback callback) = 0;
-
- virtual void asyncSetSourceVolume(const am_gen::am_handle_t& handle, const am_gen::am_sourceID_t& sourceID, const am_gen::am_volume_t& volume, const am_gen::am_RampType_e& ramp, const am_gen::am_time_t& time, CommonAPI::CallStatus& callStatus) = 0;
- virtual std::future<CommonAPI::CallStatus> asyncSetSourceVolumeAsync(const am_gen::am_handle_t& handle, const am_gen::am_sourceID_t& sourceID, const am_gen::am_volume_t& volume, const am_gen::am_RampType_e& ramp, const am_gen::am_time_t& time, AsyncSetSourceVolumeAsyncCallback callback) = 0;
-
- virtual void asyncSetSinkVolume(const am_gen::am_handle_t& handle, const am_gen::am_sinkID_t& sinkID, const am_gen::am_volume_t& volume, const am_gen::am_RampType_e& ramp, const am_gen::am_time_t& time, CommonAPI::CallStatus& callStatus) = 0;
- virtual std::future<CommonAPI::CallStatus> asyncSetSinkVolumeAsync(const am_gen::am_handle_t& handle, const am_gen::am_sinkID_t& sinkID, const am_gen::am_volume_t& volume, const am_gen::am_RampType_e& ramp, const am_gen::am_time_t& time, AsyncSetSinkVolumeAsyncCallback callback) = 0;
-
- virtual void asyncConnect(const am_gen::am_handle_t& handle, const am_gen::am_connectionID_t& connectionID, const am_gen::am_sourceID_t& sourceID, const am_gen::am_sinkID_t& sinkID, const am_gen::am_ConnectionFormat_e& connectionFormat, CommonAPI::CallStatus& callStatus) = 0;
- virtual std::future<CommonAPI::CallStatus> asyncConnectAsync(const am_gen::am_handle_t& handle, const am_gen::am_connectionID_t& connectionID, const am_gen::am_sourceID_t& sourceID, const am_gen::am_sinkID_t& sinkID, const am_gen::am_ConnectionFormat_e& connectionFormat, AsyncConnectAsyncCallback callback) = 0;
-
- virtual void asyncDisconnect(const am_gen::am_handle_t& handle, const am_gen::am_connectionID_t& connectionID, CommonAPI::CallStatus& callStatus) = 0;
- virtual std::future<CommonAPI::CallStatus> asyncDisconnectAsync(const am_gen::am_handle_t& handle, const am_gen::am_connectionID_t& connectionID, AsyncDisconnectAsyncCallback callback) = 0;
-
- virtual void asyncAbort(const am_gen::am_handle_t& handle, CommonAPI::CallStatus& callStatus, am_gen::am_Error_e& error) = 0;
- virtual std::future<CommonAPI::CallStatus> asyncAbortAsync(const am_gen::am_handle_t& handle, AsyncAbortAsyncCallback callback) = 0;
-
- virtual void asyncSetSinkSoundProperties(const am_gen::am_handle_t& handle, const am_gen::am_sinkID_t& sinkID, const am_gen::am_SoundProperty_L& listSoundProperties, CommonAPI::CallStatus& callStatus) = 0;
- virtual std::future<CommonAPI::CallStatus> asyncSetSinkSoundPropertiesAsync(const am_gen::am_handle_t& handle, const am_gen::am_sinkID_t& sinkID, const am_gen::am_SoundProperty_L& listSoundProperties, AsyncSetSinkSoundPropertiesAsyncCallback callback) = 0;
-
- virtual void asyncSetSinkSoundProperty(const am_gen::am_handle_t& handle, const am_gen::am_sinkID_t& sinkID, const am_gen::am_SoundProperty_s& soundProperty, CommonAPI::CallStatus& callStatus) = 0;
- virtual std::future<CommonAPI::CallStatus> asyncSetSinkSoundPropertyAsync(const am_gen::am_handle_t& handle, const am_gen::am_sinkID_t& sinkID, const am_gen::am_SoundProperty_s& soundProperty, AsyncSetSinkSoundPropertyAsyncCallback callback) = 0;
-
- virtual void asyncSetSourceSoundProperties(const am_gen::am_handle_t& handle, const am_gen::am_sourceID_t& sourceID, const am_gen::am_SoundProperty_L& listSoundProperties, CommonAPI::CallStatus& callStatus) = 0;
- virtual std::future<CommonAPI::CallStatus> asyncSetSourceSoundPropertiesAsync(const am_gen::am_handle_t& handle, const am_gen::am_sourceID_t& sourceID, const am_gen::am_SoundProperty_L& listSoundProperties, AsyncSetSourceSoundPropertiesAsyncCallback callback) = 0;
-
- virtual void asyncSetSourceSoundProperty(const am_gen::am_handle_t& handle, const am_gen::am_sourceID_t& sourceID, const am_gen::am_SoundProperty_s& soundProperty, CommonAPI::CallStatus& callStatus) = 0;
- virtual std::future<CommonAPI::CallStatus> asyncSetSourceSoundPropertyAsync(const am_gen::am_handle_t& handle, const am_gen::am_sourceID_t& sourceID, const am_gen::am_SoundProperty_s& soundProperty, AsyncSetSourceSoundPropertyAsyncCallback callback) = 0;
-
- virtual void asyncCrossFade(const am_gen::am_handle_t& handle, const am_gen::am_crossfaderID_t& crossfaderID, const am_gen::am_HotSink_e& hotSink, const am_gen::am_RampType_e& rampType, const am_gen::am_time_t& time, CommonAPI::CallStatus& callStatus) = 0;
- virtual std::future<CommonAPI::CallStatus> asyncCrossFadeAsync(const am_gen::am_handle_t& handle, const am_gen::am_crossfaderID_t& crossfaderID, const am_gen::am_HotSink_e& hotSink, const am_gen::am_RampType_e& rampType, const am_gen::am_time_t& time, AsyncCrossFadeAsyncCallback callback) = 0;
-
- virtual void asyncSetVolumes(const am_gen::am_handle_t& handle, const am_gen::am_Volumes_l& volumes, CommonAPI::CallStatus& callStatus) = 0;
- virtual std::future<CommonAPI::CallStatus> asyncSetVolumesAsync(const am_gen::am_handle_t& handle, const am_gen::am_Volumes_l& volumes, AsyncSetVolumesAsyncCallback callback) = 0;
-
- virtual void asyncSetSinkNotificationConfiguration(const am_gen::am_handle_t& handle, const am_gen::am_sinkID_t& sinkID, const am_gen::am_NotificationConfiguration_s& notificationConfiguration, CommonAPI::CallStatus& callStatus) = 0;
- virtual std::future<CommonAPI::CallStatus> asyncSetSinkNotificationConfigurationAsync(const am_gen::am_handle_t& handle, const am_gen::am_sinkID_t& sinkID, const am_gen::am_NotificationConfiguration_s& notificationConfiguration, AsyncSetSinkNotificationConfigurationAsyncCallback callback) = 0;
-
- virtual void asyncSetSourceNotificationConfiguration(const am_gen::am_handle_t& handle, const am_gen::am_sourceID_t& sourceID, const am_gen::am_NotificationConfiguration_s& notificationConfiguration, CommonAPI::CallStatus& callStatus) = 0;
- virtual std::future<CommonAPI::CallStatus> asyncSetSourceNotificationConfigurationAsync(const am_gen::am_handle_t& handle, const am_gen::am_sourceID_t& sourceID, const am_gen::am_NotificationConfiguration_s& notificationConfiguration, AsyncSetSourceNotificationConfigurationAsyncCallback callback) = 0;
- };
-
- } // namespace audiomanager
- } // namespace genivi
- } // namespace org
-
- #endif // ORG_GENIVI_AUDIOMANAGER_Routing_Sender_PROXY_BASE_H_
diff --git a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/audiomanager/RoutingSenderStub.h b/PluginRoutingInterfaceCAPI/src-gen/org/genivi/audiomanager/RoutingSenderStub.h
deleted file mode 100644
index bc61563..0000000
--- a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/audiomanager/RoutingSenderStub.h
+++ /dev/null
@@ -1,123 +0,0 @@
-/*
-* This file was generated by the CommonAPI Generators.
-*
- * Copyright (c) 2012 BMW
- *
- * \author Aleksandar Donchev, aleksander.donchev@partner.bmw.de BMW 2013
- *
- * \copyright
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction,
- * including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
- * subject to the following conditions:
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
- * THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- *
- * For further information see http://www.genivi.org/.
-*/
-#ifndef ORG_GENIVI_AUDIOMANAGER_Routing_Sender_STUB_H_
-#define ORG_GENIVI_AUDIOMANAGER_Routing_Sender_STUB_H_
-
-
-
-#include <org/genivi/audiomanager/am_gen.h>
-
-#include "RoutingSender.h"
-
-#define COMMONAPI_INTERNAL_COMPILATION
-
-#include <CommonAPI/InputStream.h>
-#include <CommonAPI/OutputStream.h>
-#include <CommonAPI/SerializableStruct.h>
-#include <cstdint>
-#include <vector>
-
-#include <CommonAPI/Stub.h>
-
-#undef COMMONAPI_INTERNAL_COMPILATION
-
-namespace org {
-namespace genivi {
-namespace audiomanager {
-
-/**
- * Receives messages from remote and handles all dispatching of deserialized calls
- * to a stub for the service RoutingSender. Also provides means to send broadcasts
- * and attribute-changed-notifications of observable attributes as defined by this service.
- * An application developer should not need to bother with this class.
- */
-class RoutingSenderStubAdapter: virtual public CommonAPI::StubAdapter, public RoutingSender {
- public:
-
-};
-
-
-/**
- * Defines the necessary callbacks to handle remote set events related to the attributes
- * defined in the IDL description for RoutingSender.
- * For each attribute two callbacks are defined:
- * - a verification callback that allows to verify the requested value and to prevent setting
- * e.g. an invalid value ("onRemoteSet<AttributeName>").
- * - an action callback to do local work after the attribute value has been changed
- * ("onRemote<AttributeName>Changed").
- *
- * This class and the one below are the ones an application developer needs to have
- * a look at if he wants to implement a service.
- */
-class RoutingSenderStubRemoteEvent {
- public:
- virtual ~RoutingSenderStubRemoteEvent() { }
-
-};
-
-
-/**
- * Defines the interface that must be implemented by any class that should provide
- * the service RoutingSender to remote clients.
- * This class and the one above are the ones an application developer needs to have
- * a look at if he wants to implement a service.
- */
-class RoutingSenderStub : public CommonAPI::Stub<RoutingSenderStubAdapter , RoutingSenderStubRemoteEvent> {
- public:
- virtual ~RoutingSenderStub() { }
-
-
- /// This is the method that will be called on remote calls on the method asyncSetSourceState.
- virtual void asyncSetSourceState(uint16_t handle, am_gen::am_sourceID_t sourceID, am_gen::am_SourceState_e sourceState) = 0;
- /// This is the method that will be called on remote calls on the method setDomainState.
- virtual void setDomainState(am_gen::am_domainID_t domainID, am_gen::am_DomainState_e domainState, am_gen::am_Error_e& error) = 0;
- /// This is the method that will be called on remote calls on the method asyncSetSourceVolume.
- virtual void asyncSetSourceVolume(am_gen::am_handle_t handle, am_gen::am_sourceID_t sourceID, am_gen::am_volume_t volume, am_gen::am_RampType_e ramp, am_gen::am_time_t time) = 0;
- /// This is the method that will be called on remote calls on the method asyncSetSinkVolume.
- virtual void asyncSetSinkVolume(am_gen::am_handle_t handle, am_gen::am_sinkID_t sinkID, am_gen::am_volume_t volume, am_gen::am_RampType_e ramp, am_gen::am_time_t time) = 0;
- /// This is the method that will be called on remote calls on the method asyncConnect.
- virtual void asyncConnect(am_gen::am_handle_t handle, am_gen::am_connectionID_t connectionID, am_gen::am_sourceID_t sourceID, am_gen::am_sinkID_t sinkID, am_gen::am_ConnectionFormat_e connectionFormat) = 0;
- /// This is the method that will be called on remote calls on the method asyncDisconnect.
- virtual void asyncDisconnect(am_gen::am_handle_t handle, am_gen::am_connectionID_t connectionID) = 0;
- /// This is the method that will be called on remote calls on the method asyncAbort.
- virtual void asyncAbort(am_gen::am_handle_t handle, am_gen::am_Error_e& error) = 0;
- /// This is the method that will be called on remote calls on the method asyncSetSinkSoundProperties.
- virtual void asyncSetSinkSoundProperties(am_gen::am_handle_t handle, am_gen::am_sinkID_t sinkID, am_gen::am_SoundProperty_L listSoundProperties) = 0;
- /// This is the method that will be called on remote calls on the method asyncSetSinkSoundProperty.
- virtual void asyncSetSinkSoundProperty(am_gen::am_handle_t handle, am_gen::am_sinkID_t sinkID, am_gen::am_SoundProperty_s soundProperty) = 0;
- /// This is the method that will be called on remote calls on the method asyncSetSourceSoundProperties.
- virtual void asyncSetSourceSoundProperties(am_gen::am_handle_t handle, am_gen::am_sourceID_t sourceID, am_gen::am_SoundProperty_L listSoundProperties) = 0;
- /// This is the method that will be called on remote calls on the method asyncSetSourceSoundProperty.
- virtual void asyncSetSourceSoundProperty(am_gen::am_handle_t handle, am_gen::am_sourceID_t sourceID, am_gen::am_SoundProperty_s soundProperty) = 0;
- /// This is the method that will be called on remote calls on the method asyncCrossFade.
- virtual void asyncCrossFade(am_gen::am_handle_t handle, am_gen::am_crossfaderID_t crossfaderID, am_gen::am_HotSink_e hotSink, am_gen::am_RampType_e rampType, am_gen::am_time_t time) = 0;
- /// This is the method that will be called on remote calls on the method asyncSetVolumes.
- virtual void asyncSetVolumes(am_gen::am_handle_t handle, am_gen::am_Volumes_l volumes) = 0;
- /// This is the method that will be called on remote calls on the method asyncSetSinkNotificationConfiguration.
- virtual void asyncSetSinkNotificationConfiguration(am_gen::am_handle_t handle, am_gen::am_sinkID_t sinkID, am_gen::am_NotificationConfiguration_s notificationConfiguration) = 0;
- /// This is the method that will be called on remote calls on the method asyncSetSourceNotificationConfiguration.
- virtual void asyncSetSourceNotificationConfiguration(am_gen::am_handle_t handle, am_gen::am_sourceID_t sourceID, am_gen::am_NotificationConfiguration_s notificationConfiguration) = 0;
-
-};
-
-} // namespace audiomanager
-} // namespace genivi
-} // namespace org
-
-#endif // ORG_GENIVI_AUDIOMANAGER_Routing_Sender_STUB_H_
diff --git a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/audiomanager/RoutingSenderStubDefault.cpp b/PluginRoutingInterfaceCAPI/src-gen/org/genivi/audiomanager/RoutingSenderStubDefault.cpp
deleted file mode 100644
index 0f4f60a..0000000
--- a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/audiomanager/RoutingSenderStubDefault.cpp
+++ /dev/null
@@ -1,103 +0,0 @@
-/*
-* This file was generated by the CommonAPI Generators.
-*
- * Copyright (c) 2012 BMW
- *
- * \author Aleksandar Donchev, aleksander.donchev@partner.bmw.de BMW 2013
- *
- * \copyright
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction,
- * including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
- * subject to the following conditions:
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
- * THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- *
- * For further information see http://www.genivi.org/.
-*/
-#include <org/genivi/audiomanager/RoutingSenderStubDefault.h>
-
-namespace org {
-namespace genivi {
-namespace audiomanager {
-
-RoutingSenderStubDefault::RoutingSenderStubDefault():
- remoteEventHandler_(this) {
-}
-
-RoutingSenderStubRemoteEvent* RoutingSenderStubDefault::initStubAdapter(const std::shared_ptr<RoutingSenderStubAdapter>& stubAdapter) {
- stubAdapter_ = stubAdapter;
- return &remoteEventHandler_;
-}
-
-
-void RoutingSenderStubDefault::asyncSetSourceState(uint16_t handle, am_gen::am_sourceID_t sourceID, am_gen::am_SourceState_e sourceState) {
- // No operation in default
-}
-
-void RoutingSenderStubDefault::setDomainState(am_gen::am_domainID_t domainID, am_gen::am_DomainState_e domainState, am_gen::am_Error_e& error) {
- // No operation in default
-}
-
-void RoutingSenderStubDefault::asyncSetSourceVolume(am_gen::am_handle_t handle, am_gen::am_sourceID_t sourceID, am_gen::am_volume_t volume, am_gen::am_RampType_e ramp, am_gen::am_time_t time) {
- // No operation in default
-}
-
-void RoutingSenderStubDefault::asyncSetSinkVolume(am_gen::am_handle_t handle, am_gen::am_sinkID_t sinkID, am_gen::am_volume_t volume, am_gen::am_RampType_e ramp, am_gen::am_time_t time) {
- // No operation in default
-}
-
-void RoutingSenderStubDefault::asyncConnect(am_gen::am_handle_t handle, am_gen::am_connectionID_t connectionID, am_gen::am_sourceID_t sourceID, am_gen::am_sinkID_t sinkID, am_gen::am_ConnectionFormat_e connectionFormat) {
- // No operation in default
-}
-
-void RoutingSenderStubDefault::asyncDisconnect(am_gen::am_handle_t handle, am_gen::am_connectionID_t connectionID) {
- // No operation in default
-}
-
-void RoutingSenderStubDefault::asyncAbort(am_gen::am_handle_t handle, am_gen::am_Error_e& error) {
- // No operation in default
-}
-
-void RoutingSenderStubDefault::asyncSetSinkSoundProperties(am_gen::am_handle_t handle, am_gen::am_sinkID_t sinkID, am_gen::am_SoundProperty_L listSoundProperties) {
- // No operation in default
-}
-
-void RoutingSenderStubDefault::asyncSetSinkSoundProperty(am_gen::am_handle_t handle, am_gen::am_sinkID_t sinkID, am_gen::am_SoundProperty_s soundProperty) {
- // No operation in default
-}
-
-void RoutingSenderStubDefault::asyncSetSourceSoundProperties(am_gen::am_handle_t handle, am_gen::am_sourceID_t sourceID, am_gen::am_SoundProperty_L listSoundProperties) {
- // No operation in default
-}
-
-void RoutingSenderStubDefault::asyncSetSourceSoundProperty(am_gen::am_handle_t handle, am_gen::am_sourceID_t sourceID, am_gen::am_SoundProperty_s soundProperty) {
- // No operation in default
-}
-
-void RoutingSenderStubDefault::asyncCrossFade(am_gen::am_handle_t handle, am_gen::am_crossfaderID_t crossfaderID, am_gen::am_HotSink_e hotSink, am_gen::am_RampType_e rampType, am_gen::am_time_t time) {
- // No operation in default
-}
-
-void RoutingSenderStubDefault::asyncSetVolumes(am_gen::am_handle_t handle, am_gen::am_Volumes_l volumes) {
- // No operation in default
-}
-
-void RoutingSenderStubDefault::asyncSetSinkNotificationConfiguration(am_gen::am_handle_t handle, am_gen::am_sinkID_t sinkID, am_gen::am_NotificationConfiguration_s notificationConfiguration) {
- // No operation in default
-}
-
-void RoutingSenderStubDefault::asyncSetSourceNotificationConfiguration(am_gen::am_handle_t handle, am_gen::am_sourceID_t sourceID, am_gen::am_NotificationConfiguration_s notificationConfiguration) {
- // No operation in default
-}
-
-
-
-RoutingSenderStubDefault::RemoteEventHandler::RemoteEventHandler(RoutingSenderStubDefault* defaultStub):
- defaultStub_(defaultStub) {
-}
-
-} // namespace audiomanager
-} // namespace genivi
-} // namespace org
diff --git a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/audiomanager/RoutingSenderStubDefault.h b/PluginRoutingInterfaceCAPI/src-gen/org/genivi/audiomanager/RoutingSenderStubDefault.h
deleted file mode 100644
index d527ab0..0000000
--- a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/audiomanager/RoutingSenderStubDefault.h
+++ /dev/null
@@ -1,98 +0,0 @@
-/*
-* This file was generated by the CommonAPI Generators.
-*
- * Copyright (c) 2012 BMW
- *
- * \author Aleksandar Donchev, aleksander.donchev@partner.bmw.de BMW 2013
- *
- * \copyright
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction,
- * including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
- * subject to the following conditions:
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
- * THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- *
- * For further information see http://www.genivi.org/.
-*/
-#ifndef ORG_GENIVI_AUDIOMANAGER_Routing_Sender_STUB_DEFAULT_H_
-#define ORG_GENIVI_AUDIOMANAGER_Routing_Sender_STUB_DEFAULT_H_
-
-#include <org/genivi/audiomanager/RoutingSenderStub.h>
-
-namespace org {
-namespace genivi {
-namespace audiomanager {
-
-/**
- * Provides a default implementation for RoutingSenderStubRemoteEvent and
- * RoutingSenderStub. Method callbacks have an empty implementation,
- * remote set calls on attributes will always change the value of the attribute
- * to the one received.
- *
- * Override this stub if you only want to provide a subset of the functionality
- * that would be defined for this service, and/or if you do not need any non-default
- * behaviour.
- */
-class RoutingSenderStubDefault : public RoutingSenderStub {
- public:
- RoutingSenderStubDefault();
-
- RoutingSenderStubRemoteEvent* initStubAdapter(const std::shared_ptr<RoutingSenderStubAdapter>& stubAdapter);
-
-
- virtual void asyncSetSourceState(uint16_t handle, am_gen::am_sourceID_t sourceID, am_gen::am_SourceState_e sourceState);
-
- virtual void setDomainState(am_gen::am_domainID_t domainID, am_gen::am_DomainState_e domainState, am_gen::am_Error_e& error);
-
- virtual void asyncSetSourceVolume(am_gen::am_handle_t handle, am_gen::am_sourceID_t sourceID, am_gen::am_volume_t volume, am_gen::am_RampType_e ramp, am_gen::am_time_t time);
-
- virtual void asyncSetSinkVolume(am_gen::am_handle_t handle, am_gen::am_sinkID_t sinkID, am_gen::am_volume_t volume, am_gen::am_RampType_e ramp, am_gen::am_time_t time);
-
- virtual void asyncConnect(am_gen::am_handle_t handle, am_gen::am_connectionID_t connectionID, am_gen::am_sourceID_t sourceID, am_gen::am_sinkID_t sinkID, am_gen::am_ConnectionFormat_e connectionFormat);
-
- virtual void asyncDisconnect(am_gen::am_handle_t handle, am_gen::am_connectionID_t connectionID);
-
- virtual void asyncAbort(am_gen::am_handle_t handle, am_gen::am_Error_e& error);
-
- virtual void asyncSetSinkSoundProperties(am_gen::am_handle_t handle, am_gen::am_sinkID_t sinkID, am_gen::am_SoundProperty_L listSoundProperties);
-
- virtual void asyncSetSinkSoundProperty(am_gen::am_handle_t handle, am_gen::am_sinkID_t sinkID, am_gen::am_SoundProperty_s soundProperty);
-
- virtual void asyncSetSourceSoundProperties(am_gen::am_handle_t handle, am_gen::am_sourceID_t sourceID, am_gen::am_SoundProperty_L listSoundProperties);
-
- virtual void asyncSetSourceSoundProperty(am_gen::am_handle_t handle, am_gen::am_sourceID_t sourceID, am_gen::am_SoundProperty_s soundProperty);
-
- virtual void asyncCrossFade(am_gen::am_handle_t handle, am_gen::am_crossfaderID_t crossfaderID, am_gen::am_HotSink_e hotSink, am_gen::am_RampType_e rampType, am_gen::am_time_t time);
-
- virtual void asyncSetVolumes(am_gen::am_handle_t handle, am_gen::am_Volumes_l volumes);
-
- virtual void asyncSetSinkNotificationConfiguration(am_gen::am_handle_t handle, am_gen::am_sinkID_t sinkID, am_gen::am_NotificationConfiguration_s notificationConfiguration);
-
- virtual void asyncSetSourceNotificationConfiguration(am_gen::am_handle_t handle, am_gen::am_sourceID_t sourceID, am_gen::am_NotificationConfiguration_s notificationConfiguration);
-
-
-
- protected:
-
- private:
- class RemoteEventHandler: public RoutingSenderStubRemoteEvent {
- public:
- RemoteEventHandler(RoutingSenderStubDefault* defaultStub);
-
-
- private:
- RoutingSenderStubDefault* defaultStub_;
- };
-
- RemoteEventHandler remoteEventHandler_;
- std::shared_ptr<RoutingSenderStubAdapter> stubAdapter_;
-
-};
-
-} // namespace audiomanager
-} // namespace genivi
-} // namespace org
-
-#endif // ORG_GENIVI_AUDIOMANAGER_Routing_Sender_STUB_DEFAULT_H_
diff --git a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/audiomanager/am_gen.cpp b/PluginRoutingInterfaceCAPI/src-gen/org/genivi/audiomanager/am_gen.cpp
deleted file mode 100644
index 20bb29b..0000000
--- a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/audiomanager/am_gen.cpp
+++ /dev/null
@@ -1,587 +0,0 @@
-/*
-* This file was generated by the CommonAPI Generators.
-*
- * Copyright (c) 2012 BMW
- *
- * \author Aleksandar Donchev, aleksander.donchev@partner.bmw.de BMW 2013
- *
- * \copyright
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction,
- * including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
- * subject to the following conditions:
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
- * THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- *
- * For further information see http://www.genivi.org/.
-*/
-#include "am_gen.h"
-
-
-namespace org {
-namespace genivi {
-namespace audiomanager {
-namespace am_gen {
-
-distanceInformation_s::distanceInformation_s(const int32_t& FrontLeftValue, const int32_t& FrontRightValue, const int32_t& RearLeftValue, const int32_t& RearRightValue):
- FrontLeft(FrontLeftValue),
- FrontRight(FrontRightValue),
- RearLeft(RearLeftValue),
- RearRight(RearRightValue)
-{
-}
-
-
-bool operator==(const distanceInformation_s& lhs, const distanceInformation_s& rhs) {
- if (&lhs == &rhs)
- return true;
-
- return
- lhs.FrontLeft == rhs.FrontLeft &&
- lhs.FrontRight == rhs.FrontRight &&
- lhs.RearLeft == rhs.RearLeft &&
- lhs.RearRight == rhs.RearRight
- ;
-}
-
-void distanceInformation_s::readFromInputStream(CommonAPI::InputStream& inputStream) {
- inputStream >> FrontLeft;
- inputStream >> FrontRight;
- inputStream >> RearLeft;
- inputStream >> RearRight;
-}
-
-void distanceInformation_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const {
- outputStream << FrontLeft;
- outputStream << FrontRight;
- outputStream << RearLeft;
- outputStream << RearRight;
-}
-sampleNames_s::sampleNames_s(const sampleSet_e& sampleValue, const std::string& sampleNameValue):
- sample(sampleValue),
- sampleName(sampleNameValue)
-{
-}
-
-
-bool operator==(const sampleNames_s& lhs, const sampleNames_s& rhs) {
- if (&lhs == &rhs)
- return true;
-
- return
- lhs.sample == rhs.sample &&
- lhs.sampleName == rhs.sampleName
- ;
-}
-
-void sampleNames_s::readFromInputStream(CommonAPI::InputStream& inputStream) {
- inputStream >> sample;
- inputStream >> sampleName;
-}
-
-void sampleNames_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const {
- outputStream << sample;
- outputStream << sampleName;
-}
-am_Domain_s::am_Domain_s(const am_domainID_t& domainIDValue, const std::string& nameValue, const std::string& busnameValue, const std::string& nodenameValue, const bool& earlyValue, const bool& completeValue, const am_DomainState_e& stateValue):
- domainID(domainIDValue),
- name(nameValue),
- busname(busnameValue),
- nodename(nodenameValue),
- early(earlyValue),
- complete(completeValue),
- state(stateValue)
-{
-}
-
-
-bool operator==(const am_Domain_s& lhs, const am_Domain_s& rhs) {
- if (&lhs == &rhs)
- return true;
-
- return
- lhs.domainID == rhs.domainID &&
- lhs.name == rhs.name &&
- lhs.busname == rhs.busname &&
- lhs.nodename == rhs.nodename &&
- lhs.early == rhs.early &&
- lhs.complete == rhs.complete &&
- lhs.state == rhs.state
- ;
-}
-
-void am_Domain_s::readFromInputStream(CommonAPI::InputStream& inputStream) {
- inputStream >> domainID;
- inputStream >> name;
- inputStream >> busname;
- inputStream >> nodename;
- inputStream >> early;
- inputStream >> complete;
- inputStream >> state;
-}
-
-void am_Domain_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const {
- outputStream << domainID;
- outputStream << name;
- outputStream << busname;
- outputStream << nodename;
- outputStream << early;
- outputStream << complete;
- outputStream << state;
-}
-am_Volumes_s::am_Volumes_s(const am_VolumeType_e& volumeTypeValue, const am_DataType_u& volumeIDValue, const am_volume_t& volumeValue, const am_RampType_e& rampValue, const am_time_t& timeValue):
- volumeType(volumeTypeValue),
- volumeID(volumeIDValue),
- volume(volumeValue),
- ramp(rampValue),
- time(timeValue)
-{
-}
-
-
-bool operator==(const am_Volumes_s& lhs, const am_Volumes_s& rhs) {
- if (&lhs == &rhs)
- return true;
-
- return
- lhs.volumeType == rhs.volumeType &&
- lhs.volumeID == rhs.volumeID &&
- lhs.volume == rhs.volume &&
- lhs.ramp == rhs.ramp &&
- lhs.time == rhs.time
- ;
-}
-
-void am_Volumes_s::readFromInputStream(CommonAPI::InputStream& inputStream) {
- inputStream >> volumeType;
- inputStream >> volumeID;
- inputStream >> volume;
- inputStream >> ramp;
- inputStream >> time;
-}
-
-void am_Volumes_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const {
- outputStream << volumeType;
- outputStream << volumeID;
- outputStream << volume;
- outputStream << ramp;
- outputStream << time;
-}
-notificationPayload_s::notificationPayload_s(const int16_t& typeValue, const int16_t& payloadValue):
- type(typeValue),
- payload(payloadValue)
-{
-}
-
-
-bool operator==(const notificationPayload_s& lhs, const notificationPayload_s& rhs) {
- if (&lhs == &rhs)
- return true;
-
- return
- lhs.type == rhs.type &&
- lhs.payload == rhs.payload
- ;
-}
-
-void notificationPayload_s::readFromInputStream(CommonAPI::InputStream& inputStream) {
- inputStream >> type;
- inputStream >> payload;
-}
-
-void notificationPayload_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const {
- outputStream << type;
- outputStream << payload;
-}
-am_Availability_s::am_Availability_s(const am_Availability_e& availabilityValue, const am_AvailabilityReason_e& availabilityReasonValue):
- availability(availabilityValue),
- availabilityReason(availabilityReasonValue)
-{
-}
-
-
-bool operator==(const am_Availability_s& lhs, const am_Availability_s& rhs) {
- if (&lhs == &rhs)
- return true;
-
- return
- lhs.availability == rhs.availability &&
- lhs.availabilityReason == rhs.availabilityReason
- ;
-}
-
-void am_Availability_s::readFromInputStream(CommonAPI::InputStream& inputStream) {
- inputStream >> availability;
- inputStream >> availabilityReason;
-}
-
-void am_Availability_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const {
- outputStream << availability;
- outputStream << availabilityReason;
-}
-am_SoundProperty_s::am_SoundProperty_s(const am_SoundPropertyType_e& typeValue, const int16_t& valueValue):
- type(typeValue),
- value(valueValue)
-{
-}
-
-
-bool operator==(const am_SoundProperty_s& lhs, const am_SoundProperty_s& rhs) {
- if (&lhs == &rhs)
- return true;
-
- return
- lhs.type == rhs.type &&
- lhs.value == rhs.value
- ;
-}
-
-void am_SoundProperty_s::readFromInputStream(CommonAPI::InputStream& inputStream) {
- inputStream >> type;
- inputStream >> value;
-}
-
-void am_SoundProperty_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const {
- outputStream << type;
- outputStream << value;
-}
-am_MainSoundProperty_s::am_MainSoundProperty_s(const am_MainSoundPropertyType_e& typeValue, const int16_t& valueValue):
- type(typeValue),
- value(valueValue)
-{
-}
-
-
-bool operator==(const am_MainSoundProperty_s& lhs, const am_MainSoundProperty_s& rhs) {
- if (&lhs == &rhs)
- return true;
-
- return
- lhs.type == rhs.type &&
- lhs.value == rhs.value
- ;
-}
-
-void am_MainSoundProperty_s::readFromInputStream(CommonAPI::InputStream& inputStream) {
- inputStream >> type;
- inputStream >> value;
-}
-
-void am_MainSoundProperty_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const {
- outputStream << type;
- outputStream << value;
-}
-am_NotificationConfiguration_s::am_NotificationConfiguration_s(const am_NotificationType_e& typeValue, const am_NotificationStatus_e& statusValue, const int16_t& parameterValue):
- type(typeValue),
- status(statusValue),
- parameter(parameterValue)
-{
-}
-
-
-bool operator==(const am_NotificationConfiguration_s& lhs, const am_NotificationConfiguration_s& rhs) {
- if (&lhs == &rhs)
- return true;
-
- return
- lhs.type == rhs.type &&
- lhs.status == rhs.status &&
- lhs.parameter == rhs.parameter
- ;
-}
-
-void am_NotificationConfiguration_s::readFromInputStream(CommonAPI::InputStream& inputStream) {
- inputStream >> type;
- inputStream >> status;
- inputStream >> parameter;
-}
-
-void am_NotificationConfiguration_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const {
- outputStream << type;
- outputStream << status;
- outputStream << parameter;
-}
-sourceData_s::sourceData_s(const am_sourceID_t& sourceIDValue, const am_domainID_t& domainIDValue, const std::string& nameValue, const am_sourceClass_t& sourceClassIDValue, const am_SourceState_e& sourceStateValue, const am_volume_t& volumeValue, const bool& visibleValue, const am_Availability_s& availableValue, const am_InterruptState_e& interruptStateValue, const am_SoundProperty_L& listSoundPropertiesValue, const am_ConnectionFormat_L& listConnectionFormatsValue, const am_MainSoundProperty_L& listMainSoundPropertiesValue, const am_NotificationConfiguration_L& listMainNotificationConfigurationsValue, const am_NotificationConfiguration_L& listNotificationConfigurationsValue):
- sourceID(sourceIDValue),
- domainID(domainIDValue),
- name(nameValue),
- sourceClassID(sourceClassIDValue),
- sourceState(sourceStateValue),
- volume(volumeValue),
- visible(visibleValue),
- available(availableValue),
- interruptState(interruptStateValue),
- listSoundProperties(listSoundPropertiesValue),
- listConnectionFormats(listConnectionFormatsValue),
- listMainSoundProperties(listMainSoundPropertiesValue),
- listMainNotificationConfigurations(listMainNotificationConfigurationsValue),
- listNotificationConfigurations(listNotificationConfigurationsValue)
-{
-}
-
-
-bool operator==(const sourceData_s& lhs, const sourceData_s& rhs) {
- if (&lhs == &rhs)
- return true;
-
- return
- lhs.sourceID == rhs.sourceID &&
- lhs.domainID == rhs.domainID &&
- lhs.name == rhs.name &&
- lhs.sourceClassID == rhs.sourceClassID &&
- lhs.sourceState == rhs.sourceState &&
- lhs.volume == rhs.volume &&
- lhs.visible == rhs.visible &&
- lhs.available == rhs.available &&
- lhs.interruptState == rhs.interruptState &&
- lhs.listSoundProperties == rhs.listSoundProperties &&
- lhs.listConnectionFormats == rhs.listConnectionFormats &&
- lhs.listMainSoundProperties == rhs.listMainSoundProperties &&
- lhs.listMainNotificationConfigurations == rhs.listMainNotificationConfigurations &&
- lhs.listNotificationConfigurations == rhs.listNotificationConfigurations
- ;
-}
-
-void sourceData_s::readFromInputStream(CommonAPI::InputStream& inputStream) {
- inputStream >> sourceID;
- inputStream >> domainID;
- inputStream >> name;
- inputStream >> sourceClassID;
- inputStream >> sourceState;
- inputStream >> volume;
- inputStream >> visible;
- inputStream >> available;
- inputStream >> interruptState;
- inputStream >> listSoundProperties;
- inputStream >> listConnectionFormats;
- inputStream >> listMainSoundProperties;
- inputStream >> listMainNotificationConfigurations;
- inputStream >> listNotificationConfigurations;
-}
-
-void sourceData_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const {
- outputStream << sourceID;
- outputStream << domainID;
- outputStream << name;
- outputStream << sourceClassID;
- outputStream << sourceState;
- outputStream << volume;
- outputStream << visible;
- outputStream << available;
- outputStream << interruptState;
- outputStream << listSoundProperties;
- outputStream << listConnectionFormats;
- outputStream << listMainSoundProperties;
- outputStream << listMainNotificationConfigurations;
- outputStream << listNotificationConfigurations;
-}
-sinkData_s::sinkData_s(const am_sinkID_t& sinkIDValue, const std::string& nameValue, const am_domainID_t& domainIDValue, const am_sinkClass_t& sinkClassIDValue, const am_volume_t& volumeValue, const bool& visibleValue, const am_Availability_s& availableValue, const am_MuteState_e& muteStateValue, const am_mainVolume_t& mainVolumeValue, const am_SoundProperty_L& listSoundPropertiesValue, const am_ConnectionFormat_L& listConnectionFormatsValue, const am_MainSoundProperty_L& listMainSoundPropertiesValue, const am_NotificationConfiguration_L& listMainNotificationConfigurationsValue, const am_NotificationConfiguration_L& listNotificationConfigurationsValue):
- sinkID(sinkIDValue),
- name(nameValue),
- domainID(domainIDValue),
- sinkClassID(sinkClassIDValue),
- volume(volumeValue),
- visible(visibleValue),
- available(availableValue),
- muteState(muteStateValue),
- mainVolume(mainVolumeValue),
- listSoundProperties(listSoundPropertiesValue),
- listConnectionFormats(listConnectionFormatsValue),
- listMainSoundProperties(listMainSoundPropertiesValue),
- listMainNotificationConfigurations(listMainNotificationConfigurationsValue),
- listNotificationConfigurations(listNotificationConfigurationsValue)
-{
-}
-
-
-bool operator==(const sinkData_s& lhs, const sinkData_s& rhs) {
- if (&lhs == &rhs)
- return true;
-
- return
- lhs.sinkID == rhs.sinkID &&
- lhs.name == rhs.name &&
- lhs.domainID == rhs.domainID &&
- lhs.sinkClassID == rhs.sinkClassID &&
- lhs.volume == rhs.volume &&
- lhs.visible == rhs.visible &&
- lhs.available == rhs.available &&
- lhs.muteState == rhs.muteState &&
- lhs.mainVolume == rhs.mainVolume &&
- lhs.listSoundProperties == rhs.listSoundProperties &&
- lhs.listConnectionFormats == rhs.listConnectionFormats &&
- lhs.listMainSoundProperties == rhs.listMainSoundProperties &&
- lhs.listMainNotificationConfigurations == rhs.listMainNotificationConfigurations &&
- lhs.listNotificationConfigurations == rhs.listNotificationConfigurations
- ;
-}
-
-void sinkData_s::readFromInputStream(CommonAPI::InputStream& inputStream) {
- inputStream >> sinkID;
- inputStream >> name;
- inputStream >> domainID;
- inputStream >> sinkClassID;
- inputStream >> volume;
- inputStream >> visible;
- inputStream >> available;
- inputStream >> muteState;
- inputStream >> mainVolume;
- inputStream >> listSoundProperties;
- inputStream >> listConnectionFormats;
- inputStream >> listMainSoundProperties;
- inputStream >> listMainNotificationConfigurations;
- inputStream >> listNotificationConfigurations;
-}
-
-void sinkData_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const {
- outputStream << sinkID;
- outputStream << name;
- outputStream << domainID;
- outputStream << sinkClassID;
- outputStream << volume;
- outputStream << visible;
- outputStream << available;
- outputStream << muteState;
- outputStream << mainVolume;
- outputStream << listSoundProperties;
- outputStream << listConnectionFormats;
- outputStream << listMainSoundProperties;
- outputStream << listMainNotificationConfigurations;
- outputStream << listNotificationConfigurations;
-}
-crossfaderData_s::crossfaderData_s(const am_crossfaderID_t& crossfaderIDValue, const std::string& nameValue, const am_sinkID_t& sinkID_AValue, const am_sinkID_t& sinkID_BValue, const am_sourceID_t& sourceIDValue, const am_HotSink_e& hotSinkValue):
- crossfaderID(crossfaderIDValue),
- name(nameValue),
- sinkID_A(sinkID_AValue),
- sinkID_B(sinkID_BValue),
- sourceID(sourceIDValue),
- hotSink(hotSinkValue)
-{
-}
-
-
-bool operator==(const crossfaderData_s& lhs, const crossfaderData_s& rhs) {
- if (&lhs == &rhs)
- return true;
-
- return
- lhs.crossfaderID == rhs.crossfaderID &&
- lhs.name == rhs.name &&
- lhs.sinkID_A == rhs.sinkID_A &&
- lhs.sinkID_B == rhs.sinkID_B &&
- lhs.sourceID == rhs.sourceID &&
- lhs.hotSink == rhs.hotSink
- ;
-}
-
-void crossfaderData_s::readFromInputStream(CommonAPI::InputStream& inputStream) {
- inputStream >> crossfaderID;
- inputStream >> name;
- inputStream >> sinkID_A;
- inputStream >> sinkID_B;
- inputStream >> sourceID;
- inputStream >> hotSink;
-}
-
-void crossfaderData_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const {
- outputStream << crossfaderID;
- outputStream << name;
- outputStream << sinkID_A;
- outputStream << sinkID_B;
- outputStream << sourceID;
- outputStream << hotSink;
-}
-am_Gateway_s::am_Gateway_s(const am_gatewayID_t& gatewayIDValue, const std::string& nameValue, const am_sinkID_t& sinkIDValue, const am_sourceID_t& sourceIDValue, const am_domainID_t& domainSinkIDValue, const am_domainID_t& domainSourceIDValue, const am_domainID_t& controlDomainIDValue, const am_ConnectionFormat_L& listSourceFormatsValue, const am_ConnectionFormat_L& listSinkFormatsValue, const bool_L& convertionMatrixValue):
- gatewayID(gatewayIDValue),
- name(nameValue),
- sinkID(sinkIDValue),
- sourceID(sourceIDValue),
- domainSinkID(domainSinkIDValue),
- domainSourceID(domainSourceIDValue),
- controlDomainID(controlDomainIDValue),
- listSourceFormats(listSourceFormatsValue),
- listSinkFormats(listSinkFormatsValue),
- convertionMatrix(convertionMatrixValue)
-{
-}
-
-
-bool operator==(const am_Gateway_s& lhs, const am_Gateway_s& rhs) {
- if (&lhs == &rhs)
- return true;
-
- return
- lhs.gatewayID == rhs.gatewayID &&
- lhs.name == rhs.name &&
- lhs.sinkID == rhs.sinkID &&
- lhs.sourceID == rhs.sourceID &&
- lhs.domainSinkID == rhs.domainSinkID &&
- lhs.domainSourceID == rhs.domainSourceID &&
- lhs.controlDomainID == rhs.controlDomainID &&
- lhs.listSourceFormats == rhs.listSourceFormats &&
- lhs.listSinkFormats == rhs.listSinkFormats &&
- lhs.convertionMatrix == rhs.convertionMatrix
- ;
-}
-
-void am_Gateway_s::readFromInputStream(CommonAPI::InputStream& inputStream) {
- inputStream >> gatewayID;
- inputStream >> name;
- inputStream >> sinkID;
- inputStream >> sourceID;
- inputStream >> domainSinkID;
- inputStream >> domainSourceID;
- inputStream >> controlDomainID;
- inputStream >> listSourceFormats;
- inputStream >> listSinkFormats;
- inputStream >> convertionMatrix;
-}
-
-void am_Gateway_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const {
- outputStream << gatewayID;
- outputStream << name;
- outputStream << sinkID;
- outputStream << sourceID;
- outputStream << domainSinkID;
- outputStream << domainSourceID;
- outputStream << controlDomainID;
- outputStream << listSourceFormats;
- outputStream << listSinkFormats;
- outputStream << convertionMatrix;
-}
-am_EarlyData_s::am_EarlyData_s(const am_EarlyDataType_e& typeValue, const am_DataType_u& sinksourceValue, const am_EarlyData_u& dataValue):
- type(typeValue),
- sinksource(sinksourceValue),
- data(dataValue)
-{
-}
-
-
-bool operator==(const am_EarlyData_s& lhs, const am_EarlyData_s& rhs) {
- if (&lhs == &rhs)
- return true;
-
- return
- lhs.type == rhs.type &&
- lhs.sinksource == rhs.sinksource &&
- lhs.data == rhs.data
- ;
-}
-
-void am_EarlyData_s::readFromInputStream(CommonAPI::InputStream& inputStream) {
- inputStream >> type;
- inputStream >> sinksource;
- inputStream >> data;
-}
-
-void am_EarlyData_s::writeToOutputStream(CommonAPI::OutputStream& outputStream) const {
- outputStream << type;
- outputStream << sinksource;
- outputStream << data;
-}
-
-} // namespace am_gen
-} // namespace audiomanager
-} // namespace genivi
-} // namespace org
diff --git a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/audiomanager/am_gen.h b/PluginRoutingInterfaceCAPI/src-gen/org/genivi/audiomanager/am_gen.h
deleted file mode 100644
index be51398..0000000
--- a/PluginRoutingInterfaceCAPI/src-gen/org/genivi/audiomanager/am_gen.h
+++ /dev/null
@@ -1,1764 +0,0 @@
-/*
-* This file was generated by the CommonAPI Generators.
-*
- * Copyright (c) 2012 BMW
- *
- * \author Aleksandar Donchev, aleksander.donchev@partner.bmw.de BMW 2013
- *
- * \copyright
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction,
- * including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
- * subject to the following conditions:
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
- * THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- *
- * For further information see http://www.genivi.org/.
-*/
-#ifndef ORG_GENIVI_AUDIOMANAGER_am_gen_H_
-#define ORG_GENIVI_AUDIOMANAGER_am_gen_H_
-
-
-
-#define COMMONAPI_INTERNAL_COMPILATION
-
-#include <CommonAPI/InputStream.h>
-#include <CommonAPI/OutputStream.h>
-#include <CommonAPI/SerializableStruct.h>
-#include <CommonAPI/SerializableVariant.h>
-#include <CommonAPI/types.h>
-#include <cstdint>
-#include <memory>
-#include <string>
-#include <vector>
-
-#undef COMMONAPI_INTERNAL_COMPILATION
-
-namespace org {
-namespace genivi {
-namespace audiomanager {
-
-namespace am_gen {
- typedef uint16_t am_sourceID_t;
-
- typedef uint16_t am_sinkID_t;
-
- typedef uint16_t am_gatewayID_t;
-
- typedef int16_t gongHandle;
-
- typedef uint16_t am_sourceClass_t;
-
- typedef uint16_t am_sinkClass_t;
-
- typedef int16_t am_volume_t;
-
- typedef int16_t am_mainVolume_t;
-
- typedef uint16_t am_handle_t;
-
- typedef uint16_t am_time_t;
-
- typedef uint16_t am_connectionID_t;
-
- typedef uint16_t am_crossfaderID_t;
-
- enum class gp_indicatorDirection_e: int32_t {
- INDICATOR_RIGHT = 0x0,
- INDICATOR_LEFT = 0x1,
- INDICATOR_WARNING = 0x2
- };
-
- // XXX Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1
- struct gp_indicatorDirection_eComparator;
-
- enum class am_RampType_e: int32_t {
- RAMP_UNKNOWN = 0x0,
- RAMP_GENIVI_DIRECT = 0x1,
- RAMP_GENIVI_NO_PLOP = 0x2,
- RAMP_GENIVI_EXP_INV = 0x3,
- RAMP_GENIVI_LINEAR = 0x4,
- RAMP_GENIVI_EXP = 0x5,
- RAMP_MAX = 0x6
- };
-
- // XXX Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1
- struct am_RampType_eComparator;
-
- enum class am_MuteState_e: int32_t {
- MS_UNKNOWN = 0x0,
- MS_MUTED = 0x1,
- MS_UNMUTED = 0x2,
- MS_MAX = 0x3
- };
-
- // XXX Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1
- struct am_MuteState_eComparator;
-
- enum class am_SourceState_e: int32_t {
- SS_UNKNNOWN = 0x0,
- SS_ON = 0x1,
- SS_OFF = 0x2,
- SS_PAUSED = 0x3,
- SS_MAX = 0x4
- };
-
- // XXX Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1
- struct am_SourceState_eComparator;
-
- enum class am_Error_e: int32_t {
- E_OK = 0x0,
- E_UNKNOWN = 0x1,
- E_OUT_OF_RANGE = 0x2,
- E_NOT_USED = 0x3,
- E_DATABASE_ERROR = 0x4,
- E_ALREADY_EXISTS = 0x5,
- E_NO_CHANGE = 0x6,
- E_NOT_POSSIBLE = 0x7,
- E_NON_EXISTENT = 0x8,
- E_ABORTED = 0x9,
- E_WRONG_FORMAT = 0xa,
- E_MAX = 0xb
- };
-
- // XXX Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1
- struct am_Error_eComparator;
-
- enum class am_DomainState_e: int32_t {
- DS_UNKNOWN = 0,
- DS_CONTROLLED = 1,
- DS_INDEPENDENT_STARTUP = 2,
- DS_INDEPENDENT_RUNDOWN = 3,
- DS_MAX = 4
- };
-
- // XXX Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1
- struct am_DomainState_eComparator;
-
- enum class gongType_e: int32_t {
- AT_NUN = 0x1,
- AT_POC = 0x2,
- AT_QUE = 0x3,
- AT_IWA = 0x4,
- AT_WA = 0x5,
- AT_ETC_F = 0x6,
- AT_ETC_F2 = 0x7,
- AT_ETC_ST = 0x8,
- AT_ETC_S = 0x9,
- AT_REV = 0xa,
- AT_ESU = 0xb,
- AT_ESD = 0xc,
- AT_DG = 0xd,
- AT_SG = 0xe,
- AT_IDG = 0xf,
- AT_ION = 0x10,
- AT_IOFF = 0x11,
- AT_FBS = 0x12,
- AT_VFS = 0x13,
- AT_GES = 0x14,
- AT_UEE = 0x15
- };
-
- // XXX Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1
- struct gongType_eComparator;
-
- enum class am_EarlyDataType_e: int32_t {
- ED_UNKNOWN = 0x0,
- ED_SOURCE_VOLUME = 0x1,
- ED_SINK_VOLUME = 0x2,
- ED_SOURCE_PROPERTY = 0x3,
- ED_SINK_PROPERTY = 0x4,
- ED_MAX = 0x5
- };
-
- // XXX Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1
- struct am_EarlyDataType_eComparator;
-
- enum class gp_indicatorStatus_e: int32_t {
- IS_ON = 0x0,
- IS_OFF = 0x1
- };
-
- // XXX Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1
- struct gp_indicatorStatus_eComparator;
-
- enum class gongStatus_e: int32_t {
- NOT_PLAYING = 0x0,
- PLAYING = 0x1,
- INTERRUPTED = 0x2
- };
-
- // XXX Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1
- struct gongStatus_eComparator;
-
- enum class gongError_e: int32_t {
- SUCCESS = 0x0,
- ERROR = 0x1,
- LOW_PRIORITY = 0x2
- };
-
- // XXX Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1
- struct gongError_eComparator;
-
- enum class gongClass_e: int32_t {
- GONGCLASS_1 = 0x1,
- GONGCLASS_2 = 0x2,
- GONGCLASS_PDC = 0x3,
- GONGCLASS_TURN = 0x4,
- GONGCLASS_OBSTACLE = 0x5
- };
-
- // XXX Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1
- struct gongClass_eComparator;
-
- enum class sampleSet_e: int32_t {
- setBMW = 0x0,
- setMini = 0x1,
- setRR = 0x2
- };
-
- // XXX Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1
- struct sampleSet_eComparator;
-
- enum class am_Availability_e: int32_t {
- A_UNKNOWN = 0x0,
- A_AVAILABLE = 0x1,
- A_UNAVAILABLE = 0x2,
- A_MAX = 0x3
- };
-
- // XXX Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1
- struct am_Availability_eComparator;
-
- enum class am_AvailabilityReason_e: int32_t {
- AR_UNKNOWN = 0x0,
- AR_GENIVI_NEWMEDIA = 0x1,
- AR_GENIVI_SAMEMEDIA = 0x2,
- AR_GENIVI_NOMEDIA = 0x3,
- AR_GENIVI_TEMPERATURE = 0x4,
- AR_GENIVI_VOLTAGE = 0x5,
- AR_GENIVI_ERRORMEDIA = 0x6,
- AR_MAX = 0x7
- };
-
- // XXX Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1
- struct am_AvailabilityReason_eComparator;
-
- enum class am_InterruptState_e: int32_t {
- IS_UNKNOWN = 0x0,
- IS_OFF = 0x1,
- IS_INTERRUPTED = 0x2,
- IS_MAX = 0x3
- };
-
- // XXX Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1
- struct am_InterruptState_eComparator;
-
- enum class am_SoundPropertyType_e: int32_t {
- SP_UNKNOWN = 0x0,
- SP_EXAMPLE_TREBLE = 0x1,
- SP_EXAMPLE_MID = 0x2,
- SP_EXAMPLE_BASS = 0x3,
- SP_ENTER_SINKID = 0x4,
- SP_INTERR_SUPERSEEDINGID = 0x5,
- SP_INTERR_OVERLAYID = 0x6,
- SP_PRIORITY = 0x7,
- SP_MAX = 0x8
- };
-
- // XXX Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1
- struct am_SoundPropertyType_eComparator;
-
- enum class am_ConnectionFormat_e: int32_t {
- CF_UNKNOWN = 0x0,
- CF_GENIVI_MONO = 0x1,
- CF_GENIVI_STEREO = 0x2,
- CF_GENIVI_ANALOG = 0x3,
- CF_GENIVI_AUTO = 0x4,
- CF_MAX = 0x5
- };
-
- // XXX Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1
- struct am_ConnectionFormat_eComparator;
-
- typedef std::vector<am_ConnectionFormat_e> am_ConnectionFormat_L;
-
- enum class am_MainSoundPropertyType_e: int32_t {
- MSP_UNKNOWN = 0x0,
- MSP_EXAMPLE_TREBLE = 0x1,
- MSP_EXAMPLE_MID = 0x2,
- MSP_EXAMPLE_BASS = 0x3,
- MSP_SOURCE_TYPE = 0x4,
- MSP_MAX = 0x5
- };
-
- // XXX Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1
- struct am_MainSoundPropertyType_eComparator;
-
- enum class am_NotificationType_e: int32_t {
- NT_UNKNOWN = 0x0,
- NT_LOUDNESS = 0x1,
- NT_MAX = 0x2
- };
-
- // XXX Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1
- struct am_NotificationType_eComparator;
-
- enum class am_NotificationStatus_e: int32_t {
- NS_UNKNOWN = 0x0,
- NS_OFF = 0x1,
- NS_PERIODIC = 0x2,
- NS_MINIMUM = 0x3,
- NS_MAXIMUM = 0x4,
- NS_CHANGE = 0x5,
- NS_MAX = 0x6
- };
-
- // XXX Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1
- struct am_NotificationStatus_eComparator;
-
- enum class am_HotSink_e: int32_t {
- HS_UNKNOWN = 0x0,
- HS_SINKA = 0x1,
- HS_SINKB = 0x2,
- HS_INTERMEDIATE = 0x3,
- HS_MAX = 0x4
- };
-
- // XXX Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1
- struct am_HotSink_eComparator;
-
- enum class am_VolumeType_e: int32_t {
- VT_UNKNOWN = 0x0,
- VT_SINK = 0x1,
- VT_SOURCE = 0x2,
- VT_MAX = 0x3
- };
-
- // XXX Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1
- struct am_VolumeType_eComparator;
-
- struct distanceInformation_s: CommonAPI::SerializableStruct {
- int32_t FrontLeft;
- int32_t FrontRight;
- int32_t RearLeft;
- int32_t RearRight;
-
- distanceInformation_s() = default;
- distanceInformation_s(const int32_t& FrontLeft, const int32_t& FrontRight, const int32_t& RearLeft, const int32_t& RearRight);
-
-
- virtual void readFromInputStream(CommonAPI::InputStream& inputStream);
- virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const;
-
- static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) {
- typeOutputStream.writeInt32Type();
- typeOutputStream.writeInt32Type();
- typeOutputStream.writeInt32Type();
- typeOutputStream.writeInt32Type();
- }
- };
-
- struct sampleNames_s: CommonAPI::SerializableStruct {
- sampleSet_e sample;
- std::string sampleName;
-
- sampleNames_s() = default;
- sampleNames_s(const sampleSet_e& sample, const std::string& sampleName);
-
-
- virtual void readFromInputStream(CommonAPI::InputStream& inputStream);
- virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const;
-
- static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) {
- typeOutputStream.writeInt32Type();
- typeOutputStream.writeStringType();
- }
- };
-
- typedef std::vector<sampleNames_s> listSampleNamesL;
-
- typedef uint16_t am_domainID_t;
-
- struct am_Domain_s: CommonAPI::SerializableStruct {
- am_domainID_t domainID;
- std::string name;
- std::string busname;
- std::string nodename;
- bool early;
- bool complete;
- am_DomainState_e state;
-
- am_Domain_s() = default;
- am_Domain_s(const am_domainID_t& domainID, const std::string& name, const std::string& busname, const std::string& nodename, const bool& early, const bool& complete, const am_DomainState_e& state);
-
-
- virtual void readFromInputStream(CommonAPI::InputStream& inputStream);
- virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const;
-
- static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) {
- typeOutputStream.writeUInt16Type();
- typeOutputStream.writeStringType();
- typeOutputStream.writeStringType();
- typeOutputStream.writeStringType();
- typeOutputStream.writeBoolType();
- typeOutputStream.writeBoolType();
- typeOutputStream.writeInt32Type();
- }
- };
-
- typedef CommonAPI::Variant<am_sinkID_t, am_sourceID_t> am_DataType_u;
-
- struct am_Volumes_s: CommonAPI::SerializableStruct {
- am_VolumeType_e volumeType;
- am_DataType_u volumeID;
- am_volume_t volume;
- am_RampType_e ramp;
- am_time_t time;
-
- am_Volumes_s() = default;
- am_Volumes_s(const am_VolumeType_e& volumeType, const am_DataType_u& volumeID, const am_volume_t& volume, const am_RampType_e& ramp, const am_time_t& time);
-
-
- virtual void readFromInputStream(CommonAPI::InputStream& inputStream);
- virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const;
-
- static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) {
- typeOutputStream.writeInt32Type();
- typeOutputStream.writeVariantType();
- typeOutputStream.writeInt16Type();
- typeOutputStream.writeInt32Type();
- typeOutputStream.writeUInt16Type();
- }
- };
-
- typedef std::vector<am_Volumes_s> am_Volumes_l;
-
- struct notificationPayload_s: CommonAPI::SerializableStruct {
- int16_t type;
- int16_t payload;
-
- notificationPayload_s() = default;
- notificationPayload_s(const int16_t& type, const int16_t& payload);
-
-
- virtual void readFromInputStream(CommonAPI::InputStream& inputStream);
- virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const;
-
- static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) {
- typeOutputStream.writeInt16Type();
- typeOutputStream.writeInt16Type();
- }
- };
-
- struct am_Availability_s: CommonAPI::SerializableStruct {
- am_Availability_e availability;
- am_AvailabilityReason_e availabilityReason;
-
- am_Availability_s() = default;
- am_Availability_s(const am_Availability_e& availability, const am_AvailabilityReason_e& availabilityReason);
-
-
- virtual void readFromInputStream(CommonAPI::InputStream& inputStream);
- virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const;
-
- static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) {
- typeOutputStream.writeInt32Type();
- typeOutputStream.writeInt32Type();
- }
- };
-
- struct am_SoundProperty_s: CommonAPI::SerializableStruct {
- am_SoundPropertyType_e type;
- int16_t value;
-
- am_SoundProperty_s() = default;
- am_SoundProperty_s(const am_SoundPropertyType_e& type, const int16_t& value);
-
-
- virtual void readFromInputStream(CommonAPI::InputStream& inputStream);
- virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const;
-
- static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) {
- typeOutputStream.writeInt32Type();
- typeOutputStream.writeInt16Type();
- }
- };
-
- typedef std::vector<am_SoundProperty_s> am_SoundProperty_L;
-
- struct am_MainSoundProperty_s: CommonAPI::SerializableStruct {
- am_MainSoundPropertyType_e type;
- int16_t value;
-
- am_MainSoundProperty_s() = default;
- am_MainSoundProperty_s(const am_MainSoundPropertyType_e& type, const int16_t& value);
-
-
- virtual void readFromInputStream(CommonAPI::InputStream& inputStream);
- virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const;
-
- static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) {
- typeOutputStream.writeInt32Type();
- typeOutputStream.writeInt16Type();
- }
- };
-
- typedef std::vector<am_MainSoundProperty_s> am_MainSoundProperty_L;
-
- struct am_NotificationConfiguration_s: CommonAPI::SerializableStruct {
- am_NotificationType_e type;
- am_NotificationStatus_e status;
- int16_t parameter;
-
- am_NotificationConfiguration_s() = default;
- am_NotificationConfiguration_s(const am_NotificationType_e& type, const am_NotificationStatus_e& status, const int16_t& parameter);
-
-
- virtual void readFromInputStream(CommonAPI::InputStream& inputStream);
- virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const;
-
- static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) {
- typeOutputStream.writeInt32Type();
- typeOutputStream.writeInt32Type();
- typeOutputStream.writeInt16Type();
- }
- };
-
- typedef std::vector<am_NotificationConfiguration_s> am_NotificationConfiguration_L;
-
- typedef std::vector<bool> bool_L;
-
- struct sourceData_s: CommonAPI::SerializableStruct {
- am_sourceID_t sourceID;
- am_domainID_t domainID;
- std::string name;
- am_sourceClass_t sourceClassID;
- am_SourceState_e sourceState;
- am_volume_t volume;
- bool visible;
- am_Availability_s available;
- am_InterruptState_e interruptState;
- am_SoundProperty_L listSoundProperties;
- am_ConnectionFormat_L listConnectionFormats;
- am_MainSoundProperty_L listMainSoundProperties;
- am_NotificationConfiguration_L listMainNotificationConfigurations;
- am_NotificationConfiguration_L listNotificationConfigurations;
-
- sourceData_s() = default;
- sourceData_s(const am_sourceID_t& sourceID, const am_domainID_t& domainID, const std::string& name, const am_sourceClass_t& sourceClassID, const am_SourceState_e& sourceState, const am_volume_t& volume, const bool& visible, const am_Availability_s& available, const am_InterruptState_e& interruptState, const am_SoundProperty_L& listSoundProperties, const am_ConnectionFormat_L& listConnectionFormats, const am_MainSoundProperty_L& listMainSoundProperties, const am_NotificationConfiguration_L& listMainNotificationConfigurations, const am_NotificationConfiguration_L& listNotificationConfigurations);
-
-
- virtual void readFromInputStream(CommonAPI::InputStream& inputStream);
- virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const;
-
- static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) {
- typeOutputStream.writeUInt16Type();
- typeOutputStream.writeUInt16Type();
- typeOutputStream.writeStringType();
- typeOutputStream.writeUInt16Type();
- typeOutputStream.writeInt32Type();
- typeOutputStream.writeInt16Type();
- typeOutputStream.writeBoolType();
- typeOutputStream.beginWriteStructType();
- typeOutputStream.writeInt32Type();typeOutputStream.writeInt32Type();
- typeOutputStream.endWriteStructType();
- typeOutputStream.writeInt32Type();
- typeOutputStream.beginWriteVectorType();
- typeOutputStream.beginWriteStructType();
- typeOutputStream.writeInt32Type();typeOutputStream.writeInt16Type();
- typeOutputStream.endWriteStructType();
- typeOutputStream.endWriteVectorType();
- typeOutputStream.beginWriteVectorType();
- typeOutputStream.writeInt32Type();
- typeOutputStream.endWriteVectorType();
- typeOutputStream.beginWriteVectorType();
- typeOutputStream.beginWriteStructType();
- typeOutputStream.writeInt32Type();typeOutputStream.writeInt16Type();
- typeOutputStream.endWriteStructType();
- typeOutputStream.endWriteVectorType();
- typeOutputStream.beginWriteVectorType();
- typeOutputStream.beginWriteStructType();
- typeOutputStream.writeInt32Type();typeOutputStream.writeInt32Type();typeOutputStream.writeInt16Type();
- typeOutputStream.endWriteStructType();
- typeOutputStream.endWriteVectorType();
- typeOutputStream.beginWriteVectorType();
- typeOutputStream.beginWriteStructType();
- typeOutputStream.writeInt32Type();typeOutputStream.writeInt32Type();typeOutputStream.writeInt16Type();
- typeOutputStream.endWriteStructType();
- typeOutputStream.endWriteVectorType();
- }
- };
-
- struct sinkData_s: CommonAPI::SerializableStruct {
- am_sinkID_t sinkID;
- std::string name;
- am_domainID_t domainID;
- am_sinkClass_t sinkClassID;
- am_volume_t volume;
- bool visible;
- am_Availability_s available;
- am_MuteState_e muteState;
- am_mainVolume_t mainVolume;
- am_SoundProperty_L listSoundProperties;
- am_ConnectionFormat_L listConnectionFormats;
- am_MainSoundProperty_L listMainSoundProperties;
- am_NotificationConfiguration_L listMainNotificationConfigurations;
- am_NotificationConfiguration_L listNotificationConfigurations;
-
- sinkData_s() = default;
- sinkData_s(const am_sinkID_t& sinkID, const std::string& name, const am_domainID_t& domainID, const am_sinkClass_t& sinkClassID, const am_volume_t& volume, const bool& visible, const am_Availability_s& available, const am_MuteState_e& muteState, const am_mainVolume_t& mainVolume, const am_SoundProperty_L& listSoundProperties, const am_ConnectionFormat_L& listConnectionFormats, const am_MainSoundProperty_L& listMainSoundProperties, const am_NotificationConfiguration_L& listMainNotificationConfigurations, const am_NotificationConfiguration_L& listNotificationConfigurations);
-
-
- virtual void readFromInputStream(CommonAPI::InputStream& inputStream);
- virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const;
-
- static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) {
- typeOutputStream.writeUInt16Type();
- typeOutputStream.writeStringType();
- typeOutputStream.writeUInt16Type();
- typeOutputStream.writeUInt16Type();
- typeOutputStream.writeInt16Type();
- typeOutputStream.writeBoolType();
- typeOutputStream.beginWriteStructType();
- typeOutputStream.writeInt32Type();typeOutputStream.writeInt32Type();
- typeOutputStream.endWriteStructType();
- typeOutputStream.writeInt32Type();
- typeOutputStream.writeInt16Type();
- typeOutputStream.beginWriteVectorType();
- typeOutputStream.beginWriteStructType();
- typeOutputStream.writeInt32Type();typeOutputStream.writeInt16Type();
- typeOutputStream.endWriteStructType();
- typeOutputStream.endWriteVectorType();
- typeOutputStream.beginWriteVectorType();
- typeOutputStream.writeInt32Type();
- typeOutputStream.endWriteVectorType();
- typeOutputStream.beginWriteVectorType();
- typeOutputStream.beginWriteStructType();
- typeOutputStream.writeInt32Type();typeOutputStream.writeInt16Type();
- typeOutputStream.endWriteStructType();
- typeOutputStream.endWriteVectorType();
- typeOutputStream.beginWriteVectorType();
- typeOutputStream.beginWriteStructType();
- typeOutputStream.writeInt32Type();typeOutputStream.writeInt32Type();typeOutputStream.writeInt16Type();
- typeOutputStream.endWriteStructType();
- typeOutputStream.endWriteVectorType();
- typeOutputStream.beginWriteVectorType();
- typeOutputStream.beginWriteStructType();
- typeOutputStream.writeInt32Type();typeOutputStream.writeInt32Type();typeOutputStream.writeInt16Type();
- typeOutputStream.endWriteStructType();
- typeOutputStream.endWriteVectorType();
- }
- };
-
- struct crossfaderData_s: CommonAPI::SerializableStruct {
- am_crossfaderID_t crossfaderID;
- std::string name;
- am_sinkID_t sinkID_A;
- am_sinkID_t sinkID_B;
- am_sourceID_t sourceID;
- am_HotSink_e hotSink;
-
- crossfaderData_s() = default;
- crossfaderData_s(const am_crossfaderID_t& crossfaderID, const std::string& name, const am_sinkID_t& sinkID_A, const am_sinkID_t& sinkID_B, const am_sourceID_t& sourceID, const am_HotSink_e& hotSink);
-
-
- virtual void readFromInputStream(CommonAPI::InputStream& inputStream);
- virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const;
-
- static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) {
- typeOutputStream.writeUInt16Type();
- typeOutputStream.writeStringType();
- typeOutputStream.writeUInt16Type();
- typeOutputStream.writeUInt16Type();
- typeOutputStream.writeUInt16Type();
- typeOutputStream.writeInt32Type();
- }
- };
-
- struct am_Gateway_s: CommonAPI::SerializableStruct {
- am_gatewayID_t gatewayID;
- std::string name;
- am_sinkID_t sinkID;
- am_sourceID_t sourceID;
- am_domainID_t domainSinkID;
- am_domainID_t domainSourceID;
- am_domainID_t controlDomainID;
- am_ConnectionFormat_L listSourceFormats;
- am_ConnectionFormat_L listSinkFormats;
- bool_L convertionMatrix;
-
- am_Gateway_s() = default;
- am_Gateway_s(const am_gatewayID_t& gatewayID, const std::string& name, const am_sinkID_t& sinkID, const am_sourceID_t& sourceID, const am_domainID_t& domainSinkID, const am_domainID_t& domainSourceID, const am_domainID_t& controlDomainID, const am_ConnectionFormat_L& listSourceFormats, const am_ConnectionFormat_L& listSinkFormats, const bool_L& convertionMatrix);
-
-
- virtual void readFromInputStream(CommonAPI::InputStream& inputStream);
- virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const;
-
- static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) {
- typeOutputStream.writeUInt16Type();
- typeOutputStream.writeStringType();
- typeOutputStream.writeUInt16Type();
- typeOutputStream.writeUInt16Type();
- typeOutputStream.writeUInt16Type();
- typeOutputStream.writeUInt16Type();
- typeOutputStream.writeUInt16Type();
- typeOutputStream.beginWriteVectorType();
- typeOutputStream.writeInt32Type();
- typeOutputStream.endWriteVectorType();
- typeOutputStream.beginWriteVectorType();
- typeOutputStream.writeInt32Type();
- typeOutputStream.endWriteVectorType();
- typeOutputStream.beginWriteVectorType();
- typeOutputStream.writeBoolType();
- typeOutputStream.endWriteVectorType();
- }
- };
-
- typedef CommonAPI::Variant<am_volume_t, am_SoundProperty_s> am_EarlyData_u;
-
- struct am_EarlyData_s: CommonAPI::SerializableStruct {
- am_EarlyDataType_e type;
- am_DataType_u sinksource;
- am_EarlyData_u data;
-
- am_EarlyData_s() = default;
- am_EarlyData_s(const am_EarlyDataType_e& type, const am_DataType_u& sinksource, const am_EarlyData_u& data);
-
-
- virtual void readFromInputStream(CommonAPI::InputStream& inputStream);
- virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const;
-
- static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) {
- typeOutputStream.writeInt32Type();
- typeOutputStream.writeVariantType();
- typeOutputStream.writeVariantType();
- }
- };
-
- typedef std::vector<am_EarlyData_s> am_EarlyData_l;
-
-
-inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, gp_indicatorDirection_e& enumValue) {
- return inputStream.readEnumValue<int32_t>(enumValue);
-}
-
-inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const gp_indicatorDirection_e& enumValue) {
- return outputStream.writeEnumValue(static_cast<int32_t>(enumValue));
-}
-
-struct gp_indicatorDirection_eComparator {
- inline bool operator()(const gp_indicatorDirection_e& lhs, const gp_indicatorDirection_e& rhs) const {
- return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs);
- }
-};
-
-inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, am_RampType_e& enumValue) {
- return inputStream.readEnumValue<int32_t>(enumValue);
-}
-
-inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const am_RampType_e& enumValue) {
- return outputStream.writeEnumValue(static_cast<int32_t>(enumValue));
-}
-
-struct am_RampType_eComparator {
- inline bool operator()(const am_RampType_e& lhs, const am_RampType_e& rhs) const {
- return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs);
- }
-};
-
-inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, am_MuteState_e& enumValue) {
- return inputStream.readEnumValue<int32_t>(enumValue);
-}
-
-inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const am_MuteState_e& enumValue) {
- return outputStream.writeEnumValue(static_cast<int32_t>(enumValue));
-}
-
-struct am_MuteState_eComparator {
- inline bool operator()(const am_MuteState_e& lhs, const am_MuteState_e& rhs) const {
- return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs);
- }
-};
-
-inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, am_SourceState_e& enumValue) {
- return inputStream.readEnumValue<int32_t>(enumValue);
-}
-
-inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const am_SourceState_e& enumValue) {
- return outputStream.writeEnumValue(static_cast<int32_t>(enumValue));
-}
-
-struct am_SourceState_eComparator {
- inline bool operator()(const am_SourceState_e& lhs, const am_SourceState_e& rhs) const {
- return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs);
- }
-};
-
-inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, am_Error_e& enumValue) {
- return inputStream.readEnumValue<int32_t>(enumValue);
-}
-
-inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const am_Error_e& enumValue) {
- return outputStream.writeEnumValue(static_cast<int32_t>(enumValue));
-}
-
-struct am_Error_eComparator {
- inline bool operator()(const am_Error_e& lhs, const am_Error_e& rhs) const {
- return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs);
- }
-};
-
-inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, am_DomainState_e& enumValue) {
- return inputStream.readEnumValue<int32_t>(enumValue);
-}
-
-inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const am_DomainState_e& enumValue) {
- return outputStream.writeEnumValue(static_cast<int32_t>(enumValue));
-}
-
-struct am_DomainState_eComparator {
- inline bool operator()(const am_DomainState_e& lhs, const am_DomainState_e& rhs) const {
- return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs);
- }
-};
-
-inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, gongType_e& enumValue) {
- return inputStream.readEnumValue<int32_t>(enumValue);
-}
-
-inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const gongType_e& enumValue) {
- return outputStream.writeEnumValue(static_cast<int32_t>(enumValue));
-}
-
-struct gongType_eComparator {
- inline bool operator()(const gongType_e& lhs, const gongType_e& rhs) const {
- return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs);
- }
-};
-
-inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, am_EarlyDataType_e& enumValue) {
- return inputStream.readEnumValue<int32_t>(enumValue);
-}
-
-inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const am_EarlyDataType_e& enumValue) {
- return outputStream.writeEnumValue(static_cast<int32_t>(enumValue));
-}
-
-struct am_EarlyDataType_eComparator {
- inline bool operator()(const am_EarlyDataType_e& lhs, const am_EarlyDataType_e& rhs) const {
- return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs);
- }
-};
-
-inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, gp_indicatorStatus_e& enumValue) {
- return inputStream.readEnumValue<int32_t>(enumValue);
-}
-
-inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const gp_indicatorStatus_e& enumValue) {
- return outputStream.writeEnumValue(static_cast<int32_t>(enumValue));
-}
-
-struct gp_indicatorStatus_eComparator {
- inline bool operator()(const gp_indicatorStatus_e& lhs, const gp_indicatorStatus_e& rhs) const {
- return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs);
- }
-};
-
-inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, gongStatus_e& enumValue) {
- return inputStream.readEnumValue<int32_t>(enumValue);
-}
-
-inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const gongStatus_e& enumValue) {
- return outputStream.writeEnumValue(static_cast<int32_t>(enumValue));
-}
-
-struct gongStatus_eComparator {
- inline bool operator()(const gongStatus_e& lhs, const gongStatus_e& rhs) const {
- return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs);
- }
-};
-
-inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, gongError_e& enumValue) {
- return inputStream.readEnumValue<int32_t>(enumValue);
-}
-
-inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const gongError_e& enumValue) {
- return outputStream.writeEnumValue(static_cast<int32_t>(enumValue));
-}
-
-struct gongError_eComparator {
- inline bool operator()(const gongError_e& lhs, const gongError_e& rhs) const {
- return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs);
- }
-};
-
-inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, gongClass_e& enumValue) {
- return inputStream.readEnumValue<int32_t>(enumValue);
-}
-
-inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const gongClass_e& enumValue) {
- return outputStream.writeEnumValue(static_cast<int32_t>(enumValue));
-}
-
-struct gongClass_eComparator {
- inline bool operator()(const gongClass_e& lhs, const gongClass_e& rhs) const {
- return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs);
- }
-};
-
-inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, sampleSet_e& enumValue) {
- return inputStream.readEnumValue<int32_t>(enumValue);
-}
-
-inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const sampleSet_e& enumValue) {
- return outputStream.writeEnumValue(static_cast<int32_t>(enumValue));
-}
-
-struct sampleSet_eComparator {
- inline bool operator()(const sampleSet_e& lhs, const sampleSet_e& rhs) const {
- return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs);
- }
-};
-
-inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, am_Availability_e& enumValue) {
- return inputStream.readEnumValue<int32_t>(enumValue);
-}
-
-inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const am_Availability_e& enumValue) {
- return outputStream.writeEnumValue(static_cast<int32_t>(enumValue));
-}
-
-struct am_Availability_eComparator {
- inline bool operator()(const am_Availability_e& lhs, const am_Availability_e& rhs) const {
- return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs);
- }
-};
-
-inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, am_AvailabilityReason_e& enumValue) {
- return inputStream.readEnumValue<int32_t>(enumValue);
-}
-
-inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const am_AvailabilityReason_e& enumValue) {
- return outputStream.writeEnumValue(static_cast<int32_t>(enumValue));
-}
-
-struct am_AvailabilityReason_eComparator {
- inline bool operator()(const am_AvailabilityReason_e& lhs, const am_AvailabilityReason_e& rhs) const {
- return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs);
- }
-};
-
-inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, am_InterruptState_e& enumValue) {
- return inputStream.readEnumValue<int32_t>(enumValue);
-}
-
-inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const am_InterruptState_e& enumValue) {
- return outputStream.writeEnumValue(static_cast<int32_t>(enumValue));
-}
-
-struct am_InterruptState_eComparator {
- inline bool operator()(const am_InterruptState_e& lhs, const am_InterruptState_e& rhs) const {
- return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs);
- }
-};
-
-inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, am_SoundPropertyType_e& enumValue) {
- return inputStream.readEnumValue<int32_t>(enumValue);
-}
-
-inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const am_SoundPropertyType_e& enumValue) {
- return outputStream.writeEnumValue(static_cast<int32_t>(enumValue));
-}
-
-struct am_SoundPropertyType_eComparator {
- inline bool operator()(const am_SoundPropertyType_e& lhs, const am_SoundPropertyType_e& rhs) const {
- return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs);
- }
-};
-
-inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, am_ConnectionFormat_e& enumValue) {
- return inputStream.readEnumValue<int32_t>(enumValue);
-}
-
-inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const am_ConnectionFormat_e& enumValue) {
- return outputStream.writeEnumValue(static_cast<int32_t>(enumValue));
-}
-
-struct am_ConnectionFormat_eComparator {
- inline bool operator()(const am_ConnectionFormat_e& lhs, const am_ConnectionFormat_e& rhs) const {
- return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs);
- }
-};
-
-inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, am_MainSoundPropertyType_e& enumValue) {
- return inputStream.readEnumValue<int32_t>(enumValue);
-}
-
-inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const am_MainSoundPropertyType_e& enumValue) {
- return outputStream.writeEnumValue(static_cast<int32_t>(enumValue));
-}
-
-struct am_MainSoundPropertyType_eComparator {
- inline bool operator()(const am_MainSoundPropertyType_e& lhs, const am_MainSoundPropertyType_e& rhs) const {
- return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs);
- }
-};
-
-inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, am_NotificationType_e& enumValue) {
- return inputStream.readEnumValue<int32_t>(enumValue);
-}
-
-inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const am_NotificationType_e& enumValue) {
- return outputStream.writeEnumValue(static_cast<int32_t>(enumValue));
-}
-
-struct am_NotificationType_eComparator {
- inline bool operator()(const am_NotificationType_e& lhs, const am_NotificationType_e& rhs) const {
- return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs);
- }
-};
-
-inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, am_NotificationStatus_e& enumValue) {
- return inputStream.readEnumValue<int32_t>(enumValue);
-}
-
-inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const am_NotificationStatus_e& enumValue) {
- return outputStream.writeEnumValue(static_cast<int32_t>(enumValue));
-}
-
-struct am_NotificationStatus_eComparator {
- inline bool operator()(const am_NotificationStatus_e& lhs, const am_NotificationStatus_e& rhs) const {
- return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs);
- }
-};
-
-inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, am_HotSink_e& enumValue) {
- return inputStream.readEnumValue<int32_t>(enumValue);
-}
-
-inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const am_HotSink_e& enumValue) {
- return outputStream.writeEnumValue(static_cast<int32_t>(enumValue));
-}
-
-struct am_HotSink_eComparator {
- inline bool operator()(const am_HotSink_e& lhs, const am_HotSink_e& rhs) const {
- return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs);
- }
-};
-
-inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, am_VolumeType_e& enumValue) {
- return inputStream.readEnumValue<int32_t>(enumValue);
-}
-
-inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const am_VolumeType_e& enumValue) {
- return outputStream.writeEnumValue(static_cast<int32_t>(enumValue));
-}
-
-struct am_VolumeType_eComparator {
- inline bool operator()(const am_VolumeType_e& lhs, const am_VolumeType_e& rhs) const {
- return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs);
- }
-};
-
-bool operator==(const distanceInformation_s& lhs, const distanceInformation_s& rhs);
-inline bool operator!=(const distanceInformation_s& lhs, const distanceInformation_s& rhs) {
- return !(lhs == rhs);
-}
-bool operator==(const sampleNames_s& lhs, const sampleNames_s& rhs);
-inline bool operator!=(const sampleNames_s& lhs, const sampleNames_s& rhs) {
- return !(lhs == rhs);
-}
-bool operator==(const am_Domain_s& lhs, const am_Domain_s& rhs);
-inline bool operator!=(const am_Domain_s& lhs, const am_Domain_s& rhs) {
- return !(lhs == rhs);
-}
-bool operator==(const am_Volumes_s& lhs, const am_Volumes_s& rhs);
-inline bool operator!=(const am_Volumes_s& lhs, const am_Volumes_s& rhs) {
- return !(lhs == rhs);
-}
-bool operator==(const notificationPayload_s& lhs, const notificationPayload_s& rhs);
-inline bool operator!=(const notificationPayload_s& lhs, const notificationPayload_s& rhs) {
- return !(lhs == rhs);
-}
-bool operator==(const am_Availability_s& lhs, const am_Availability_s& rhs);
-inline bool operator!=(const am_Availability_s& lhs, const am_Availability_s& rhs) {
- return !(lhs == rhs);
-}
-bool operator==(const am_SoundProperty_s& lhs, const am_SoundProperty_s& rhs);
-inline bool operator!=(const am_SoundProperty_s& lhs, const am_SoundProperty_s& rhs) {
- return !(lhs == rhs);
-}
-bool operator==(const am_MainSoundProperty_s& lhs, const am_MainSoundProperty_s& rhs);
-inline bool operator!=(const am_MainSoundProperty_s& lhs, const am_MainSoundProperty_s& rhs) {
- return !(lhs == rhs);
-}
-bool operator==(const am_NotificationConfiguration_s& lhs, const am_NotificationConfiguration_s& rhs);
-inline bool operator!=(const am_NotificationConfiguration_s& lhs, const am_NotificationConfiguration_s& rhs) {
- return !(lhs == rhs);
-}
-bool operator==(const sourceData_s& lhs, const sourceData_s& rhs);
-inline bool operator!=(const sourceData_s& lhs, const sourceData_s& rhs) {
- return !(lhs == rhs);
-}
-bool operator==(const sinkData_s& lhs, const sinkData_s& rhs);
-inline bool operator!=(const sinkData_s& lhs, const sinkData_s& rhs) {
- return !(lhs == rhs);
-}
-bool operator==(const crossfaderData_s& lhs, const crossfaderData_s& rhs);
-inline bool operator!=(const crossfaderData_s& lhs, const crossfaderData_s& rhs) {
- return !(lhs == rhs);
-}
-bool operator==(const am_Gateway_s& lhs, const am_Gateway_s& rhs);
-inline bool operator!=(const am_Gateway_s& lhs, const am_Gateway_s& rhs) {
- return !(lhs == rhs);
-}
-bool operator==(const am_EarlyData_s& lhs, const am_EarlyData_s& rhs);
-inline bool operator!=(const am_EarlyData_s& lhs, const am_EarlyData_s& rhs) {
- return !(lhs == rhs);
-}
-
-
-static inline const char* getTypeCollectionName() {
- return "org.genivi.audiomanager.am_gen";
-}
-
-
-} // namespace am_gen
-
-} // namespace audiomanager
-} // namespace genivi
-} // namespace org
-
-namespace CommonAPI {
-
- template<>
- struct BasicTypeWriter<org::genivi::audiomanager::am_gen::gp_indicatorDirection_e> {
- inline static void writeType (CommonAPI::TypeOutputStream& typeStream) {
- typeStream.writeInt32EnumType();
- }
- };
-
- template<>
- struct InputStreamVectorHelper<org::genivi::audiomanager::am_gen::gp_indicatorDirection_e> {
- static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::audiomanager::am_gen::gp_indicatorDirection_e>& vectorValue) {
- inputStream.beginReadInt32EnumVector();
- }
- };
-
- template <>
- struct OutputStreamVectorHelper<org::genivi::audiomanager::am_gen::gp_indicatorDirection_e> {
- static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::audiomanager::am_gen::gp_indicatorDirection_e>& vectorValue) {
- outputStream.beginWriteInt32EnumVector(vectorValue.size());
- }
- };
- template<>
- struct BasicTypeWriter<org::genivi::audiomanager::am_gen::am_RampType_e> {
- inline static void writeType (CommonAPI::TypeOutputStream& typeStream) {
- typeStream.writeInt32EnumType();
- }
- };
-
- template<>
- struct InputStreamVectorHelper<org::genivi::audiomanager::am_gen::am_RampType_e> {
- static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::audiomanager::am_gen::am_RampType_e>& vectorValue) {
- inputStream.beginReadInt32EnumVector();
- }
- };
-
- template <>
- struct OutputStreamVectorHelper<org::genivi::audiomanager::am_gen::am_RampType_e> {
- static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::audiomanager::am_gen::am_RampType_e>& vectorValue) {
- outputStream.beginWriteInt32EnumVector(vectorValue.size());
- }
- };
- template<>
- struct BasicTypeWriter<org::genivi::audiomanager::am_gen::am_MuteState_e> {
- inline static void writeType (CommonAPI::TypeOutputStream& typeStream) {
- typeStream.writeInt32EnumType();
- }
- };
-
- template<>
- struct InputStreamVectorHelper<org::genivi::audiomanager::am_gen::am_MuteState_e> {
- static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::audiomanager::am_gen::am_MuteState_e>& vectorValue) {
- inputStream.beginReadInt32EnumVector();
- }
- };
-
- template <>
- struct OutputStreamVectorHelper<org::genivi::audiomanager::am_gen::am_MuteState_e> {
- static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::audiomanager::am_gen::am_MuteState_e>& vectorValue) {
- outputStream.beginWriteInt32EnumVector(vectorValue.size());
- }
- };
- template<>
- struct BasicTypeWriter<org::genivi::audiomanager::am_gen::am_SourceState_e> {
- inline static void writeType (CommonAPI::TypeOutputStream& typeStream) {
- typeStream.writeInt32EnumType();
- }
- };
-
- template<>
- struct InputStreamVectorHelper<org::genivi::audiomanager::am_gen::am_SourceState_e> {
- static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::audiomanager::am_gen::am_SourceState_e>& vectorValue) {
- inputStream.beginReadInt32EnumVector();
- }
- };
-
- template <>
- struct OutputStreamVectorHelper<org::genivi::audiomanager::am_gen::am_SourceState_e> {
- static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::audiomanager::am_gen::am_SourceState_e>& vectorValue) {
- outputStream.beginWriteInt32EnumVector(vectorValue.size());
- }
- };
- template<>
- struct BasicTypeWriter<org::genivi::audiomanager::am_gen::am_Error_e> {
- inline static void writeType (CommonAPI::TypeOutputStream& typeStream) {
- typeStream.writeInt32EnumType();
- }
- };
-
- template<>
- struct InputStreamVectorHelper<org::genivi::audiomanager::am_gen::am_Error_e> {
- static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::audiomanager::am_gen::am_Error_e>& vectorValue) {
- inputStream.beginReadInt32EnumVector();
- }
- };
-
- template <>
- struct OutputStreamVectorHelper<org::genivi::audiomanager::am_gen::am_Error_e> {
- static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::audiomanager::am_gen::am_Error_e>& vectorValue) {
- outputStream.beginWriteInt32EnumVector(vectorValue.size());
- }
- };
- template<>
- struct BasicTypeWriter<org::genivi::audiomanager::am_gen::am_DomainState_e> {
- inline static void writeType (CommonAPI::TypeOutputStream& typeStream) {
- typeStream.writeInt32EnumType();
- }
- };
-
- template<>
- struct InputStreamVectorHelper<org::genivi::audiomanager::am_gen::am_DomainState_e> {
- static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::audiomanager::am_gen::am_DomainState_e>& vectorValue) {
- inputStream.beginReadInt32EnumVector();
- }
- };
-
- template <>
- struct OutputStreamVectorHelper<org::genivi::audiomanager::am_gen::am_DomainState_e> {
- static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::audiomanager::am_gen::am_DomainState_e>& vectorValue) {
- outputStream.beginWriteInt32EnumVector(vectorValue.size());
- }
- };
- template<>
- struct BasicTypeWriter<org::genivi::audiomanager::am_gen::gongType_e> {
- inline static void writeType (CommonAPI::TypeOutputStream& typeStream) {
- typeStream.writeInt32EnumType();
- }
- };
-
- template<>
- struct InputStreamVectorHelper<org::genivi::audiomanager::am_gen::gongType_e> {
- static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::audiomanager::am_gen::gongType_e>& vectorValue) {
- inputStream.beginReadInt32EnumVector();
- }
- };
-
- template <>
- struct OutputStreamVectorHelper<org::genivi::audiomanager::am_gen::gongType_e> {
- static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::audiomanager::am_gen::gongType_e>& vectorValue) {
- outputStream.beginWriteInt32EnumVector(vectorValue.size());
- }
- };
- template<>
- struct BasicTypeWriter<org::genivi::audiomanager::am_gen::am_EarlyDataType_e> {
- inline static void writeType (CommonAPI::TypeOutputStream& typeStream) {
- typeStream.writeInt32EnumType();
- }
- };
-
- template<>
- struct InputStreamVectorHelper<org::genivi::audiomanager::am_gen::am_EarlyDataType_e> {
- static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::audiomanager::am_gen::am_EarlyDataType_e>& vectorValue) {
- inputStream.beginReadInt32EnumVector();
- }
- };
-
- template <>
- struct OutputStreamVectorHelper<org::genivi::audiomanager::am_gen::am_EarlyDataType_e> {
- static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::audiomanager::am_gen::am_EarlyDataType_e>& vectorValue) {
- outputStream.beginWriteInt32EnumVector(vectorValue.size());
- }
- };
- template<>
- struct BasicTypeWriter<org::genivi::audiomanager::am_gen::gp_indicatorStatus_e> {
- inline static void writeType (CommonAPI::TypeOutputStream& typeStream) {
- typeStream.writeInt32EnumType();
- }
- };
-
- template<>
- struct InputStreamVectorHelper<org::genivi::audiomanager::am_gen::gp_indicatorStatus_e> {
- static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::audiomanager::am_gen::gp_indicatorStatus_e>& vectorValue) {
- inputStream.beginReadInt32EnumVector();
- }
- };
-
- template <>
- struct OutputStreamVectorHelper<org::genivi::audiomanager::am_gen::gp_indicatorStatus_e> {
- static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::audiomanager::am_gen::gp_indicatorStatus_e>& vectorValue) {
- outputStream.beginWriteInt32EnumVector(vectorValue.size());
- }
- };
- template<>
- struct BasicTypeWriter<org::genivi::audiomanager::am_gen::gongStatus_e> {
- inline static void writeType (CommonAPI::TypeOutputStream& typeStream) {
- typeStream.writeInt32EnumType();
- }
- };
-
- template<>
- struct InputStreamVectorHelper<org::genivi::audiomanager::am_gen::gongStatus_e> {
- static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::audiomanager::am_gen::gongStatus_e>& vectorValue) {
- inputStream.beginReadInt32EnumVector();
- }
- };
-
- template <>
- struct OutputStreamVectorHelper<org::genivi::audiomanager::am_gen::gongStatus_e> {
- static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::audiomanager::am_gen::gongStatus_e>& vectorValue) {
- outputStream.beginWriteInt32EnumVector(vectorValue.size());
- }
- };
- template<>
- struct BasicTypeWriter<org::genivi::audiomanager::am_gen::gongError_e> {
- inline static void writeType (CommonAPI::TypeOutputStream& typeStream) {
- typeStream.writeInt32EnumType();
- }
- };
-
- template<>
- struct InputStreamVectorHelper<org::genivi::audiomanager::am_gen::gongError_e> {
- static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::audiomanager::am_gen::gongError_e>& vectorValue) {
- inputStream.beginReadInt32EnumVector();
- }
- };
-
- template <>
- struct OutputStreamVectorHelper<org::genivi::audiomanager::am_gen::gongError_e> {
- static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::audiomanager::am_gen::gongError_e>& vectorValue) {
- outputStream.beginWriteInt32EnumVector(vectorValue.size());
- }
- };
- template<>
- struct BasicTypeWriter<org::genivi::audiomanager::am_gen::gongClass_e> {
- inline static void writeType (CommonAPI::TypeOutputStream& typeStream) {
- typeStream.writeInt32EnumType();
- }
- };
-
- template<>
- struct InputStreamVectorHelper<org::genivi::audiomanager::am_gen::gongClass_e> {
- static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::audiomanager::am_gen::gongClass_e>& vectorValue) {
- inputStream.beginReadInt32EnumVector();
- }
- };
-
- template <>
- struct OutputStreamVectorHelper<org::genivi::audiomanager::am_gen::gongClass_e> {
- static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::audiomanager::am_gen::gongClass_e>& vectorValue) {
- outputStream.beginWriteInt32EnumVector(vectorValue.size());
- }
- };
- template<>
- struct BasicTypeWriter<org::genivi::audiomanager::am_gen::sampleSet_e> {
- inline static void writeType (CommonAPI::TypeOutputStream& typeStream) {
- typeStream.writeInt32EnumType();
- }
- };
-
- template<>
- struct InputStreamVectorHelper<org::genivi::audiomanager::am_gen::sampleSet_e> {
- static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::audiomanager::am_gen::sampleSet_e>& vectorValue) {
- inputStream.beginReadInt32EnumVector();
- }
- };
-
- template <>
- struct OutputStreamVectorHelper<org::genivi::audiomanager::am_gen::sampleSet_e> {
- static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::audiomanager::am_gen::sampleSet_e>& vectorValue) {
- outputStream.beginWriteInt32EnumVector(vectorValue.size());
- }
- };
- template<>
- struct BasicTypeWriter<org::genivi::audiomanager::am_gen::am_Availability_e> {
- inline static void writeType (CommonAPI::TypeOutputStream& typeStream) {
- typeStream.writeInt32EnumType();
- }
- };
-
- template<>
- struct InputStreamVectorHelper<org::genivi::audiomanager::am_gen::am_Availability_e> {
- static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::audiomanager::am_gen::am_Availability_e>& vectorValue) {
- inputStream.beginReadInt32EnumVector();
- }
- };
-
- template <>
- struct OutputStreamVectorHelper<org::genivi::audiomanager::am_gen::am_Availability_e> {
- static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::audiomanager::am_gen::am_Availability_e>& vectorValue) {
- outputStream.beginWriteInt32EnumVector(vectorValue.size());
- }
- };
- template<>
- struct BasicTypeWriter<org::genivi::audiomanager::am_gen::am_AvailabilityReason_e> {
- inline static void writeType (CommonAPI::TypeOutputStream& typeStream) {
- typeStream.writeInt32EnumType();
- }
- };
-
- template<>
- struct InputStreamVectorHelper<org::genivi::audiomanager::am_gen::am_AvailabilityReason_e> {
- static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::audiomanager::am_gen::am_AvailabilityReason_e>& vectorValue) {
- inputStream.beginReadInt32EnumVector();
- }
- };
-
- template <>
- struct OutputStreamVectorHelper<org::genivi::audiomanager::am_gen::am_AvailabilityReason_e> {
- static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::audiomanager::am_gen::am_AvailabilityReason_e>& vectorValue) {
- outputStream.beginWriteInt32EnumVector(vectorValue.size());
- }
- };
- template<>
- struct BasicTypeWriter<org::genivi::audiomanager::am_gen::am_InterruptState_e> {
- inline static void writeType (CommonAPI::TypeOutputStream& typeStream) {
- typeStream.writeInt32EnumType();
- }
- };
-
- template<>
- struct InputStreamVectorHelper<org::genivi::audiomanager::am_gen::am_InterruptState_e> {
- static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::audiomanager::am_gen::am_InterruptState_e>& vectorValue) {
- inputStream.beginReadInt32EnumVector();
- }
- };
-
- template <>
- struct OutputStreamVectorHelper<org::genivi::audiomanager::am_gen::am_InterruptState_e> {
- static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::audiomanager::am_gen::am_InterruptState_e>& vectorValue) {
- outputStream.beginWriteInt32EnumVector(vectorValue.size());
- }
- };
- template<>
- struct BasicTypeWriter<org::genivi::audiomanager::am_gen::am_SoundPropertyType_e> {
- inline static void writeType (CommonAPI::TypeOutputStream& typeStream) {
- typeStream.writeInt32EnumType();
- }
- };
-
- template<>
- struct InputStreamVectorHelper<org::genivi::audiomanager::am_gen::am_SoundPropertyType_e> {
- static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::audiomanager::am_gen::am_SoundPropertyType_e>& vectorValue) {
- inputStream.beginReadInt32EnumVector();
- }
- };
-
- template <>
- struct OutputStreamVectorHelper<org::genivi::audiomanager::am_gen::am_SoundPropertyType_e> {
- static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::audiomanager::am_gen::am_SoundPropertyType_e>& vectorValue) {
- outputStream.beginWriteInt32EnumVector(vectorValue.size());
- }
- };
- template<>
- struct BasicTypeWriter<org::genivi::audiomanager::am_gen::am_ConnectionFormat_e> {
- inline static void writeType (CommonAPI::TypeOutputStream& typeStream) {
- typeStream.writeInt32EnumType();
- }
- };
-
- template<>
- struct InputStreamVectorHelper<org::genivi::audiomanager::am_gen::am_ConnectionFormat_e> {
- static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::audiomanager::am_gen::am_ConnectionFormat_e>& vectorValue) {
- inputStream.beginReadInt32EnumVector();
- }
- };
-
- template <>
- struct OutputStreamVectorHelper<org::genivi::audiomanager::am_gen::am_ConnectionFormat_e> {
- static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::audiomanager::am_gen::am_ConnectionFormat_e>& vectorValue) {
- outputStream.beginWriteInt32EnumVector(vectorValue.size());
- }
- };
- template<>
- struct BasicTypeWriter<org::genivi::audiomanager::am_gen::am_MainSoundPropertyType_e> {
- inline static void writeType (CommonAPI::TypeOutputStream& typeStream) {
- typeStream.writeInt32EnumType();
- }
- };
-
- template<>
- struct InputStreamVectorHelper<org::genivi::audiomanager::am_gen::am_MainSoundPropertyType_e> {
- static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::audiomanager::am_gen::am_MainSoundPropertyType_e>& vectorValue) {
- inputStream.beginReadInt32EnumVector();
- }
- };
-
- template <>
- struct OutputStreamVectorHelper<org::genivi::audiomanager::am_gen::am_MainSoundPropertyType_e> {
- static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::audiomanager::am_gen::am_MainSoundPropertyType_e>& vectorValue) {
- outputStream.beginWriteInt32EnumVector(vectorValue.size());
- }
- };
- template<>
- struct BasicTypeWriter<org::genivi::audiomanager::am_gen::am_NotificationType_e> {
- inline static void writeType (CommonAPI::TypeOutputStream& typeStream) {
- typeStream.writeInt32EnumType();
- }
- };
-
- template<>
- struct InputStreamVectorHelper<org::genivi::audiomanager::am_gen::am_NotificationType_e> {
- static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::audiomanager::am_gen::am_NotificationType_e>& vectorValue) {
- inputStream.beginReadInt32EnumVector();
- }
- };
-
- template <>
- struct OutputStreamVectorHelper<org::genivi::audiomanager::am_gen::am_NotificationType_e> {
- static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::audiomanager::am_gen::am_NotificationType_e>& vectorValue) {
- outputStream.beginWriteInt32EnumVector(vectorValue.size());
- }
- };
- template<>
- struct BasicTypeWriter<org::genivi::audiomanager::am_gen::am_NotificationStatus_e> {
- inline static void writeType (CommonAPI::TypeOutputStream& typeStream) {
- typeStream.writeInt32EnumType();
- }
- };
-
- template<>
- struct InputStreamVectorHelper<org::genivi::audiomanager::am_gen::am_NotificationStatus_e> {
- static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::audiomanager::am_gen::am_NotificationStatus_e>& vectorValue) {
- inputStream.beginReadInt32EnumVector();
- }
- };
-
- template <>
- struct OutputStreamVectorHelper<org::genivi::audiomanager::am_gen::am_NotificationStatus_e> {
- static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::audiomanager::am_gen::am_NotificationStatus_e>& vectorValue) {
- outputStream.beginWriteInt32EnumVector(vectorValue.size());
- }
- };
- template<>
- struct BasicTypeWriter<org::genivi::audiomanager::am_gen::am_HotSink_e> {
- inline static void writeType (CommonAPI::TypeOutputStream& typeStream) {
- typeStream.writeInt32EnumType();
- }
- };
-
- template<>
- struct InputStreamVectorHelper<org::genivi::audiomanager::am_gen::am_HotSink_e> {
- static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::audiomanager::am_gen::am_HotSink_e>& vectorValue) {
- inputStream.beginReadInt32EnumVector();
- }
- };
-
- template <>
- struct OutputStreamVectorHelper<org::genivi::audiomanager::am_gen::am_HotSink_e> {
- static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::audiomanager::am_gen::am_HotSink_e>& vectorValue) {
- outputStream.beginWriteInt32EnumVector(vectorValue.size());
- }
- };
- template<>
- struct BasicTypeWriter<org::genivi::audiomanager::am_gen::am_VolumeType_e> {
- inline static void writeType (CommonAPI::TypeOutputStream& typeStream) {
- typeStream.writeInt32EnumType();
- }
- };
-
- template<>
- struct InputStreamVectorHelper<org::genivi::audiomanager::am_gen::am_VolumeType_e> {
- static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::audiomanager::am_gen::am_VolumeType_e>& vectorValue) {
- inputStream.beginReadInt32EnumVector();
- }
- };
-
- template <>
- struct OutputStreamVectorHelper<org::genivi::audiomanager::am_gen::am_VolumeType_e> {
- static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::audiomanager::am_gen::am_VolumeType_e>& vectorValue) {
- outputStream.beginWriteInt32EnumVector(vectorValue.size());
- }
- };
-
-}
-
-
-namespace std {
- //Hash for gp_indicatorDirection_e
- template<>
- struct hash<org::genivi::audiomanager::am_gen::gp_indicatorDirection_e> {
- inline size_t operator()(const org::genivi::audiomanager::am_gen::gp_indicatorDirection_e& gp_indicatorDirection_e) const {
- return static_cast<int32_t>(gp_indicatorDirection_e);
- }
- };
- //Hash for am_RampType_e
- template<>
- struct hash<org::genivi::audiomanager::am_gen::am_RampType_e> {
- inline size_t operator()(const org::genivi::audiomanager::am_gen::am_RampType_e& am_RampType_e) const {
- return static_cast<int32_t>(am_RampType_e);
- }
- };
- //Hash for am_MuteState_e
- template<>
- struct hash<org::genivi::audiomanager::am_gen::am_MuteState_e> {
- inline size_t operator()(const org::genivi::audiomanager::am_gen::am_MuteState_e& am_MuteState_e) const {
- return static_cast<int32_t>(am_MuteState_e);
- }
- };
- //Hash for am_SourceState_e
- template<>
- struct hash<org::genivi::audiomanager::am_gen::am_SourceState_e> {
- inline size_t operator()(const org::genivi::audiomanager::am_gen::am_SourceState_e& am_SourceState_e) const {
- return static_cast<int32_t>(am_SourceState_e);
- }
- };
- //Hash for am_Error_e
- template<>
- struct hash<org::genivi::audiomanager::am_gen::am_Error_e> {
- inline size_t operator()(const org::genivi::audiomanager::am_gen::am_Error_e& am_Error_e) const {
- return static_cast<int32_t>(am_Error_e);
- }
- };
- //Hash for am_DomainState_e
- template<>
- struct hash<org::genivi::audiomanager::am_gen::am_DomainState_e> {
- inline size_t operator()(const org::genivi::audiomanager::am_gen::am_DomainState_e& am_DomainState_e) const {
- return static_cast<int32_t>(am_DomainState_e);
- }
- };
- //Hash for gongType_e
- template<>
- struct hash<org::genivi::audiomanager::am_gen::gongType_e> {
- inline size_t operator()(const org::genivi::audiomanager::am_gen::gongType_e& gongType_e) const {
- return static_cast<int32_t>(gongType_e);
- }
- };
- //Hash for am_EarlyDataType_e
- template<>
- struct hash<org::genivi::audiomanager::am_gen::am_EarlyDataType_e> {
- inline size_t operator()(const org::genivi::audiomanager::am_gen::am_EarlyDataType_e& am_EarlyDataType_e) const {
- return static_cast<int32_t>(am_EarlyDataType_e);
- }
- };
- //Hash for gp_indicatorStatus_e
- template<>
- struct hash<org::genivi::audiomanager::am_gen::gp_indicatorStatus_e> {
- inline size_t operator()(const org::genivi::audiomanager::am_gen::gp_indicatorStatus_e& gp_indicatorStatus_e) const {
- return static_cast<int32_t>(gp_indicatorStatus_e);
- }
- };
- //Hash for gongStatus_e
- template<>
- struct hash<org::genivi::audiomanager::am_gen::gongStatus_e> {
- inline size_t operator()(const org::genivi::audiomanager::am_gen::gongStatus_e& gongStatus_e) const {
- return static_cast<int32_t>(gongStatus_e);
- }
- };
- //Hash for gongError_e
- template<>
- struct hash<org::genivi::audiomanager::am_gen::gongError_e> {
- inline size_t operator()(const org::genivi::audiomanager::am_gen::gongError_e& gongError_e) const {
- return static_cast<int32_t>(gongError_e);
- }
- };
- //Hash for gongClass_e
- template<>
- struct hash<org::genivi::audiomanager::am_gen::gongClass_e> {
- inline size_t operator()(const org::genivi::audiomanager::am_gen::gongClass_e& gongClass_e) const {
- return static_cast<int32_t>(gongClass_e);
- }
- };
- //Hash for sampleSet_e
- template<>
- struct hash<org::genivi::audiomanager::am_gen::sampleSet_e> {
- inline size_t operator()(const org::genivi::audiomanager::am_gen::sampleSet_e& sampleSet_e) const {
- return static_cast<int32_t>(sampleSet_e);
- }
- };
- //Hash for am_Availability_e
- template<>
- struct hash<org::genivi::audiomanager::am_gen::am_Availability_e> {
- inline size_t operator()(const org::genivi::audiomanager::am_gen::am_Availability_e& am_Availability_e) const {
- return static_cast<int32_t>(am_Availability_e);
- }
- };
- //Hash for am_AvailabilityReason_e
- template<>
- struct hash<org::genivi::audiomanager::am_gen::am_AvailabilityReason_e> {
- inline size_t operator()(const org::genivi::audiomanager::am_gen::am_AvailabilityReason_e& am_AvailabilityReason_e) const {
- return static_cast<int32_t>(am_AvailabilityReason_e);
- }
- };
- //Hash for am_InterruptState_e
- template<>
- struct hash<org::genivi::audiomanager::am_gen::am_InterruptState_e> {
- inline size_t operator()(const org::genivi::audiomanager::am_gen::am_InterruptState_e& am_InterruptState_e) const {
- return static_cast<int32_t>(am_InterruptState_e);
- }
- };
- //Hash for am_SoundPropertyType_e
- template<>
- struct hash<org::genivi::audiomanager::am_gen::am_SoundPropertyType_e> {
- inline size_t operator()(const org::genivi::audiomanager::am_gen::am_SoundPropertyType_e& am_SoundPropertyType_e) const {
- return static_cast<int32_t>(am_SoundPropertyType_e);
- }
- };
- //Hash for am_ConnectionFormat_e
- template<>
- struct hash<org::genivi::audiomanager::am_gen::am_ConnectionFormat_e> {
- inline size_t operator()(const org::genivi::audiomanager::am_gen::am_ConnectionFormat_e& am_ConnectionFormat_e) const {
- return static_cast<int32_t>(am_ConnectionFormat_e);
- }
- };
- //Hash for am_MainSoundPropertyType_e
- template<>
- struct hash<org::genivi::audiomanager::am_gen::am_MainSoundPropertyType_e> {
- inline size_t operator()(const org::genivi::audiomanager::am_gen::am_MainSoundPropertyType_e& am_MainSoundPropertyType_e) const {
- return static_cast<int32_t>(am_MainSoundPropertyType_e);
- }
- };
- //Hash for am_NotificationType_e
- template<>
- struct hash<org::genivi::audiomanager::am_gen::am_NotificationType_e> {
- inline size_t operator()(const org::genivi::audiomanager::am_gen::am_NotificationType_e& am_NotificationType_e) const {
- return static_cast<int32_t>(am_NotificationType_e);
- }
- };
- //Hash for am_NotificationStatus_e
- template<>
- struct hash<org::genivi::audiomanager::am_gen::am_NotificationStatus_e> {
- inline size_t operator()(const org::genivi::audiomanager::am_gen::am_NotificationStatus_e& am_NotificationStatus_e) const {
- return static_cast<int32_t>(am_NotificationStatus_e);
- }
- };
- //Hash for am_HotSink_e
- template<>
- struct hash<org::genivi::audiomanager::am_gen::am_HotSink_e> {
- inline size_t operator()(const org::genivi::audiomanager::am_gen::am_HotSink_e& am_HotSink_e) const {
- return static_cast<int32_t>(am_HotSink_e);
- }
- };
- //Hash for am_VolumeType_e
- template<>
- struct hash<org::genivi::audiomanager::am_gen::am_VolumeType_e> {
- inline size_t operator()(const org::genivi::audiomanager::am_gen::am_VolumeType_e& am_VolumeType_e) const {
- return static_cast<int32_t>(am_VolumeType_e);
- }
- };
-}
-
-#endif // ORG_GENIVI_AUDIOMANAGER_am_gen_H_
diff --git a/PluginRoutingInterfaceCAPI/src/CAmLookupData.cpp b/PluginRoutingInterfaceCAPI/src/CAmLookupData.cpp
index 6788618..1b99177 100644
--- a/PluginRoutingInterfaceCAPI/src/CAmLookupData.cpp
+++ b/PluginRoutingInterfaceCAPI/src/CAmLookupData.cpp
@@ -29,7 +29,7 @@ const char * CAmLookupData::BUS_NAME = "CAPIRoutingPlugin";
* rs_lookupData_s
*/
-rs_lookupData_s::rs_lookupData_s(const std::shared_ptr<RoutingSenderProxy<> > & aProxy):mSenderProxy(aProxy)
+rs_lookupData_s::rs_lookupData_s(const std::shared_ptr<org::genivi::am::RoutingControlProxy<> > & aProxy):mSenderProxy(aProxy)
{
logInfo(__PRETTY_FUNCTION__);
mSubscription = mSenderProxy->getProxyStatusEvent().subscribe(std::bind(&rs_lookupData_s::onServiceStatusEvent,this,std::placeholders::_1));
@@ -41,7 +41,7 @@ rs_lookupData_s::~rs_lookupData_s()
mSenderProxy.reset();
}
-std::shared_ptr<RoutingSenderProxy<>> & rs_lookupData_s::getProxy()
+std::shared_ptr<org::genivi::am::RoutingControlProxy<>> & rs_lookupData_s::getProxy()
{
return mSenderProxy;
}
@@ -51,124 +51,138 @@ bool rs_lookupData_s::isConnected()
return mIsConnected;
}
-am_Error_e rs_lookupData_s::asyncAbort(const uint16_t handle, RoutingSenderProxyBase::AsyncAbortAsyncCallback callback)
+am_Error_e rs_lookupData_s::asyncAbort(const am_Handle_s handle, org::genivi::am::RoutingControlProxyBase::AsyncAbortAsyncCallback callback)
{
logInfo(__PRETTY_FUNCTION__, " [ isConnected : ", isConnected(), " ]");
if(isConnected())
{
- mSenderProxy->asyncAbortAsync(static_cast<am_gen::am_handle_t>(handle), callback);
+ org::genivi::am::am_Handle_s myHandle;
+ CAmConvertAM2CAPI(handle,myHandle);
+ mSenderProxy->asyncAbortAsync(myHandle, callback);
return (E_OK);
}
return (E_UNKNOWN);
}
-am_Error_e rs_lookupData_s::asyncConnect(const uint16_t handle,
+am_Error_e rs_lookupData_s::asyncConnect(const am_Handle_s handle,
const am_connectionID_t connectionID,
const am_sourceID_t sourceID,
const am_sinkID_t sinkID,
const am_ConnectionFormat_e connectionFormat,
- RoutingSenderProxyBase::AsyncConnectAsyncCallback callback)
+ org::genivi::am::RoutingControlProxyBase::AsyncConnectAsyncCallback callback)
{
logInfo(__PRETTY_FUNCTION__, " [ isConnected : ", isConnected(), " ]");
if(isConnected())
{
- mSenderProxy->asyncConnectAsync(static_cast<am_gen::am_handle_t>(handle),
- static_cast<am_gen::am_connectionID_t>(connectionID),
- static_cast<am_gen::am_sourceID_t>(sourceID),
- static_cast<am_gen::am_sinkID_t>(sinkID),
- static_cast<am_gen::am_ConnectionFormat_e>(connectionFormat),
+ org::genivi::am::am_Handle_s myHandle;
+ CAmConvertAM2CAPI(handle,myHandle);
+ mSenderProxy->asyncConnectAsync(myHandle,
+ static_cast<org::genivi::am::am_connectionID_t>(connectionID),
+ static_cast<org::genivi::am::am_sourceID_t>(sourceID),
+ static_cast<org::genivi::am::am_sinkID_t>(sinkID),
+ static_cast<org::genivi::am::am_ConnectionFormat_pe>(connectionFormat),
callback);
return (E_OK);
}
return (E_UNKNOWN);
}
-am_Error_e rs_lookupData_s::asyncDisconnect(const uint16_t handle,
+am_Error_e rs_lookupData_s::asyncDisconnect(const am_Handle_s handle,
const am_connectionID_t connectionID,
- RoutingSenderProxyBase::AsyncDisconnectAsyncCallback cb)
+ org::genivi::am::RoutingControlProxyBase::AsyncDisconnectAsyncCallback cb)
{
logInfo(__PRETTY_FUNCTION__, " [ isConnected : ", isConnected(), " ]");
if(isConnected())
{
- mSenderProxy->asyncDisconnectAsync(static_cast<am_gen::am_handle_t>(handle),
- static_cast<am_gen::am_connectionID_t>(connectionID),
+ org::genivi::am::am_Handle_s myHandle;
+ CAmConvertAM2CAPI(handle,myHandle);
+ mSenderProxy->asyncDisconnectAsync(myHandle,
+ static_cast<org::genivi::am::am_connectionID_t>(connectionID),
cb);
return (E_OK);
}
return (E_UNKNOWN);
}
-am_Error_e rs_lookupData_s::asyncSetSinkVolume( const uint16_t handle,
+am_Error_e rs_lookupData_s::asyncSetSinkVolume( const am_Handle_s handle,
const am_sinkID_t sinkID,
const am_volume_t volume,
const am_RampType_e ramp,
const am_time_t time,
- RoutingSenderProxyBase::AsyncSetSinkVolumeAsyncCallback cb)
+ org::genivi::am::RoutingControlProxyBase::AsyncSetSinkVolumeAsyncCallback cb)
{
logInfo(__PRETTY_FUNCTION__, " [ isConnected : ", isConnected(), " ]");
if(isConnected())
{
- mSenderProxy->asyncSetSinkVolumeAsync(static_cast<am_gen::am_handle_t>(handle),
- static_cast<am_gen::am_sinkID_t>(sinkID),
- static_cast<am_gen::am_volume_t>(volume),
- static_cast<am_gen::am_RampType_e>(ramp),
- static_cast<am_gen::am_time_t>(time),
+ org::genivi::am::am_Handle_s myHandle;
+ CAmConvertAM2CAPI(handle,myHandle);
+ mSenderProxy->asyncSetSinkVolumeAsync(myHandle,
+ static_cast<org::genivi::am::am_sinkID_t>(sinkID),
+ static_cast<org::genivi::am::am_volume_t>(volume),
+ static_cast<org::genivi::am::am_RampType_pe>(ramp),
+ static_cast<org::genivi::am::am_time_t>(time),
cb);
return (E_OK);
}
return (E_UNKNOWN);
}
-am_Error_e rs_lookupData_s::asyncSetSourceVolume(const uint16_t handle,
+am_Error_e rs_lookupData_s::asyncSetSourceVolume(const am_Handle_s handle,
const am_sourceID_t sourceID,
const am_volume_t volume,
const am_RampType_e ramp,
const am_time_t time,
- RoutingSenderProxyBase::AsyncSetSourceVolumeAsyncCallback cb)
+ org::genivi::am::RoutingControlProxyBase::AsyncSetSourceVolumeAsyncCallback cb)
{
logInfo(__PRETTY_FUNCTION__, " [ isConnected : ", isConnected(), " ]");
if(isConnected())
{
- mSenderProxy->asyncSetSourceVolumeAsync(static_cast<am_gen::am_handle_t>(handle),
- static_cast<am_gen::am_sourceID_t>(sourceID),
- static_cast<am_gen::am_volume_t>(volume),
- static_cast<am_gen::am_RampType_e>(ramp),
- static_cast<am_gen::am_time_t>(time),
+ org::genivi::am::am_Handle_s myHandle;
+ CAmConvertAM2CAPI(handle,myHandle);
+ mSenderProxy->asyncSetSourceVolumeAsync(myHandle,
+ static_cast<org::genivi::am::am_sourceID_t>(sourceID),
+ static_cast<org::genivi::am::am_volume_t>(volume),
+ static_cast<org::genivi::am::am_RampType_pe>(ramp),
+ static_cast<org::genivi::am::am_time_t>(time),
cb);
return (E_OK);
}
return (E_UNKNOWN);
}
-am_Error_e rs_lookupData_s::asyncSetSourceState( const uint16_t handle,
+am_Error_e rs_lookupData_s::asyncSetSourceState( const am_Handle_s handle,
const am_sourceID_t sourceID,
const am_SourceState_e state,
- RoutingSenderProxyBase::AsyncSetSinkSoundPropertiesAsyncCallback cb)
+ org::genivi::am::RoutingControlProxyBase::AsyncSetSinkSoundPropertiesAsyncCallback cb)
{
logInfo(__PRETTY_FUNCTION__, " [ isConnected : ", isConnected(), " ]");
if(isConnected())
{
- mSenderProxy->asyncSetSourceStateAsync(static_cast<am_gen::am_handle_t>(handle),
- static_cast<am_gen::am_sourceID_t>(sourceID),
- static_cast<am_gen::am_SourceState_e>(state),
+ org::genivi::am::am_Handle_s myHandle;
+ CAmConvertAM2CAPI(handle,myHandle);
+ mSenderProxy->asyncSetSourceStateAsync(myHandle,
+ static_cast<org::genivi::am::am_sourceID_t>(sourceID),
+ static_cast<org::genivi::am::am_SourceState_e>(state),
cb);
return (E_OK);
}
return (E_UNKNOWN);
}
-am_Error_e rs_lookupData_s::asyncSetSinkSoundProperties( const uint16_t handle,
+am_Error_e rs_lookupData_s::asyncSetSinkSoundProperties( const am_Handle_s handle,
const am_sinkID_t sinkID,
const std::vector<am_SoundProperty_s>& listSoundProperties,
- RoutingSenderProxyBase::AsyncSetSinkSoundPropertiesAsyncCallback cb)
+ org::genivi::am::RoutingControlProxyBase::AsyncSetSinkSoundPropertiesAsyncCallback cb)
{
logInfo(__PRETTY_FUNCTION__, " [ isConnected : ", isConnected(), " ]");
if(isConnected())
{
- am_gen::am_SoundProperty_L lsp;
+ org::genivi::am::am_SoundProperty_L lsp;
CAmConvertAMVector2CAPI(listSoundProperties, lsp);
- mSenderProxy->asyncSetSinkSoundPropertiesAsync(static_cast<am_gen::am_handle_t>(handle),
- static_cast<am_gen::am_sinkID_t>(sinkID),
+ org::genivi::am::am_Handle_s myHandle;
+ CAmConvertAM2CAPI(handle,myHandle);
+ mSenderProxy->asyncSetSinkSoundPropertiesAsync(myHandle,
+ static_cast<org::genivi::am::am_sinkID_t>(sinkID),
lsp,
cb);
return (E_OK);
@@ -176,18 +190,20 @@ am_Error_e rs_lookupData_s::asyncSetSinkSoundProperties( const uint16_t handle,
return (E_UNKNOWN);
}
-am_Error_e rs_lookupData_s::asyncSetSinkSoundProperty( const uint16_t handle,
+am_Error_e rs_lookupData_s::asyncSetSinkSoundProperty( const am_Handle_s handle,
const am_sinkID_t sinkID,
const am_SoundProperty_s& soundProperty,
- RoutingSenderProxyBase::AsyncSetSinkSoundPropertyAsyncCallback cb)
+ org::genivi::am::RoutingControlProxyBase::AsyncSetSinkSoundPropertyAsyncCallback cb)
{
logInfo(__PRETTY_FUNCTION__, " [ isConnected : ", isConnected(), " ]");
if(isConnected())
{
- am_gen::am_SoundProperty_s converted;
+ org::genivi::am::am_SoundProperty_s converted;
CAmConvertAM2CAPI(soundProperty, converted);
- mSenderProxy->asyncSetSinkSoundPropertyAsync(static_cast<am_gen::am_handle_t>(handle),
- static_cast<am_gen::am_sinkID_t>(sinkID),
+ org::genivi::am::am_Handle_s myHandle;
+ CAmConvertAM2CAPI(handle,myHandle);
+ mSenderProxy->asyncSetSinkSoundPropertyAsync(myHandle,
+ static_cast<org::genivi::am::am_sinkID_t>(sinkID),
converted,
cb);
return (E_OK);
@@ -195,18 +211,20 @@ am_Error_e rs_lookupData_s::asyncSetSinkSoundProperty( const uint16_t handle,
return (E_UNKNOWN);
}
-am_Error_e rs_lookupData_s::asyncSetSourceSoundProperties(const uint16_t handle,
+am_Error_e rs_lookupData_s::asyncSetSourceSoundProperties(const am_Handle_s handle,
const am_sourceID_t sourceID,
const std::vector<am_SoundProperty_s>& listSoundProperties,
- RoutingSenderProxyBase::AsyncSetSourceSoundPropertiesAsyncCallback cb)
+ org::genivi::am::RoutingControlProxyBase::AsyncSetSourceSoundPropertiesAsyncCallback cb)
{
logInfo(__PRETTY_FUNCTION__, " [ isConnected : ", isConnected(), " ]");
if(isConnected())
{
- am_gen::am_SoundProperty_L lsp;
+ org::genivi::am::am_SoundProperty_L lsp;
CAmConvertAMVector2CAPI(listSoundProperties, lsp);
- mSenderProxy->asyncSetSourceSoundPropertiesAsync(static_cast<am_gen::am_handle_t>(handle),
- static_cast<am_gen::am_sourceID_t>(sourceID),
+ org::genivi::am::am_Handle_s myHandle;
+ CAmConvertAM2CAPI(handle,myHandle);
+ mSenderProxy->asyncSetSourceSoundPropertiesAsync(myHandle,
+ static_cast<org::genivi::am::am_sourceID_t>(sourceID),
lsp,
cb);
return (E_OK);
@@ -214,18 +232,20 @@ am_Error_e rs_lookupData_s::asyncSetSourceSoundProperties(const uint16_t handle,
return (E_UNKNOWN);
}
-am_Error_e rs_lookupData_s::asyncSetSourceSoundProperty(const uint16_t handle,
+am_Error_e rs_lookupData_s::asyncSetSourceSoundProperty(const am_Handle_s handle,
const am_sourceID_t sourceID,
const am_SoundProperty_s& soundProperty,
- RoutingSenderProxyBase::AsyncSetSourceSoundPropertyAsyncCallback cb)
+ org::genivi::am::RoutingControlProxyBase::AsyncSetSourceSoundPropertyAsyncCallback cb)
{
logInfo(__PRETTY_FUNCTION__, " [ isConnected : ", isConnected(), " ]");
if(isConnected())
{
- am_gen::am_SoundProperty_s converted;
+ org::genivi::am::am_SoundProperty_s converted;
CAmConvertAM2CAPI(soundProperty, converted);
- mSenderProxy->asyncSetSourceSoundPropertyAsync( static_cast<am_gen::am_handle_t>(handle),
- static_cast<am_gen::am_sourceID_t>(sourceID),
+ org::genivi::am::am_Handle_s myHandle;
+ CAmConvertAM2CAPI(handle,myHandle);
+ mSenderProxy->asyncSetSourceSoundPropertyAsync( myHandle,
+ static_cast<org::genivi::am::am_sourceID_t>(sourceID),
converted,
cb);
return (E_OK);
@@ -234,50 +254,54 @@ am_Error_e rs_lookupData_s::asyncSetSourceSoundProperty(const uint16_t handle,
}
-am_Error_e rs_lookupData_s::asyncCrossFade(const uint16_t handle,
+am_Error_e rs_lookupData_s::asyncCrossFade(const am_Handle_s handle,
const am_crossfaderID_t crossfaderID,
const am_HotSink_e hotSink,
const am_RampType_e rampType,
const am_time_t time,
- RoutingSenderProxyBase::AsyncCrossFadeAsyncCallback cb)
+ org::genivi::am::RoutingControlProxyBase::AsyncCrossFadeAsyncCallback cb)
{
logInfo(__PRETTY_FUNCTION__, " [ isConnected : ", isConnected(), " ]");
if(isConnected())
{
- mSenderProxy->asyncCrossFadeAsync(static_cast<am_gen::am_handle_t>(handle),
- static_cast<am_gen::am_crossfaderID_t>(crossfaderID),
- static_cast<am_gen::am_HotSink_e>(hotSink),
- static_cast<am_gen::am_RampType_e>(rampType),
- static_cast<am_gen::am_time_t>(time),
+ org::genivi::am::am_Handle_s myHandle;
+ CAmConvertAM2CAPI(handle,myHandle);
+ mSenderProxy->asyncCrossFadeAsync(myHandle,
+ static_cast<org::genivi::am::am_crossfaderID_t>(crossfaderID),
+ static_cast<org::genivi::am::am_HotSink_e>(hotSink),
+ static_cast<org::genivi::am::am_RampType_pe>(rampType),
+ static_cast<org::genivi::am::am_time_t>(time),
cb);
return (E_OK);
}
return (E_UNKNOWN);
}
-am_Error_e rs_lookupData_s::setDomainState(const am_domainID_t domainID, const am_DomainState_e domainState, RoutingSenderProxyBase::SetDomainStateAsyncCallback cb)
+am_Error_e rs_lookupData_s::setDomainState(const am_domainID_t domainID, const am_DomainState_e domainState, org::genivi::am::RoutingControlProxyBase::SetDomainStateAsyncCallback cb)
{
logInfo(__PRETTY_FUNCTION__, " [ isConnected : ", isConnected(), " ]");
if(isConnected())
{
- mSenderProxy->setDomainStateAsync(static_cast<am_gen::am_domainID_t>(domainID),
- static_cast<am_gen::am_DomainState_e>(domainState),
+ mSenderProxy->setDomainStateAsync(static_cast<org::genivi::am::am_domainID_t>(domainID),
+ static_cast<org::genivi::am::am_DomainState_e>(domainState),
cb);
return (E_OK);
}
return (E_UNKNOWN);
}
-am_Error_e rs_lookupData_s::asyncSetVolumes(const uint16_t handle,
+am_Error_e rs_lookupData_s::asyncSetVolumes(const am_Handle_s handle,
const std::vector<am_Volumes_s>& volumes ,
- RoutingSenderProxyBase::AsyncSetVolumesAsyncCallback cb )
+ org::genivi::am::RoutingControlProxyBase::AsyncSetVolumesAsyncCallback cb )
{
logInfo(__PRETTY_FUNCTION__, " [ isConnected : ", isConnected(), " ]");
if(isConnected())
{
- am_gen::am_Volumes_l list;
+ org::genivi::am::am_Volumes_L list;
CAmConvertAMVector2CAPI(volumes, list);
- mSenderProxy->asyncSetVolumesAsync(static_cast<am_gen::am_handle_t>(handle),
+ org::genivi::am::am_Handle_s myHandle;
+ CAmConvertAM2CAPI(handle,myHandle);
+ mSenderProxy->asyncSetVolumesAsync(myHandle,
list,
cb);
return (E_OK);
@@ -285,18 +309,20 @@ am_Error_e rs_lookupData_s::asyncSetVolumes(const uint16_t handle,
return (E_UNKNOWN);
}
-am_Error_e rs_lookupData_s::asyncSetSinkNotificationConfiguration(const uint16_t handle,
+am_Error_e rs_lookupData_s::asyncSetSinkNotificationConfiguration(const am_Handle_s handle,
const am_sinkID_t sinkID,
const am_NotificationConfiguration_s& notificationConfiguration,
- RoutingSenderProxyBase::AsyncSetSinkNotificationConfigurationAsyncCallback cb)
+ org::genivi::am::RoutingControlProxyBase::AsyncSetSinkNotificationConfigurationAsyncCallback cb)
{
logInfo(__PRETTY_FUNCTION__, " [ isConnected : ", isConnected(), " ]");
if(isConnected())
{
- am_gen::am_NotificationConfiguration_s converted;
+ org::genivi::am::am_NotificationConfiguration_s converted;
CAmConvertAM2CAPI(notificationConfiguration, converted);
- mSenderProxy->asyncSetSinkNotificationConfigurationAsync(static_cast<am_gen::am_handle_t>(handle),
- static_cast<am_gen::am_sinkID_t>(sinkID),
+ org::genivi::am::am_Handle_s myHandle;
+ CAmConvertAM2CAPI(handle,myHandle);
+ mSenderProxy->asyncSetSinkNotificationConfigurationAsync(myHandle,
+ static_cast<org::genivi::am::am_sinkID_t>(sinkID),
converted,
cb);
return (E_OK);
@@ -304,18 +330,20 @@ am_Error_e rs_lookupData_s::asyncSetSinkNotificationConfiguration(const uint16_t
return (E_UNKNOWN);
}
-am_Error_e rs_lookupData_s::asyncSetSourceNotificationConfiguration(const uint16_t handle,
+am_Error_e rs_lookupData_s::asyncSetSourceNotificationConfiguration(const am_Handle_s handle,
const am_sourceID_t sourceID,
const am_NotificationConfiguration_s& notificationConfiguration,
- RoutingSenderProxyBase::AsyncSetSourceNotificationConfigurationAsyncCallback cb)
+ org::genivi::am::RoutingControlProxyBase::AsyncSetSourceNotificationConfigurationAsyncCallback cb)
{
logInfo(__PRETTY_FUNCTION__, " [ isConnected : ", isConnected(), " ]");
if(isConnected())
{
- am_gen::am_NotificationConfiguration_s converted;
+ org::genivi::am::am_NotificationConfiguration_s converted;
CAmConvertAM2CAPI(notificationConfiguration, converted);
- mSenderProxy->asyncSetSourceNotificationConfigurationAsync( static_cast<am_gen::am_handle_t>(handle),
- static_cast<am_gen::am_sourceID_t>(sourceID),
+ org::genivi::am::am_Handle_s myHandle;
+ CAmConvertAM2CAPI(handle,myHandle);
+ mSenderProxy->asyncSetSourceNotificationConfigurationAsync( myHandle,
+ static_cast<org::genivi::am::am_sourceID_t>(sourceID),
converted,
cb);
return (E_OK);
@@ -344,16 +372,16 @@ CAmLookupData::~CAmLookupData() {
}
void CAmLookupData::addDomainLookup(am_domainID_t & domainID,
- std::shared_ptr<RoutingSenderProxy<>> & aProxy)
+ std::shared_ptr<org::genivi::am::RoutingControlProxy<>> & aProxy)
{
logInfo(__PRETTY_FUNCTION__, " [ domainID : ", domainID, " ]");
RSLookupDataPtr lookupData = std::make_shared<rs_lookupData_s>(aProxy);
mMapDomains.insert(std::make_pair(domainID, lookupData));
}
-void CAmLookupData::removeHandle(uint16_t handle)
+void CAmLookupData::removeHandle(am_Handle_s handle)
{
- mMapHandles.erase(handle);
+ mMapHandles.erase(handle.handle);
}
void CAmLookupData::addSourceLookup(am_sourceID_t sourceID, am_domainID_t domainID)
@@ -450,164 +478,164 @@ template <typename TKey> const CAmLookupData::RSLookupDataPtr CAmLookupData::ge
return NULL;
}
-am_Error_e CAmLookupData::asyncAbort(const uint16_t handle, RoutingSenderProxyBase::AsyncAbortAsyncCallback callback)
+am_Error_e CAmLookupData::asyncAbort(const am_Handle_s handle, org::genivi::am::RoutingControlProxyBase::AsyncAbortAsyncCallback callback)
{
- RSLookupDataPtr result = getValueForKey(handle, mMapHandles);
+ RSLookupDataPtr result = getValueForKey(handle.handle, mMapHandles);
if(result)
return result->asyncAbort(handle, callback);
return (E_UNKNOWN);
}
-am_Error_e CAmLookupData::asyncConnect(const uint16_t handle,
+am_Error_e CAmLookupData::asyncConnect(const am_Handle_s handle,
const am_connectionID_t connectionID,
const am_sourceID_t sourceID,
const am_sinkID_t sinkID,
const am_ConnectionFormat_e connectionFormat,
- RoutingSenderProxyBase::AsyncConnectAsyncCallback callback)
+ org::genivi::am::RoutingControlProxyBase::AsyncConnectAsyncCallback callback)
{
RSLookupDataPtr result = CAmLookupData::getValueForKey(sourceID, mMapSources);
if(result)
{
mMapConnections.insert(std::make_pair(connectionID, result));
- mMapHandles.insert(std::make_pair(+handle, result));
+ mMapHandles.insert(std::make_pair(+handle.handle, result));
return result->asyncConnect(handle, connectionID, sourceID, sinkID, connectionFormat, callback);
}
return (E_UNKNOWN);
}
-am_Error_e CAmLookupData::asyncDisconnect(const uint16_t handle,
+am_Error_e CAmLookupData::asyncDisconnect(const am_Handle_s handle,
const am_connectionID_t connectionID,
- RoutingSenderProxyBase::AsyncDisconnectAsyncCallback cb)
+ org::genivi::am::RoutingControlProxyBase::AsyncDisconnectAsyncCallback cb)
{
RSLookupDataPtr result = CAmLookupData::getValueForKey(connectionID, mMapConnections);
if(result)
{
- mMapHandles.insert(std::make_pair(+handle, result));
+ mMapHandles.insert(std::make_pair(+handle.handle, result));
return result->asyncDisconnect(handle, connectionID, cb);
}
return (E_UNKNOWN);
}
-am_Error_e CAmLookupData::asyncSetSinkVolume( const uint16_t handle,
+am_Error_e CAmLookupData::asyncSetSinkVolume( const am_Handle_s handle,
const am_sinkID_t sinkID,
const am_volume_t volume,
const am_RampType_e ramp,
const am_time_t time,
- RoutingSenderProxyBase::AsyncSetSinkVolumeAsyncCallback cb)
+ org::genivi::am::RoutingControlProxyBase::AsyncSetSinkVolumeAsyncCallback cb)
{
RSLookupDataPtr result = CAmLookupData::getValueForKey(sinkID, mMapSinks);
if(result)
{
- mMapHandles.insert(std::make_pair(+handle, result));
+ mMapHandles.insert(std::make_pair(+handle.handle, result));
return result->asyncSetSinkVolume(handle, sinkID, volume, ramp, time, cb);
}
return (E_UNKNOWN);
}
-am_Error_e CAmLookupData::asyncSetSourceVolume(const uint16_t handle,
+am_Error_e CAmLookupData::asyncSetSourceVolume(const am_Handle_s handle,
const am_sourceID_t sourceID,
const am_volume_t volume,
const am_RampType_e ramp,
const am_time_t time,
- RoutingSenderProxyBase::AsyncSetSourceVolumeAsyncCallback cb)
+ org::genivi::am::RoutingControlProxyBase::AsyncSetSourceVolumeAsyncCallback cb)
{
RSLookupDataPtr result = CAmLookupData::getValueForKey(sourceID, mMapSources);
if(result)
{
- mMapHandles.insert(std::make_pair(+handle, result));
+ mMapHandles.insert(std::make_pair(+handle.handle, result));
return result->asyncSetSourceVolume(handle, sourceID, volume, ramp, time, cb);
}
return (E_UNKNOWN);
}
-am_Error_e CAmLookupData::asyncSetSourceState(const uint16_t handle,
+am_Error_e CAmLookupData::asyncSetSourceState(const am_Handle_s handle,
const am_sourceID_t sourceID,
const am_SourceState_e state,
- RoutingSenderProxyBase::AsyncSetSinkSoundPropertiesAsyncCallback cb)
+ org::genivi::am::RoutingControlProxyBase::AsyncSetSinkSoundPropertiesAsyncCallback cb)
{
RSLookupDataPtr result = CAmLookupData::getValueForKey(sourceID, mMapSources);
if(result)
{
- mMapHandles.insert(std::make_pair(+handle, result));
+ mMapHandles.insert(std::make_pair(+handle.handle, result));
return result->asyncSetSourceState(handle, sourceID, state, cb);
}
return (E_UNKNOWN);
}
-am_Error_e CAmLookupData::asyncSetSinkSoundProperties( const uint16_t handle,
+am_Error_e CAmLookupData::asyncSetSinkSoundProperties( const am_Handle_s handle,
const am_sinkID_t sinkID,
const std::vector<am_SoundProperty_s>& listSoundProperties,
- RoutingSenderProxyBase::AsyncSetSinkSoundPropertiesAsyncCallback cb)
+ org::genivi::am::RoutingControlProxyBase::AsyncSetSinkSoundPropertiesAsyncCallback cb)
{
RSLookupDataPtr result = CAmLookupData::getValueForKey(sinkID, mMapSinks);
if(result)
{
- mMapHandles.insert(std::make_pair(+handle, result));
+ mMapHandles.insert(std::make_pair(+handle.handle, result));
return result->asyncSetSinkSoundProperties(handle, sinkID, listSoundProperties, cb);
}
return (E_UNKNOWN);
}
-am_Error_e CAmLookupData::asyncSetSinkSoundProperty( const uint16_t handle,
+am_Error_e CAmLookupData::asyncSetSinkSoundProperty( const am_Handle_s handle,
const am_sinkID_t sinkID,
const am_SoundProperty_s& soundProperty,
- RoutingSenderProxyBase::AsyncSetSinkSoundPropertyAsyncCallback cb)
+ org::genivi::am::RoutingControlProxyBase::AsyncSetSinkSoundPropertyAsyncCallback cb)
{
RSLookupDataPtr result = CAmLookupData::getValueForKey(sinkID, mMapSinks);
if(result)
{
- mMapHandles.insert(std::make_pair(+handle, result));
+ mMapHandles.insert(std::make_pair(+handle.handle, result));
return result->asyncSetSinkSoundProperty(handle, sinkID, soundProperty, cb);
}
return (E_UNKNOWN);
}
-am_Error_e CAmLookupData::asyncSetSourceSoundProperties(const uint16_t handle,
+am_Error_e CAmLookupData::asyncSetSourceSoundProperties(const am_Handle_s handle,
const am_sourceID_t sourceID,
const std::vector<am_SoundProperty_s>& listSoundProperties,
- RoutingSenderProxyBase::AsyncSetSourceSoundPropertiesAsyncCallback cb)
+ org::genivi::am::RoutingControlProxyBase::AsyncSetSourceSoundPropertiesAsyncCallback cb)
{
RSLookupDataPtr result = CAmLookupData::getValueForKey(sourceID, mMapSources);
if(result)
{
- mMapHandles.insert(std::make_pair(+handle, result));
+ mMapHandles.insert(std::make_pair(+handle.handle, result));
return result->asyncSetSourceSoundProperties(handle, sourceID, listSoundProperties, cb);
}
return (E_UNKNOWN);
}
-am_Error_e CAmLookupData::asyncSetSourceSoundProperty(const uint16_t handle,
+am_Error_e CAmLookupData::asyncSetSourceSoundProperty(const am_Handle_s handle,
const am_sourceID_t sourceID,
const am_SoundProperty_s& soundProperty,
- RoutingSenderProxyBase::AsyncSetSourceSoundPropertyAsyncCallback cb)
+ org::genivi::am::RoutingControlProxyBase::AsyncSetSourceSoundPropertyAsyncCallback cb)
{
RSLookupDataPtr result = CAmLookupData::getValueForKey(sourceID, mMapSources);
if(result)
{
- mMapHandles.insert(std::make_pair(+handle, result));
+ mMapHandles.insert(std::make_pair(+handle.handle, result));
return result->asyncSetSourceSoundProperty(handle, sourceID, soundProperty, cb);
}
return (E_UNKNOWN);
}
-am_Error_e CAmLookupData::asyncCrossFade(const uint16_t handle,
+am_Error_e CAmLookupData::asyncCrossFade(const am_Handle_s handle,
const am_crossfaderID_t crossfaderID,
const am_HotSink_e hotSink,
const am_RampType_e rampType,
const am_time_t time,
- RoutingSenderProxyBase::AsyncCrossFadeAsyncCallback cb)
+ org::genivi::am::RoutingControlProxyBase::AsyncCrossFadeAsyncCallback cb)
{
RSLookupDataPtr result = CAmLookupData::getValueForKey(crossfaderID, mMapCrossfaders);
if(result)
{
- mMapHandles.insert(std::make_pair(+handle, result));
+ mMapHandles.insert(std::make_pair(+handle.handle, result));
return result->asyncCrossFade(handle, crossfaderID, hotSink, rampType, time, cb);
}
return (E_UNKNOWN);
}
-am_Error_e CAmLookupData::setDomainState(const am_domainID_t domainID, const am_DomainState_e domainState, RoutingSenderProxyBase::SetDomainStateAsyncCallback cb)
+am_Error_e CAmLookupData::setDomainState(const am_domainID_t domainID, const am_DomainState_e domainState, org::genivi::am::RoutingControlProxyBase::SetDomainStateAsyncCallback cb)
{
RSLookupDataPtr result = CAmLookupData::getValueForKey(domainID, mMapDomains);
if(result)
@@ -616,9 +644,9 @@ am_Error_e CAmLookupData::setDomainState(const am_domainID_t domainID, const am_
}
-am_Error_e CAmLookupData::asyncSetVolumes(const uint16_t handle,
+am_Error_e CAmLookupData::asyncSetVolumes(const am_Handle_s handle,
const std::vector<am_Volumes_s>& volumes ,
- RoutingSenderProxyBase::AsyncSetVolumesAsyncCallback cb )
+ org::genivi::am::RoutingControlProxyBase::AsyncSetVolumesAsyncCallback cb )
{
if(volumes.size())
@@ -631,36 +659,36 @@ am_Error_e CAmLookupData::asyncSetVolumes(const uint16_t handle,
result = CAmLookupData::getValueForKey(volumeItem.volumeID.source, mMapSources);
if(result)
{
- mMapHandles.insert(std::make_pair(+handle, result));
+ mMapHandles.insert(std::make_pair(+handle.handle, result));
return result->asyncSetVolumes(handle, volumes, cb);
}
}
return (E_UNKNOWN);
}
-am_Error_e CAmLookupData::asyncSetSinkNotificationConfiguration(const uint16_t handle,
+am_Error_e CAmLookupData::asyncSetSinkNotificationConfiguration(const am_Handle_s handle,
const am_sinkID_t sinkID,
const am_NotificationConfiguration_s& notificationConfiguration,
- RoutingSenderProxyBase::AsyncSetSinkNotificationConfigurationAsyncCallback cb)
+ org::genivi::am::RoutingControlProxyBase::AsyncSetSinkNotificationConfigurationAsyncCallback cb)
{
RSLookupDataPtr result = CAmLookupData::getValueForKey(sinkID, mMapSinks);
if(result)
{
- mMapHandles.insert(std::make_pair(+handle, result));
+ mMapHandles.insert(std::make_pair(+handle.handle, result));
return result->asyncSetSinkNotificationConfiguration(handle, sinkID, notificationConfiguration, cb);
}
return (E_UNKNOWN);
}
-am_Error_e CAmLookupData::asyncSetSourceNotificationConfiguration(const uint16_t handle,
+am_Error_e CAmLookupData::asyncSetSourceNotificationConfiguration(const am_Handle_s handle,
const am_sourceID_t sourceID,
const am_NotificationConfiguration_s& notificationConfiguration,
- RoutingSenderProxyBase::AsyncSetSourceNotificationConfigurationAsyncCallback cb)
+ org::genivi::am::RoutingControlProxyBase::AsyncSetSourceNotificationConfigurationAsyncCallback cb)
{
RSLookupDataPtr result = CAmLookupData::getValueForKey(sourceID, mMapSources);
if(result)
{
- mMapHandles.insert(std::make_pair(+handle, result));
+ mMapHandles.insert(std::make_pair(+handle.handle, result));
return result->asyncSetSourceNotificationConfiguration(handle, sourceID, notificationConfiguration, cb);
}
return (E_UNKNOWN);
diff --git a/PluginRoutingInterfaceCAPI/src/CAmRoutingSenderCAPI.cpp b/PluginRoutingInterfaceCAPI/src/CAmRoutingSenderCAPI.cpp
index 55d2792..533b01e 100644
--- a/PluginRoutingInterfaceCAPI/src/CAmRoutingSenderCAPI.cpp
+++ b/PluginRoutingInterfaceCAPI/src/CAmRoutingSenderCAPI.cpp
@@ -44,7 +44,6 @@ const char * CAmRoutingSenderCAPI::ROUTING_INTERFACE_SERVICE = "local:org.genivi
CAmRoutingSenderCAPI::CAmRoutingSenderCAPI() :
mIsServiceStarted(false),
- mReady(false),
mLookupData(),
mpCAmCAPIWrapper(NULL), //
mpIAmRoutingReceive(NULL),
@@ -55,7 +54,6 @@ CAmRoutingSenderCAPI::CAmRoutingSenderCAPI() :
CAmRoutingSenderCAPI::CAmRoutingSenderCAPI(CAmCommonAPIWrapper *aWrapper) :
mIsServiceStarted(false),
- mReady(false),
mLookupData(),
mpCAmCAPIWrapper(aWrapper), //
mpIAmRoutingReceive(NULL),
@@ -79,6 +77,7 @@ am_Error_e CAmRoutingSenderCAPI::startService(IAmRoutingReceive* pIAmRoutingRece
{
assert(pIAmRoutingReceive);
mService = std::make_shared<CAmRoutingService>(pIAmRoutingReceive, &mLookupData, mpCAmCAPIWrapper);
+ mService->setRoutingReadyAttribute(org::genivi::am::am_RoutingReady_e::RR_UNKNOWN);
//Registers the service
if( false == mpCAmCAPIWrapper->registerStub(mService, CAmRoutingSenderCAPI::ROUTING_INTERFACE_SERVICE) )
{
@@ -121,26 +120,22 @@ void CAmRoutingSenderCAPI::setRoutingReady(const uint16_t handle)
{
assert(mpIAmRoutingReceive);
log(&ctxCommandCAPI, DLT_LOG_INFO, "sending routingReady signal");
- mReady = true;
mpIAmRoutingReceive->confirmRoutingReady(handle,E_OK);
- mService->fireSetRoutingReadyEvent();
- mService->gotReady(mLookupData.numberOfDomains(),handle);
+ mService->setRoutingReadyAttribute(org::genivi::am::am_RoutingReady_e::RR_READY);
}
void CAmRoutingSenderCAPI::setRoutingRundown(const uint16_t handle)
{
log(&ctxCommandCAPI, DLT_LOG_INFO, __PRETTY_FUNCTION__);
assert(mpIAmRoutingReceive);
- mReady = false;
- mpIAmRoutingReceive->confirmRoutingRundown(handle,E_OK);
- mService->fireSetRoutingRundownEvent();
+ mService->setRoutingReadyAttribute(org::genivi::am::am_RoutingReady_e::RR_RUNDOWN);
mService->gotRundown(mLookupData.numberOfDomains(),handle);
}
am_Error_e CAmRoutingSenderCAPI::asyncAbort(const am_Handle_s handle)
{
log(&ctxCommandCAPI, DLT_LOG_INFO, "CAmRoutingSenderDbus::asyncAbort called");
- return mLookupData.asyncAbort(handle.handle,[&](const CommonAPI::CallStatus& callStatus, const am_gen::am_Error_e& error){
+ return mLookupData.asyncAbort(handle,[&](const CommonAPI::CallStatus& callStatus){
log(&ctxCommandCAPI, DLT_LOG_INFO, __PRETTY_FUNCTION__, "Response with call status:", static_cast<int16_t>(callStatus));
});
}
@@ -148,7 +143,7 @@ am_Error_e CAmRoutingSenderCAPI::asyncAbort(const am_Handle_s handle)
am_Error_e CAmRoutingSenderCAPI::asyncConnect(const am_Handle_s handle, const am_connectionID_t connectionID, const am_sourceID_t sourceID, const am_sinkID_t sinkID, const am_ConnectionFormat_e connectionFormat)
{
log(&ctxCommandCAPI, DLT_LOG_INFO, "CAmRoutingSenderDbus::asyncConnect called");
- return mLookupData.asyncConnect(handle.handle,connectionID, sourceID, sinkID, connectionFormat, [&](const CommonAPI::CallStatus& callStatus){
+ return mLookupData.asyncConnect(handle,connectionID, sourceID, sinkID, connectionFormat, [&](const CommonAPI::CallStatus& callStatus){
log(&ctxCommandCAPI, DLT_LOG_INFO, __PRETTY_FUNCTION__, "Response with call status:", static_cast<int16_t>(callStatus));
});
}
@@ -156,7 +151,7 @@ am_Error_e CAmRoutingSenderCAPI::asyncConnect(const am_Handle_s handle, const am
am_Error_e CAmRoutingSenderCAPI::asyncDisconnect(const am_Handle_s handle, const am_connectionID_t connectionID)
{
log(&ctxCommandCAPI, DLT_LOG_INFO, "CAmRoutingSenderDbus::asyncDisconnect called");
- return mLookupData.asyncDisconnect(handle.handle,connectionID, [&](const CommonAPI::CallStatus& callStatus){
+ return mLookupData.asyncDisconnect(handle,connectionID, [&](const CommonAPI::CallStatus& callStatus){
log(&ctxCommandCAPI, DLT_LOG_INFO, __PRETTY_FUNCTION__, "Response with call status:", static_cast<int16_t>(callStatus));
});
}
@@ -164,7 +159,7 @@ am_Error_e CAmRoutingSenderCAPI::asyncDisconnect(const am_Handle_s handle, const
am_Error_e CAmRoutingSenderCAPI::asyncSetSinkVolume(const am_Handle_s handle, const am_sinkID_t sinkID, const am_volume_t volume, const am_RampType_e ramp, const am_time_t time)
{
log(&ctxCommandCAPI, DLT_LOG_INFO, "CAmRoutingSenderDbus::asyncSetSinkVolume called");
- return mLookupData.asyncSetSinkVolume(handle.handle,sinkID, volume, ramp, time, [&](const CommonAPI::CallStatus& callStatus){
+ return mLookupData.asyncSetSinkVolume(handle,sinkID, volume, ramp, time, [&](const CommonAPI::CallStatus& callStatus){
log(&ctxCommandCAPI, DLT_LOG_INFO, __PRETTY_FUNCTION__, "Response with call status:", static_cast<int16_t>(callStatus));
});
}
@@ -172,7 +167,7 @@ am_Error_e CAmRoutingSenderCAPI::asyncSetSinkVolume(const am_Handle_s handle, co
am_Error_e CAmRoutingSenderCAPI::asyncSetSourceVolume(const am_Handle_s handle, const am_sourceID_t sourceID, const am_volume_t volume, const am_RampType_e ramp, const am_time_t time)
{
log(&ctxCommandCAPI, DLT_LOG_INFO, "CAmRoutingSenderDbus::asyncSetSourceVolume called");
- return mLookupData.asyncSetSourceVolume(handle.handle,sourceID, volume, ramp, time, [&](const CommonAPI::CallStatus& callStatus){
+ return mLookupData.asyncSetSourceVolume(handle,sourceID, volume, ramp, time, [&](const CommonAPI::CallStatus& callStatus){
log(&ctxCommandCAPI, DLT_LOG_INFO, __PRETTY_FUNCTION__, "Response with call status:", static_cast<int16_t>(callStatus));
});
}
@@ -180,7 +175,7 @@ am_Error_e CAmRoutingSenderCAPI::asyncSetSourceVolume(const am_Handle_s handle,
am_Error_e CAmRoutingSenderCAPI::asyncSetSourceState(const am_Handle_s handle, const am_sourceID_t sourceID, const am_SourceState_e state)
{
log(&ctxCommandCAPI, DLT_LOG_INFO, "CAmRoutingSenderDbus::asyncSetSourceState called");
- return mLookupData.asyncSetSourceState(handle.handle,sourceID, state,[&](const CommonAPI::CallStatus& callStatus){
+ return mLookupData.asyncSetSourceState(handle,sourceID, state,[&](const CommonAPI::CallStatus& callStatus){
log(&ctxCommandCAPI, DLT_LOG_INFO, __PRETTY_FUNCTION__, "Response with call status:", static_cast<int16_t>(callStatus));
});
}
@@ -188,7 +183,7 @@ am_Error_e CAmRoutingSenderCAPI::asyncSetSourceState(const am_Handle_s handle, c
am_Error_e CAmRoutingSenderCAPI::asyncSetSinkSoundProperties(const am_Handle_s handle, const am_sinkID_t sinkID, const std::vector<am_SoundProperty_s>& listSoundProperties)
{
log(&ctxCommandCAPI, DLT_LOG_INFO, "CAmRoutingSenderDbus::asyncSetSinkSoundProperties called");
- return mLookupData.asyncSetSinkSoundProperties(handle.handle,sinkID, listSoundProperties, [&](const CommonAPI::CallStatus& callStatus){
+ return mLookupData.asyncSetSinkSoundProperties(handle,sinkID, listSoundProperties, [&](const CommonAPI::CallStatus& callStatus){
log(&ctxCommandCAPI, DLT_LOG_INFO, __PRETTY_FUNCTION__, "Response with call status:", static_cast<int16_t>(callStatus));
});
}
@@ -196,7 +191,7 @@ am_Error_e CAmRoutingSenderCAPI::asyncSetSinkSoundProperties(const am_Handle_s h
am_Error_e CAmRoutingSenderCAPI::asyncSetSinkSoundProperty(const am_Handle_s handle, const am_sinkID_t sinkID, const am_SoundProperty_s& soundProperty)
{
log(&ctxCommandCAPI, DLT_LOG_INFO, "CAmRoutingSenderDbus::asyncSetSinkSoundProperty called");
- return mLookupData.asyncSetSinkSoundProperty(handle.handle, sinkID, soundProperty, [&](const CommonAPI::CallStatus& callStatus){
+ return mLookupData.asyncSetSinkSoundProperty(handle, sinkID, soundProperty, [&](const CommonAPI::CallStatus& callStatus){
log(&ctxCommandCAPI, DLT_LOG_INFO, __PRETTY_FUNCTION__, "Response with call status:", static_cast<int16_t>(callStatus));
});
}
@@ -204,7 +199,7 @@ am_Error_e CAmRoutingSenderCAPI::asyncSetSinkSoundProperty(const am_Handle_s han
am_Error_e CAmRoutingSenderCAPI::asyncSetSourceSoundProperties(const am_Handle_s handle, const am_sourceID_t sourceID, const std::vector<am_SoundProperty_s>& listSoundProperties)
{
log(&ctxCommandCAPI, DLT_LOG_INFO, "CAmRoutingSenderDbus::asyncSetSourceSoundProperties called");
- return mLookupData.asyncSetSourceSoundProperties(handle.handle, sourceID, listSoundProperties, [&](const CommonAPI::CallStatus& callStatus){
+ return mLookupData.asyncSetSourceSoundProperties(handle, sourceID, listSoundProperties, [&](const CommonAPI::CallStatus& callStatus){
log(&ctxCommandCAPI, DLT_LOG_INFO, __PRETTY_FUNCTION__, "Response with call status:", static_cast<int16_t>(callStatus));
});
}
@@ -212,14 +207,14 @@ am_Error_e CAmRoutingSenderCAPI::asyncSetSourceSoundProperties(const am_Handle_s
am_Error_e CAmRoutingSenderCAPI::asyncSetSourceSoundProperty(const am_Handle_s handle, const am_sourceID_t sourceID, const am_SoundProperty_s& soundProperty)
{
log(&ctxCommandCAPI, DLT_LOG_INFO, "CAmRoutingSenderDbus::asyncSetSourceSoundProperty called");
- return mLookupData.asyncSetSourceSoundProperty(handle.handle, sourceID, soundProperty, [&](const CommonAPI::CallStatus& callStatus){
+ return mLookupData.asyncSetSourceSoundProperty(handle, sourceID, soundProperty, [&](const CommonAPI::CallStatus& callStatus){
log(&ctxCommandCAPI, DLT_LOG_INFO, __PRETTY_FUNCTION__, "Response with call status:", static_cast<int16_t>(callStatus));
});
}
am_Error_e CAmRoutingSenderCAPI::asyncCrossFade(const am_Handle_s handle, const am_crossfaderID_t crossfaderID, const am_HotSink_e hotSink, const am_RampType_e rampType, const am_time_t time)
{
- return mLookupData.asyncCrossFade(handle.handle, crossfaderID, hotSink, rampType, time, [&](const CommonAPI::CallStatus& callStatus){
+ return mLookupData.asyncCrossFade(handle, crossfaderID, hotSink, rampType, time, [&](const CommonAPI::CallStatus& callStatus){
log(&ctxCommandCAPI, DLT_LOG_INFO, __PRETTY_FUNCTION__, "Response with call status:", static_cast<int16_t>(callStatus));
});
}
@@ -227,8 +222,8 @@ am_Error_e CAmRoutingSenderCAPI::asyncCrossFade(const am_Handle_s handle, const
am_Error_e CAmRoutingSenderCAPI::setDomainState(const am_domainID_t domainID, const am_DomainState_e domainState)
{
log(&ctxCommandCAPI, DLT_LOG_INFO, "CAmRoutingSenderDbus::setDomainState called");
- return mLookupData.setDomainState(domainID, domainState, [&](const CommonAPI::CallStatus& callStatus, const am_gen::am_Error_e& error){
- log(&ctxCommandCAPI, DLT_LOG_INFO, __PRETTY_FUNCTION__, "Response with call status:", static_cast<int16_t>(callStatus));
+ return mLookupData.setDomainState(domainID, domainState, [&](const CommonAPI::CallStatus& callStatus, org::genivi::am::am_Error_e error){
+ log(&ctxCommandCAPI, DLT_LOG_INFO, __PRETTY_FUNCTION__, "Response with call status:", static_cast<int16_t>(callStatus),"Error",static_cast<am_Error_e>(error));
});
}
@@ -241,7 +236,7 @@ am_Error_e CAmRoutingSenderCAPI::returnBusName(std::string& BusName) const
am_Error_e CAmRoutingSenderCAPI::asyncSetVolumes(const am_Handle_s handle, const std::vector<am_Volumes_s>& volumes)
{
log(&ctxCommandCAPI, DLT_LOG_INFO, "CAmRoutingSenderDbus::asyncSetVolumes called");
- return mLookupData.asyncSetVolumes(handle.handle, volumes, [&](const CommonAPI::CallStatus& callStatus){
+ return mLookupData.asyncSetVolumes(handle, volumes, [&](const CommonAPI::CallStatus& callStatus){
log(&ctxCommandCAPI, DLT_LOG_INFO, __PRETTY_FUNCTION__, "Response with call status:", static_cast<int16_t>(callStatus));
});
}
@@ -249,7 +244,7 @@ am_Error_e CAmRoutingSenderCAPI::asyncSetVolumes(const am_Handle_s handle, const
am_Error_e CAmRoutingSenderCAPI::asyncSetSinkNotificationConfiguration(const am_Handle_s handle, const am_sinkID_t sinkID, const am_NotificationConfiguration_s& nc)
{
log(&ctxCommandCAPI, DLT_LOG_INFO, "CAmRoutingSenderDbus::asyncSetSinkNotificationConfiguration called");
- return mLookupData.asyncSetSinkNotificationConfiguration(handle.handle, sinkID, nc, [&](const CommonAPI::CallStatus& callStatus){
+ return mLookupData.asyncSetSinkNotificationConfiguration(handle, sinkID, nc, [&](const CommonAPI::CallStatus& callStatus){
log(&ctxCommandCAPI, DLT_LOG_INFO, __PRETTY_FUNCTION__, "Response with call status:", static_cast<int16_t>(callStatus));
});
}
@@ -257,7 +252,7 @@ am_Error_e CAmRoutingSenderCAPI::asyncSetSinkNotificationConfiguration(const am_
am_Error_e CAmRoutingSenderCAPI::asyncSetSourceNotificationConfiguration(const am_Handle_s handle, const am_sourceID_t sourceID, const am_NotificationConfiguration_s& nc)
{
log(&ctxCommandCAPI, DLT_LOG_INFO, "CAmRoutingSenderDbus::asyncSetSourceNotificationConfiguration called");
- return mLookupData.asyncSetSourceNotificationConfiguration(handle.handle, sourceID, nc, [&](const CommonAPI::CallStatus& callStatus){
+ return mLookupData.asyncSetSourceNotificationConfiguration(handle, sourceID, nc, [&](const CommonAPI::CallStatus& callStatus){
log(&ctxCommandCAPI, DLT_LOG_INFO, __PRETTY_FUNCTION__, "Response with call status:", static_cast<int16_t>(callStatus));
});
}
diff --git a/PluginRoutingInterfaceCAPI/src/CAmRoutingSenderCommon.cpp b/PluginRoutingInterfaceCAPI/src/CAmRoutingSenderCommon.cpp
index c9f5876..e90c75a 100644
--- a/PluginRoutingInterfaceCAPI/src/CAmRoutingSenderCommon.cpp
+++ b/PluginRoutingInterfaceCAPI/src/CAmRoutingSenderCommon.cpp
@@ -22,7 +22,7 @@
* Utility functions
*/
-void CAmConvertCAPI2AM(const am_gen::am_Domain_s & source, am::am_Domain_s & destination)
+void CAmConvertCAPI2AM(const org::genivi::am::am_Domain_s & source, am::am_Domain_s & destination)
{
destination.domainID = source.domainID;
destination.name = source.name;
@@ -33,40 +33,40 @@ void CAmConvertCAPI2AM(const am_gen::am_Domain_s & source, am::am_Domain_s & des
destination.state = static_cast<am::am_DomainState_e>(source.state);
}
-void CAmConvertCAPI2AM(const am_gen::am_SoundProperty_s & source, am::am_SoundProperty_s & destination)
+void CAmConvertCAPI2AM(const org::genivi::am::am_SoundProperty_s & source, am::am_SoundProperty_s & destination)
{
destination.type = static_cast<am::am_SoundPropertyType_e>(source.type);
destination.value = source.value;
}
-void CAmConvertCAPIVector2AM(const std::vector<am_gen::am_SoundProperty_s> & source, std::vector<am::am_SoundProperty_s> & destination)
+void CAmConvertCAPIVector2AM(const std::vector<org::genivi::am::am_SoundProperty_s> & source, std::vector<am::am_SoundProperty_s> & destination)
{
am::am_SoundProperty_s soundProp;
destination.clear();
- for(std::vector<am_gen::am_SoundProperty_s>::const_iterator iter = source.begin(); iter!=source.end(); iter++)
+ for(std::vector<org::genivi::am::am_SoundProperty_s>::const_iterator iter = source.begin(); iter!=source.end(); ++iter)
{
CAmConvertCAPI2AM(*iter, soundProp);
destination.push_back(soundProp);
}
}
-void CAmConvertCAPI2AM(const am_gen::am_MainSoundProperty_s & source, am::am_MainSoundProperty_s & destination)
+void CAmConvertCAPI2AM(const org::genivi::am::am_MainSoundProperty_s & source, am::am_MainSoundProperty_s & destination)
{
destination.type = static_cast<am::am_MainSoundPropertyType_e>(source.type);
destination.value = source.value;
}
-void CAmConvertCAPI2AM(const am_gen::notificationPayload_s & source, am::am_NotificationPayload_s & destination)
+void CAmConvertCAPI2AM(const org::genivi::am::am_NotificationPayload_s & source, am::am_NotificationPayload_s & destination)
{
destination.type = static_cast<am::am_NotificationType_e>(source.type);
- destination.value = source.payload;
+ destination.value = source.value;
}
-void CAmConvertCAPIVector2AM(const std::vector<am_gen::am_Volumes_s> & source, std::vector<am::am_Volumes_s> & destination)
+void CAmConvertCAPIVector2AM(const std::vector<org::genivi::am::am_Volumes_s> & source, std::vector<am::am_Volumes_s> & destination)
{
destination.clear();
- for(std::vector<am_gen::am_Volumes_s>::const_iterator iter = source.begin(); iter!=source.end(); iter++)
+ for(std::vector<org::genivi::am::am_Volumes_s>::const_iterator iter = source.begin(); iter!=source.end(); ++iter)
{
am::am_Volumes_s volume;
CAmConvertCAPI2AM(*iter, volume);
@@ -74,45 +74,45 @@ void CAmConvertCAPIVector2AM(const std::vector<am_gen::am_Volumes_s> & source, s
}
}
-void CAmConvertCAPIVector2AM(const std::vector<am_gen::am_MainSoundProperty_s> & source, std::vector<am::am_MainSoundProperty_s> & destination)
+void CAmConvertCAPIVector2AM(const std::vector<org::genivi::am::am_MainSoundProperty_s> & source, std::vector<am::am_MainSoundProperty_s> & destination)
{
am::am_MainSoundProperty_s soundProp;
destination.clear();
- for(std::vector<am_gen::am_MainSoundProperty_s>::const_iterator iter = source.begin(); iter!=source.end(); iter++)
+ for(std::vector<org::genivi::am::am_MainSoundProperty_s>::const_iterator iter = source.begin(); iter!=source.end(); ++iter)
{
CAmConvertCAPI2AM(*iter, soundProp);
destination.push_back(soundProp);
}
}
-void CAmConvertCAPI2AM(const am_gen::am_NotificationConfiguration_s & source, am::am_NotificationConfiguration_s & destination)
+void CAmConvertCAPI2AM(const org::genivi::am::am_NotificationConfiguration_s & source, am::am_NotificationConfiguration_s & destination)
{
destination.type = static_cast<am::am_NotificationType_e>(source.type);
destination.status = static_cast<am::am_NotificationStatus_e>(source.status);
destination.parameter = source.parameter;
}
-void CAmConvertCAPIVector2AM(const std::vector<am_gen::am_NotificationConfiguration_s> & source, std::vector<am::am_NotificationConfiguration_s> & destination)
+void CAmConvertCAPIVector2AM(const std::vector<org::genivi::am::am_NotificationConfiguration_s> & source, std::vector<am::am_NotificationConfiguration_s> & destination)
{
am::am_NotificationConfiguration_s soundProp;
destination.clear();
- for(std::vector<am_gen::am_NotificationConfiguration_s>::const_iterator iter = source.begin(); iter!=source.end(); iter++)
+ for(std::vector<org::genivi::am::am_NotificationConfiguration_s>::const_iterator iter = source.begin(); iter!=source.end(); ++iter)
{
CAmConvertCAPI2AM(*iter, soundProp);
destination.push_back(soundProp);
}
}
-void CAmConvertCAPIVector2AM(const std::vector<am_gen::am_ConnectionFormat_e> & source, std::vector<am::am_ConnectionFormat_e> & destination)
+void CAmConvertCAPIVector2AM(const std::vector<org::genivi::am::am_ConnectionFormat_pe> & source, std::vector<am::am_ConnectionFormat_e> & destination)
{
destination.clear();
- for(std::vector<am_gen::am_ConnectionFormat_e>::const_iterator iter = source.begin(); iter!=source.end(); iter++)
+ for(std::vector<org::genivi::am::am_ConnectionFormat_pe>::const_iterator iter = source.begin(); iter!=source.end(); ++iter)
destination.push_back(static_cast<am::am_ConnectionFormat_e>(*iter));
}
-void CAmConvertCAPI2AM(const am_gen::sourceData_s & source, am::am_Source_s & destination)
+void CAmConvertCAPI2AM(const org::genivi::am::am_Source_s & source, am::am_Source_s & destination)
{
destination.sourceID = source.sourceID;
destination.domainID = source.domainID;
@@ -130,7 +130,7 @@ void CAmConvertCAPI2AM(const am_gen::sourceData_s & source, am::am_Source_s & de
CAmConvertCAPIVector2AM(source.listMainNotificationConfigurations, destination.listMainNotificationConfigurations);
}
-void CAmConvertCAPI2AM(const am_gen::sinkData_s & source, am::am_Sink_s & destination)
+void CAmConvertCAPI2AM(const org::genivi::am::am_Sink_s & source, am::am_Sink_s & destination)
{
destination.sinkID = source.sinkID;
destination.domainID = source.domainID;
@@ -148,7 +148,7 @@ void CAmConvertCAPI2AM(const am_gen::sinkData_s & source, am::am_Sink_s & destin
CAmConvertCAPIVector2AM(source.listMainNotificationConfigurations, destination.listMainNotificationConfigurations);
}
-void CAmConvertCAPI2AM(const am_gen::am_Volumes_s & source, am::am_Volumes_s & destination)
+void CAmConvertCAPI2AM(const org::genivi::am::am_Volumes_s & source, am::am_Volumes_s & destination)
{
CAmConvertCAPI2AM(source.volumeID, destination.volumeID);
destination.volume = source.volume;
@@ -158,7 +158,7 @@ void CAmConvertCAPI2AM(const am_gen::am_Volumes_s & source, am::am_Volumes_s & d
}
-void CAmConvertCAPI2AM(const am_gen::crossfaderData_s & source, am::am_Crossfader_s & destination)
+void CAmConvertCAPI2AM(const org::genivi::am::am_Crossfader_s & source, am::am_Crossfader_s & destination)
{
destination.crossfaderID = source.crossfaderID;
destination.sinkID_A = source.sinkID_A;
@@ -169,7 +169,7 @@ void CAmConvertCAPI2AM(const am_gen::crossfaderData_s & source, am::am_Crossfade
}
-void CAmConvertCAPI2AM(const am_gen::am_Gateway_s & source, am::am_Gateway_s & destination)
+void CAmConvertCAPI2AM(const org::genivi::am::am_Gateway_s & source, am::am_Gateway_s & destination)
{
destination.sinkID = source.sinkID;
destination.gatewayID = source.gatewayID;
@@ -183,37 +183,37 @@ void CAmConvertCAPI2AM(const am_gen::am_Gateway_s & source, am::am_Gateway_s & d
destination.convertionMatrix = source.convertionMatrix;
}
-void CAmConvertCAPI2AM(const am_gen::am_EarlyData_u & source, am::am_EarlyData_u & destination)
+void CAmConvertCAPI2AM(const org::genivi::am::am_EarlyData_u & source, am::am_EarlyData_u & destination)
{
- if(source.isType<am_gen::am_volume_t>())
+ if(source.isType<org::genivi::am::am_volume_t>())
{
- am_volume_t value = static_cast<am_volume_t>(source.get<am_gen::am_volume_t>());
+ am_volume_t value = static_cast<am_volume_t>(source.get<org::genivi::am::am_volume_t>());
destination.volume = value;
}
- else if(source.isType<am_gen::am_SoundProperty_s>())
+ else if(source.isType<org::genivi::am::am_SoundProperty_s>())
{
- am_gen::am_SoundProperty_s value = source.get<am_gen::am_SoundProperty_s>();
+ org::genivi::am::am_SoundProperty_s value = source.get<org::genivi::am::am_SoundProperty_s>();
am_SoundProperty_s converted;
CAmConvertCAPI2AM(value, converted);
destination.soundProperty = converted;
}
}
-void CAmConvertCAPI2AM(const am_gen::am_DataType_u & source, am::am_DataType_u & destination)
+void CAmConvertCAPI2AM(const org::genivi::am::am_DataType_u & source, am::am_DataType_u & destination)
{
- if(source.isType<am_gen::am_sinkID_t>())
+ if(source.isType<org::genivi::am::am_sinkID_t>())
{
- am_sinkID_t value = static_cast<am_sinkID_t>(source.get<am_gen::am_sinkID_t>());
+ am_sinkID_t value = static_cast<am_sinkID_t>(source.get<org::genivi::am::am_sinkID_t>());
destination.sink = value;
}
- else if(source.isType<am_gen::am_sourceID_t>())
+ else if(source.isType<org::genivi::am::am_sourceID_t>())
{
- am_sourceID_t value = static_cast<am_sourceID_t>(source.get<am_gen::am_sourceID_t>());
+ am_sourceID_t value = static_cast<am_sourceID_t>(source.get<org::genivi::am::am_sourceID_t>());
destination.source = value;
}
}
-void CAmConvertCAPI2AM(const am_gen::am_EarlyData_s & source, am::am_EarlyData_s & destination)
+void CAmConvertCAPI2AM(const org::genivi::am::am_EarlyData_s & source, am::am_EarlyData_s & destination)
{
CAmConvertCAPI2AM(source.data, destination.data);
CAmConvertCAPI2AM(source.sinksource, destination.sinksource);
@@ -221,60 +221,84 @@ void CAmConvertCAPI2AM(const am_gen::am_EarlyData_s & source, am::am_EarlyData_s
}
-void CAmConvertCAPI2AM(const am_gen::am_Availability_s & source, am_Availability_s & destination)
+void CAmConvertCAPI2AM(const org::genivi::am::am_Availability_s & source, am_Availability_s & destination)
{
destination.availability = static_cast<am_Availability_e>(source.availability);
destination.availabilityReason = static_cast<am_AvailabilityReason_e>(source.availabilityReason);
}
-void CAmConvertAM2CAPI(const am_Availability_s & source, am_gen::am_Availability_s & destination)
+void CAmConvertCAPI2AM(const org::genivi::am::am_Handle_s& source, am_Handle_s& destination)
+{
+ destination.handle = static_cast<int16_t>(source.handle);
+ destination.handleType = static_cast<am_Handle_e>(source.handleType);
+}
+
+void CAmConvertAM2CAPI(const am_Availability_s & source, org::genivi::am::am_Availability_s & destination)
{
- destination.availability = static_cast<am_gen::am_Availability_e>(source.availability);
- destination.availabilityReason = static_cast<am_gen::am_AvailabilityReason_e>(source.availabilityReason);
+ destination.availability = static_cast<org::genivi::am::am_Availability_e>(source.availability);
+ destination.availabilityReason = static_cast<org::genivi::am::am_AvailabilityReason_pe>(source.availabilityReason);
}
-void CAmConvertAM2CAPI(const am::am_SoundProperty_s & source, am_gen::am_SoundProperty_s & destination)
+void CAmConvertAM2CAPI(const am::am_SoundProperty_s & source, org::genivi::am::am_SoundProperty_s & destination)
{
- destination.type = static_cast<am_gen::am_SoundPropertyType_e>(source.type);
+ destination.type = static_cast<org::genivi::am::am_SoundPropertyType_pe>(source.type);
destination.value = source.value;
}
-void CAmConvertAM2CAPI(const am::am_NotificationConfiguration_s & source, am_gen::am_NotificationConfiguration_s & destination)
+extern void CAmConvertAM2CAPI(const am::am_Handle_s& source,
+ org::genivi::am::am_Handle_s& destination)
+{
+ destination.handle = static_cast<uint16_t>(source.handle);
+ destination.handleType = static_cast<org::genivi::am::am_Handle_e>(source.handleType);
+}
+
+
+void CAmConvertAM2CAPI(const am::am_NotificationConfiguration_s & source, org::genivi::am::am_NotificationConfiguration_s & destination)
{
- destination.type = static_cast<am_gen::am_NotificationType_e>(source.type);
- destination.status = static_cast<am_gen::am_NotificationStatus_e>(source.status);
+ destination.type = static_cast<org::genivi::am::am_NotificationType_pe>(source.type);
+ destination.status = static_cast<org::genivi::am::am_NotificationStatus_e>(source.status);
destination.parameter = source.parameter;
}
-void CAmConvertAM2CAPI(const am::am_Volumes_s & source, am_gen::am_Volumes_s & destination)
+void CAmConvertAM2CAPI(const am::am_Volumes_s & source, org::genivi::am::am_Volumes_s & destination)
{
if(source.volumeType == VT_SINK)
- destination.volumeID = am_gen::am_DataType_u(static_cast<am_gen::am_sinkID_t>(source.volumeID.sink));
+ destination.volumeID = org::genivi::am::am_DataType_u(static_cast<org::genivi::am::am_sinkID_t>(source.volumeID.sink));
else if(source.volumeType == VT_SOURCE)
- destination.volumeID = am_gen::am_DataType_u(static_cast<am_gen::am_sourceID_t>(source.volumeID.source));
- destination.volumeType = static_cast<am_gen::am_VolumeType_e>(source.volumeType);
- destination.volume = static_cast<am_gen::am_volume_t>(source.volume);
- destination.ramp = static_cast<am_gen::am_RampType_e>(source.ramp);
- destination.time = static_cast<am_gen::am_time_t>(source.time);
+ destination.volumeID = org::genivi::am::am_DataType_u(static_cast<org::genivi::am::am_sourceID_t>(source.volumeID.source));
+ destination.volumeType = static_cast<org::genivi::am::am_VolumeType_e>(source.volumeType);
+ destination.volume = static_cast<org::genivi::am::am_volume_t>(source.volume);
+ destination.ramp = static_cast<org::genivi::am::am_RampType_pe>(source.ramp);
+ destination.time = static_cast<org::genivi::am::am_time_t>(source.time);
}
-
-void CAmConvertAMVector2CAPI(const std::vector<am::am_Volumes_s> & source, std::vector<am_gen::am_Volumes_s> & destination)
+void CAmConvertAMVector2CAPI(const std::vector<am::am_Volumes_s> & source, org::genivi::am::am_Volumes_L & destination)
{
destination.clear();
- for(std::vector<am::am_Volumes_s>::const_iterator iter = source.begin(); iter!=source.end(); iter++)
+ for(std::vector<am::am_Volumes_s>::const_iterator iter = source.begin(); iter!=source.end(); ++iter)
{
- am_gen::am_Volumes_s volume;
+ org::genivi::am::am_Volumes_s volume;
CAmConvertAM2CAPI(*iter, volume);
destination.push_back(volume);
}
}
-void CAmConvertAMVector2CAPI(const std::vector<am::am_SoundProperty_s> & source, std::vector<am_gen::am_SoundProperty_s> & destination)
+void CAmConvertCAPIVector2AM(const org::genivi::am::am_EarlyData_L& source,std::vector<am::am_EarlyData_s>& destination)
+{
+ destination.clear();
+ for (org::genivi::am::am_EarlyData_L::const_iterator iter = source.begin(); iter!=source.end(); ++iter)
+ {
+ am_EarlyData_s earlyData;
+ CAmConvertCAPI2AM(*iter,earlyData);
+ destination.push_back(earlyData);
+ }
+}
+
+void CAmConvertAMVector2CAPI(const std::vector<am::am_SoundProperty_s> & source, std::vector<org::genivi::am::am_SoundProperty_s> & destination)
{
- am_gen::am_SoundProperty_s soundProp;
+ org::genivi::am::am_SoundProperty_s soundProp;
destination.clear();
- for(std::vector<am::am_SoundProperty_s>::const_iterator iter = source.begin(); iter!=source.end(); iter++)
+ for(std::vector<am::am_SoundProperty_s>::const_iterator iter = source.begin(); iter!=source.end(); ++iter)
{
CAmConvertAM2CAPI(*iter, soundProp);
destination.push_back(soundProp);
diff --git a/PluginRoutingInterfaceCAPI/src/CAmRoutingService.cpp b/PluginRoutingInterfaceCAPI/src/CAmRoutingService.cpp
index c50cfed..4b2f369 100644
--- a/PluginRoutingInterfaceCAPI/src/CAmRoutingService.cpp
+++ b/PluginRoutingInterfaceCAPI/src/CAmRoutingService.cpp
@@ -39,131 +39,118 @@ CAmRoutingService::~CAmRoutingService() {
// TODO Auto-generated destructor stub
}
-void CAmRoutingService::ackConnect(uint16_t handle, am_gen::am_connectionID_t connectionID, uint16_t error) {
+void CAmRoutingService::ackConnect(org::genivi::am::am_Handle_s handle, org::genivi::am::am_connectionID_t connectionID, org::genivi::am::am_Error_e error) {
assert(mpIAmRoutingReceive);
assert(mpLookpData);
am_Handle_s handle_s;
- handle_s.handle = handle;
- handle_s.handleType = H_CONNECT;
+ CAmConvertCAPI2AM(handle,handle_s);
mpIAmRoutingReceive->ackConnect(handle_s, static_cast<am_connectionID_t>(connectionID), static_cast<am_Error_e>(error));
- mpLookpData->removeHandle(handle);
+ mpLookpData->removeHandle(handle_s);
}
-void CAmRoutingService::ackDisconnect(uint16_t handle, am_gen::am_connectionID_t connectionID, uint16_t error) {
+void CAmRoutingService::ackDisconnect(org::genivi::am::am_Handle_s handle , org::genivi::am::am_connectionID_t connectionID, org::genivi::am::am_Error_e error) {
assert(mpIAmRoutingReceive);
assert(mpLookpData);
am_Handle_s handle_s;
- handle_s.handle = handle;
- handle_s.handleType = H_DISCONNECT;
+ CAmConvertCAPI2AM(handle,handle_s);
mpIAmRoutingReceive->ackDisconnect(handle_s, static_cast<am_connectionID_t>(connectionID), static_cast<am_Error_e>(error));
- mpLookpData->removeHandle(handle);
- //todo: Check whether the connection should be removed here!
+ mpLookpData->removeHandle(handle_s);
mpLookpData->removeConnectionLookup(connectionID);
}
-void CAmRoutingService::ackSetSinkVolume(uint16_t handle, am_gen::am_volume_t volume, uint16_t error) {
+void CAmRoutingService::ackSetSinkVolumeChange(org::genivi::am::am_Handle_s handle , org::genivi::am::am_volume_t volume, org::genivi::am::am_Error_e error) {
assert(mpIAmRoutingReceive);
assert(mpLookpData);
am_Handle_s handle_s;
- handle_s.handle = handle;
- handle_s.handleType = H_SETSINKVOLUME;
+ CAmConvertCAPI2AM(handle,handle_s);
mpIAmRoutingReceive->ackSetSinkVolumeChange(handle_s, volume, static_cast<am_Error_e>(error));
- mpLookpData->removeHandle(handle);
+ mpLookpData->removeHandle(handle_s);
}
-void CAmRoutingService::ackSetSourceVolume(uint16_t handle, am_gen::am_volume_t volume, uint16_t error) {
+void CAmRoutingService::ackSetSourceVolumeChange(org::genivi::am::am_Handle_s handle, org::genivi::am::am_volume_t volume, org::genivi::am::am_Error_e error){
assert(mpIAmRoutingReceive);
assert(mpLookpData);
am_Handle_s handle_s;
- handle_s.handle = handle;
- handle_s.handleType = H_SETSOURCEVOLUME;
+ CAmConvertCAPI2AM(handle,handle_s);
mpIAmRoutingReceive->ackSetSourceVolumeChange(handle_s, volume, static_cast<am_Error_e>(error));
- mpLookpData->removeHandle(handle);
+ mpLookpData->removeHandle(handle_s);
}
-void CAmRoutingService::ackSetSourceState(uint16_t handle, uint16_t error) {
+void CAmRoutingService::ackSetSourceState(org::genivi::am::am_Handle_s handle, org::genivi::am::am_Error_e error) {
assert(mpIAmRoutingReceive);
assert(mpLookpData);
am_Handle_s handle_s;
- handle_s.handle = handle;
- handle_s.handleType = H_SETSOURCESTATE;
+ CAmConvertCAPI2AM(handle,handle_s);
mpIAmRoutingReceive->ackSetSourceState(handle_s,static_cast<am_Error_e>(error));
- mpLookpData->removeHandle(handle);
+ mpLookpData->removeHandle(handle_s);
}
-void CAmRoutingService::ackSetSinkSoundProperties(uint16_t handle, uint16_t error) {
+void CAmRoutingService::ackSetSinkSoundProperties(org::genivi::am::am_Handle_s handle, org::genivi::am::am_Error_e error){
assert(mpIAmRoutingReceive);
assert(mpLookpData);
am_Handle_s handle_s;
- handle_s.handle = handle;
- handle_s.handleType = H_SETSINKSOUNDPROPERTIES;
+ CAmConvertCAPI2AM(handle,handle_s);
mpIAmRoutingReceive->ackSetSinkSoundProperties(handle_s, static_cast<am_Error_e>(error));
- mpLookpData->removeHandle(handle);
+ mpLookpData->removeHandle(handle_s);
}
-void CAmRoutingService::ackSetSinkSoundProperty(uint16_t handle, uint16_t error) {
+void CAmRoutingService::ackSetSinkSoundProperty(org::genivi::am::am_Handle_s handle, org::genivi::am::am_Error_e error) {
assert(mpIAmRoutingReceive);
assert(mpLookpData);
am_Handle_s handle_s;
- handle_s.handle = handle;
- handle_s.handleType = H_SETSINKSOUNDPROPERTY;
+ CAmConvertCAPI2AM(handle,handle_s);
mpIAmRoutingReceive->ackSetSinkSoundProperty(handle_s, static_cast<am_Error_e>(error));
- mpLookpData->removeHandle(handle);
+ mpLookpData->removeHandle(handle_s);
}
-void CAmRoutingService::ackSetSourceSoundProperties(uint16_t handle, uint16_t error) {
+void CAmRoutingService::ackSetSourceSoundProperties(org::genivi::am::am_Handle_s handle, org::genivi::am::am_Error_e error) {
assert(mpIAmRoutingReceive);
assert(mpLookpData);
am_Handle_s handle_s;
- handle_s.handle = handle;
- handle_s.handleType = H_SETSOURCESOUNDPROPERTIES;
+ CAmConvertCAPI2AM(handle,handle_s);
mpIAmRoutingReceive->ackSetSourceSoundProperties(handle_s, static_cast<am_Error_e>(error));
- mpLookpData->removeHandle(handle);
+ mpLookpData->removeHandle(handle_s);
}
-void CAmRoutingService::ackSetSourceSoundProperty(uint16_t handle, uint16_t error) {
+void CAmRoutingService::ackSetSourceSoundProperty(org::genivi::am::am_Handle_s handle, org::genivi::am::am_Error_e error) {
assert(mpIAmRoutingReceive);
assert(mpLookpData);
am_Handle_s handle_s;
- handle_s.handle = handle;
- handle_s.handleType = H_SETSOURCESOUNDPROPERTY;
+ CAmConvertCAPI2AM(handle,handle_s);
mpIAmRoutingReceive->ackSetSourceSoundProperty(handle_s, static_cast<am_Error_e>(error));
- mpLookpData->removeHandle(handle);
+ mpLookpData->removeHandle(handle_s);
}
-void CAmRoutingService::ackCrossFading(uint16_t handle, am_gen::am_HotSink_e hotSink, am_gen::am_Error_e returnError) {
+void CAmRoutingService::ackCrossFading(org::genivi::am::am_Handle_s handle, org::genivi::am::am_HotSink_e hotSink, org::genivi::am::am_Error_e error) {
assert(mpIAmRoutingReceive);
assert(mpLookpData);
am_Handle_s handle_s;
- handle_s.handle = handle;
- handle_s.handleType = H_CROSSFADE;
- mpIAmRoutingReceive->ackCrossFading(handle_s, static_cast<am_HotSink_e>(hotSink), static_cast<am_Error_e>(returnError));
- mpLookpData->removeHandle(handle);
+ CAmConvertCAPI2AM(handle,handle_s);
+ mpIAmRoutingReceive->ackCrossFading(handle_s, static_cast<am_HotSink_e>(hotSink), static_cast<am_Error_e>(error));
+ mpLookpData->removeHandle(handle_s);
}
-void CAmRoutingService::ackSourceVolumeTick(uint16_t handle, am_gen::am_sourceID_t source, am_gen::am_volume_t volume) {
+void CAmRoutingService::ackSourceVolumeTick(org::genivi::am::am_Handle_s handle, org::genivi::am::am_sourceID_t source, org::genivi::am::am_volume_t volume) {
assert(mpIAmRoutingReceive);
assert(mpLookpData);
am_Handle_s handle_s;
- handle_s.handle = handle;
- handle_s.handleType = H_SETSOURCEVOLUME;
+ CAmConvertCAPI2AM(handle,handle_s);
mpIAmRoutingReceive->ackSourceVolumeTick(handle_s, source, volume);
}
-void CAmRoutingService::ackSinkVolumeTick(uint16_t handle, am_gen::am_sinkID_t sink, am_gen::am_volume_t volume) {
+void CAmRoutingService::ackSinkVolumeTick(org::genivi::am::am_Handle_s handle, org::genivi::am::am_sinkID_t sink, org::genivi::am::am_volume_t volume) {
assert(mpIAmRoutingReceive);
am_Handle_s handle_s;
- handle_s.handle = handle;
- handle_s.handleType = H_SETSINKVOLUME;
+ CAmConvertCAPI2AM(handle,handle_s);
mpIAmRoutingReceive->ackSinkVolumeTick(handle_s, sink, volume);
}
-void CAmRoutingService::peekDomain(std::string name, am_gen::am_domainID_t& domainID, am_gen::am_Error_e& error) {
+void CAmRoutingService::peekDomain(std::string name, org::genivi::am::am_domainID_t& domainID, org::genivi::am::am_Error_e& error) {
assert(mpIAmRoutingReceive);
- error = static_cast<am_gen::am_Error_e>(mpIAmRoutingReceive->peekDomain(name, domainID));
+ error = static_cast<org::genivi::am::am_Error_e>(mpIAmRoutingReceive->peekDomain(name, domainID));
}
-void CAmRoutingService::registerDomain(am_gen::am_Domain_s domainData, std::string returnBusname, std::string, std::string returnInterface, am_gen::am_domainID_t& domainID, am_gen::am_Error_e& error) {
+void CAmRoutingService::registerDomain(org::genivi::am::am_Domain_s domainData, std::string returnBusname, std::string, std::string returnInterface, org::genivi::am::am_domainID_t& domainID, org::genivi::am::am_Error_e& error) {
assert(mpIAmRoutingReceive);
assert(mpLookpData);
assert(mpCAmCAPIWrapper);
@@ -171,182 +158,150 @@ void CAmRoutingService::registerDomain(am_gen::am_Domain_s domainData, std::stri
CAmConvertCAPI2AM(domainData, converted);
converted.busname = CAmLookupData::BUS_NAME;
am_Error_e resultCode = mpIAmRoutingReceive->registerDomain(converted, domainID);
- error = static_cast<am_gen::am_Error_e>(resultCode);
+ error = static_cast<org::genivi::am::am_Error_e>(resultCode);
if(E_OK==resultCode)
{
std::shared_ptr<CommonAPI::Factory> factory = mpCAmCAPIWrapper->factory();
- std::shared_ptr<RoutingSenderProxy<>> shpSenderProxy = factory->buildProxy<RoutingSenderProxy>(returnBusname, returnInterface , "local");
+ std::shared_ptr<org::genivi::am::RoutingControlProxy<>> shpSenderProxy = factory->buildProxy<org::genivi::am::RoutingControlProxy>(returnBusname, returnInterface , "local");
mpLookpData->addDomainLookup(domainID, shpSenderProxy);
}
}
-void CAmRoutingService::deregisterDomain(am_gen::am_domainID_t domainID, am_gen::am_Error_e& returnError) {
+void CAmRoutingService::deregisterDomain(org::genivi::am::am_domainID_t domainID, org::genivi::am::am_Error_e& returnError) {
assert(mpIAmRoutingReceive);
assert(mpLookpData);
- returnError = static_cast<am_gen::am_Error_e>(mpIAmRoutingReceive->deregisterDomain(domainID));
- if(am_gen::am_Error_e::E_OK==returnError)
+ returnError = static_cast<org::genivi::am::am_Error_e>(mpIAmRoutingReceive->deregisterDomain(domainID));
+ if(org::genivi::am::am_Error_e::E_OK==returnError)
mpLookpData->removeDomainLookup(domainID);
}
-void CAmRoutingService::registerGateway(am_gen::am_Gateway_s gatewayData, am_gen::am_gatewayID_t& gatewayID, am_gen::am_Error_e& error) {
+void CAmRoutingService::registerGateway(org::genivi::am::am_Gateway_s gatewayData, org::genivi::am::am_gatewayID_t& gatewayID, org::genivi::am::am_Error_e& error) {
assert(mpIAmRoutingReceive);
am_Gateway_s converted;
CAmConvertCAPI2AM(gatewayData, converted);
- error = static_cast<am_gen::am_Error_e>(mpIAmRoutingReceive->registerGateway(converted, gatewayID));
+ error = static_cast<org::genivi::am::am_Error_e>(mpIAmRoutingReceive->registerGateway(converted, gatewayID));
}
-void CAmRoutingService::deregisterGateway(am_gen::am_gatewayID_t gatewayID, am_gen::am_Error_e& returnError) {
- returnError = static_cast<am_gen::am_Error_e>(mpIAmRoutingReceive->deregisterGateway(gatewayID));
+void CAmRoutingService::deregisterGateway(org::genivi::am::am_gatewayID_t gatewayID, org::genivi::am::am_Error_e& returnError) {
+ returnError = static_cast<org::genivi::am::am_Error_e>(mpIAmRoutingReceive->deregisterGateway(gatewayID));
}
-void CAmRoutingService::peekSink(std::string name, am_gen::am_sinkID_t& sinkID, am_gen::am_Error_e& error) {
+void CAmRoutingService::peekSink(std::string name, org::genivi::am::am_sinkID_t& sinkID, org::genivi::am::am_Error_e& error) {
assert(mpIAmRoutingReceive);
- error = static_cast<am_gen::am_Error_e>(mpIAmRoutingReceive->peekSink(name, sinkID));
+ error = static_cast<org::genivi::am::am_Error_e>(mpIAmRoutingReceive->peekSink(name, sinkID));
}
-void CAmRoutingService::registerSink(am_gen::sinkData_s sinkData, am_gen::am_sinkID_t& sinkID, am_gen::am_Error_e& error) {
+void CAmRoutingService::registerSink(org::genivi::am::am_Sink_s sinkData, org::genivi::am::am_sinkID_t& sinkID, org::genivi::am::am_Error_e& error) {
assert(mpIAmRoutingReceive);
assert(mpLookpData);
am_Sink_s converted;
CAmConvertCAPI2AM(sinkData, converted);
am_Error_e result = mpIAmRoutingReceive->registerSink(converted, sinkID);
- error = static_cast<am_gen::am_Error_e>(result);
+ error = static_cast<org::genivi::am::am_Error_e>(result);
if(E_OK==result)
mpLookpData->addSinkLookup(sinkID, converted.domainID);
}
-void CAmRoutingService::deregisterSink(am_gen::am_sinkID_t sinkID, am_gen::am_Error_e& returnError) {
+void CAmRoutingService::deregisterSink(org::genivi::am::am_sinkID_t sinkID, org::genivi::am::am_Error_e& returnError) {
assert(mpIAmRoutingReceive);
assert(mpLookpData);
- returnError = static_cast<am_gen::am_Error_e>(mpIAmRoutingReceive->deregisterSink(sinkID));
- if(returnError==am_gen::am_Error_e::E_OK)
+ returnError = static_cast<org::genivi::am::am_Error_e>(mpIAmRoutingReceive->deregisterSink(sinkID));
+ if(returnError==org::genivi::am::am_Error_e::E_OK)
mpLookpData->removeSinkLookup(sinkID);
}
-void CAmRoutingService::peekSource(std::string name, am_gen::am_sourceID_t& sourceID, am_gen::am_Error_e& error) {
+void CAmRoutingService::peekSource(std::string name, org::genivi::am::am_sourceID_t& sourceID, org::genivi::am::am_Error_e& error) {
assert(mpIAmRoutingReceive);
- error = static_cast<am_gen::am_Error_e>(mpIAmRoutingReceive->peekSource(name, sourceID));
+ error = static_cast<org::genivi::am::am_Error_e>(mpIAmRoutingReceive->peekSource(name, sourceID));
}
-void CAmRoutingService::registerSource(am_gen::sourceData_s sourceData, am_gen::am_sourceID_t& sourceID, am_gen::am_Error_e& error) {
+void CAmRoutingService::registerSource(org::genivi::am::am_Source_s sourceData, org::genivi::am::am_sourceID_t& sourceID, org::genivi::am::am_Error_e& error) {
assert(mpIAmRoutingReceive);
assert(mpLookpData);
am_Source_s converted;
CAmConvertCAPI2AM(sourceData, converted);
- error = static_cast<am_gen::am_Error_e>(mpIAmRoutingReceive->registerSource(converted, sourceID));
- if(error==am_gen::am_Error_e::E_OK)
+ error = static_cast<org::genivi::am::am_Error_e>(mpIAmRoutingReceive->registerSource(converted, sourceID));
+ if(error==org::genivi::am::am_Error_e::E_OK)
mpLookpData->addSourceLookup(sourceID, sourceData.domainID);
}
-void CAmRoutingService::deregisterSource(am_gen::am_sourceID_t sourceID, am_gen::am_Error_e& returnError) {
+void CAmRoutingService::deregisterSource(org::genivi::am::am_sourceID_t sourceID, org::genivi::am::am_Error_e& returnError) {
assert(mpIAmRoutingReceive);
assert(mpLookpData);
- returnError = static_cast<am_gen::am_Error_e>(mpIAmRoutingReceive->deregisterSource(sourceID));
- if(returnError==am_gen::am_Error_e::E_OK)
+ returnError = static_cast<org::genivi::am::am_Error_e>(mpIAmRoutingReceive->deregisterSource(sourceID));
+ if(returnError==org::genivi::am::am_Error_e::E_OK)
mpLookpData->removeSourceLookup(sourceID);
}
-void CAmRoutingService::registerCrossfader(am_gen::crossfaderData_s crossfaderData, am_gen::am_crossfaderID_t& crossfaderID, am_gen::am_Error_e& error) {
+void CAmRoutingService::registerCrossfader(org::genivi::am::am_Crossfader_s crossfaderData, org::genivi::am::am_crossfaderID_t& crossfaderID, org::genivi::am::am_Error_e& error) {
assert(mpIAmRoutingReceive);
am_Crossfader_s converted;
CAmConvertCAPI2AM(crossfaderData, converted);
- error = static_cast<am_gen::am_Error_e>(mpIAmRoutingReceive->registerCrossfader(converted, crossfaderID));
- if(error==am_gen::am_Error_e::E_OK)
+ error = static_cast<org::genivi::am::am_Error_e>(mpIAmRoutingReceive->registerCrossfader(converted, crossfaderID));
+ if(error==org::genivi::am::am_Error_e::E_OK)
mpLookpData->addCrossfaderLookup(crossfaderID, crossfaderData.sourceID);
}
-void CAmRoutingService::deregisterCrossfader(am_gen::am_crossfaderID_t crossfaderID, am_gen::am_Error_e& returnError) {
+void CAmRoutingService::deregisterCrossfader(org::genivi::am::am_crossfaderID_t crossfaderID, org::genivi::am::am_Error_e& returnError) {
assert(mpIAmRoutingReceive);
- returnError = static_cast<am_gen::am_Error_e>(mpIAmRoutingReceive->deregisterCrossfader(crossfaderID));
- if(returnError==am_gen::am_Error_e::E_OK)
+ returnError = static_cast<org::genivi::am::am_Error_e>(mpIAmRoutingReceive->deregisterCrossfader(crossfaderID));
+ if(returnError==org::genivi::am::am_Error_e::E_OK)
mpLookpData->removeCrossfaderLookup(crossfaderID);
}
-void CAmRoutingService::peekSourceClassID(std::string name, am_gen::am_sourceClass_t& sourceClassID, am_gen::am_Error_e& error) {
- error = static_cast<am_gen::am_Error_e>(mpIAmRoutingReceive->peekSourceClassID(name, sourceClassID));
+void CAmRoutingService::peekSourceClassID(std::string name, org::genivi::am::am_sourceClass_t& sourceClassID, org::genivi::am::am_Error_e& error) {
+ error = static_cast<org::genivi::am::am_Error_e>(mpIAmRoutingReceive->peekSourceClassID(name, sourceClassID));
}
-void CAmRoutingService::peekSinkClassID(std::string name, am_gen::am_sinkClass_t& sinkClassID, am_gen::am_Error_e& error) {
+void CAmRoutingService::peekSinkClassID(std::string name, org::genivi::am::am_sinkClass_t& sinkClassID, org::genivi::am::am_Error_e& error) {
assert(mpIAmRoutingReceive);
- error = static_cast<am_gen::am_Error_e>(mpIAmRoutingReceive->peekSinkClassID(name, sinkClassID));
+ error = static_cast<org::genivi::am::am_Error_e>(mpIAmRoutingReceive->peekSinkClassID(name, sinkClassID));
}
-void CAmRoutingService::hookInterruptStatusChange(am_gen::am_sourceID_t sourceID, uint16_t interruptState) {
+void CAmRoutingService::hookInterruptStatusChange(org::genivi::am::am_sourceID_t sourceID, org::genivi::am::am_InterruptState_e InterruptState) {
assert(mpIAmRoutingReceive);
- mpIAmRoutingReceive->hookInterruptStatusChange(sourceID, static_cast<am_InterruptState_e>(interruptState));
+ mpIAmRoutingReceive->hookInterruptStatusChange(sourceID, static_cast<am_InterruptState_e>(InterruptState));
}
-void CAmRoutingService::hookDomainRegistrationComplete(am_gen::am_domainID_t domainID) {
+void CAmRoutingService::hookDomainRegistrationComplete(org::genivi::am::am_domainID_t domainID) {
assert(mpIAmRoutingReceive != NULL);
mpIAmRoutingReceive->hookDomainRegistrationComplete(domainID);
}
-void CAmRoutingService::hookSinkAvailablityStatusChange(am_gen::am_sinkID_t sinkID, am_gen::am_Availability_s availability) {
+void CAmRoutingService::hookSinkAvailablityStatusChange(org::genivi::am::am_sinkID_t sinkID, org::genivi::am::am_Availability_s availability) {
assert(mpIAmRoutingReceive);
am_Availability_s am_avialabilty;
CAmConvertCAPI2AM(availability, am_avialabilty);
mpIAmRoutingReceive->hookSinkAvailablityStatusChange(sinkID, am_avialabilty);
}
-void CAmRoutingService::hookSourceAvailablityStatusChange(am_gen::am_sourceID_t sourceID, am_gen::am_Availability_s availability) {
+void CAmRoutingService::hookSourceAvailablityStatusChange(org::genivi::am::am_sourceID_t sourceID, org::genivi::am::am_Availability_s availability) {
assert(mpIAmRoutingReceive);
am_Availability_s am_availabilty;
CAmConvertCAPI2AM(availability, am_availabilty);
mpIAmRoutingReceive->hookSourceAvailablityStatusChange(sourceID, am_availabilty);
}
-void CAmRoutingService::hookDomainStateChange(am_gen::am_domainID_t domainID, am_gen::am_DomainState_e domainState) {
+void CAmRoutingService::hookDomainStateChange(org::genivi::am::am_domainID_t domainID, org::genivi::am::am_DomainState_e domainState) {
assert(mpIAmRoutingReceive);
am_DomainState_e am_domainState = static_cast<am_DomainState_e>(domainState);
mpIAmRoutingReceive->hookDomainStateChange(domainID, am_domainState);
}
-void CAmRoutingService::hookTimingInformationChanged(am_gen::am_connectionID_t connectionID, int16_t delay) {
+void CAmRoutingService::hookTimingInformationChanged(org::genivi::am::am_connectionID_t connectionID, int16_t delay) {
assert(mpIAmRoutingReceive);
mpIAmRoutingReceive->hookTimingInformationChanged(connectionID, delay);
}
-void CAmRoutingService::sendChangedData(am_gen::am_EarlyData_l earlyData_volumes, am_gen::am_EarlyData_l earlyData_soundproperties) {
+void CAmRoutingService::sendChangedData(org::genivi::am::am_EarlyData_L earlyData) {
assert(mpIAmRoutingReceive);
- std::vector<am_EarlyData_s> earlyData;
- auto func = [&](const am_gen::am_EarlyData_s &refObject)
- {
- am_EarlyData_s object;
- CAmConvertCAPI2AM(refObject, object);
- earlyData.push_back(object);
- };
- std::for_each(earlyData_volumes.begin(), earlyData_volumes.end(), func);
- std::for_each(earlyData_soundproperties.begin(), earlyData_soundproperties.end(), func);
- mpIAmRoutingReceive->sendChangedData(earlyData);
-}
-
-void CAmRoutingService::gotReady(int16_t numberDomains, uint16_t handle)
-{
- mReady=true;
- mNumberDomains=numberDomains;
- mHandle=handle;
-}
-
-void CAmRoutingService::gotRundown(int16_t numberDomains, uint16_t handle)
-{
- mReady=false;
- mNumberDomains=numberDomains;
- mHandle=handle;
-}
-
-void CAmRoutingService::confirmRoutingReady(am_gen::am_domainID_t) {
- mpIAmRoutingReceive->confirmRoutingReady(mHandle, E_OK);
- mNumberDomains++;
-}
-
-void CAmRoutingService::confirmRoutingRundown(am_gen::am_domainID_t) {
- assert(mpIAmRoutingReceive);
- mpIAmRoutingReceive->confirmRoutingRundown(mHandle, E_OK);
- mNumberDomains--;
+ std::vector<am_EarlyData_s> dest;
+ CAmConvertCAPIVector2AM(earlyData,dest);
+ mpIAmRoutingReceive->sendChangedData(dest);
}
-void CAmRoutingService::updateGateway(am_gen::am_gatewayID_t gatewayID, am_gen::am_ConnectionFormat_L listSourceFormats, am_gen::am_ConnectionFormat_L listSinkFormats, am_gen::bool_L convertionMatrix) {
+void CAmRoutingService::updateGateway(org::genivi::am::am_gatewayID_t gatewayID, org::genivi::am::am_ConnectionFormat_L listSourceFormats, org::genivi::am::am_ConnectionFormat_L listSinkFormats, org::genivi::am::am_Convertion_L convertionMatrix, org::genivi::am::am_Error_e& error) {
assert(mpIAmRoutingReceive);
std::vector<am_ConnectionFormat_e> destinationSourceConnectionFormats;
@@ -358,7 +313,7 @@ void CAmRoutingService::updateGateway(am_gen::am_gatewayID_t gatewayID, am_gen::
mpIAmRoutingReceive->updateGateway(gatewayID, destinationSourceConnectionFormats, destinationSinkConnectionFormats, convertionMatrix);
}
-void CAmRoutingService::updateSink(am_gen::am_sinkID_t sinkID, am_gen::am_sinkClass_t sinkClassID, am_gen::am_SoundProperty_L listSoundProperties, am_gen::am_ConnectionFormat_L listConnectionFormats, am_gen::am_MainSoundProperty_L listMainSoundProperties) {
+void CAmRoutingService::updateSink(org::genivi::am::am_sinkID_t sinkID, org::genivi::am::am_sinkClass_t sinkClassID, org::genivi::am::am_SoundProperty_L listSoundProperties, org::genivi::am::am_ConnectionFormat_L listConnectionFormats, org::genivi::am::am_MainSoundProperty_L listMainSoundProperties, org::genivi::am::am_Error_e& error) {
assert(mpIAmRoutingReceive);
std::vector<am_SoundProperty_s> dstListSoundProperties;
CAmConvertCAPIVector2AM(listSoundProperties, dstListSoundProperties);
@@ -369,7 +324,7 @@ void CAmRoutingService::updateSink(am_gen::am_sinkID_t sinkID, am_gen::am_sinkCl
mpIAmRoutingReceive->updateSink( sinkID, sinkClassID, dstListSoundProperties,dstListSinkConnectionFormats,dstListMainSoundProperties);
}
-void CAmRoutingService::updateSource(am_gen::am_sourceID_t sourceID, am_gen::am_sourceClass_t sourceClassID, am_gen::am_SoundProperty_L listSoundProperties, am_gen::am_ConnectionFormat_L listConnectionFormats, am_gen::am_MainSoundProperty_L listMainSoundProperties) {
+void CAmRoutingService::updateSource(org::genivi::am::am_sourceID_t sourceID, org::genivi::am::am_sourceClass_t sourceClassID, org::genivi::am::am_SoundProperty_L listSoundProperties, org::genivi::am::am_ConnectionFormat_L listConnectionFormats, org::genivi::am::am_MainSoundProperty_L listMainSoundProperties, org::genivi::am::am_Error_e& error) {
assert(mpIAmRoutingReceive);
std::vector<am_SoundProperty_s> dstListSoundProperties;
CAmConvertCAPIVector2AM(listSoundProperties, dstListSoundProperties);
@@ -380,56 +335,63 @@ void CAmRoutingService::updateSource(am_gen::am_sourceID_t sourceID, am_gen::am_
mpIAmRoutingReceive->updateSource( sourceID, sourceClassID, dstListSoundProperties,dstListSinkConnectionFormats,dstListMainSoundProperties);
}
-void CAmRoutingService::ackSetVolumes(uint16_t handle, am_gen::am_Volumes_l listVolumes, uint16_t error) {
+void CAmRoutingService::ackSetVolumes(org::genivi::am::am_Handle_s handle , org::genivi::am::am_Volumes_L listVolumes, org::genivi::am::am_Error_e error) {
assert(mpIAmRoutingReceive);
am_Handle_s handle_s;
- handle_s.handle = handle;
- handle_s.handleType = H_SETVOLUMES;
+ CAmConvertCAPI2AM(handle,handle_s);
std::vector<am_Volumes_s> list;
CAmConvertCAPIVector2AM(listVolumes, list);
am_Error_e amError = static_cast<am_Error_e>(error);
mpIAmRoutingReceive->ackSetVolumes(handle_s, list, amError);
- mpLookpData->removeHandle(handle);
+ mpLookpData->removeHandle(handle_s);
}
-void CAmRoutingService::ackSinkNotificationConfiguration(uint16_t handle, uint16_t error) {
+void CAmRoutingService::ackSinkNotificationConfiguration (org::genivi::am::am_Handle_s handle, org::genivi::am::am_Error_e error) {
assert(mpIAmRoutingReceive);
assert(mpLookpData);
- am_Handle_s myhandle;
- myhandle.handleType = H_CONNECT;
- myhandle.handle = handle;
+ am_Handle_s handle_s;
+ CAmConvertCAPI2AM(handle,handle_s);
am_Error_e amError = static_cast<am_Error_e>(error);
- mpIAmRoutingReceive->ackSinkNotificationConfiguration(myhandle, amError);
- mpLookpData->removeHandle(handle);
+ mpIAmRoutingReceive->ackSinkNotificationConfiguration(handle_s, amError);
+ mpLookpData->removeHandle(handle_s);
}
-void CAmRoutingService::ackSourceNotificationConfiguration(uint16_t handle, uint16_t error) {
+void CAmRoutingService::ackSourceNotificationConfiguration(org::genivi::am::am_Handle_s handle, org::genivi::am::am_Error_e error) {
assert(mpIAmRoutingReceive);
assert(mpLookpData);
- am_Handle_s myhandle;
- myhandle.handleType = H_CONNECT;
- myhandle.handle = handle;
+ am_Handle_s handle_s;
+ CAmConvertCAPI2AM(handle,handle_s);
am_Error_e amError = static_cast<am_Error_e>(error);
- mpIAmRoutingReceive->ackSourceNotificationConfiguration(myhandle, amError);
- mpLookpData->removeHandle(handle);
+ mpIAmRoutingReceive->ackSourceNotificationConfiguration(handle_s, amError);
+ mpLookpData->removeHandle(handle_s);
}
-void CAmRoutingService::hookSinkNotificationDataChange(am_gen::am_sinkID_t sinkID, am_gen::notificationPayload_s payload) {
+void CAmRoutingService::hookSinkNotificationDataChange(org::genivi::am::am_sinkID_t sinkID, org::genivi::am::am_NotificationPayload_s payload) {
assert(mpIAmRoutingReceive);
am_NotificationPayload_s converted;
CAmConvertCAPI2AM(payload, converted);
mpIAmRoutingReceive->hookSinkNotificationDataChange(sinkID, converted);
}
-void CAmRoutingService::hookSourceNotificationDataChange(am_gen::am_sourceID_t sourceID, am_gen::notificationPayload_s payload) {
+void CAmRoutingService::hookSourceNotificationDataChange(org::genivi::am::am_sourceID_t sourceID, org::genivi::am::am_NotificationPayload_s payload) {
assert(mpIAmRoutingReceive);
am_NotificationPayload_s converted;
CAmConvertCAPI2AM(payload, converted);
mpIAmRoutingReceive->hookSourceNotificationDataChange(sourceID, converted);
}
-void CAmRoutingService::getRoutingReadyState(bool& readyState) {
- readyState = mReady;
+void CAmRoutingService::confirmRoutingRundown(std::string domainName)
+{
+ mNumberDomains--;
+ if (mNumberDomains==0)
+ mpIAmRoutingReceive->confirmRoutingRundown(mHandle,E_OK);
+}
+
+void CAmRoutingService::gotRundown(int16_t numberDomains, uint16_t handle)
+{
+ mReady=false;
+ mNumberDomains=numberDomains;
+ mHandle=handle;
}
} /* namespace am */
diff --git a/PluginRoutingInterfaceCAPI/test/CAmRoutingInterfaceCAPITests.cpp b/PluginRoutingInterfaceCAPI/test/CAmRoutingInterfaceCAPITests.cpp
index 5f1069e..d70cc78 100644
--- a/PluginRoutingInterfaceCAPI/test/CAmRoutingInterfaceCAPITests.cpp
+++ b/PluginRoutingInterfaceCAPI/test/CAmRoutingInterfaceCAPITests.cpp
@@ -24,7 +24,7 @@
#include <set>
#include <sys/time.h>
#include <CommonAPI/CommonAPI.h>
-#include <org/genivi/audiomanager/am_gen.h>
+#include <org/genivi/am.h>
#include "CAmRoutingInterfaceCAPITests.h"
#include "TAmPluginTemplate.h"
#include "shared/CAmDltWrapper.h"
@@ -34,7 +34,6 @@
#include "IAmRoutingSenderBackdoor.h"
using namespace am;
-using namespace org::genivi::audiomanager;
using namespace CommonAPI;
using namespace testing;
@@ -65,24 +64,24 @@ pthread_mutex_t mutexSer = PTHREAD_MUTEX_INITIALIZER;
/**
* Initialize common-api and am sinks
*/
-void initSink(am_gen::sinkData_s & newSink, am_Sink_s & newAmSink, const am_gen::am_domainID_t & domainID, const am_gen::am_sinkID_t & sinkID = 0)
-{
- am_gen::am_MuteState_e muteState = am_gen::am_MuteState_e::MS_UNKNOWN;
- am_gen::am_Availability_s available(am_gen::am_Availability_e::A_MAX, am_gen::am_AvailabilityReason_e::AR_MAX);
- am_gen::am_SoundProperty_L listSoundProperties;
- listSoundProperties.push_back(am_gen::am_SoundProperty_s(am_gen::am_SoundPropertyType_e::SP_INTERR_OVERLAYID, 100));
- listSoundProperties.push_back(am_gen::am_SoundProperty_s(am_gen::am_SoundPropertyType_e::SP_EXAMPLE_BASS, 101));
- listSoundProperties.push_back(am_gen::am_SoundProperty_s(am_gen::am_SoundPropertyType_e::SP_MAX, 102));
- am_gen::am_ConnectionFormat_L listConnectionFormats;
- listConnectionFormats.push_back(am_gen::am_ConnectionFormat_e::CF_MAX);
- am_gen::am_MainSoundProperty_L listMainSoundProperties;
- listMainSoundProperties.push_back(am_gen::am_MainSoundProperty_s(am_gen::am_MainSoundPropertyType_e::MSP_MAX, 100));
- am_gen::am_NotificationConfiguration_L listMainNotificationConfigurations;
- listMainNotificationConfigurations.push_back(am_gen::am_NotificationConfiguration_s(am_gen::am_NotificationType_e::NT_MAX, am_gen::am_NotificationStatus_e::NS_MAX, 100));
- am_gen::am_NotificationConfiguration_L listNotificationConfigurations;
- listNotificationConfigurations.push_back(am_gen::am_NotificationConfiguration_s(am_gen::am_NotificationType_e::NT_MAX, am_gen::am_NotificationStatus_e::NS_MAX, 100));
-
- am_gen::sinkData_s sink(sinkID, "name", domainID, 104, 50, true, available, muteState, 50,
+void initSink(org::genivi::am::am_Sink_s & newSink, am_Sink_s & newAmSink, const org::genivi::am::am_domainID_t & domainID, const org::genivi::am::am_sinkID_t & sinkID = 0)
+{
+ org::genivi::am::am_MuteState_e muteState = org::genivi::am::am_MuteState_e::MS_UNKNOWN;
+ org::genivi::am::am_Availability_s available(org::genivi::am::am_Availability_e::A_MAX, static_cast<org::genivi::am::am_AvailabilityReason_pe>(AR_MAX));
+ org::genivi::am::am_SoundProperty_L listSoundProperties;
+ listSoundProperties.push_back(org::genivi::am::am_SoundProperty_s(static_cast<org::genivi::am::am_SoundPropertyType_pe>(SP_INTERR_OVERLAYID), 100));
+ listSoundProperties.push_back(org::genivi::am::am_SoundProperty_s(static_cast<org::genivi::am::am_SoundPropertyType_pe>(SP_EXAMPLE_BASS), 101));
+ listSoundProperties.push_back(org::genivi::am::am_SoundProperty_s(static_cast<org::genivi::am::am_SoundPropertyType_pe>(SP_MAX), 102));
+ org::genivi::am::am_ConnectionFormat_L listConnectionFormats;
+ listConnectionFormats.push_back(static_cast<org::genivi::am::am_ConnectionFormat_pe>(CF_MAX));
+ org::genivi::am::am_MainSoundProperty_L listMainSoundProperties;
+ listMainSoundProperties.push_back(org::genivi::am::am_MainSoundProperty_s(static_cast<org::genivi::am::am_MainSoundPropertyType_pe>(MSP_MAX), 100));
+ org::genivi::am::am_NotificationConfiguration_L listMainNotificationConfigurations;
+ listMainNotificationConfigurations.push_back(org::genivi::am::am_NotificationConfiguration_s(static_cast<org::genivi::am::am_NotificationType_pe>(NT_MAX), org::genivi::am::am_NotificationStatus_e::NS_MAX, 100));
+ org::genivi::am::am_NotificationConfiguration_L listNotificationConfigurations;
+ listNotificationConfigurations.push_back(org::genivi::am::am_NotificationConfiguration_s(static_cast<org::genivi::am::am_NotificationType_pe>(NT_MAX), org::genivi::am::am_NotificationStatus_e::NS_MAX, 100));
+
+ org::genivi::am::am_Sink_s sink(sinkID, "name", domainID, 104, 50, true, available, muteState, 50,
listSoundProperties, listConnectionFormats, listMainSoundProperties, listMainNotificationConfigurations, listNotificationConfigurations);
newSink = sink;
CAmConvertCAPI2AM(sink, newAmSink);
@@ -91,24 +90,24 @@ void initSink(am_gen::sinkData_s & newSink, am_Sink_s & newAmSink, const am_gen:
/**
* Initialize common-api and am sources
*/
-void initSource(am_gen::sourceData_s & newSource, am_Source_s & newAmSource, const am_gen::am_domainID_t & domainID, const am_gen::am_sourceID_t & sourceID = 0)
-{
- am_gen::am_SourceState_e srcState = am_gen::am_SourceState_e::SS_MAX;
- am_gen::am_Availability_s available(am_gen::am_Availability_e::A_MAX, am_gen::am_AvailabilityReason_e::AR_MAX);
- am_gen::am_SoundProperty_L listSoundProperties;
- listSoundProperties.push_back(am_gen::am_SoundProperty_s(am_gen::am_SoundPropertyType_e::SP_INTERR_OVERLAYID, 100));
- listSoundProperties.push_back(am_gen::am_SoundProperty_s(am_gen::am_SoundPropertyType_e::SP_EXAMPLE_BASS, 101));
- listSoundProperties.push_back(am_gen::am_SoundProperty_s(am_gen::am_SoundPropertyType_e::SP_MAX, 102));
- am_gen::am_ConnectionFormat_L listConnectionFormats;
- listConnectionFormats.push_back(am_gen::am_ConnectionFormat_e::CF_MAX);
- am_gen::am_MainSoundProperty_L listMainSoundProperties;
- listMainSoundProperties.push_back(am_gen::am_MainSoundProperty_s(am_gen::am_MainSoundPropertyType_e::MSP_MAX, 100));
- am_gen::am_NotificationConfiguration_L listMainNotificationConfigurations;
- listMainNotificationConfigurations.push_back(am_gen::am_NotificationConfiguration_s(am_gen::am_NotificationType_e::NT_MAX, am_gen::am_NotificationStatus_e::NS_MAX, 100));
- am_gen::am_NotificationConfiguration_L listNotificationConfigurations;
- listNotificationConfigurations.push_back(am_gen::am_NotificationConfiguration_s(am_gen::am_NotificationType_e::NT_MAX, am_gen::am_NotificationStatus_e::NS_MAX, 100));
-
- am_gen::sourceData_s source(sourceID, domainID, "name", 104, srcState, 50, true, available, am_gen::am_InterruptState_e::IS_MAX,
+void initSource(org::genivi::am::am_Source_s & newSource, am_Source_s & newAmSource, const org::genivi::am::am_domainID_t & domainID, const org::genivi::am::am_sourceID_t & sourceID = 0)
+{
+ org::genivi::am::am_SourceState_e srcState = org::genivi::am::am_SourceState_e::SS_MAX;
+ org::genivi::am::am_Availability_s available(org::genivi::am::am_Availability_e::A_MAX, static_cast<org::genivi::am::am_AvailabilityReason_pe>(AR_MAX));
+ org::genivi::am::am_SoundProperty_L listSoundProperties;
+ listSoundProperties.push_back(org::genivi::am::am_SoundProperty_s(static_cast<org::genivi::am::am_SoundPropertyType_pe>(SP_INTERR_OVERLAYID), 100));
+ listSoundProperties.push_back(org::genivi::am::am_SoundProperty_s(static_cast<org::genivi::am::am_SoundPropertyType_pe>(SP_EXAMPLE_BASS), 101));
+ listSoundProperties.push_back(org::genivi::am::am_SoundProperty_s(static_cast<org::genivi::am::am_SoundPropertyType_pe>(SP_MAX), 102));
+ org::genivi::am::am_ConnectionFormat_L listConnectionFormats;
+ listConnectionFormats.push_back(static_cast<org::genivi::am::am_ConnectionFormat_pe>(CF_MAX));
+ org::genivi::am::am_MainSoundProperty_L listMainSoundProperties;
+ listMainSoundProperties.push_back(org::genivi::am::am_MainSoundProperty_s(static_cast<org::genivi::am::am_MainSoundPropertyType_pe>(MSP_MAX), 100));
+ org::genivi::am::am_NotificationConfiguration_L listMainNotificationConfigurations;
+ listMainNotificationConfigurations.push_back(org::genivi::am::am_NotificationConfiguration_s(static_cast<org::genivi::am::am_NotificationType_pe>(NT_MAX), org::genivi::am::am_NotificationStatus_e::NS_MAX, 100));
+ org::genivi::am::am_NotificationConfiguration_L listNotificationConfigurations;
+ listNotificationConfigurations.push_back(org::genivi::am::am_NotificationConfiguration_s(static_cast<org::genivi::am::am_NotificationType_pe>(NT_MAX), org::genivi::am::am_NotificationStatus_e::NS_MAX, 100));
+
+ org::genivi::am::am_Source_s source(sourceID, domainID, "name", 104, srcState, 50, true, available, org::genivi::am::am_InterruptState_e::IS_MAX,
listSoundProperties, listConnectionFormats, listMainSoundProperties, listMainNotificationConfigurations, listNotificationConfigurations);
newSource = source;
CAmConvertCAPI2AM(source, newAmSource);
@@ -117,9 +116,9 @@ void initSource(am_gen::sourceData_s & newSource, am_Source_s & newAmSource, con
/**
* Initialize common-api and am crossfaders
*/
-void initCrossfader(am_gen::crossfaderData_s & newCrossfader, am_Crossfader_s & newAmCrossfader, const am_gen::am_crossfaderID_t & crossfaderID = 0)
+void initCrossfader(org::genivi::am::am_Crossfader_s & newCrossfader, am_Crossfader_s & newAmCrossfader, const org::genivi::am::am_crossfaderID_t & crossfaderID = 0)
{
- am_gen::crossfaderData_s crossfader(crossfaderID, "name", TEST_ID_1, TEST_ID_2, TEST_ID_1, am_gen::am_HotSink_e::HS_MAX);
+ org::genivi::am::am_Crossfader_s crossfader(crossfaderID, "name", TEST_ID_1, TEST_ID_2, TEST_ID_1, org::genivi::am::am_HotSink_e::HS_MAX);
CAmConvertCAPI2AM(crossfader, newAmCrossfader);
newCrossfader = crossfader;
}
@@ -134,7 +133,7 @@ void* run_client(void*)
env->mSocketHandlerClient = &socketHandler;
std::shared_ptr<CommonAPI::Factory> factory = wrapper.factory();
- env->mProxy = factory->buildProxy<RoutingInterfaceProxy>(CAmRoutingSenderCAPI::ROUTING_INTERFACE_SERVICE);
+ env->mProxy = factory->buildProxy<org::genivi::am::RoutingControlObserverProxy>(CAmRoutingSenderCAPI::ROUTING_INTERFACE_SERVICE);
env->mProxy->getProxyStatusEvent().subscribe(std::bind(&CAmTestsEnvironment::onServiceStatusEvent,env,std::placeholders::_1));
env->mDomainService = std::make_shared<CAmRoutingSenderService>(&wrapper, env->mProxy);
@@ -345,11 +344,13 @@ TEST_F(CAmRoutingInterfaceCAPITests, ackConnect)
if(env->mIsServiceAvailable)
{
CallStatus callStatus = CallStatus::NOT_AVAILABLE;
- am_gen::am_connectionID_t connectionID = TEST_ID_1;
+ org::genivi::am::am_connectionID_t connectionID = TEST_ID_1;
am_Error_e error = E_OK;
am_Handle_s handle = {H_CONNECT, 20};
+ org::genivi::am::am_Handle_s CAPIHandle;
+ CAmConvertAM2CAPI(handle,CAPIHandle);
EXPECT_CALL(*env->mpRoutingReceive, ackConnect(IsHandleEqual(handle), connectionID, error)).Times(1);
- env->mProxy->ackConnect(20, connectionID, error, callStatus);
+ env->mProxy->ackConnect(CAPIHandle, connectionID, static_cast<org::genivi::am::am_Error_e>(error), callStatus);
ASSERT_EQ( callStatus, CallStatus::SUCCESS );
}
EXPECT_TRUE(Mock::VerifyAndClearExpectations(env->mpRoutingReceive));
@@ -361,11 +362,13 @@ TEST_F(CAmRoutingInterfaceCAPITests, ackDisconnect)
if(env->mIsServiceAvailable)
{
CallStatus callStatus = CallStatus::NOT_AVAILABLE;
- am_gen::am_connectionID_t connectionID = TEST_ID_1;
+ org::genivi::am::am_connectionID_t connectionID = TEST_ID_1;
am_Error_e error = E_OK;
am_Handle_s handle = {H_DISCONNECT, 20};
+ org::genivi::am::am_Handle_s CAPIHandle;
+ CAmConvertAM2CAPI(handle,CAPIHandle);
EXPECT_CALL(*env->mpRoutingReceive, ackDisconnect(IsHandleEqual(handle), connectionID, error)).Times(1);
- env->mProxy->ackDisconnect(20, connectionID, error, callStatus);
+ env->mProxy->ackDisconnect(CAPIHandle, connectionID, static_cast<org::genivi::am::am_Error_e>(error), callStatus);
ASSERT_EQ( callStatus, CallStatus::SUCCESS );
}
EXPECT_TRUE(Mock::VerifyAndClearExpectations(env->mpRoutingReceive));
@@ -380,8 +383,10 @@ TEST_F(CAmRoutingInterfaceCAPITests, ackSetSinkVolumeChange)
am_Error_e error = E_OK;
am_volume_t volume = 50;
am_Handle_s handle = {H_SETSINKVOLUME, 20};
+ org::genivi::am::am_Handle_s CAPIHandle;
+ CAmConvertAM2CAPI(handle,CAPIHandle);
EXPECT_CALL(*env->mpRoutingReceive, ackSetSinkVolumeChange(IsHandleEqual(handle), volume, error)).Times(1);
- env->mProxy->ackSetSinkVolume(20, volume, error, callStatus);
+ env->mProxy->ackSetSinkVolumeChange(CAPIHandle, static_cast<org::genivi::am::am_volume_t>(volume), static_cast<org::genivi::am::am_Error_e>(error), callStatus);
ASSERT_EQ( callStatus, CallStatus::SUCCESS );
}
EXPECT_TRUE(Mock::VerifyAndClearExpectations(env->mpRoutingReceive));
@@ -396,8 +401,10 @@ TEST_F(CAmRoutingInterfaceCAPITests, ackSetSourceVolumeChange)
am_Error_e error = E_OK;
am_volume_t volume = 50;
am_Handle_s handle = {H_SETSOURCEVOLUME, 20};
+ org::genivi::am::am_Handle_s CAPIHandle;
+ CAmConvertAM2CAPI(handle,CAPIHandle);
EXPECT_CALL(*env->mpRoutingReceive, ackSetSourceVolumeChange(IsHandleEqual(handle), volume, error)).Times(1);
- env->mProxy->ackSetSourceVolume(20, volume, error, callStatus);
+ env->mProxy->ackSetSourceVolumeChange(CAPIHandle, static_cast<org::genivi::am::am_volume_t>(volume), static_cast<org::genivi::am::am_Error_e>(error), callStatus);
ASSERT_EQ( callStatus, CallStatus::SUCCESS );
}
@@ -413,8 +420,10 @@ TEST_F(CAmRoutingInterfaceCAPITests, ackSetSourceState)
am_Error_e error = E_OK;
am_volume_t volume = 50;
am_Handle_s handle = {H_SETSOURCESTATE, 20};
+ org::genivi::am::am_Handle_s CAPIHandle;
+ CAmConvertAM2CAPI(handle,CAPIHandle);
EXPECT_CALL(*env->mpRoutingReceive, ackSetSourceState(IsHandleEqual(handle), error)).Times(1);
- env->mProxy->ackSetSourceState(20, error, callStatus);
+ env->mProxy->ackSetSourceState(CAPIHandle, static_cast<org::genivi::am::am_Error_e>(error), callStatus);
ASSERT_EQ( callStatus, CallStatus::SUCCESS );
}
@@ -430,8 +439,10 @@ TEST_F(CAmRoutingInterfaceCAPITests, ackSetSinkSoundProperties)
am_Error_e error = E_OK;
am_volume_t volume = 50;
am_Handle_s handle = {H_SETSINKSOUNDPROPERTIES, 20};
+ org::genivi::am::am_Handle_s CAPIHandle;
+ CAmConvertAM2CAPI(handle,CAPIHandle);
EXPECT_CALL(*env->mpRoutingReceive, ackSetSinkSoundProperties(IsHandleEqual(handle), error)).Times(1);
- env->mProxy->ackSetSinkSoundProperties(20, error, callStatus);
+ env->mProxy->ackSetSinkSoundProperties(CAPIHandle, static_cast<org::genivi::am::am_Error_e>(error), callStatus);
ASSERT_EQ( callStatus, CallStatus::SUCCESS );
}
@@ -447,8 +458,10 @@ TEST_F(CAmRoutingInterfaceCAPITests, ackSetSinkSoundProperty)
am_Error_e error = E_OK;
am_volume_t volume = 50;
am_Handle_s handle = {H_SETSINKSOUNDPROPERTY, 20};
+ org::genivi::am::am_Handle_s CAPIHandle;
+ CAmConvertAM2CAPI(handle,CAPIHandle);
EXPECT_CALL(*env->mpRoutingReceive, ackSetSinkSoundProperty(IsHandleEqual(handle), error)).Times(1);
- env->mProxy->ackSetSinkSoundProperty(20, error, callStatus);
+ env->mProxy->ackSetSinkSoundProperty(CAPIHandle, static_cast<org::genivi::am::am_Error_e>(error), callStatus);
ASSERT_EQ( callStatus, CallStatus::SUCCESS );
}
@@ -464,8 +477,10 @@ TEST_F(CAmRoutingInterfaceCAPITests, ackSetSourceSoundProperties)
am_Error_e error = E_OK;
am_volume_t volume = 50;
am_Handle_s handle = {H_SETSOURCESOUNDPROPERTIES, 20};
+ org::genivi::am::am_Handle_s CAPIHandle;
+ CAmConvertAM2CAPI(handle,CAPIHandle);
EXPECT_CALL(*env->mpRoutingReceive, ackSetSourceSoundProperties(IsHandleEqual(handle), error)).Times(1);
- env->mProxy->ackSetSourceSoundProperties(20, error, callStatus);
+ env->mProxy->ackSetSourceSoundProperties(CAPIHandle, static_cast<org::genivi::am::am_Error_e>(error), callStatus);
ASSERT_EQ( callStatus, CallStatus::SUCCESS );
}
@@ -481,8 +496,10 @@ TEST_F(CAmRoutingInterfaceCAPITests, ackSetSourceSoundProperty)
am_Error_e error = E_OK;
am_volume_t volume = 50;
am_Handle_s handle = {H_SETSOURCESOUNDPROPERTY, 20};
+ org::genivi::am::am_Handle_s CAPIHandle;
+ CAmConvertAM2CAPI(handle,CAPIHandle);
EXPECT_CALL(*env->mpRoutingReceive, ackSetSourceSoundProperty(IsHandleEqual(handle), error)).Times(1);
- env->mProxy->ackSetSourceSoundProperty(20, error, callStatus);
+ env->mProxy->ackSetSourceSoundProperty(CAPIHandle, static_cast<org::genivi::am::am_Error_e>(error), callStatus);
ASSERT_EQ( callStatus, CallStatus::SUCCESS );
}
EXPECT_TRUE(Mock::VerifyAndClearExpectations(env->mpRoutingReceive));
@@ -497,8 +514,10 @@ TEST_F(CAmRoutingInterfaceCAPITests, ackCrossFading)
am_Error_e error = E_OK;
am_HotSink_e hotSink = HS_UNKNOWN;
am_Handle_s handle = {H_CROSSFADE, 20};
+ org::genivi::am::am_Handle_s CAPIHandle;
+ CAmConvertAM2CAPI(handle,CAPIHandle);
EXPECT_CALL(*env->mpRoutingReceive, ackCrossFading(IsHandleEqual(handle), hotSink, error)).Times(1);
- env->mProxy->ackCrossFading(20, static_cast<am_gen::am_HotSink_e>(hotSink), (am_gen::am_Error_e)error, callStatus);
+ env->mProxy->ackCrossFading(CAPIHandle, static_cast<org::genivi::am::am_HotSink_e>(hotSink), static_cast<org::genivi::am::am_Error_e>(error), callStatus);
ASSERT_EQ( callStatus, CallStatus::SUCCESS );
}
EXPECT_TRUE(Mock::VerifyAndClearExpectations(env->mpRoutingReceive));
@@ -513,8 +532,11 @@ TEST_F(CAmRoutingInterfaceCAPITests, ackSourceVolumeTick)
am_Error_e error = E_OK;
am_sourceID_t sourceID = TEST_ID_1;
am_Handle_s handle = {H_SETSOURCEVOLUME, 20};
- EXPECT_CALL(*env->mpRoutingReceive, ackSourceVolumeTick(IsHandleEqual(handle), sourceID, error)).Times(1);
- env->mProxy->ackSourceVolumeTick(20, sourceID, error, callStatus);
+ am_volume_t volume (20);
+ org::genivi::am::am_Handle_s CAPIHandle;
+ CAmConvertAM2CAPI(handle,CAPIHandle);
+ EXPECT_CALL(*env->mpRoutingReceive, ackSourceVolumeTick(IsHandleEqual(handle), sourceID, volume)).Times(1);
+ env->mProxy->ackSourceVolumeTick(CAPIHandle, sourceID, static_cast<org::genivi::am::am_volume_t>(volume), callStatus);
ASSERT_EQ( callStatus, CallStatus::SUCCESS );
}
EXPECT_TRUE(Mock::VerifyAndClearExpectations(env->mpRoutingReceive));
@@ -529,8 +551,11 @@ TEST_F(CAmRoutingInterfaceCAPITests, ackSinkVolumeTick)
am_Error_e error = E_OK;
am_sinkID_t sID = TEST_ID_1;
am_Handle_s handle = {H_SETSINKVOLUME, 20};
- EXPECT_CALL(*env->mpRoutingReceive, ackSinkVolumeTick(IsHandleEqual(handle), sID, error)).Times(1);
- env->mProxy->ackSinkVolumeTick(20, sID, error, callStatus);
+ org::genivi::am::am_Handle_s CAPIHandle;
+ CAmConvertAM2CAPI(handle,CAPIHandle);
+ am_volume_t volume (20);
+ EXPECT_CALL(*env->mpRoutingReceive, ackSinkVolumeTick(IsHandleEqual(handle), sID, volume)).Times(1);
+ env->mProxy->ackSinkVolumeTick(CAPIHandle, sID,static_cast<org::genivi::am::am_volume_t>(volume), callStatus);
ASSERT_EQ( callStatus, CallStatus::SUCCESS );
}
EXPECT_TRUE(Mock::VerifyAndClearExpectations(env->mpRoutingReceive));
@@ -550,14 +575,14 @@ TEST_F(CAmRoutingInterfaceCAPITests, peekDomain)
if(env->mIsServiceAvailable)
{
CallStatus callStatus = CallStatus::NOT_AVAILABLE;
- am_gen::am_Error_e error = am_gen::am_Error_e::E_UNKNOWN;
+ org::genivi::am::am_Error_e error = org::genivi::am::am_Error_e::E_UNKNOWN;
std::string name("domain name");
- am_gen::am_domainID_t domainID = 0;
+ org::genivi::am::am_domainID_t domainID = 0;
ON_CALL(*env->mpRoutingReceive, peekDomain(_, _)).WillByDefault(Return(E_OK));
EXPECT_CALL(*env->mpRoutingReceive, peekDomain(name, _)).WillOnce(DoAll(actionPeekDomain(), Return(E_OK)));
env->mProxy->peekDomain(name, callStatus, domainID, error);
ASSERT_EQ( domainID, TEST_ID_1 );
- ASSERT_EQ( error, am_gen::am_Error_e::E_OK );
+ ASSERT_EQ( error, org::genivi::am::am_Error_e::E_OK );
ASSERT_EQ( callStatus, CallStatus::SUCCESS );
}
EXPECT_TRUE(Mock::VerifyAndClearExpectations(env->mpRoutingReceive));
@@ -579,16 +604,16 @@ TEST_F(CAmRoutingInterfaceCAPITests, registerDomain)
if(env->mIsServiceAvailable)
{
CallStatus callStatus = CallStatus::NOT_AVAILABLE;
- am_gen::am_Error_e error = am_gen::am_Error_e::E_UNKNOWN;
+ org::genivi::am::am_Error_e error = org::genivi::am::am_Error_e::E_UNKNOWN;
std::string name("domain name");
std::string busname("busname");
std::string nodename("nodename");
- am_gen::am_Domain_s domainData(0, name, busname, nodename, false, false, am_gen::am_DomainState_e::DS_CONTROLLED);
+ org::genivi::am::am_Domain_s domainData(0, name, busname, nodename, false, false, org::genivi::am::am_DomainState_e::DS_CONTROLLED);
am::am_Domain_s amDomainData;
CAmConvertCAPI2AM(domainData, amDomainData);
- am_gen:am_domainID_t domainID = 0;
+ org::genivi::am::am_domainID_t domainID = 0;
//If the result is E_OK, then the routing service will try to establish a connection with the domain via common-api.
//For now we won't test common-api connection with the domain therefore E_ABORTED is returned.
ON_CALL(*env->mpRoutingReceive, registerDomain(_, _)).WillByDefault(Return(E_ABORTED));
@@ -603,7 +628,7 @@ TEST_F(CAmRoutingInterfaceCAPITests, registerDomain)
domainID,
error);
ASSERT_EQ( domainID, TEST_ID_1 );
- ASSERT_EQ( error, am_gen::am_Error_e::E_ABORTED );
+ ASSERT_EQ( error, org::genivi::am::am_Error_e::E_ABORTED );
ASSERT_EQ( callStatus, CallStatus::SUCCESS );
}
EXPECT_TRUE(Mock::VerifyAndClearExpectations(env->mpRoutingReceive));
@@ -615,13 +640,13 @@ TEST_F(CAmRoutingInterfaceCAPITests, deregisterDomain)
if(env->mIsServiceAvailable)
{
CallStatus callStatus = CallStatus::NOT_AVAILABLE;
- am_gen::am_Error_e error = am_gen::am_Error_e::E_UNKNOWN;
- am_gen:am_domainID_t domainID = TEST_ID_1;
+ org::genivi::am::am_Error_e error = org::genivi::am::am_Error_e::E_UNKNOWN;
+ org::genivi::am::am_domainID_t domainID = TEST_ID_1;
ON_CALL(*env->mpRoutingReceive, deregisterDomain(_)).WillByDefault(Return(E_OK));
EXPECT_CALL(*env->mpRoutingReceive, deregisterDomain(domainID)).WillOnce(Return(E_OK));
env->mProxy->deregisterDomain(domainID, callStatus, error);
- ASSERT_EQ( error, am_gen::am_Error_e::E_OK );
+ ASSERT_EQ( error, org::genivi::am::am_Error_e::E_OK );
ASSERT_EQ( callStatus, CallStatus::SUCCESS );
}
EXPECT_TRUE(Mock::VerifyAndClearExpectations(env->mpRoutingReceive));
@@ -650,20 +675,20 @@ TEST_F(CAmRoutingInterfaceCAPITests, registerGateway)
if(env->mIsServiceAvailable)
{
CallStatus callStatus = CallStatus::NOT_AVAILABLE;
- am_gen::am_Error_e error = am_gen::am_Error_e::E_UNKNOWN;
-
- am_gen::am_ConnectionFormat_L listSourceFormats;
- listSourceFormats.push_back(am_gen::am_ConnectionFormat_e::CF_GENIVI_ANALOG);
- listSourceFormats.push_back(am_gen::am_ConnectionFormat_e::CF_GENIVI_AUTO);
- am_gen::am_ConnectionFormat_L listSinkFormats;
- listSinkFormats.push_back(am_gen::am_ConnectionFormat_e::CF_GENIVI_AUTO);
- listSinkFormats.push_back(am_gen::am_ConnectionFormat_e::CF_GENIVI_ANALOG);
- am_gen::bool_L convertionMatrix;
+ org::genivi::am::am_Error_e error = org::genivi::am::am_Error_e::E_UNKNOWN;
+
+ org::genivi::am::am_ConnectionFormat_L listSourceFormats;
+ listSourceFormats.push_back(static_cast<org::genivi::am::am_ConnectionFormat_pe>(CF_GENIVI_ANALOG));
+ listSourceFormats.push_back(static_cast<org::genivi::am::am_ConnectionFormat_pe>(CF_GENIVI_AUTO));
+ org::genivi::am::am_ConnectionFormat_L listSinkFormats;
+ listSinkFormats.push_back(static_cast<org::genivi::am::am_ConnectionFormat_pe>(CF_GENIVI_AUTO));
+ listSinkFormats.push_back(static_cast<org::genivi::am::am_ConnectionFormat_pe>(CF_GENIVI_ANALOG));
+ org::genivi::am::am_Convertion_L convertionMatrix;
convertionMatrix.push_back(1);
convertionMatrix.push_back(0);
- am_gen:am_gatewayID_t gatewayID = 0;
- am_gen::am_Gateway_s gateway(gatewayID, "name", 103, 104, 105, 106, 107, listSourceFormats, listSinkFormats, convertionMatrix);
+ org::genivi::am::am_gatewayID_t gatewayID = 0;
+ org::genivi::am::am_Gateway_s gateway(gatewayID, "name", 103, 104, 105, 106, 107, listSourceFormats, listSinkFormats, convertionMatrix);
am_Gateway_s amGateway;
CAmConvertCAPI2AM(gateway, amGateway);
@@ -671,7 +696,7 @@ TEST_F(CAmRoutingInterfaceCAPITests, registerGateway)
EXPECT_CALL(*env->mpRoutingReceive, registerGateway(IsGatewayDataEqualTo(amGateway), _)).WillOnce(DoAll(actionRegisterGateway(), Return(E_OK)));
env->mProxy->registerGateway(gateway, callStatus, gatewayID, error);
ASSERT_EQ( gatewayID, TEST_ID_1 );
- ASSERT_EQ( error, am_gen::am_Error_e::E_OK );
+ ASSERT_EQ( error, org::genivi::am::am_Error_e::E_OK );
ASSERT_EQ( callStatus, CallStatus::SUCCESS );
}
EXPECT_TRUE(Mock::VerifyAndClearExpectations(env->mpRoutingReceive));
@@ -683,13 +708,13 @@ TEST_F(CAmRoutingInterfaceCAPITests, deregisterGateway)
if(env->mIsServiceAvailable)
{
CallStatus callStatus = CallStatus::NOT_AVAILABLE;
- am_gen::am_Error_e error = am_gen::am_Error_e::E_UNKNOWN;
- am_gen:am_gatewayID_t gatewayID = TEST_ID_1;
+ org::genivi::am::am_Error_e error = org::genivi::am::am_Error_e::E_UNKNOWN;
+ org::genivi::am::am_gatewayID_t gatewayID = TEST_ID_1;
ON_CALL(*env->mpRoutingReceive, deregisterGateway(_)).WillByDefault(Return(E_OK));
EXPECT_CALL(*env->mpRoutingReceive, deregisterGateway(gatewayID)).WillOnce(Return(E_OK));
env->mProxy->deregisterGateway(gatewayID, callStatus, error);
- ASSERT_EQ( error, am_gen::am_Error_e::E_OK );
+ ASSERT_EQ( error, org::genivi::am::am_Error_e::E_OK );
ASSERT_EQ( callStatus, CallStatus::SUCCESS );
}
EXPECT_TRUE(Mock::VerifyAndClearExpectations(env->mpRoutingReceive));
@@ -705,14 +730,14 @@ TEST_F(CAmRoutingInterfaceCAPITests, peekSink)
if(env->mIsServiceAvailable)
{
CallStatus callStatus = CallStatus::NOT_AVAILABLE;
- am_gen::am_Error_e error = am_gen::am_Error_e::E_UNKNOWN;
+ org::genivi::am::am_Error_e error = org::genivi::am::am_Error_e::E_UNKNOWN;
std::string name("name");
- am_gen::am_sinkID_t sinkID = 0;
+ org::genivi::am::am_sinkID_t sinkID = 0;
ON_CALL(*env->mpRoutingReceive, peekSink(_, _)).WillByDefault(Return(E_OK));
EXPECT_CALL(*env->mpRoutingReceive, peekSink(name, _)).WillOnce(DoAll(actionPeek(), Return(E_OK)));
env->mProxy->peekSink(name, callStatus, sinkID, error);
ASSERT_EQ( sinkID, TEST_ID_1 );
- ASSERT_EQ( error, am_gen::am_Error_e::E_OK );
+ ASSERT_EQ( error, org::genivi::am::am_Error_e::E_OK );
ASSERT_EQ( callStatus, CallStatus::SUCCESS );
}
EXPECT_TRUE(Mock::VerifyAndClearExpectations(env->mpRoutingReceive));
@@ -775,18 +800,18 @@ TEST_F(CAmRoutingInterfaceCAPITests, registerSink)
if(env->mIsServiceAvailable)
{
CallStatus callStatus = CallStatus::NOT_AVAILABLE;
- am_gen::am_Error_e error = am_gen::am_Error_e::E_UNKNOWN;
+ org::genivi::am::am_Error_e error = org::genivi::am::am_Error_e::E_UNKNOWN;
- am_gen::sinkData_s sink;
+ org::genivi::am::am_Sink_s sink;
am_Sink_s amSink;
- am_gen:am_sinkID_t sinkID = 0;
+ org::genivi::am::am_sinkID_t sinkID = 0;
initSink(sink, amSink, TEST_ID_2, sinkID);
ON_CALL(*env->mpRoutingReceive, registerSink(_, _)).WillByDefault(Return(E_OK));
EXPECT_CALL(*env->mpRoutingReceive, registerSink(IsSinkDataEqualTo(amSink), _)).WillOnce(DoAll(actionRegister(), Return(E_OK)));
env->mProxy->registerSink(sink, callStatus, sinkID, error);
ASSERT_EQ( sinkID, TEST_ID_1 );
- ASSERT_EQ( error, am_gen::am_Error_e::E_OK );
+ ASSERT_EQ( error, org::genivi::am::am_Error_e::E_OK );
ASSERT_EQ( callStatus, CallStatus::SUCCESS );
}
EXPECT_TRUE(Mock::VerifyAndClearExpectations(env->mpRoutingReceive));
@@ -798,13 +823,13 @@ TEST_F(CAmRoutingInterfaceCAPITests, deregisterSink)
if(env->mIsServiceAvailable)
{
CallStatus callStatus = CallStatus::NOT_AVAILABLE;
- am_gen::am_Error_e error = am_gen::am_Error_e::E_UNKNOWN;
- am_gen:am_sinkID_t sinkID = TEST_ID_1;
+ org::genivi::am::am_Error_e error = org::genivi::am::am_Error_e::E_UNKNOWN;
+ org::genivi::am::am_sinkID_t sinkID = TEST_ID_1;
ON_CALL(*env->mpRoutingReceive, deregisterSink(_)).WillByDefault(Return(E_OK));
EXPECT_CALL(*env->mpRoutingReceive, deregisterSink(sinkID)).WillOnce(Return(E_OK));
env->mProxy->deregisterSink(sinkID, callStatus, error);
- ASSERT_EQ( error, am_gen::am_Error_e::E_OK );
+ ASSERT_EQ( error, org::genivi::am::am_Error_e::E_OK );
ASSERT_EQ( callStatus, CallStatus::SUCCESS );
}
EXPECT_TRUE(Mock::VerifyAndClearExpectations(env->mpRoutingReceive));
@@ -816,14 +841,14 @@ TEST_F(CAmRoutingInterfaceCAPITests, peekSource)
if(env->mIsServiceAvailable)
{
CallStatus callStatus = CallStatus::NOT_AVAILABLE;
- am_gen::am_Error_e error = am_gen::am_Error_e::E_UNKNOWN;
+ org::genivi::am::am_Error_e error = org::genivi::am::am_Error_e::E_UNKNOWN;
std::string name("name");
- am_gen::am_sourceID_t sinkID = 0;
+ org::genivi::am::am_sourceID_t sinkID = 0;
ON_CALL(*env->mpRoutingReceive, peekSource(_, _)).WillByDefault(Return(E_OK));
EXPECT_CALL(*env->mpRoutingReceive, peekSource(name, _)).WillOnce(DoAll(actionPeek(), Return(E_OK)));
env->mProxy->peekSource(name, callStatus, sinkID, error);
ASSERT_EQ( sinkID, TEST_ID_1 );
- ASSERT_EQ( error, am_gen::am_Error_e::E_OK );
+ ASSERT_EQ( error, org::genivi::am::am_Error_e::E_OK );
ASSERT_EQ( callStatus, CallStatus::SUCCESS );
}
EXPECT_TRUE(Mock::VerifyAndClearExpectations(env->mpRoutingReceive));
@@ -888,18 +913,18 @@ TEST_F(CAmRoutingInterfaceCAPITests, registerSource)
if(env->mIsServiceAvailable)
{
CallStatus callStatus = CallStatus::NOT_AVAILABLE;
- am_gen::am_Error_e error = am_gen::am_Error_e::E_UNKNOWN;
+ org::genivi::am::am_Error_e error = org::genivi::am::am_Error_e::E_UNKNOWN;
- am_gen::sourceData_s source;
+ org::genivi::am::am_Source_s source;
am_Source_s amSource;
- am_gen:am_sourceID_t sinkID = 0;
- initSource(source, amSource, TEST_ID_2, sinkID);
+ org::genivi::am::am_sourceID_t sourceID = 0;
+ initSource(source, amSource, TEST_ID_2, sourceID);
ON_CALL(*env->mpRoutingReceive, registerSource(_, _)).WillByDefault(Return(E_OK));
EXPECT_CALL(*env->mpRoutingReceive, registerSource(IsSourceDataEqualTo(amSource), _)).WillOnce(DoAll(actionRegister(), Return(E_OK)));
- env->mProxy->registerSource(source, callStatus, sinkID, error);
- ASSERT_EQ( sinkID, TEST_ID_1 );
- ASSERT_EQ( error, am_gen::am_Error_e::E_OK );
+ env->mProxy->registerSource(source, callStatus, sourceID, error);
+ ASSERT_EQ( sourceID, TEST_ID_1 );
+ ASSERT_EQ( error, org::genivi::am::am_Error_e::E_OK );
ASSERT_EQ( callStatus, CallStatus::SUCCESS );
}
EXPECT_TRUE(Mock::VerifyAndClearExpectations(env->mpRoutingReceive));
@@ -911,13 +936,13 @@ TEST_F(CAmRoutingInterfaceCAPITests, deregisterSource)
if(env->mIsServiceAvailable)
{
CallStatus callStatus = CallStatus::NOT_AVAILABLE;
- am_gen::am_Error_e error = am_gen::am_Error_e::E_UNKNOWN;
- am_gen:am_sourceID_t sinkID = TEST_ID_1;
+ org::genivi::am::am_Error_e error = org::genivi::am::am_Error_e::E_UNKNOWN;
+ org::genivi::am::am_sourceID_t sinkID = TEST_ID_1;
ON_CALL(*env->mpRoutingReceive, deregisterSource(_)).WillByDefault(Return(E_OK));
EXPECT_CALL(*env->mpRoutingReceive, deregisterSource(sinkID)).WillOnce(Return(E_OK));
env->mProxy->deregisterSource(sinkID, callStatus, error);
- ASSERT_EQ( error, am_gen::am_Error_e::E_OK );
+ ASSERT_EQ( error, org::genivi::am::am_Error_e::E_OK );
ASSERT_EQ( callStatus, CallStatus::SUCCESS );
}
EXPECT_TRUE(Mock::VerifyAndClearExpectations(env->mpRoutingReceive));
@@ -944,10 +969,10 @@ TEST_F(CAmRoutingInterfaceCAPITests, registerCrossfader)
if(env->mIsServiceAvailable)
{
CallStatus callStatus = CallStatus::NOT_AVAILABLE;
- am_gen::am_Error_e error = am_gen::am_Error_e::E_UNKNOWN;
+ org::genivi::am::am_Error_e error = org::genivi::am::am_Error_e::E_UNKNOWN;
- am_gen:am_crossfaderID_t crossfaderID = 0;
- am_gen::crossfaderData_s crossfader;
+ org::genivi::am::am_crossfaderID_t crossfaderID = 0;
+ org::genivi::am::am_Crossfader_s crossfader;
am_Crossfader_s amCrossfader;
initCrossfader(crossfader, amCrossfader, crossfaderID);
@@ -955,7 +980,7 @@ TEST_F(CAmRoutingInterfaceCAPITests, registerCrossfader)
EXPECT_CALL(*env->mpRoutingReceive, registerCrossfader(IsCrossfaderDataEqualTo(amCrossfader), _)).WillOnce(DoAll(actionRegister(), Return(E_OK)));
env->mProxy->registerCrossfader(crossfader, callStatus, crossfaderID, error);
ASSERT_EQ( crossfaderID, TEST_ID_1 );
- ASSERT_EQ( error, am_gen::am_Error_e::E_OK );
+ ASSERT_EQ( error, org::genivi::am::am_Error_e::E_OK );
ASSERT_EQ( callStatus, CallStatus::SUCCESS );
}
EXPECT_TRUE(Mock::VerifyAndClearExpectations(env->mpRoutingReceive));
@@ -967,13 +992,13 @@ TEST_F(CAmRoutingInterfaceCAPITests, deregisterCrossfader)
if(env->mIsServiceAvailable)
{
CallStatus callStatus = CallStatus::NOT_AVAILABLE;
- am_gen::am_Error_e error = am_gen::am_Error_e::E_UNKNOWN;
- am_gen:am_crossfaderID_t crossfaderID = TEST_ID_1;
+ org::genivi::am::am_Error_e error = org::genivi::am::am_Error_e::E_UNKNOWN;
+ org::genivi::am::am_crossfaderID_t crossfaderID = TEST_ID_1;
ON_CALL(*env->mpRoutingReceive, deregisterCrossfader(_)).WillByDefault(Return(E_OK));
EXPECT_CALL(*env->mpRoutingReceive, deregisterCrossfader(crossfaderID)).WillOnce(Return(E_OK));
env->mProxy->deregisterCrossfader(crossfaderID, callStatus, error);
- ASSERT_EQ( error, am_gen::am_Error_e::E_OK );
+ ASSERT_EQ( error, org::genivi::am::am_Error_e::E_OK );
ASSERT_EQ( callStatus, CallStatus::SUCCESS );
}
EXPECT_TRUE(Mock::VerifyAndClearExpectations(env->mpRoutingReceive));
@@ -985,14 +1010,14 @@ TEST_F(CAmRoutingInterfaceCAPITests, peekSourceClassID)
if(env->mIsServiceAvailable)
{
CallStatus callStatus = CallStatus::NOT_AVAILABLE;
- am_gen::am_Error_e error = am_gen::am_Error_e::E_UNKNOWN;
+ org::genivi::am::am_Error_e error = org::genivi::am::am_Error_e::E_UNKNOWN;
std::string name("name");
- am_gen::am_sourceClass_t sinkID = 0;
+ org::genivi::am::am_sourceClass_t sinkID = 0;
ON_CALL(*env->mpRoutingReceive, peekSourceClassID(_, _)).WillByDefault(Return(E_OK));
EXPECT_CALL(*env->mpRoutingReceive, peekSourceClassID(name, _)).WillOnce(DoAll(actionPeek(), Return(E_OK)));
env->mProxy->peekSourceClassID(name, callStatus, sinkID, error);
ASSERT_EQ( sinkID, TEST_ID_1 );
- ASSERT_EQ( error, am_gen::am_Error_e::E_OK );
+ ASSERT_EQ( error, org::genivi::am::am_Error_e::E_OK );
ASSERT_EQ( callStatus, CallStatus::SUCCESS );
}
EXPECT_TRUE(Mock::VerifyAndClearExpectations(env->mpRoutingReceive));
@@ -1004,14 +1029,14 @@ TEST_F(CAmRoutingInterfaceCAPITests, peekSinkClassID)
if(env->mIsServiceAvailable)
{
CallStatus callStatus = CallStatus::NOT_AVAILABLE;
- am_gen::am_Error_e error = am_gen::am_Error_e::E_UNKNOWN;
+ org::genivi::am::am_Error_e error = org::genivi::am::am_Error_e::E_UNKNOWN;
std::string name("name");
- am_gen::am_sinkClass_t sinkID = 0;
+ org::genivi::am::am_sinkClass_t sinkID = 0;
ON_CALL(*env->mpRoutingReceive, peekSinkClassID(_, _)).WillByDefault(Return(E_OK));
EXPECT_CALL(*env->mpRoutingReceive, peekSinkClassID(name, _)).WillOnce(DoAll(actionPeek(), Return(E_OK)));
env->mProxy->peekSinkClassID(name, callStatus, sinkID, error);
ASSERT_EQ( sinkID, TEST_ID_1 );
- ASSERT_EQ( error, am_gen::am_Error_e::E_OK );
+ ASSERT_EQ( error, org::genivi::am::am_Error_e::E_OK );
ASSERT_EQ( callStatus, CallStatus::SUCCESS );
}
EXPECT_TRUE(Mock::VerifyAndClearExpectations(env->mpRoutingReceive));
@@ -1024,10 +1049,11 @@ TEST_F(CAmRoutingInterfaceCAPITests, hookInterruptStatusChange)
{
CallStatus callStatus = CallStatus::NOT_AVAILABLE;
am_Error_e error = E_OK;
- am_gen::am_sourceID_t sourceID = TEST_ID_1;
+ org::genivi::am::am_sourceID_t sourceID = TEST_ID_1;
am_InterruptState_e interruptState = am_InterruptState_e::IS_MAX;
+ org::genivi::am::am_InterruptState_e CAPIInterruptState=static_cast<org::genivi::am::am_InterruptState_e>(interruptState);
EXPECT_CALL(*env->mpRoutingReceive, hookInterruptStatusChange(sourceID, interruptState)).Times(1);
- env->mProxy->hookInterruptStatusChange(sourceID, interruptState, callStatus);
+ env->mProxy->hookInterruptStatusChange(sourceID, CAPIInterruptState, callStatus);
ASSERT_EQ( callStatus, CallStatus::SUCCESS );
}
EXPECT_TRUE(Mock::VerifyAndClearExpectations(env->mpRoutingReceive));
@@ -1040,7 +1066,7 @@ TEST_F(CAmRoutingInterfaceCAPITests, hookDomainRegistrationComplete)
{
CallStatus callStatus = CallStatus::NOT_AVAILABLE;
am_Error_e error = E_OK;
- am_gen::am_domainID_t testID = TEST_ID_1;
+ org::genivi::am::am_domainID_t testID = TEST_ID_1;
EXPECT_CALL(*env->mpRoutingReceive, hookDomainRegistrationComplete(testID)).Times(1);
env->mProxy->hookDomainRegistrationComplete(testID, callStatus);
ASSERT_EQ( callStatus, CallStatus::SUCCESS );
@@ -1061,9 +1087,9 @@ TEST_F(CAmRoutingInterfaceCAPITests, hookSinkAvailablityStatusChange)
{
CallStatus callStatus = CallStatus::NOT_AVAILABLE;
am_Error_e error = E_OK;
- am_gen::am_sinkID_t testID = TEST_ID_1;
+ org::genivi::am::am_sinkID_t testID = TEST_ID_1;
- am_gen::am_Availability_s available(am_gen::am_Availability_e::A_MAX, am_gen::am_AvailabilityReason_e::AR_MAX);
+ org::genivi::am::am_Availability_s available(org::genivi::am::am_Availability_e::A_MAX, static_cast<org::genivi::am::am_AvailabilityReason_pe>(AR_MAX));
am_Availability_s amAvailable;
CAmConvertCAPI2AM(available, amAvailable);
@@ -1081,9 +1107,9 @@ TEST_F(CAmRoutingInterfaceCAPITests, hookSourceAvailablityStatusChange)
{
CallStatus callStatus = CallStatus::NOT_AVAILABLE;
am_Error_e error = E_OK;
- am_gen::am_sourceID_t testID = TEST_ID_1;
+ org::genivi::am::am_sourceID_t testID = TEST_ID_1;
- am_gen::am_Availability_s available(am_gen::am_Availability_e::A_MAX, am_gen::am_AvailabilityReason_e::AR_MAX);
+ org::genivi::am::am_Availability_s available(org::genivi::am::am_Availability_e::A_MAX, static_cast<org::genivi::am::am_AvailabilityReason_pe>(AR_MAX));
am_Availability_s amAvailable;
CAmConvertCAPI2AM(available, amAvailable);
@@ -1101,8 +1127,8 @@ TEST_F(CAmRoutingInterfaceCAPITests, hookDomainStateChange)
{
CallStatus callStatus = CallStatus::NOT_AVAILABLE;
am_Error_e error = E_OK;
- am_gen::am_domainID_t testID = TEST_ID_1;
- am_gen::am_DomainState_e domainState = am_gen::am_DomainState_e::DS_MAX;
+ org::genivi::am::am_domainID_t testID = TEST_ID_1;
+ org::genivi::am::am_DomainState_e domainState = org::genivi::am::am_DomainState_e::DS_MAX;
EXPECT_CALL(*env->mpRoutingReceive, hookDomainStateChange(testID, (am_DomainState_e)domainState)).Times(1);
env->mProxy->hookDomainStateChange(testID, domainState, callStatus);
ASSERT_EQ( callStatus, CallStatus::SUCCESS );
@@ -1117,9 +1143,9 @@ TEST_F(CAmRoutingInterfaceCAPITests, hookTimingInformationChanged)
{
CallStatus callStatus = CallStatus::NOT_AVAILABLE;
am_Error_e error = E_OK;
- am_gen::am_connectionID_t testID = TEST_ID_1;
+ org::genivi::am::am_connectionID_t testID = TEST_ID_1;
int16_t delay = 10;
- am_gen::am_DomainState_e domainState = am_gen::am_DomainState_e::DS_MAX;
+ org::genivi::am::am_DomainState_e domainState = org::genivi::am::am_DomainState_e::DS_MAX;
EXPECT_CALL(*env->mpRoutingReceive, hookTimingInformationChanged(testID, delay)).Times(1);
env->mProxy->hookTimingInformationChanged(testID, delay, callStatus);
ASSERT_EQ( callStatus, CallStatus::SUCCESS );
@@ -1127,15 +1153,15 @@ TEST_F(CAmRoutingInterfaceCAPITests, hookTimingInformationChanged)
EXPECT_TRUE(Mock::VerifyAndClearExpectations(env->mpRoutingReceive));
}
-MATCHER_P(IsSinkEarlyDataEqualTo, value, "") {
+MATCHER_P(IsEarlyDataEqualTo, value, "") {
std::vector<am_EarlyData_s> lh = arg;
bool result = lh.size() == value.size();
for(int i=0; result && i<lh.size(); i++)
{
am_EarlyData_s ed_lh = lh.at(i);
- am_EarlyData_s ed_rh = value.at(i);
- if(ed_lh.type != ed_rh.type)
+ org::genivi::am::am_EarlyData_s ed_rh = value.at(i);
+ if(ed_lh.type != static_cast<am_EarlyDataType_e>(ed_rh.type))
{
result = false;
break;
@@ -1144,51 +1170,27 @@ MATCHER_P(IsSinkEarlyDataEqualTo, value, "") {
{
if(ed_lh.type==ED_SINK_VOLUME)
{
- result &= ed_lh.data.volume == ed_rh.data.volume;
- result &= ed_lh.sinksource.sink == ed_rh.sinksource.sink;
+ result &= ed_lh.data.volume == ed_rh.data.get<org::genivi::am::am_volume_t>();
+ result &= ed_lh.sinksource.sink == ed_rh.sinksource.get<org::genivi::am::am_sinkID_t>();
}
else if(ed_lh.type==ED_SINK_PROPERTY)
{
- result &= ed_lh.data.soundProperty.type == ed_rh.data.soundProperty.type;
- result &= ed_lh.data.soundProperty.value == ed_rh.data.soundProperty.value;
- result &= ed_lh.sinksource.sink == ed_rh.sinksource.sink;
+ org::genivi::am::am_SoundProperty_s soundproperty=ed_rh.data.get<org::genivi::am::am_SoundProperty_s>();
+ result &= ed_lh.data.soundProperty.type == soundproperty.type;
+ result &= ed_lh.data.soundProperty.value == soundproperty.value;
+ result &= ed_lh.sinksource.sink == ed_rh.sinksource.get<org::genivi::am::am_sinkID_t>();
}
- else
+ else if(ed_lh.type==ED_SOURCE_VOLUME)
{
- result = false;
- break;
- }
- }
- }
-
- return result;
-}
-
-MATCHER_P(IsSourceEarlyDataEqualTo, value, "") {
-
- std::vector<am_EarlyData_s> lh = arg;
- bool result = lh.size() == value.size();
- for(int i=0; result && i<lh.size(); i++)
- {
- am_EarlyData_s ed_lh = lh.at(i);
- am_EarlyData_s ed_rh = value.at(i);
- if(ed_lh.type != ed_rh.type)
- {
- result = false;
- break;
- }
- else
- {
- if(ed_lh.type==ED_SOURCE_VOLUME)
- {
- result &= ed_lh.data.volume == ed_rh.data.volume;
- result &= ed_lh.sinksource.source == ed_rh.sinksource.source;
+ result &= ed_lh.data.volume == ed_rh.data.get<org::genivi::am::am_volume_t>();
+ result &= ed_lh.sinksource.source == ed_rh.sinksource.get<org::genivi::am::am_sourceID_t>();
}
else if(ed_lh.type==ED_SOURCE_PROPERTY)
{
- result &= ed_lh.data.soundProperty.type == ed_rh.data.soundProperty.type;
- result &= ed_lh.data.soundProperty.value == ed_rh.data.soundProperty.value;
- result &= ed_lh.sinksource.source == ed_rh.sinksource.source;
+ org::genivi::am::am_SoundProperty_s soundproperty=ed_rh.data.get<org::genivi::am::am_SoundProperty_s>();
+ result &= ed_lh.data.soundProperty.type == soundproperty.type;
+ result &= ed_lh.data.soundProperty.value == soundproperty.value;
+ result &= ed_lh.sinksource.source == ed_rh.sinksource.get<org::genivi::am::am_sinkID_t>();
}
else
{
@@ -1208,128 +1210,32 @@ TEST_F(CAmRoutingInterfaceCAPITests, sendChangedData)
{
CallStatus callStatus = CallStatus::NOT_AVAILABLE;
am_Error_e error = E_OK;
- am_gen::am_connectionID_t testID = TEST_ID_1;
- am_gen::am_EarlyData_l earlyData_soundproperties;
- am_gen::am_EarlyData_l earlyData_volumes;
+ org::genivi::am::am_connectionID_t testID = TEST_ID_1;
+ org::genivi::am::am_EarlyData_L earlyData;
- am_gen::am_DataType_u dt11(static_cast<am_gen::am_sinkID_t>(103));
- am_gen::am_EarlyData_u ed11(static_cast<am_gen::am_volume_t>(50));
- earlyData_volumes.push_back(am_gen::am_EarlyData_s(am_gen::am_EarlyDataType_e::ED_SINK_VOLUME,
+ org::genivi::am::am_DataType_u dt11(static_cast<org::genivi::am::am_sinkID_t>(103));
+ org::genivi::am::am_EarlyData_u ed11(static_cast<org::genivi::am::am_volume_t>(50));
+ earlyData.push_back(org::genivi::am::am_EarlyData_s(org::genivi::am::am_EarlyDataType_e::ED_SINK_VOLUME,
dt11,
ed11));
- am_gen::am_DataType_u dt12(static_cast<am_gen::am_sinkID_t>(104));
- earlyData_volumes.push_back(am_gen::am_EarlyData_s(am_gen::am_EarlyDataType_e::ED_SINK_VOLUME,
+ org::genivi::am::am_DataType_u dt12(static_cast<org::genivi::am::am_sinkID_t>(104));
+ earlyData.push_back(org::genivi::am::am_EarlyData_s(org::genivi::am::am_EarlyDataType_e::ED_SINK_VOLUME,
dt12,
ed11));
- am_gen::am_DataType_u dt13(static_cast<am_gen::am_sinkID_t>(105));
- am_gen::am_EarlyData_u ed12(am_gen::am_SoundProperty_s(am_gen::am_SoundPropertyType_e::SP_MAX, 50));
- earlyData_soundproperties.push_back(am_gen::am_EarlyData_s(am_gen::am_EarlyDataType_e::ED_SINK_PROPERTY,
+ org::genivi::am::am_DataType_u dt13(static_cast<org::genivi::am::am_sinkID_t>(105));
+ org::genivi::am::am_EarlyData_u ed12(org::genivi::am::am_SoundProperty_s(static_cast<org::genivi::am::am_SoundPropertyType_pe>(SP_MAX), 50));
+ earlyData.push_back(org::genivi::am::am_EarlyData_s(org::genivi::am::am_EarlyDataType_e::ED_SINK_PROPERTY,
dt13,
ed12));
- am_gen::am_DataType_u dt14(static_cast<am_gen::am_sinkID_t>(106));
- earlyData_soundproperties.push_back(am_gen::am_EarlyData_s(am_gen::am_EarlyDataType_e::ED_SINK_PROPERTY,
+ org::genivi::am::am_DataType_u dt14(static_cast<org::genivi::am::am_sinkID_t>(106));
+ earlyData.push_back(org::genivi::am::am_EarlyData_s(org::genivi::am::am_EarlyDataType_e::ED_SINK_PROPERTY,
dt14,
ed12));
- std::vector<am_EarlyData_s> earlyData;
- am_EarlyData_s amEarlyData11;
- amEarlyData11.type = am_EarlyDataType_e::ED_SINK_VOLUME;
- amEarlyData11.data.volume = 50;
- amEarlyData11.sinksource.sink = 103;
- earlyData.push_back(amEarlyData11);
- amEarlyData11.sinksource.sink = 104;
- earlyData.push_back(amEarlyData11);
-
- am_EarlyData_s amEarlyData12;
- amEarlyData12.type = am_EarlyDataType_e::ED_SINK_PROPERTY;
- amEarlyData12.sinksource.sink = 105;
- amEarlyData12.data.soundProperty = (am_SoundProperty_s){SP_MAX, 50};
- earlyData.push_back(amEarlyData12);
- amEarlyData12.sinksource.sink = 106;
- earlyData.push_back(amEarlyData12);
-
- EXPECT_CALL(*env->mpRoutingReceive, sendChangedData(IsSinkEarlyDataEqualTo(earlyData))).Times(1);
-
- env->mProxy->sendChangedData(earlyData_volumes, earlyData_soundproperties, callStatus);
-
- earlyData_soundproperties.clear();
- earlyData_volumes.clear();
- earlyData.clear();
-
- ASSERT_EQ( callStatus, CallStatus::SUCCESS );
-
- am_gen::am_DataType_u dt21(static_cast<am_gen::am_sourceID_t>(103));
- am_gen::am_EarlyData_u ed21(static_cast<am_gen::am_volume_t>(50));
- earlyData_volumes.push_back(am_gen::am_EarlyData_s(am_gen::am_EarlyDataType_e::ED_SOURCE_VOLUME,
- dt21,
- ed21));
- am_gen::am_DataType_u dt22(static_cast<am_gen::am_sourceID_t>(104));
- earlyData_volumes.push_back(am_gen::am_EarlyData_s(am_gen::am_EarlyDataType_e::ED_SOURCE_VOLUME,
- dt22,
- ed21));
-
- am_gen::am_DataType_u dt23(static_cast<am_gen::am_sourceID_t>(105));
- am_gen::am_EarlyData_u ed22(am_gen::am_SoundProperty_s(am_gen::am_SoundPropertyType_e::SP_MAX, 50));
- earlyData_soundproperties.push_back(am_gen::am_EarlyData_s(am_gen::am_EarlyDataType_e::ED_SOURCE_PROPERTY,
- dt23,
- ed22));
- am_gen::am_DataType_u dt24(static_cast<am_gen::am_sourceID_t>(106));
- earlyData_soundproperties.push_back(am_gen::am_EarlyData_s(am_gen::am_EarlyDataType_e::ED_SOURCE_PROPERTY,
- dt24,
- ed22));
-
- am_EarlyData_s amEarlyData21;
- amEarlyData21.type = am_EarlyDataType_e::ED_SOURCE_VOLUME;
- amEarlyData21.data.volume = 50;
- amEarlyData21.sinksource.sink = 103;
- earlyData.push_back(amEarlyData21);
- amEarlyData21.sinksource.sink = 104;
- earlyData.push_back(amEarlyData21);
-
- am_EarlyData_s amEarlyData22;
- amEarlyData22.type = am_EarlyDataType_e::ED_SOURCE_PROPERTY;
- amEarlyData22.sinksource.sink = 105;
- amEarlyData22.data.soundProperty = (am_SoundProperty_s){SP_MAX, 50};
- earlyData.push_back(amEarlyData22);
- amEarlyData22.sinksource.sink = 106;
- earlyData.push_back(amEarlyData22);
-
- EXPECT_CALL(*env->mpRoutingReceive, sendChangedData(IsSourceEarlyDataEqualTo(earlyData))).Times(1);
-
- env->mProxy->sendChangedData(earlyData_volumes, earlyData_soundproperties, callStatus);
-
- ASSERT_EQ( callStatus, CallStatus::SUCCESS );
- }
- EXPECT_TRUE(Mock::VerifyAndClearExpectations(env->mpRoutingReceive));
-}
-
-TEST_F(CAmRoutingInterfaceCAPITests, confirmRoutingReady)
-{
- ASSERT_TRUE(env->mIsServiceAvailable);
- if(env->mIsServiceAvailable)
- {
- CallStatus callStatus = CallStatus::NOT_AVAILABLE;
- am_Error_e error = E_OK;
- am_gen::am_domainID_t testID = TEST_ID_1;
- EXPECT_CALL(*env->mpRoutingReceive, confirmRoutingReady(10, error)).Times(1);
- env->mProxy->confirmRoutingReady(testID, callStatus);
- ASSERT_EQ( callStatus, CallStatus::SUCCESS );
- }
- EXPECT_TRUE(Mock::VerifyAndClearExpectations(env->mpRoutingReceive));
-}
+ EXPECT_CALL(*env->mpRoutingReceive, sendChangedData(IsEarlyDataEqualTo(earlyData))).Times(1);
-TEST_F(CAmRoutingInterfaceCAPITests, confirmRoutingRundown)
-{
- ASSERT_TRUE(env->mIsServiceAvailable);
- if(env->mIsServiceAvailable)
- {
- CallStatus callStatus = CallStatus::NOT_AVAILABLE;
- am_Error_e error = E_OK;
- am_gen::am_domainID_t testID = TEST_ID_1;
- EXPECT_CALL(*env->mpRoutingReceive, confirmRoutingRundown(10, error)).Times(1);
- env->mProxy->confirmRoutingRundown(testID, callStatus);
- ASSERT_EQ( callStatus, CallStatus::SUCCESS );
+ env->mProxy->sendChangedData(earlyData, callStatus);
}
EXPECT_TRUE(Mock::VerifyAndClearExpectations(env->mpRoutingReceive));
}
@@ -1341,17 +1247,17 @@ TEST_F(CAmRoutingInterfaceCAPITests, updateGateway)
{
CallStatus callStatus = CallStatus::NOT_AVAILABLE;
am_Error_e error = E_OK;
- am_gen::am_gatewayID_t testID = TEST_ID_1;
+ org::genivi::am::am_gatewayID_t testID = TEST_ID_1;
- am_gen::am_ConnectionFormat_L listSourceFormats;
- listSourceFormats.push_back(am_gen::am_ConnectionFormat_e::CF_GENIVI_ANALOG);
- listSourceFormats.push_back(am_gen::am_ConnectionFormat_e::CF_GENIVI_AUTO);
+ org::genivi::am::am_ConnectionFormat_L listSourceFormats;
+ listSourceFormats.push_back(static_cast<org::genivi::am::am_ConnectionFormat_pe>(CF_GENIVI_ANALOG));
+ listSourceFormats.push_back(static_cast<org::genivi::am::am_ConnectionFormat_pe>(CF_GENIVI_AUTO));
- am_gen::am_ConnectionFormat_L listSinkFormats;
- listSinkFormats.push_back(am_gen::am_ConnectionFormat_e::CF_GENIVI_AUTO);
- listSinkFormats.push_back(am_gen::am_ConnectionFormat_e::CF_GENIVI_ANALOG);
+ org::genivi::am::am_ConnectionFormat_L listSinkFormats;
+ listSinkFormats.push_back(static_cast<org::genivi::am::am_ConnectionFormat_pe>(CF_GENIVI_AUTO));
+ listSinkFormats.push_back(static_cast<org::genivi::am::am_ConnectionFormat_pe>(CF_GENIVI_ANALOG));
- am_gen::bool_L convertionMatrix;
+ org::genivi::am::am_Convertion_L convertionMatrix;
convertionMatrix.push_back(1);
convertionMatrix.push_back(0);
@@ -1369,7 +1275,8 @@ TEST_F(CAmRoutingInterfaceCAPITests, updateGateway)
ON_CALL(*env->mpRoutingReceive, updateGateway(_, _, _, _)).WillByDefault(Return(E_OK));
EXPECT_CALL(*env->mpRoutingReceive, updateGateway(testID, am_listSourceFormats, am_listSinkFormats, am_convertionMatrix)).Times(1);
- env->mProxy->updateGateway(testID, listSourceFormats, listSinkFormats, convertionMatrix, callStatus);
+ org::genivi::am::am_Error_e CAPIError;
+ env->mProxy->updateGateway(testID, listSourceFormats, listSinkFormats, convertionMatrix, callStatus,CAPIError);
ASSERT_EQ( callStatus, CallStatus::SUCCESS );
}
EXPECT_TRUE(Mock::VerifyAndClearExpectations(env->mpRoutingReceive));
@@ -1387,21 +1294,21 @@ MATCHER_P(IsSoundPropertiesArrayEqualTo, value, "") {
return bSoundProperties;
}
-void prepareArrays( am_gen::am_SoundProperty_L & listSoundProperties,
- am_gen::am_ConnectionFormat_L & listSinkFormats,
- am_gen::am_MainSoundProperty_L & listMainSoundProperties,
+void prepareArrays( org::genivi::am::am_SoundProperty_L & listSoundProperties,
+ org::genivi::am::am_ConnectionFormat_L & listSinkFormats,
+ org::genivi::am::am_MainSoundProperty_L & listMainSoundProperties,
std::vector<am_ConnectionFormat_e> & am_listSinkFormats,
std::vector<am_SoundProperty_s> & am_listSoundProperties,
std::vector<am_MainSoundProperty_s> & am_listMainSoundProperties)
{
- listSoundProperties.push_back(am_gen::am_SoundProperty_s(am_gen::am_SoundPropertyType_e::SP_MAX, 50));
- listSoundProperties.push_back(am_gen::am_SoundProperty_s(am_gen::am_SoundPropertyType_e::SP_MAX, 51));
+ listSoundProperties.push_back(org::genivi::am::am_SoundProperty_s(static_cast<org::genivi::am::am_SoundPropertyType_pe>(SP_MAX), 50));
+ listSoundProperties.push_back(org::genivi::am::am_SoundProperty_s(static_cast<org::genivi::am::am_SoundPropertyType_pe>(SP_MAX), 51));
- listSinkFormats.push_back(am_gen::am_ConnectionFormat_e::CF_GENIVI_AUTO);
- listSinkFormats.push_back(am_gen::am_ConnectionFormat_e::CF_GENIVI_ANALOG);
+ listSinkFormats.push_back(static_cast<org::genivi::am::am_ConnectionFormat_pe>(CF_GENIVI_AUTO));
+ listSinkFormats.push_back(static_cast<org::genivi::am::am_ConnectionFormat_pe>(CF_GENIVI_ANALOG));
- listMainSoundProperties.push_back(am_gen::am_MainSoundProperty_s(am_gen::am_MainSoundPropertyType_e::MSP_MAX, 50));
- listMainSoundProperties.push_back(am_gen::am_MainSoundProperty_s(am_gen::am_MainSoundPropertyType_e::MSP_MAX, 51));
+ listMainSoundProperties.push_back(org::genivi::am::am_MainSoundProperty_s(static_cast<org::genivi::am::am_MainSoundPropertyType_pe>(MSP_MAX), 50));
+ listMainSoundProperties.push_back(org::genivi::am::am_MainSoundProperty_s(static_cast<org::genivi::am::am_MainSoundPropertyType_pe>(MSP_MAX), 51));
am_listSinkFormats.push_back(am_ConnectionFormat_e::CF_GENIVI_AUTO);
am_listSinkFormats.push_back(am_ConnectionFormat_e::CF_GENIVI_ANALOG);
@@ -1420,11 +1327,11 @@ TEST_F(CAmRoutingInterfaceCAPITests, updateSink)
{
CallStatus callStatus = CallStatus::NOT_AVAILABLE;
am_Error_e error = E_OK;
- am_gen::am_sinkID_t testID = TEST_ID_1;
+ org::genivi::am::am_sinkID_t testID = TEST_ID_1;
- am_gen::am_SoundProperty_L listSoundProperties;
- am_gen::am_ConnectionFormat_L listSinkFormats;
- am_gen::am_MainSoundProperty_L listMainSoundProperties;
+ org::genivi::am::am_SoundProperty_L listSoundProperties;
+ org::genivi::am::am_ConnectionFormat_L listSinkFormats;
+ org::genivi::am::am_MainSoundProperty_L listMainSoundProperties;
std::vector<am_ConnectionFormat_e> am_listSinkFormats;
std::vector<am_SoundProperty_s> am_listSoundProperties;
std::vector<am_MainSoundProperty_s> am_listMainSoundProperties;
@@ -1432,7 +1339,8 @@ TEST_F(CAmRoutingInterfaceCAPITests, updateSink)
ON_CALL(*env->mpRoutingReceive, updateSink(_, _, _, _, _)).WillByDefault(Return(E_OK));
EXPECT_CALL(*env->mpRoutingReceive, updateSink(testID, TEST_ID_2, IsSoundPropertiesArrayEqualTo(am_listSoundProperties), am_listSinkFormats, IsSoundPropertiesArrayEqualTo(am_listMainSoundProperties))).Times(1);
- env->mProxy->updateSink(testID, TEST_ID_2, listSoundProperties, listSinkFormats, listMainSoundProperties, callStatus);
+ org::genivi::am::am_Error_e CAPIError;
+ env->mProxy->updateSink(testID, TEST_ID_2, listSoundProperties, listSinkFormats, listMainSoundProperties, callStatus,CAPIError);
ASSERT_EQ( callStatus, CallStatus::SUCCESS );
}
EXPECT_TRUE(Mock::VerifyAndClearExpectations(env->mpRoutingReceive));
@@ -1445,11 +1353,11 @@ TEST_F(CAmRoutingInterfaceCAPITests, updateSource)
{
CallStatus callStatus = CallStatus::NOT_AVAILABLE;
am_Error_e error = E_OK;
- am_gen::am_sourceID_t testID = TEST_ID_1;
+ org::genivi::am::am_sourceID_t testID = TEST_ID_1;
- am_gen::am_SoundProperty_L listSoundProperties;
- am_gen::am_ConnectionFormat_L listSinkFormats;
- am_gen::am_MainSoundProperty_L listMainSoundProperties;
+ org::genivi::am::am_SoundProperty_L listSoundProperties;
+ org::genivi::am::am_ConnectionFormat_L listSinkFormats;
+ org::genivi::am::am_MainSoundProperty_L listMainSoundProperties;
std::vector<am_ConnectionFormat_e> am_listSinkFormats;
std::vector<am_SoundProperty_s> am_listSoundProperties;
std::vector<am_MainSoundProperty_s> am_listMainSoundProperties;
@@ -1457,7 +1365,8 @@ TEST_F(CAmRoutingInterfaceCAPITests, updateSource)
ON_CALL(*env->mpRoutingReceive, updateSource(_, _, _, _, _)).WillByDefault(Return(E_OK));
EXPECT_CALL(*env->mpRoutingReceive, updateSource(testID, TEST_ID_2, IsSoundPropertiesArrayEqualTo(am_listSoundProperties), am_listSinkFormats, IsSoundPropertiesArrayEqualTo(am_listMainSoundProperties))).Times(1);
- env->mProxy->updateSource(testID, TEST_ID_2, listSoundProperties, listSinkFormats, listMainSoundProperties, callStatus);
+ org::genivi::am::am_Error_e CAPIError;
+ env->mProxy->updateSource(testID, TEST_ID_2, listSoundProperties, listSinkFormats, listMainSoundProperties, callStatus,CAPIError);
ASSERT_EQ( callStatus, CallStatus::SUCCESS );
}
EXPECT_TRUE(Mock::VerifyAndClearExpectations(env->mpRoutingReceive));
@@ -1492,12 +1401,12 @@ TEST_F(CAmRoutingInterfaceCAPITests, ackSetVolumes)
CallStatus callStatus = CallStatus::NOT_AVAILABLE;
uint16_t error = (uint16_t)E_OK;
uint16_t testID = 10;
- am_gen::am_Volumes_l listVolumes;
- am_gen::am_DataType_u dt(static_cast<am_gen::am_sinkID_t>(103));
- listVolumes.push_back(am_gen::am_Volumes_s(am_gen::am_VolumeType_e::VT_MAX,
+ org::genivi::am::am_Volumes_L listVolumes;
+ org::genivi::am::am_DataType_u dt(static_cast<org::genivi::am::am_sinkID_t>(103));
+ listVolumes.push_back(org::genivi::am::am_Volumes_s(org::genivi::am::am_VolumeType_e::VT_MAX,
dt,
50,
- am_gen::am_RampType_e::RAMP_GENIVI_DIRECT,
+ static_cast<org::genivi::am::am_RampType_pe>(RAMP_GENIVI_DIRECT),
50));
std::vector<am_Volumes_s> am_listVolumes;
@@ -1512,9 +1421,11 @@ TEST_F(CAmRoutingInterfaceCAPITests, ackSetVolumes)
am_Handle_s handle_s;
handle_s.handle = 10;
handle_s.handleType = H_SETVOLUMES;
-
- EXPECT_CALL(*env->mpRoutingReceive, ackSetVolumes(IsHandleStructEqualTo(handle_s), IsSinkVolumeArrayEqualTo(am_listVolumes, true), _)).Times(1);
- env->mProxy->ackSetVolumes(testID, listVolumes, error, callStatus);
+ org::genivi::am::am_Handle_s handle;
+ CAmConvertAM2CAPI(handle_s,handle);
+ org::genivi::am::am_Error_e genError(org::genivi::am::am_Error_e::E_OK);
+ EXPECT_CALL(*env->mpRoutingReceive, ackSetVolumes(IsHandleStructEqualTo(handle_s), IsSinkVolumeArrayEqualTo(am_listVolumes, true), E_OK)).Times(1);
+ env->mProxy->ackSetVolumes(handle, listVolumes, genError, callStatus);
ASSERT_EQ( callStatus, CallStatus::SUCCESS );
}
EXPECT_TRUE(Mock::VerifyAndClearExpectations(env->mpRoutingReceive));
@@ -1526,13 +1437,16 @@ TEST_F(CAmRoutingInterfaceCAPITests, ackSinkNotificationConfiguration)
if(env->mIsServiceAvailable)
{
CallStatus callStatus = CallStatus::NOT_AVAILABLE;
- am_gen::am_Error_e error = am_gen::am_Error_e::E_OK;
+ org::genivi::am::am_Error_e error = org::genivi::am::am_Error_e::E_OK;
uint16_t testID = TEST_ID_1;
am_Handle_s handle_s;
handle_s.handle = testID;
handle_s.handleType = H_CONNECT;
+ org::genivi::am::am_Handle_s CAPIHandle;
+ CAmConvertAM2CAPI(handle_s,CAPIHandle);
+ org::genivi::am::am_Error_e genError(org::genivi::am::am_Error_e::E_OK);
EXPECT_CALL(*env->mpRoutingReceive, ackSinkNotificationConfiguration(IsHandleStructEqualTo(handle_s), (am_Error_e)error)).Times(1);
- env->mProxy->ackSinkNotificationConfiguration(testID, (uint16_t)error, callStatus);
+ env->mProxy->ackSinkNotificationConfiguration(CAPIHandle, genError, callStatus);
ASSERT_EQ( callStatus, CallStatus::SUCCESS );
}
EXPECT_TRUE(Mock::VerifyAndClearExpectations(env->mpRoutingReceive));
@@ -1544,13 +1458,16 @@ TEST_F(CAmRoutingInterfaceCAPITests, ackSourceNotificationConfiguration)
if(env->mIsServiceAvailable)
{
CallStatus callStatus = CallStatus::NOT_AVAILABLE;
- am_gen::am_Error_e error = am_gen::am_Error_e::E_OK;
+ org::genivi::am::am_Error_e error = org::genivi::am::am_Error_e::E_OK;
uint16_t testID = TEST_ID_1;
am_Handle_s handle_s;
handle_s.handle = testID;
handle_s.handleType = H_CONNECT;
+ org::genivi::am::am_Handle_s CAPIHandle;
+ CAmConvertAM2CAPI(handle_s,CAPIHandle);
+ org::genivi::am::am_Error_e genError(org::genivi::am::am_Error_e::E_OK);
EXPECT_CALL(*env->mpRoutingReceive, ackSourceNotificationConfiguration(IsHandleStructEqualTo(handle_s), (am_Error_e)error)).Times(1);
- env->mProxy->ackSourceNotificationConfiguration(testID, (uint16_t)error, callStatus);
+ env->mProxy->ackSourceNotificationConfiguration(CAPIHandle, genError, callStatus);
ASSERT_EQ( callStatus, CallStatus::SUCCESS );
}
EXPECT_TRUE(Mock::VerifyAndClearExpectations(env->mpRoutingReceive));
@@ -1570,8 +1487,8 @@ TEST_F(CAmRoutingInterfaceCAPITests, hookSinkNotificationDataChange)
{
CallStatus callStatus = CallStatus::NOT_AVAILABLE;
am_Error_e error = E_OK;
- am_gen::am_sinkID_t testID = TEST_ID_1;
- am_gen::notificationPayload_s payload(am_NotificationType_e::NT_MAX, 50);
+ org::genivi::am::am_sinkID_t testID = TEST_ID_1;
+ org::genivi::am::am_NotificationPayload_s payload(static_cast<org::genivi::am::am_NotificationType_pe>(am_NotificationType_e::NT_MAX), 50);
am_NotificationPayload_s am_payload = (am_NotificationPayload_s){am_NotificationType_e::NT_MAX, 50};
@@ -1589,8 +1506,8 @@ TEST_F(CAmRoutingInterfaceCAPITests, hookSourceNotificationDataChange)
{
CallStatus callStatus = CallStatus::NOT_AVAILABLE;
am_Error_e error = E_OK;
- am_gen::am_sourceID_t testID = TEST_ID_1;
- am_gen::notificationPayload_s payload(am_NotificationType_e::NT_MAX, 50);
+ org::genivi::am::am_sourceID_t testID = TEST_ID_1;
+ org::genivi::am::am_NotificationPayload_s payload(am_NotificationType_e::NT_MAX, 50);
am_NotificationPayload_s am_payload = (am_NotificationPayload_s){am_NotificationType_e::NT_MAX, 50};
@@ -1621,16 +1538,16 @@ TEST_F(CAmRoutingSenderCAPITests, TestDomain_registerDomain)
ASSERT_FALSE( backdoor.containsDomainWithID( (const am_domainID_t)TEST_ID_1) );
CallStatus callStatus = CallStatus::NOT_AVAILABLE;
- am_gen::am_Error_e error = am_gen::am_Error_e::E_UNKNOWN;
- am_gen:am_domainID_t domainID = 0;
- am_gen::am_Domain_s domainData;
+ org::genivi::am::am_Error_e error = org::genivi::am::am_Error_e::E_UNKNOWN;
+ org::genivi::am::am_domainID_t domainID = 0;
+ org::genivi::am::am_Domain_s domainData;
domainData.name = "TestDomain";
domainData.busname ="TestDomain";
domainData.complete = true;
domainData.domainID = domainID;
domainData.early = false;
domainData.nodename = "Test";
- domainData.state = am_gen::am_DomainState_e::DS_CONTROLLED;
+ domainData.state = org::genivi::am::am_DomainState_e::DS_CONTROLLED;
am::am_Domain_s amDomainData;
CAmConvertCAPI2AM(domainData, amDomainData);
@@ -1647,7 +1564,7 @@ TEST_F(CAmRoutingSenderCAPITests, TestDomain_registerDomain)
error);
usleep(50000);
ASSERT_EQ( callStatus, CallStatus::SUCCESS );
- ASSERT_EQ( error, am_gen::am_Error_e::E_OK );
+ ASSERT_EQ( error, org::genivi::am::am_Error_e::E_OK );
ASSERT_EQ( domainID, TEST_ID_1 );
ASSERT_TRUE( backdoor.containsDomainWithID(domainID) );
@@ -1666,7 +1583,7 @@ TEST_F(CAmRoutingSenderCAPITests, TestDomain_registerDomain)
error);
usleep(50000);
ASSERT_EQ( callStatus, CallStatus::SUCCESS );
- ASSERT_EQ( error, am_gen::am_Error_e::E_OK );
+ ASSERT_EQ( error, org::genivi::am::am_Error_e::E_OK );
ASSERT_EQ( domainID, TEST_ID_2 );
ASSERT_TRUE( backdoor.domainsCount()==2 );
ASSERT_TRUE( backdoor.containsDomainWithID( (const am_domainID_t)TEST_ID_1) );
@@ -1681,16 +1598,16 @@ TEST_F(CAmRoutingSenderCAPITests, TestDomain_registerSource)
ASSERT_TRUE(env->mIsServiceAvailable);
if(env->mIsServiceAvailable)
{
- const am_gen::am_domainID_t domainID = TEST_ID_1;
+ const org::genivi::am::am_domainID_t domainID = TEST_ID_1;
IAmRoutingSenderBackdoor backdoor(env->mpPlugin);
ASSERT_TRUE( backdoor.containsDomainWithID( (const am_domainID_t)domainID) );
CallStatus callStatus = CallStatus::NOT_AVAILABLE;
- am_gen::am_Error_e error = am_gen::am_Error_e::E_UNKNOWN;
+ org::genivi::am::am_Error_e error = org::genivi::am::am_Error_e::E_UNKNOWN;
- am_gen::sourceData_s source;
+ org::genivi::am::am_Source_s source;
am_Source_s amSource;
- am_gen:am_sourceID_t sinkID = 0;
+ org::genivi::am::am_sourceID_t sinkID = 0;
initSource(source, amSource, domainID, sinkID);
ON_CALL(*env->mpRoutingReceive, registerSource(_, _)).WillByDefault(Return(E_OK));
@@ -1698,7 +1615,7 @@ TEST_F(CAmRoutingSenderCAPITests, TestDomain_registerSource)
env->mProxy->registerSource(source, callStatus, sinkID, error);
usleep(50000);
ASSERT_EQ( sinkID, TEST_ID_1 );
- ASSERT_EQ( error, am_gen::am_Error_e::E_OK );
+ ASSERT_EQ( error, org::genivi::am::am_Error_e::E_OK );
ASSERT_EQ( callStatus, CallStatus::SUCCESS );
ASSERT_TRUE( backdoor.containsSourceWithID( (const am_sourceID_t)TEST_ID_1) );
@@ -1707,7 +1624,7 @@ TEST_F(CAmRoutingSenderCAPITests, TestDomain_registerSource)
env->mProxy->registerSource(source, callStatus, sinkID, error);
usleep(50000);
ASSERT_EQ( callStatus, CallStatus::SUCCESS );
- ASSERT_EQ( error, am_gen::am_Error_e::E_OK );
+ ASSERT_EQ( error, org::genivi::am::am_Error_e::E_OK );
ASSERT_EQ( sinkID, TEST_ID_2 );
ASSERT_TRUE( backdoor.containsSourceWithID( (const am_sourceID_t)TEST_ID_2) );
ASSERT_TRUE( backdoor.sourcesCount()==2 );
@@ -1722,16 +1639,16 @@ TEST_F(CAmRoutingSenderCAPITests, TestDomain_registerSink)
ASSERT_TRUE(env->mIsServiceAvailable);
if(env->mIsServiceAvailable)
{
- const am_gen::am_domainID_t domainID = TEST_ID_1;
+ const org::genivi::am::am_domainID_t domainID = TEST_ID_1;
IAmRoutingSenderBackdoor backdoor(env->mpPlugin);
ASSERT_TRUE( backdoor.containsDomainWithID( (const am_domainID_t)domainID) );
CallStatus callStatus = CallStatus::NOT_AVAILABLE;
- am_gen::am_Error_e error = am_gen::am_Error_e::E_UNKNOWN;
+ org::genivi::am::am_Error_e error = org::genivi::am::am_Error_e::E_UNKNOWN;
- am_gen::sinkData_s sink;
+ org::genivi::am::am_Sink_s sink;
am_Sink_s amSink;
- am_gen:am_sinkID_t sinkID = 0;
+ org::genivi::am::am_sinkID_t sinkID = 0;
initSink(sink, amSink, domainID, sinkID);
ON_CALL(*env->mpRoutingReceive, registerSink(_, _)).WillByDefault(Return(E_OK));
@@ -1740,7 +1657,7 @@ TEST_F(CAmRoutingSenderCAPITests, TestDomain_registerSink)
usleep(50000);
ASSERT_EQ( callStatus, CallStatus::SUCCESS );
- ASSERT_EQ( error, am_gen::am_Error_e::E_OK );
+ ASSERT_EQ( error, org::genivi::am::am_Error_e::E_OK );
ASSERT_EQ( sinkID, TEST_ID_1 );
ASSERT_TRUE( backdoor.containsSinkWithID( (const am_sourceID_t)TEST_ID_1) );
@@ -1750,7 +1667,7 @@ TEST_F(CAmRoutingSenderCAPITests, TestDomain_registerSink)
usleep(50000);
ASSERT_EQ( callStatus, CallStatus::SUCCESS );
- ASSERT_EQ( error, am_gen::am_Error_e::E_OK );
+ ASSERT_EQ( error, org::genivi::am::am_Error_e::E_OK );
ASSERT_EQ( sinkID, TEST_ID_2 );
ASSERT_TRUE( backdoor.containsSinkWithID( (const am_sourceID_t)TEST_ID_2) );
ASSERT_TRUE( backdoor.sinksCount()==2 );
@@ -1768,8 +1685,8 @@ TEST_F(CAmRoutingSenderCAPITests, TestDomain_asyncSetSourceState)
ASSERT_TRUE(env->mIsServiceAvailable);
if(env->mIsServiceAvailable)
{
- const am_gen::am_domainID_t domainID = TEST_ID_1;
- const am_gen::am_sourceID_t sID = TEST_ID_1;
+ const org::genivi::am::am_domainID_t domainID = TEST_ID_1;
+ const org::genivi::am::am_sourceID_t sID = TEST_ID_1;
IAmRoutingSenderBackdoor backdoor(env->mpPlugin);
ASSERT_TRUE( backdoor.containsDomainWithID( (const am_domainID_t)domainID) );
ASSERT_TRUE( backdoor.containsSourceWithID( (const am_sourceID_t)sID) );
@@ -1792,8 +1709,8 @@ TEST_F(CAmRoutingSenderCAPITests, TestDomain_asyncSetSourceVolume)
ASSERT_TRUE(env->mIsServiceAvailable);
if(env->mIsServiceAvailable)
{
- const am_gen::am_domainID_t domainID = TEST_ID_1;
- const am_gen::am_sourceID_t sID = TEST_ID_1;
+ const org::genivi::am::am_domainID_t domainID = TEST_ID_1;
+ const org::genivi::am::am_sourceID_t sID = TEST_ID_1;
IAmRoutingSenderBackdoor backdoor(env->mpPlugin);
ASSERT_TRUE( backdoor.containsDomainWithID( (const am_domainID_t)domainID) );
ASSERT_TRUE( backdoor.containsSourceWithID( (const am_sourceID_t)sID) );
@@ -1818,15 +1735,15 @@ TEST_F(CAmRoutingSenderCAPITests, TestDomain_registerCrossfader)
ASSERT_TRUE(env->mIsServiceAvailable);
if(env->mIsServiceAvailable)
{
- const am_gen::am_domainID_t domainID = TEST_ID_1;
+ const org::genivi::am::am_domainID_t domainID = TEST_ID_1;
IAmRoutingSenderBackdoor backdoor(env->mpPlugin);
ASSERT_TRUE( backdoor.containsDomainWithID( (const am_domainID_t)domainID) );
CallStatus callStatus = CallStatus::NOT_AVAILABLE;
- am_gen::am_Error_e error = am_gen::am_Error_e::E_UNKNOWN;
+ org::genivi::am::am_Error_e error = org::genivi::am::am_Error_e::E_UNKNOWN;
- am_gen::am_crossfaderID_t crossfaderID = 0;
- am_gen::crossfaderData_s crossfaderData;
+ org::genivi::am::am_crossfaderID_t crossfaderID = 0;
+ org::genivi::am::am_Crossfader_s crossfaderData;
am_Crossfader_s amCrossfaderData;
initCrossfader(crossfaderData, amCrossfaderData, crossfaderID);
@@ -1836,7 +1753,7 @@ TEST_F(CAmRoutingSenderCAPITests, TestDomain_registerCrossfader)
usleep(50000);
ASSERT_EQ( callStatus, CallStatus::SUCCESS );
- ASSERT_EQ( error, am_gen::am_Error_e::E_OK );
+ ASSERT_EQ( error, org::genivi::am::am_Error_e::E_OK );
ASSERT_EQ( crossfaderID, TEST_ID_1 );
ASSERT_TRUE( backdoor.containsCrossfader( TEST_ID_1) );
}
@@ -1848,8 +1765,8 @@ TEST_F(CAmRoutingSenderCAPITests, TestDomain_asyncSetSinkVolume)
ASSERT_TRUE(env->mIsServiceAvailable);
if(env->mIsServiceAvailable)
{
- const am_gen::am_domainID_t domainID = TEST_ID_1;
- const am_gen::am_sinkID_t sID = TEST_ID_1;
+ const org::genivi::am::am_domainID_t domainID = TEST_ID_1;
+ const org::genivi::am::am_sinkID_t sID = TEST_ID_1;
IAmRoutingSenderBackdoor backdoor(env->mpPlugin);
ASSERT_TRUE( backdoor.containsDomainWithID( (const am_domainID_t)domainID) );
ASSERT_TRUE( backdoor.containsSourceWithID( (const am_sourceID_t)sID) );
@@ -1874,13 +1791,13 @@ TEST_F(CAmRoutingSenderCAPITests, TestDomain_asyncConnect)
ASSERT_TRUE(env->mIsServiceAvailable);
if(env->mIsServiceAvailable)
{
-// const am_gen::am_domainID_t domainID = TEST_ID_1;
+// const org::genivi::am::am_domainID_t domainID = TEST_ID_1;
IAmRoutingSenderBackdoor backdoor(env->mpPlugin);
ASSERT_TRUE( backdoor.containsDomainWithID( TEST_ID_1 ));
ASSERT_TRUE( backdoor.containsSinkWithID( TEST_ID_1 ));
ASSERT_TRUE( backdoor.containsSourceWithID( TEST_ID_1 ));
- am_gen::am_connectionID_t connectionID = TEST_ID_1;
+ org::genivi::am::am_connectionID_t connectionID = TEST_ID_1;
am_Handle_s handle = {H_CONNECT, 20};
am_ConnectionFormat_e cf = am_ConnectionFormat_e::CF_GENIVI_STEREO;
EXPECT_CALL(*env->mpRoutingReceive, ackConnect(IsHandleEqual(handle), connectionID, E_OK)).Times(1);
@@ -1902,7 +1819,7 @@ TEST_F(CAmRoutingSenderCAPITests, TestDomain_asyncDisconnect)
ASSERT_TRUE( backdoor.containsDomainWithID( TEST_ID_1 ));
ASSERT_TRUE( backdoor.containsConnection( TEST_ID_1 ));
- am_gen::am_connectionID_t connectionID = TEST_ID_1;
+ org::genivi::am::am_connectionID_t connectionID = TEST_ID_1;
am_Handle_s handle = {H_DISCONNECT, 20};
am_ConnectionFormat_e cf = am_ConnectionFormat_e::CF_GENIVI_STEREO;
EXPECT_CALL(*env->mpRoutingReceive, ackDisconnect(IsHandleEqual(handle), connectionID, E_OK)).Times(1);
@@ -1920,18 +1837,21 @@ TEST_F(CAmRoutingSenderCAPITests, TestDomain_asyncAbort)
ASSERT_TRUE(env->mIsServiceAvailable);
if(env->mIsServiceAvailable)
{
- const am_gen::am_domainID_t domainID = TEST_ID_1;
- const am_gen::am_sourceID_t sID = TEST_ID_1;
+ const org::genivi::am::am_domainID_t domainID = TEST_ID_1;
+ const org::genivi::am::am_sourceID_t sID = TEST_ID_1;
IAmRoutingSenderBackdoor backdoor(env->mpPlugin);
ASSERT_TRUE( backdoor.containsDomainWithID( (const am_domainID_t)domainID) );
ASSERT_TRUE( backdoor.containsSourceWithID( (const am_sourceID_t)sID) );
am_volume_t volume = 50;
am_Handle_s handle = {H_SETSOURCESTATE, 200};
+ org::genivi::am::am_Handle_s CAPIHandle;
+ CAPIHandle.handle=200;
+ CAPIHandle.handleType=org::genivi::am::am_Handle_e::H_SETSOURCESTATE;
am_SourceState_e state = am_SourceState_e::SS_MAX;
//we set an abort handle in order to test the return status
- env->mDomainService->setAbortHandle(handle.handle);
+ env->mDomainService->setAbortHandle(CAPIHandle);
EXPECT_CALL(*env->mpRoutingReceive, ackSetSourceState(IsHandleEqual(handle), E_ABORTED)).Times(1);
am_Error_e error = env->mpPlugin->asyncSetSourceState(handle, sID, state);
@@ -1960,8 +1880,8 @@ TEST_F(CAmRoutingSenderCAPITests, TestDomain_asyncSetSinkSoundProperties)
ASSERT_TRUE(env->mIsServiceAvailable);
if(env->mIsServiceAvailable)
{
- const am_gen::am_domainID_t domainID = TEST_ID_1;
- const am_gen::am_sinkID_t sID = TEST_ID_1;
+ const org::genivi::am::am_domainID_t domainID = TEST_ID_1;
+ const org::genivi::am::am_sinkID_t sID = TEST_ID_1;
IAmRoutingSenderBackdoor backdoor(env->mpPlugin);
ASSERT_TRUE( backdoor.containsDomainWithID( (const am_domainID_t)domainID) );
ASSERT_TRUE( backdoor.containsSourceWithID( (const am_sourceID_t)sID) );
@@ -1989,8 +1909,8 @@ TEST_F(CAmRoutingSenderCAPITests, TestDomain_asyncSetSinkSoundProperty)
ASSERT_TRUE(env->mIsServiceAvailable);
if(env->mIsServiceAvailable)
{
- const am_gen::am_domainID_t domainID = TEST_ID_1;
- const am_gen::am_sinkID_t sID = TEST_ID_1;
+ const org::genivi::am::am_domainID_t domainID = TEST_ID_1;
+ const org::genivi::am::am_sinkID_t sID = TEST_ID_1;
IAmRoutingSenderBackdoor backdoor(env->mpPlugin);
ASSERT_TRUE( backdoor.containsDomainWithID( (const am_domainID_t)domainID) );
ASSERT_TRUE( backdoor.containsSourceWithID( (const am_sourceID_t)sID) );
@@ -2013,8 +1933,8 @@ TEST_F(CAmRoutingSenderCAPITests, TestDomain_asyncSetSourceSoundProperties)
ASSERT_TRUE(env->mIsServiceAvailable);
if(env->mIsServiceAvailable)
{
- const am_gen::am_domainID_t domainID = TEST_ID_1;
- const am_gen::am_sourceID_t sID = TEST_ID_1;
+ const org::genivi::am::am_domainID_t domainID = TEST_ID_1;
+ const org::genivi::am::am_sourceID_t sID = TEST_ID_1;
IAmRoutingSenderBackdoor backdoor(env->mpPlugin);
ASSERT_TRUE( backdoor.containsDomainWithID( (const am_domainID_t)domainID) );
ASSERT_TRUE( backdoor.containsSourceWithID( (const am_sourceID_t)sID) );
@@ -2042,8 +1962,8 @@ TEST_F(CAmRoutingSenderCAPITests, TestDomain_asyncSetSourceSoundProperty)
ASSERT_TRUE(env->mIsServiceAvailable);
if(env->mIsServiceAvailable)
{
- const am_gen::am_domainID_t domainID = TEST_ID_1;
- const am_gen::am_sourceID_t sID = TEST_ID_1;
+ const org::genivi::am::am_domainID_t domainID = TEST_ID_1;
+ const org::genivi::am::am_sourceID_t sID = TEST_ID_1;
IAmRoutingSenderBackdoor backdoor(env->mpPlugin);
ASSERT_TRUE( backdoor.containsDomainWithID( (const am_domainID_t)domainID) );
ASSERT_TRUE( backdoor.containsSourceWithID( (const am_sourceID_t)sID) );
@@ -2066,7 +1986,7 @@ TEST_F(CAmRoutingSenderCAPITests, TestDomain_asyncCrossFade)
ASSERT_TRUE(env->mIsServiceAvailable);
if(env->mIsServiceAvailable)
{
- const am_gen::am_crossfaderID_t sID = TEST_ID_1;
+ const org::genivi::am::am_crossfaderID_t sID = TEST_ID_1;
IAmRoutingSenderBackdoor backdoor(env->mpPlugin);
ASSERT_TRUE( backdoor.containsDomainWithID( TEST_ID_1 ));
ASSERT_TRUE( backdoor.containsSourceWithID( TEST_ID_1 ));
@@ -2136,12 +2056,12 @@ TEST_F(CAmRoutingSenderCAPITests, TestDomain_asyncSetVolumes)
ASSERT_TRUE( backdoor.containsDomainWithID( TEST_ID_1) );
ASSERT_TRUE( backdoor.containsSourceWithID( TEST_ID_1) );
- am_gen::am_Volumes_l listVolumes;
- am_gen::am_DataType_u dt(static_cast<am_gen::am_sourceID_t>(TEST_ID_1));
- listVolumes.push_back(am_gen::am_Volumes_s(am_gen::am_VolumeType_e::VT_SOURCE,
+ org::genivi::am::am_Volumes_L listVolumes;
+ org::genivi::am::am_DataType_u dt(static_cast<org::genivi::am::am_sourceID_t>(TEST_ID_1));
+ listVolumes.push_back(org::genivi::am::am_Volumes_s(org::genivi::am::am_VolumeType_e::VT_SOURCE,
dt,
50,
- am_gen::am_RampType_e::RAMP_GENIVI_DIRECT,
+ static_cast<org::genivi::am::am_RampType_pe>(RAMP_GENIVI_DIRECT),
50));
std::vector<am_Volumes_s> am_listVolumes;
@@ -2171,8 +2091,8 @@ TEST_F(CAmRoutingSenderCAPITests, TestDomain_deregisterSink)
if(env->mIsServiceAvailable)
{
CallStatus callStatus = CallStatus::NOT_AVAILABLE;
- am_gen::am_Error_e error = am_gen::am_Error_e::E_UNKNOWN;
- am_gen:am_sinkID_t sinkID = TEST_ID_2;
+ org::genivi::am::am_Error_e error = org::genivi::am::am_Error_e::E_UNKNOWN;
+ org::genivi::am::am_sinkID_t sinkID = TEST_ID_2;
IAmRoutingSenderBackdoor backdoor(env->mpPlugin);
ASSERT_TRUE( backdoor.containsSinkWithID( sinkID ));
@@ -2181,7 +2101,7 @@ TEST_F(CAmRoutingSenderCAPITests, TestDomain_deregisterSink)
EXPECT_CALL(*env->mpRoutingReceive, deregisterSink(sinkID)).WillOnce(Return(E_OK));
env->mProxy->deregisterSink(sinkID, callStatus, error);
usleep(50000);
- ASSERT_EQ( error, am_gen::am_Error_e::E_OK );
+ ASSERT_EQ( error, org::genivi::am::am_Error_e::E_OK );
ASSERT_EQ( callStatus, CallStatus::SUCCESS );
ASSERT_FALSE( backdoor.containsSinkWithID( sinkID ));
}
@@ -2194,8 +2114,8 @@ TEST_F(CAmRoutingSenderCAPITests, TestDomain_deregisterSource)
if(env->mIsServiceAvailable)
{
CallStatus callStatus = CallStatus::NOT_AVAILABLE;
- am_gen::am_Error_e error = am_gen::am_Error_e::E_UNKNOWN;
- am_gen:am_sourceID_t sID = TEST_ID_2;
+ org::genivi::am::am_Error_e error = org::genivi::am::am_Error_e::E_UNKNOWN;
+ org::genivi::am::am_sourceID_t sID = TEST_ID_2;
IAmRoutingSenderBackdoor backdoor(env->mpPlugin);
ASSERT_TRUE( backdoor.containsSourceWithID( sID ));
@@ -2204,7 +2124,7 @@ TEST_F(CAmRoutingSenderCAPITests, TestDomain_deregisterSource)
EXPECT_CALL(*env->mpRoutingReceive, deregisterSource(sID)).WillOnce(Return(E_OK));
env->mProxy->deregisterSource(sID, callStatus, error);
usleep(50000);
- ASSERT_EQ( error, am_gen::am_Error_e::E_OK );
+ ASSERT_EQ( error, org::genivi::am::am_Error_e::E_OK );
ASSERT_EQ( callStatus, CallStatus::SUCCESS );
ASSERT_FALSE( backdoor.containsSourceWithID( sID ));
}
@@ -2217,8 +2137,8 @@ TEST_F(CAmRoutingSenderCAPITests, TestDomain_deregisterCrossfader)
if(env->mIsServiceAvailable)
{
CallStatus callStatus = CallStatus::NOT_AVAILABLE;
- am_gen::am_Error_e error = am_gen::am_Error_e::E_UNKNOWN;
- am_gen:am_crossfaderID_t sID = TEST_ID_1;
+ org::genivi::am::am_Error_e error = org::genivi::am::am_Error_e::E_UNKNOWN;
+ org::genivi::am::am_crossfaderID_t sID = TEST_ID_1;
IAmRoutingSenderBackdoor backdoor(env->mpPlugin);
ASSERT_TRUE( backdoor.containsCrossfader( sID ));
@@ -2227,7 +2147,7 @@ TEST_F(CAmRoutingSenderCAPITests, TestDomain_deregisterCrossfader)
EXPECT_CALL(*env->mpRoutingReceive, deregisterCrossfader(sID)).WillOnce(Return(E_OK));
env->mProxy->deregisterCrossfader(sID, callStatus, error);
usleep(50000);
- ASSERT_EQ( error, am_gen::am_Error_e::E_OK );
+ ASSERT_EQ( error, org::genivi::am::am_Error_e::E_OK );
ASSERT_EQ( callStatus, CallStatus::SUCCESS );
ASSERT_FALSE( backdoor.containsCrossfader( sID ));
}
@@ -2242,13 +2162,13 @@ TEST_F(CAmRoutingSenderCAPITests, TestDomain_deregisterDomain)
IAmRoutingSenderBackdoor backdoor(env->mpPlugin);
ASSERT_TRUE( backdoor.containsDomainWithID( TEST_ID_2 ));
CallStatus callStatus = CallStatus::NOT_AVAILABLE;
- am_gen::am_Error_e error = am_gen::am_Error_e::E_UNKNOWN;
+ org::genivi::am::am_Error_e error = org::genivi::am::am_Error_e::E_UNKNOWN;
ON_CALL(*env->mpRoutingReceive, deregisterDomain(_)).WillByDefault(Return(E_OK));
EXPECT_CALL(*env->mpRoutingReceive, deregisterDomain(TEST_ID_2)).WillOnce(Return(E_OK));
env->mProxy->deregisterDomain(TEST_ID_2, callStatus, error);
usleep(50000);
- ASSERT_EQ( error, am_gen::am_Error_e::E_OK );
+ ASSERT_EQ( error, org::genivi::am::am_Error_e::E_OK );
ASSERT_EQ( callStatus, CallStatus::SUCCESS );
ASSERT_EQ( backdoor.domainsCount(), 1 );
ASSERT_FALSE( backdoor.containsDomainWithID( TEST_ID_2 ));
@@ -2256,7 +2176,7 @@ TEST_F(CAmRoutingSenderCAPITests, TestDomain_deregisterDomain)
EXPECT_CALL(*env->mpRoutingReceive, deregisterDomain(TEST_ID_1)).WillOnce(Return(E_OK));
env->mProxy->deregisterDomain(TEST_ID_1, callStatus, error);
usleep(50000);
- ASSERT_EQ( error, am_gen::am_Error_e::E_OK );
+ ASSERT_EQ( error, org::genivi::am::am_Error_e::E_OK );
ASSERT_EQ( callStatus, CallStatus::SUCCESS );
ASSERT_FALSE( backdoor.containsDomainWithID( TEST_ID_1 ));
ASSERT_EQ( backdoor.domainsCount(), 0 );
@@ -2267,3 +2187,25 @@ TEST_F(CAmRoutingSenderCAPITests, TestDomain_deregisterDomain)
}
EXPECT_TRUE(Mock::VerifyAndClearExpectations(env->mpRoutingReceive));
}
+
+TEST_F(CAmRoutingInterfaceCAPITests, confirmRoutingRundown)
+{
+ ASSERT_TRUE(env->mIsServiceAvailable);
+ if(env->mIsServiceAvailable)
+ {
+ CallStatus callStatus = CallStatus::NOT_AVAILABLE, domainstatus;
+ org::genivi::am::am_domainID_t domainID;
+ am_Error_e error = E_OK;
+ org::genivi::am::am_Error_e CAPIError;
+ std::string testID = "myDomain";
+ org::genivi::am::am_Domain_s domainData;
+ ON_CALL(*env->mpRoutingReceive, registerDomain(_,_)).WillByDefault(Return(E_OK));
+ env->mProxy->registerDomain(domainData,"sd","sds","sd",domainstatus,domainID,CAPIError);
+ env->mpPlugin->setRoutingRundown(5);
+ EXPECT_CALL(*env->mpRoutingReceive, confirmRoutingRundown(5,E_OK)).Times(1);
+ env->mProxy->confirmRoutingRundown(testID, callStatus);
+ env->mProxy->deregisterDomain(domainID,domainstatus,CAPIError);
+ ASSERT_EQ( callStatus, CallStatus::SUCCESS );
+ }
+ EXPECT_TRUE(Mock::VerifyAndClearExpectations(env->mpRoutingReceive));
+}
diff --git a/PluginRoutingInterfaceCAPI/test/CAmRoutingInterfaceCAPITests.h b/PluginRoutingInterfaceCAPI/test/CAmRoutingInterfaceCAPITests.h
index ee7cc1d..5a1e264 100644
--- a/PluginRoutingInterfaceCAPI/test/CAmRoutingInterfaceCAPITests.h
+++ b/PluginRoutingInterfaceCAPI/test/CAmRoutingInterfaceCAPITests.h
@@ -25,7 +25,7 @@
#include "CAmTestCAPIWrapper.h"
#include "../include/CAmRoutingSenderCAPI.h"
#include "MockIAmRoutingReceive.h"
-#include <../src-gen/org/genivi/audiomanager/RoutingInterfaceProxy.h>
+#include <../src-gen/org/genivi/am/RoutingControlObserverProxy.h>
#define UNIT_TEST 1
@@ -33,8 +33,6 @@ using namespace testing;
using namespace CommonAPI;
namespace am {
-using namespace org::genivi::audiomanager;
-
class CAmCommandSenderDbusBackdoor;
class IAmCommandSend;
class CAmRoutingSenderService;
@@ -58,7 +56,7 @@ public:
MockIAmRoutingReceive *mpRoutingReceive;
CAmRoutingSenderCAPI *mpPlugin;
- std::shared_ptr<RoutingInterfaceProxy<>> mProxy; ///< pointer to routing interface proxy
+ std::shared_ptr<org::genivi::am::RoutingControlObserverProxy<> > mProxy; ///< pointer to routing interface proxy
std::shared_ptr<CAmRoutingSenderService> mDomainService; ///< pointer to the test domain service
CAmTestsEnvironment();
diff --git a/PluginRoutingInterfaceCAPI/test/CAmRoutingSenderService.cpp b/PluginRoutingInterfaceCAPI/test/CAmRoutingSenderService.cpp
index 3f2c7b3..bce9aef 100644
--- a/PluginRoutingInterfaceCAPI/test/CAmRoutingSenderService.cpp
+++ b/PluginRoutingInterfaceCAPI/test/CAmRoutingSenderService.cpp
@@ -31,23 +31,24 @@ const char * CAmRoutingSenderService::ROUTING_SENDER_SERVICE = CAPI_SENDER_ADDRE
const char * CAmRoutingSenderService::ROUTING_INTERFACE_SERVICE = CAPI_ROUTING_ADDRESS;
CAmRoutingSenderService::CAmRoutingSenderService(CAmCommonAPIWrapper * aWrapper):
- mDomainData(), mAbortedHandle(UINT_MAX), mIsDomainRegistred(false), mIsServiceAvailable(0), mIsReady(0), mpWrapper(aWrapper), mRoutingInterfaceProxy(NULL)
+ mDomainData(), mAbortedHandle(), mIsDomainRegistred(false), mIsServiceAvailable(0), mIsReady(0), mpWrapper(aWrapper), mRoutingInterfaceProxy(NULL)
{
-
+ mAbortedHandle.handle=UINT_MAX;
}
CAmRoutingSenderService::CAmRoutingSenderService():
- mDomainData(), mAbortedHandle(UINT_MAX), mIsDomainRegistred(false), mIsServiceAvailable(0), mIsReady(0), mpWrapper(NULL), mRoutingInterfaceProxy(NULL) {
- // TODO Auto-generated constructor stub
+ mDomainData(), mAbortedHandle(), mIsDomainRegistred(false), mIsServiceAvailable(0), mIsReady(0), mpWrapper(NULL), mRoutingInterfaceProxy(NULL)
+{
}
-CAmRoutingSenderService::CAmRoutingSenderService(CAmCommonAPIWrapper * aWrapper, std::shared_ptr<RoutingInterfaceProxy<> > aProxy):
- mDomainData(), mAbortedHandle(UINT_MAX), mIsDomainRegistred(false), mIsServiceAvailable(0), mIsReady(0), mpWrapper(aWrapper), mRoutingInterfaceProxy(aProxy)
+CAmRoutingSenderService::CAmRoutingSenderService(CAmCommonAPIWrapper * aWrapper, std::shared_ptr<org::genivi::am::RoutingControlObserverProxy<> > aProxy):
+ mDomainData(), mAbortedHandle(), mIsDomainRegistred(false), mIsServiceAvailable(0), mIsReady(0), mpWrapper(aWrapper), mRoutingInterfaceProxy(aProxy)
{
+ mAbortedHandle.handle=UINT_MAX;
mRoutingInterfaceProxy->getProxyStatusEvent().subscribe(std::bind(&CAmRoutingSenderService::onServiceStatusEvent,this,std::placeholders::_1));
- mRoutingInterfaceProxy->getSetRoutingReadyEvent().subscribe(std::bind(&CAmRoutingSenderService::onRoutingReadyEvent,this));
- mRoutingInterfaceProxy->getSetRoutingRundownEvent().subscribe(std::bind(&CAmRoutingSenderService::onRoutingReadyRundown,this));
+ //mRoutingInterfaceProxy->getSetRoutingReadyEvent().subscribe(std::bind(&CAmRoutingSenderService::onRoutingReadyEvent(),this));
+ //mRoutingInterfaceProxy->getSetRoutingRundownEvent().subscribe(std::bind(&CAmRoutingSenderService::onRoutingReadyRundown,this));
}
CAmRoutingSenderService::~CAmRoutingSenderService() {
@@ -59,6 +60,9 @@ CAmRoutingSenderService::~CAmRoutingSenderService() {
void CAmRoutingSenderService::onServiceStatusEvent(const CommonAPI::AvailabilityStatus& serviceStatus)
{
logInfo(__PRETTY_FUNCTION__);
+ mIsDomainRegistred = false;
+ mIsServiceAvailable = false;
+ mIsReady = false;
std::stringstream avail;
avail << "(" << static_cast<int>(serviceStatus) << ")";
logInfo("Domain test service status changed to ", avail.str());
@@ -67,13 +71,12 @@ void CAmRoutingSenderService::onServiceStatusEvent(const CommonAPI::Availability
{
mIsServiceAvailable = true;
CommonAPI::CallStatus callStatus;
- mRoutingInterfaceProxy->getRoutingReadyState(callStatus, mIsReady);
- }
- else
- {
- mIsDomainRegistred = false;
- mIsServiceAvailable = false;
- mIsReady = false;
+ org::genivi::am::am_RoutingReady_e readyAttr;
+ mRoutingInterfaceProxy->getRoutingReadyAttribute().getValue(callStatus,readyAttr);
+ if (callStatus!=CommonAPI::CallStatus::SUCCESS)
+ logError(__PRETTY_FUNCTION__,"Could not get RoutingReady");
+ else
+ mIsReady = readyAttr == org::genivi::am::am_RoutingReady_e::RR_READY ? true : false;
}
}
@@ -90,9 +93,9 @@ void CAmRoutingSenderService::onRoutingReadyRundown()
mIsDomainRegistred = false;
}
-void CAmRoutingSenderService::setAbortHandle(uint16_t handle)
+void CAmRoutingSenderService::setAbortHandle(org::genivi::am::am_Handle_s handle)
{
- mAbortedHandle = handle;
+ mAbortedHandle=handle;
}
void CAmRoutingSenderService::registerDomain()
@@ -101,14 +104,14 @@ void CAmRoutingSenderService::registerDomain()
return;
mIsDomainRegistred = true;
logInfo(__PRETTY_FUNCTION__,"start registering Domain...");
- am_gen::am_Error_e error;
+ org::genivi::am::am_Error_e error;
mDomainData.name = "TestDomain";
mDomainData.busname ="TestDomain";
mDomainData.complete = true;
mDomainData.domainID = 0;
mDomainData.early = false;
mDomainData.nodename = "Test";
- mDomainData.state = am_gen::am_DomainState_e::DS_CONTROLLED;
+ mDomainData.state = org::genivi::am::am_DomainState_e::DS_CONTROLLED;
CommonAPI::CallStatus callStatus;
mRoutingInterfaceProxy->registerDomain(mDomainData,
CAPI_SENDER_INSTANCE,
@@ -120,103 +123,102 @@ void CAmRoutingSenderService::registerDomain()
logInfo("Domain: got domainID", mDomainData.domainID);
}
-uint16_t CAmRoutingSenderService::errorForHandle(const uint16_t & handle)
+org::genivi::am::am_Error_e CAmRoutingSenderService::errorForHandle(const org::genivi::am::am_Handle_s & handle)
{
- uint16_t error = E_OK;
- if(handle==mAbortedHandle && mAbortedHandle!=UINT_MAX)
+ org::genivi::am::am_Error_e error = org::genivi::am::am_Error_e::E_OK;
+ if(handle==mAbortedHandle && mAbortedHandle.handle!=UINT_MAX)
{
- error = (uint16_t)am_gen::am_Error_e::E_ABORTED;
- mAbortedHandle = UINT_MAX;
+ error = org::genivi::am::am_Error_e::E_ABORTED;
+ mAbortedHandle.handle = UINT_MAX;
}
return error;
}
-void CAmRoutingSenderService::asyncSetSourceState(uint16_t handle, am_gen::am_sourceID_t sourceID, am_gen::am_SourceState_e sourceState) {
+void CAmRoutingSenderService::asyncSetSourceState(org::genivi::am::am_Handle_s handle, org::genivi::am::am_sourceID_t sourceID, org::genivi::am::am_SourceState_e sourceState) {
logInfo(__FUNCTION__, " called");
CommonAPI::CallStatus callStatus;
mRoutingInterfaceProxy->ackSetSourceState(handle, errorForHandle(handle), callStatus);
}
-void CAmRoutingSenderService::setDomainState(am_gen::am_domainID_t domainID, am_gen::am_DomainState_e domainState, am_gen::am_Error_e& error) {
+void CAmRoutingSenderService::setDomainState(org::genivi::am::am_domainID_t domainID, org::genivi::am::am_DomainState_e domainState, org::genivi::am::am_Error_e& error) {
logInfo(__FUNCTION__, " called");
CommonAPI::CallStatus callStatus;
- error = am_gen::am_Error_e::E_OK;
+ error = org::genivi::am::am_Error_e::E_OK;
mRoutingInterfaceProxy->hookDomainStateChange(domainID, domainState, callStatus);
}
-void CAmRoutingSenderService::asyncSetSourceVolume(am_gen::am_handle_t handle, am_gen::am_sourceID_t sourceID, am_gen::am_volume_t volume, am_gen::am_RampType_e ramp, am_gen::am_time_t time) {
+void CAmRoutingSenderService::asyncSetSourceVolume(org::genivi::am::am_Handle_s handle, org::genivi::am::am_sourceID_t sourceID, org::genivi::am::am_volume_t volume, org::genivi::am::am_RampType_pe ramp, org::genivi::am::am_time_t time) {
logInfo(__FUNCTION__, " called");
CommonAPI::CallStatus callStatus;
- mRoutingInterfaceProxy->ackSetSourceVolume(handle, volume, errorForHandle(handle), callStatus);
+ mRoutingInterfaceProxy->ackSetSourceVolumeChange(handle, volume, errorForHandle(handle), callStatus);
}
-void CAmRoutingSenderService::asyncSetSinkVolume(am_gen::am_handle_t handle, am_gen::am_sinkID_t sinkID, am_gen::am_volume_t volume, am_gen::am_RampType_e ramp, am_gen::am_time_t time) {
+void CAmRoutingSenderService::asyncSetSinkVolume(org::genivi::am::am_Handle_s handle, org::genivi::am::am_sinkID_t sinkID, org::genivi::am::am_volume_t volume, org::genivi::am::am_RampType_pe ramp, org::genivi::am::am_time_t time) {
logInfo(__FUNCTION__, " called");
CommonAPI::CallStatus callStatus;
- mRoutingInterfaceProxy->ackSetSinkVolume(handle, volume, errorForHandle(handle), callStatus);
+ mRoutingInterfaceProxy->ackSetSinkVolumeChange(handle, volume, errorForHandle(handle), callStatus);
}
-void CAmRoutingSenderService::asyncConnect(am_gen::am_handle_t handle, am_gen::am_connectionID_t connectionID, am_gen::am_sourceID_t sourceID, am_gen::am_sinkID_t sinkID, am_gen::am_ConnectionFormat_e connectionFormat) {
+void CAmRoutingSenderService::asyncConnect(org::genivi::am::am_Handle_s handle, org::genivi::am::am_connectionID_t connectionID, org::genivi::am::am_sourceID_t sourceID, org::genivi::am::am_sinkID_t sinkID, org::genivi::am::am_ConnectionFormat_pe connectionFormat) {
logInfo(__FUNCTION__, " called");
CommonAPI::CallStatus callStatus;
mRoutingInterfaceProxy->ackConnect(handle, connectionID, errorForHandle(handle), callStatus);
}
-void CAmRoutingSenderService::asyncDisconnect(am_gen::am_handle_t handle, am_gen::am_connectionID_t connectionID) {
+void CAmRoutingSenderService::asyncDisconnect(org::genivi::am::am_Handle_s handle, org::genivi::am::am_connectionID_t connectionID) {
logInfo(__FUNCTION__, " called");
CommonAPI::CallStatus callStatus;
mRoutingInterfaceProxy->ackDisconnect(handle, connectionID, errorForHandle(handle), callStatus);
}
-void CAmRoutingSenderService::asyncAbort(am_gen::am_handle_t handle, am_gen::am_Error_e& error) {
+void CAmRoutingSenderService::asyncAbort(org::genivi::am::am_Handle_s handle) {
logInfo(__FUNCTION__, " called");
mAbortedHandle = handle;
- error = am_gen::am_Error_e::E_OK;
}
-void CAmRoutingSenderService::asyncSetSinkSoundProperties(am_gen::am_handle_t handle, am_gen::am_sinkID_t sinkID, am_gen::am_SoundProperty_L listSoundProperties) {
+void CAmRoutingSenderService::asyncSetSinkSoundProperties(org::genivi::am::am_Handle_s handle, org::genivi::am::am_sinkID_t sinkID, org::genivi::am::am_SoundProperty_L listSoundProperties) {
logInfo(__FUNCTION__, " called");
CommonAPI::CallStatus callStatus;
mRoutingInterfaceProxy->ackSetSinkSoundProperties(handle, errorForHandle(handle), callStatus);
}
-void CAmRoutingSenderService::asyncSetSinkSoundProperty(am_gen::am_handle_t handle, am_gen::am_sinkID_t sinkID, am_gen::am_SoundProperty_s soundProperty) {
+void CAmRoutingSenderService::asyncSetSinkSoundProperty(org::genivi::am::am_Handle_s handle, org::genivi::am::am_sinkID_t sinkID, org::genivi::am::am_SoundProperty_s soundProperty) {
logInfo(__FUNCTION__, " called");
CommonAPI::CallStatus callStatus;
mRoutingInterfaceProxy->ackSetSinkSoundProperty(handle, errorForHandle(handle), callStatus);
}
-void CAmRoutingSenderService::asyncSetSourceSoundProperties(am_gen::am_handle_t handle, am_gen::am_sourceID_t sourceID, am_gen::am_SoundProperty_L listSoundProperties) {
+void CAmRoutingSenderService::asyncSetSourceSoundProperties(org::genivi::am::am_Handle_s handle, org::genivi::am::am_sourceID_t sourceID, org::genivi::am::am_SoundProperty_L listSoundProperties) {
logInfo(__FUNCTION__, " called");
CommonAPI::CallStatus callStatus;
mRoutingInterfaceProxy->ackSetSourceSoundProperties(handle, errorForHandle(handle), callStatus);
}
-void CAmRoutingSenderService::asyncSetSourceSoundProperty(am_gen::am_handle_t handle, am_gen::am_sourceID_t sourceID, am_gen::am_SoundProperty_s soundProperty) {
+void CAmRoutingSenderService::asyncSetSourceSoundProperty(org::genivi::am::am_Handle_s handle, org::genivi::am::am_sourceID_t sourceID, org::genivi::am::am_SoundProperty_s soundProperty) {
logInfo(__FUNCTION__, " called");
CommonAPI::CallStatus callStatus;
mRoutingInterfaceProxy->ackSetSourceSoundProperty(handle, errorForHandle(handle), callStatus);
}
-void CAmRoutingSenderService::asyncCrossFade(am_gen::am_handle_t handle, am_gen::am_crossfaderID_t crossfaderID, am_gen::am_HotSink_e hotSink, am_gen::am_RampType_e rampType, am_gen::am_time_t time) {
+void CAmRoutingSenderService::asyncCrossFade(org::genivi::am::am_Handle_s handle, org::genivi::am::am_crossfaderID_t crossfaderID, org::genivi::am::am_HotSink_e hotSink, org::genivi::am::am_RampType_pe rampType, org::genivi::am::am_time_t time) {
logInfo(__FUNCTION__, " called");
CommonAPI::CallStatus callStatus;
- mRoutingInterfaceProxy->ackCrossFading(handle, hotSink, (am_gen::am_Error_e)errorForHandle(handle), callStatus);
+ mRoutingInterfaceProxy->ackCrossFading(handle, hotSink, (org::genivi::am::am_Error_e)errorForHandle(handle), callStatus);
}
-void CAmRoutingSenderService::asyncSetVolumes(am_gen::am_handle_t handle, am_gen::am_Volumes_l volumes) {
+void CAmRoutingSenderService::asyncSetVolumes(org::genivi::am::am_Handle_s handle, org::genivi::am::am_Volumes_L volumes) {
logInfo(__FUNCTION__, " called");
CommonAPI::CallStatus callStatus;
mRoutingInterfaceProxy->ackSetVolumes(handle, volumes, errorForHandle(handle), callStatus);
}
-void CAmRoutingSenderService::asyncSetSinkNotificationConfiguration(am_gen::am_handle_t handle, am_gen::am_sinkID_t sinkID, am_gen::am_NotificationConfiguration_s notificationConfiguration) {
+void CAmRoutingSenderService::asyncSetSinkNotificationConfiguration(org::genivi::am::am_Handle_s handle, org::genivi::am::am_sinkID_t sinkID, org::genivi::am::am_NotificationConfiguration_s notificationConfiguration) {
logInfo(__FUNCTION__, " called");
CommonAPI::CallStatus callStatus;
mRoutingInterfaceProxy->ackSinkNotificationConfiguration(handle, errorForHandle(handle), callStatus);
}
-void CAmRoutingSenderService::asyncSetSourceNotificationConfiguration(am_gen::am_handle_t handle, am_gen::am_sourceID_t sourceID, am_gen::am_NotificationConfiguration_s notificationConfiguration) {
+void CAmRoutingSenderService::asyncSetSourceNotificationConfiguration(org::genivi::am::am_Handle_s handle, org::genivi::am::am_sourceID_t sourceID, org::genivi::am::am_NotificationConfiguration_s notificationConfiguration) {
logInfo(__FUNCTION__, " called");
CommonAPI::CallStatus callStatus;
mRoutingInterfaceProxy->ackSourceNotificationConfiguration(handle, errorForHandle(handle), callStatus);
diff --git a/PluginRoutingInterfaceCAPI/test/CAmRoutingSenderService.h b/PluginRoutingInterfaceCAPI/test/CAmRoutingSenderService.h
index 36ae646..8e858b4 100644
--- a/PluginRoutingInterfaceCAPI/test/CAmRoutingSenderService.h
+++ b/PluginRoutingInterfaceCAPI/test/CAmRoutingSenderService.h
@@ -19,8 +19,8 @@
#define CAMROUTINGSENDERSERVICE_H_
#include "audiomanagertypes.h"
-#include <org/genivi/audiomanager/RoutingSenderStubDefault.h>
-#include <org/genivi/audiomanager/RoutingInterfaceProxy.h>
+#include <org/genivi/am/RoutingControlStubDefault.h>
+#include <org/genivi/am/RoutingControlObserverProxy.h>
/**
* GENERATED FROM CMAKE. PLEASE USE cmake/CAmRoutingSenderService.h.in IF YOU WANT TO MAKE CHANGES.
@@ -29,7 +29,6 @@
namespace am {
using namespace CommonAPI;
-using namespace org::genivi::audiomanager;
class CAmCommonAPIWrapper;
@@ -49,59 +48,59 @@ class CAmCommonAPIWrapper;
*
* Please see cmake/CAmRoutingSenderService.h.in
*/
-class CAmRoutingSenderService : public RoutingSenderStubDefault {
+class CAmRoutingSenderService : public org::genivi::am::RoutingControlStubDefault {
- am_gen::am_Domain_s mDomainData;
- uint16_t mAbortedHandle;
+ org::genivi::am::am_Domain_s mDomainData;
+ org::genivi::am::am_Handle_s mAbortedHandle;
bool mIsServiceAvailable;
bool mIsDomainRegistred;
bool mIsReady;
CAmCommonAPIWrapper *mpWrapper;
- std::shared_ptr<RoutingInterfaceProxy<> > mRoutingInterfaceProxy;
+ std::shared_ptr<org::genivi::am::RoutingControlObserverProxy<> > mRoutingInterfaceProxy;
public:
CAmRoutingSenderService();
CAmRoutingSenderService(CAmCommonAPIWrapper * aWrapper);
- CAmRoutingSenderService(CAmCommonAPIWrapper * aWrapper, std::shared_ptr<RoutingInterfaceProxy<> > aProxy);
+ CAmRoutingSenderService(CAmCommonAPIWrapper * aWrapper, std::shared_ptr<org::genivi::am::RoutingControlObserverProxy<> > aProxy);
virtual ~CAmRoutingSenderService();
void onServiceStatusEvent(const CommonAPI::AvailabilityStatus& serviceStatus);
void onRoutingReadyRundown();
void onRoutingReadyEvent();
void registerDomain();
- void setAbortHandle(uint16_t handle);
- uint16_t errorForHandle(const uint16_t & handle);
+ void setAbortHandle(org::genivi::am::am_Handle_s handle);
+ org::genivi::am::am_Error_e errorForHandle(const org::genivi::am::am_Handle_s & handle);
- virtual void asyncSetSourceState(uint16_t handle, am_gen::am_sourceID_t sourceID, am_gen::am_SourceState_e sourceState);
+ virtual void asyncSetSourceState(org::genivi::am::am_Handle_s handle, org::genivi::am::am_sourceID_t sourceID, org::genivi::am::am_SourceState_e sourceState);
- virtual void setDomainState(am_gen::am_domainID_t domainID, am_gen::am_DomainState_e domainState, am_gen::am_Error_e& error);
+ virtual void setDomainState(org::genivi::am::am_domainID_t domainID, org::genivi::am::am_DomainState_e domainState, org::genivi::am::am_Error_e& error);
- virtual void asyncSetSourceVolume(am_gen::am_handle_t handle, am_gen::am_sourceID_t sourceID, am_gen::am_volume_t volume, am_gen::am_RampType_e ramp, am_gen::am_time_t time);
+ virtual void asyncSetSourceVolume(org::genivi::am::am_Handle_s handle, org::genivi::am::am_sourceID_t sourceID, org::genivi::am::am_volume_t volume, org::genivi::am::am_RampType_pe ramp, org::genivi::am::am_time_t time);
- virtual void asyncSetSinkVolume(am_gen::am_handle_t handle, am_gen::am_sinkID_t sinkID, am_gen::am_volume_t volume, am_gen::am_RampType_e ramp, am_gen::am_time_t time);
+ virtual void asyncSetSinkVolume(org::genivi::am::am_Handle_s handle, org::genivi::am::am_sinkID_t sinkID, org::genivi::am::am_volume_t volume, org::genivi::am::am_RampType_pe ramp, org::genivi::am::am_time_t time);
- virtual void asyncConnect(am_gen::am_handle_t handle, am_gen::am_connectionID_t connectionID, am_gen::am_sourceID_t sourceID, am_gen::am_sinkID_t sinkID, am_gen::am_ConnectionFormat_e connectionFormat);
+ virtual void asyncConnect(org::genivi::am::am_Handle_s handle, org::genivi::am::am_connectionID_t connectionID, org::genivi::am::am_sourceID_t sourceID, org::genivi::am::am_sinkID_t sinkID, org::genivi::am::am_ConnectionFormat_pe connectionFormat);
- virtual void asyncDisconnect(am_gen::am_handle_t handle, am_gen::am_connectionID_t connectionID);
+ virtual void asyncDisconnect(org::genivi::am::am_Handle_s handle, org::genivi::am::am_connectionID_t connectionID);
- virtual void asyncAbort(am_gen::am_handle_t handle, am_gen::am_Error_e& error);
+ virtual void asyncAbort(org::genivi::am::am_Handle_s handle);
- virtual void asyncSetSinkSoundProperties(am_gen::am_handle_t handle, am_gen::am_sinkID_t sinkID, am_gen::am_SoundProperty_L listSoundProperties);
+ virtual void asyncSetSinkSoundProperties(org::genivi::am::am_Handle_s handle, org::genivi::am::am_sinkID_t sinkID, org::genivi::am::am_SoundProperty_L listSoundProperties);
- virtual void asyncSetSinkSoundProperty(am_gen::am_handle_t handle, am_gen::am_sinkID_t sinkID, am_gen::am_SoundProperty_s soundProperty);
+ virtual void asyncSetSinkSoundProperty(org::genivi::am::am_Handle_s handle, org::genivi::am::am_sinkID_t sinkID, org::genivi::am::am_SoundProperty_s soundProperty);
- virtual void asyncSetSourceSoundProperties(am_gen::am_handle_t handle, am_gen::am_sourceID_t sourceID, am_gen::am_SoundProperty_L listSoundProperties);
+ virtual void asyncSetSourceSoundProperties(org::genivi::am::am_Handle_s handle, org::genivi::am::am_sourceID_t sourceID, org::genivi::am::am_SoundProperty_L listSoundProperties);
- virtual void asyncSetSourceSoundProperty(am_gen::am_handle_t handle, am_gen::am_sourceID_t sourceID, am_gen::am_SoundProperty_s soundProperty);
+ virtual void asyncSetSourceSoundProperty(org::genivi::am::am_Handle_s handle, org::genivi::am::am_sourceID_t sourceID, org::genivi::am::am_SoundProperty_s soundProperty);
- virtual void asyncCrossFade(am_gen::am_handle_t handle, am_gen::am_crossfaderID_t crossfaderID, am_gen::am_HotSink_e hotSink, am_gen::am_RampType_e rampType, am_gen::am_time_t time);
+ virtual void asyncCrossFade(org::genivi::am::am_Handle_s handle, org::genivi::am::am_crossfaderID_t crossfaderID, org::genivi::am::am_HotSink_e hotSink, org::genivi::am::am_RampType_pe rampType, org::genivi::am::am_time_t time);
- virtual void asyncSetVolumes(am_gen::am_handle_t handle, am_gen::am_Volumes_l volumes);
+ virtual void asyncSetVolumes(org::genivi::am::am_Handle_s handle, org::genivi::am::am_Volumes_L volumes);
- virtual void asyncSetSinkNotificationConfiguration(am_gen::am_handle_t handle, am_gen::am_sinkID_t sinkID, am_gen::am_NotificationConfiguration_s notificationConfiguration);
+ virtual void asyncSetSinkNotificationConfiguration(org::genivi::am::am_Handle_s handle, org::genivi::am::am_sinkID_t sinkID, org::genivi::am::am_NotificationConfiguration_s notificationConfiguration);
- virtual void asyncSetSourceNotificationConfiguration(am_gen::am_handle_t handle, am_gen::am_sourceID_t sourceID, am_gen::am_NotificationConfiguration_s notificationConfiguration);
+ virtual void asyncSetSourceNotificationConfiguration(org::genivi::am::am_Handle_s handle, org::genivi::am::am_sourceID_t sourceID, org::genivi::am::am_NotificationConfiguration_s notificationConfiguration);
static const char * ROUTING_SENDER_SERVICE;
static const char * ROUTING_INTERFACE_SERVICE;
diff --git a/PluginRoutingInterfaceCAPI/test/cmake/CAmRoutingSenderService.h.in b/PluginRoutingInterfaceCAPI/test/cmake/CAmRoutingSenderService.h.in
index 2b23745..273fb5c 100644
--- a/PluginRoutingInterfaceCAPI/test/cmake/CAmRoutingSenderService.h.in
+++ b/PluginRoutingInterfaceCAPI/test/cmake/CAmRoutingSenderService.h.in
@@ -19,8 +19,8 @@
#define CAMROUTINGSENDERSERVICE_H_
#include "audiomanagertypes.h"
-#include <org/genivi/audiomanager/RoutingSenderStubDefault.h>
-#include <org/genivi/audiomanager/RoutingInterfaceProxy.h>
+#include <org/genivi/am/RoutingControlStubDefault.h>
+#include <org/genivi/am/RoutingControlObserverProxy.h>
/**
* GENERATED FROM CMAKE. PLEASE USE cmake/CAmRoutingSenderService.h.in IF YOU WANT TO MAKE CHANGES.
@@ -29,7 +29,6 @@
namespace am {
using namespace CommonAPI;
-using namespace org::genivi::audiomanager;
class CAmCommonAPIWrapper;
@@ -49,59 +48,59 @@ class CAmCommonAPIWrapper;
*
* Please see cmake/CAmRoutingSenderService.h.in
*/
-class CAmRoutingSenderService : public RoutingSenderStubDefault {
+class CAmRoutingSenderService : public org::genivi::am::RoutingControlStubDefault {
- am_gen::am_Domain_s mDomainData;
- uint16_t mAbortedHandle;
+ org::genivi::am::am_Domain_s mDomainData;
+ org::genivi::am::am_Handle_s mAbortedHandle;
bool mIsServiceAvailable;
bool mIsDomainRegistred;
bool mIsReady;
CAmCommonAPIWrapper *mpWrapper;
- std::shared_ptr<RoutingInterfaceProxy<> > mRoutingInterfaceProxy;
+ std::shared_ptr<org::genivi::am::RoutingControlObserverProxy<> > mRoutingInterfaceProxy;
public:
CAmRoutingSenderService();
CAmRoutingSenderService(CAmCommonAPIWrapper * aWrapper);
- CAmRoutingSenderService(CAmCommonAPIWrapper * aWrapper, std::shared_ptr<RoutingInterfaceProxy<> > aProxy);
+ CAmRoutingSenderService(CAmCommonAPIWrapper * aWrapper, std::shared_ptr<org::genivi::am::RoutingControlObserverProxy<> > aProxy);
virtual ~CAmRoutingSenderService();
void onServiceStatusEvent(const CommonAPI::AvailabilityStatus& serviceStatus);
void onRoutingReadyRundown();
void onRoutingReadyEvent();
void registerDomain();
- void setAbortHandle(uint16_t handle);
- uint16_t errorForHandle(const uint16_t & handle);
+ void setAbortHandle(org::genivi::am::am_Handle_s handle);
+ org::genivi::am::am_Error_e errorForHandle(const org::genivi::am::am_Handle_s & handle);
- virtual void asyncSetSourceState(uint16_t handle, am_gen::am_sourceID_t sourceID, am_gen::am_SourceState_e sourceState);
+ virtual void asyncSetSourceState(org::genivi::am::am_Handle_s handle, org::genivi::am::am_sourceID_t sourceID, org::genivi::am::am_SourceState_e sourceState);
- virtual void setDomainState(am_gen::am_domainID_t domainID, am_gen::am_DomainState_e domainState, am_gen::am_Error_e& error);
+ virtual void setDomainState(org::genivi::am::am_domainID_t domainID, org::genivi::am::am_DomainState_e domainState, org::genivi::am::am_Error_e& error);
- virtual void asyncSetSourceVolume(am_gen::am_handle_t handle, am_gen::am_sourceID_t sourceID, am_gen::am_volume_t volume, am_gen::am_RampType_e ramp, am_gen::am_time_t time);
+ virtual void asyncSetSourceVolume(org::genivi::am::am_Handle_s handle, org::genivi::am::am_sourceID_t sourceID, org::genivi::am::am_volume_t volume, org::genivi::am::am_RampType_pe ramp, org::genivi::am::am_time_t time);
- virtual void asyncSetSinkVolume(am_gen::am_handle_t handle, am_gen::am_sinkID_t sinkID, am_gen::am_volume_t volume, am_gen::am_RampType_e ramp, am_gen::am_time_t time);
+ virtual void asyncSetSinkVolume(org::genivi::am::am_Handle_s handle, org::genivi::am::am_sinkID_t sinkID, org::genivi::am::am_volume_t volume, org::genivi::am::am_RampType_pe ramp, org::genivi::am::am_time_t time);
- virtual void asyncConnect(am_gen::am_handle_t handle, am_gen::am_connectionID_t connectionID, am_gen::am_sourceID_t sourceID, am_gen::am_sinkID_t sinkID, am_gen::am_ConnectionFormat_e connectionFormat);
+ virtual void asyncConnect(org::genivi::am::am_Handle_s handle, org::genivi::am::am_connectionID_t connectionID, org::genivi::am::am_sourceID_t sourceID, org::genivi::am::am_sinkID_t sinkID, org::genivi::am::am_ConnectionFormat_pe connectionFormat);
- virtual void asyncDisconnect(am_gen::am_handle_t handle, am_gen::am_connectionID_t connectionID);
+ virtual void asyncDisconnect(org::genivi::am::am_Handle_s handle, org::genivi::am::am_connectionID_t connectionID);
- virtual void asyncAbort(am_gen::am_handle_t handle, am_gen::am_Error_e& error);
+ virtual void asyncAbort(org::genivi::am::am_Handle_s handle);
- virtual void asyncSetSinkSoundProperties(am_gen::am_handle_t handle, am_gen::am_sinkID_t sinkID, am_gen::am_SoundProperty_L listSoundProperties);
+ virtual void asyncSetSinkSoundProperties(org::genivi::am::am_Handle_s handle, org::genivi::am::am_sinkID_t sinkID, org::genivi::am::am_SoundProperty_L listSoundProperties);
- virtual void asyncSetSinkSoundProperty(am_gen::am_handle_t handle, am_gen::am_sinkID_t sinkID, am_gen::am_SoundProperty_s soundProperty);
+ virtual void asyncSetSinkSoundProperty(org::genivi::am::am_Handle_s handle, org::genivi::am::am_sinkID_t sinkID, org::genivi::am::am_SoundProperty_s soundProperty);
- virtual void asyncSetSourceSoundProperties(am_gen::am_handle_t handle, am_gen::am_sourceID_t sourceID, am_gen::am_SoundProperty_L listSoundProperties);
+ virtual void asyncSetSourceSoundProperties(org::genivi::am::am_Handle_s handle, org::genivi::am::am_sourceID_t sourceID, org::genivi::am::am_SoundProperty_L listSoundProperties);
- virtual void asyncSetSourceSoundProperty(am_gen::am_handle_t handle, am_gen::am_sourceID_t sourceID, am_gen::am_SoundProperty_s soundProperty);
+ virtual void asyncSetSourceSoundProperty(org::genivi::am::am_Handle_s handle, org::genivi::am::am_sourceID_t sourceID, org::genivi::am::am_SoundProperty_s soundProperty);
- virtual void asyncCrossFade(am_gen::am_handle_t handle, am_gen::am_crossfaderID_t crossfaderID, am_gen::am_HotSink_e hotSink, am_gen::am_RampType_e rampType, am_gen::am_time_t time);
+ virtual void asyncCrossFade(org::genivi::am::am_Handle_s handle, org::genivi::am::am_crossfaderID_t crossfaderID, org::genivi::am::am_HotSink_e hotSink, org::genivi::am::am_RampType_pe rampType, org::genivi::am::am_time_t time);
- virtual void asyncSetVolumes(am_gen::am_handle_t handle, am_gen::am_Volumes_l volumes);
+ virtual void asyncSetVolumes(org::genivi::am::am_Handle_s handle, org::genivi::am::am_Volumes_L volumes);
- virtual void asyncSetSinkNotificationConfiguration(am_gen::am_handle_t handle, am_gen::am_sinkID_t sinkID, am_gen::am_NotificationConfiguration_s notificationConfiguration);
+ virtual void asyncSetSinkNotificationConfiguration(org::genivi::am::am_Handle_s handle, org::genivi::am::am_sinkID_t sinkID, org::genivi::am::am_NotificationConfiguration_s notificationConfiguration);
- virtual void asyncSetSourceNotificationConfiguration(am_gen::am_handle_t handle, am_gen::am_sourceID_t sourceID, am_gen::am_NotificationConfiguration_s notificationConfiguration);
+ virtual void asyncSetSourceNotificationConfiguration(org::genivi::am::am_Handle_s handle, org::genivi::am::am_sourceID_t sourceID, org::genivi::am::am_NotificationConfiguration_s notificationConfiguration);
static const char * ROUTING_SENDER_SERVICE;
static const char * ROUTING_INTERFACE_SERVICE;
diff --git a/src-gen/org/genivi/NodeStateManager/Consumer.h b/src-gen/org/genivi/NodeStateManager/Consumer.h
new file mode 100644
index 0000000..026f431
--- /dev/null
+++ b/src-gen/org/genivi/NodeStateManager/Consumer.h
@@ -0,0 +1,55 @@
+/*
+* This file was generated by the CommonAPI Generators.
+*
+ * Copyright (C) 2013, BMW AG
+ *
+ * \author Christian Linke, christian.linke@bmw.de BMW 2012,2013
+*/
+#ifndef ORG_GENIVI_NODESTATEMANAGER_Consumer_H_
+#define ORG_GENIVI_NODESTATEMANAGER_Consumer_H_
+
+
+
+#define COMMONAPI_INTERNAL_COMPILATION
+
+#include <CommonAPI/types.h>
+
+#undef COMMONAPI_INTERNAL_COMPILATION
+
+namespace org {
+namespace genivi {
+namespace NodeStateManager {
+
+class Consumer {
+ public:
+ virtual ~Consumer() { }
+
+ static inline const char* getInterfaceId();
+ static inline CommonAPI::Version getInterfaceVersion();
+};
+
+const char* Consumer::getInterfaceId() {
+ return "org.genivi.NodeStateManager.Consumer";
+}
+
+CommonAPI::Version Consumer::getInterfaceVersion() {
+ return CommonAPI::Version(1, 0);
+}
+
+
+} // namespace NodeStateManager
+} // namespace genivi
+} // namespace org
+
+namespace CommonAPI {
+
+}
+
+
+namespace std {
+ //hashes for types
+
+ //hashes for error types
+}
+
+#endif // ORG_GENIVI_NODESTATEMANAGER_Consumer_H_
diff --git a/src-gen/org/genivi/NodeStateManager/ConsumerDBusProxy.cpp b/src-gen/org/genivi/NodeStateManager/ConsumerDBusProxy.cpp
new file mode 100644
index 0000000..202680d
--- /dev/null
+++ b/src-gen/org/genivi/NodeStateManager/ConsumerDBusProxy.cpp
@@ -0,0 +1,277 @@
+/*
+* This file was generated by the CommonAPI Generators.
+*
+ * Copyright (C) 2013, BMW AG
+ *
+ * \author Christian Linke, christian.linke@bmw.de BMW 2012,2013
+*/
+#include "ConsumerDBusProxy.h"
+
+namespace org {
+namespace genivi {
+namespace NodeStateManager {
+
+std::shared_ptr<CommonAPI::DBus::DBusProxy> createConsumerDBusProxy(
+ const std::string& commonApiAddress,
+ const std::string& interfaceName,
+ const std::string& busName,
+ const std::string& objectPath,
+ const std::shared_ptr<CommonAPI::DBus::DBusProxyConnection>& dbusProxyConnection) {
+ return std::make_shared<ConsumerDBusProxy>(commonApiAddress, interfaceName, busName, objectPath, dbusProxyConnection);
+}
+
+__attribute__((constructor)) void registerConsumerDBusProxy(void) {
+ CommonAPI::DBus::DBusFactory::registerProxyFactoryMethod(Consumer::getInterfaceId(),
+ &createConsumerDBusProxy);
+}
+
+ConsumerDBusProxy::ConsumerDBusProxy(
+ const std::string& commonApiAddress,
+ const std::string& interfaceName,
+ const std::string& busName,
+ const std::string& objectPath,
+ const std::shared_ptr<CommonAPI::DBus::DBusProxyConnection>& dbusProxyconnection):
+ CommonAPI::DBus::DBusProxy(commonApiAddress, interfaceName, busName, objectPath, dbusProxyconnection)
+, bootMode_(*this, interfaceName.c_str(), "BootMode"),
+ restartReason_(*this, interfaceName.c_str(), "RestartReason"),
+ shutdownReason_(*this, interfaceName.c_str(), "ShutdownReason"),
+ wakeUpReason_(*this, interfaceName.c_str(), "WakeUpReason")
+, nodeApplicationMode_(*this, "NodeApplicationMode", "i"),
+ sessionStateChanged_(*this, "SessionStateChanged", "sii"),
+ nodeState_(*this, "NodeState", "i")
+ {
+}
+
+ConsumerDBusProxy::BootModeAttribute& ConsumerDBusProxy::getBootModeAttribute() {
+ return bootMode_;
+}
+ConsumerDBusProxy::RestartReasonAttribute& ConsumerDBusProxy::getRestartReasonAttribute() {
+ return restartReason_;
+}
+ConsumerDBusProxy::ShutdownReasonAttribute& ConsumerDBusProxy::getShutdownReasonAttribute() {
+ return shutdownReason_;
+}
+ConsumerDBusProxy::WakeUpReasonAttribute& ConsumerDBusProxy::getWakeUpReasonAttribute() {
+ return wakeUpReason_;
+}
+
+ConsumerDBusProxy::NodeApplicationModeEvent& ConsumerDBusProxy::getNodeApplicationModeEvent() {
+ return nodeApplicationMode_;
+}
+ConsumerDBusProxy::SessionStateChangedEvent& ConsumerDBusProxy::getSessionStateChangedEvent() {
+ return sessionStateChanged_;
+}
+ConsumerDBusProxy::NodeStateEvent& ConsumerDBusProxy::getNodeStateEvent() {
+ return nodeState_;
+}
+
+void ConsumerDBusProxy::GetAppHealthCount(CommonAPI::CallStatus& callStatus, uint32_t& Count) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<>,
+ CommonAPI::DBus::DBusSerializableArguments<uint32_t> >::callMethodWithReply(
+ *this,
+ "GetAppHealthCount",
+ "",
+ callStatus
+ , Count);
+}
+std::future<CommonAPI::CallStatus> ConsumerDBusProxy::GetAppHealthCountAsync(GetAppHealthCountAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<>,
+ CommonAPI::DBus::DBusSerializableArguments<uint32_t> >::callMethodAsync(
+ *this,
+ "GetAppHealthCount",
+ "",
+ std::move(callback));
+}
+void ConsumerDBusProxy::LifecycleRequestComplete(const uint32_t& RequestId, const int32_t& Status, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<uint32_t, int32_t>,
+ CommonAPI::DBus::DBusSerializableArguments<int32_t> >::callMethodWithReply(
+ *this,
+ "LifecycleRequestComplete",
+ "ui",
+ RequestId, Status,
+ callStatus
+ , ErrorCode);
+}
+std::future<CommonAPI::CallStatus> ConsumerDBusProxy::LifecycleRequestCompleteAsync(const uint32_t& RequestId, const int32_t& Status, LifecycleRequestCompleteAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<uint32_t, int32_t>,
+ CommonAPI::DBus::DBusSerializableArguments<int32_t> >::callMethodAsync(
+ *this,
+ "LifecycleRequestComplete",
+ "ui",
+ RequestId, Status,
+ std::move(callback));
+}
+void ConsumerDBusProxy::GetInterfaceVersion(CommonAPI::CallStatus& callStatus, uint32_t& Version) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<>,
+ CommonAPI::DBus::DBusSerializableArguments<uint32_t> >::callMethodWithReply(
+ *this,
+ "GetInterfaceVersion",
+ "",
+ callStatus
+ , Version);
+}
+std::future<CommonAPI::CallStatus> ConsumerDBusProxy::GetInterfaceVersionAsync(GetInterfaceVersionAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<>,
+ CommonAPI::DBus::DBusSerializableArguments<uint32_t> >::callMethodAsync(
+ *this,
+ "GetInterfaceVersion",
+ "",
+ std::move(callback));
+}
+void ConsumerDBusProxy::GetApplicationMode(CommonAPI::CallStatus& callStatus, int32_t& ErrorCode, int32_t& ApplicationModeId) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<>,
+ CommonAPI::DBus::DBusSerializableArguments<int32_t, int32_t> >::callMethodWithReply(
+ *this,
+ "GetApplicationMode",
+ "",
+ callStatus
+ , ErrorCode, ApplicationModeId);
+}
+std::future<CommonAPI::CallStatus> ConsumerDBusProxy::GetApplicationModeAsync(GetApplicationModeAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<>,
+ CommonAPI::DBus::DBusSerializableArguments<int32_t, int32_t> >::callMethodAsync(
+ *this,
+ "GetApplicationMode",
+ "",
+ std::move(callback));
+}
+void ConsumerDBusProxy::UnRegisterSession(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SeatID, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<std::string, std::string, int32_t>,
+ CommonAPI::DBus::DBusSerializableArguments<int32_t> >::callMethodWithReply(
+ *this,
+ "UnRegisterSession",
+ "ssi",
+ SessionName, SessionOwner, SeatID,
+ callStatus
+ , ErrorCode);
+}
+std::future<CommonAPI::CallStatus> ConsumerDBusProxy::UnRegisterSessionAsync(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SeatID, UnRegisterSessionAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<std::string, std::string, int32_t>,
+ CommonAPI::DBus::DBusSerializableArguments<int32_t> >::callMethodAsync(
+ *this,
+ "UnRegisterSession",
+ "ssi",
+ SessionName, SessionOwner, SeatID,
+ std::move(callback));
+}
+void ConsumerDBusProxy::RegisterSession(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SeatID, const int32_t& SessionState, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<std::string, std::string, int32_t, int32_t>,
+ CommonAPI::DBus::DBusSerializableArguments<int32_t> >::callMethodWithReply(
+ *this,
+ "RegisterSession",
+ "ssii",
+ SessionName, SessionOwner, SeatID, SessionState,
+ callStatus
+ , ErrorCode);
+}
+std::future<CommonAPI::CallStatus> ConsumerDBusProxy::RegisterSessionAsync(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SeatID, const int32_t& SessionState, RegisterSessionAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<std::string, std::string, int32_t, int32_t>,
+ CommonAPI::DBus::DBusSerializableArguments<int32_t> >::callMethodAsync(
+ *this,
+ "RegisterSession",
+ "ssii",
+ SessionName, SessionOwner, SeatID, SessionState,
+ std::move(callback));
+}
+void ConsumerDBusProxy::UnRegisterShutdownClient(const std::string& BusName, const std::string& ObjName, const uint32_t& ShutdownMode, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<std::string, std::string, uint32_t>,
+ CommonAPI::DBus::DBusSerializableArguments<int32_t> >::callMethodWithReply(
+ *this,
+ "UnRegisterShutdownClient",
+ "ssu",
+ BusName, ObjName, ShutdownMode,
+ callStatus
+ , ErrorCode);
+}
+std::future<CommonAPI::CallStatus> ConsumerDBusProxy::UnRegisterShutdownClientAsync(const std::string& BusName, const std::string& ObjName, const uint32_t& ShutdownMode, UnRegisterShutdownClientAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<std::string, std::string, uint32_t>,
+ CommonAPI::DBus::DBusSerializableArguments<int32_t> >::callMethodAsync(
+ *this,
+ "UnRegisterShutdownClient",
+ "ssu",
+ BusName, ObjName, ShutdownMode,
+ std::move(callback));
+}
+void ConsumerDBusProxy::RegisterShutdownClient(const std::string& BusName, const std::string& ObjName, const uint32_t& ShutdownMode, const uint32_t& TimeoutMs, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<std::string, std::string, uint32_t, uint32_t>,
+ CommonAPI::DBus::DBusSerializableArguments<int32_t> >::callMethodWithReply(
+ *this,
+ "RegisterShutdownClient",
+ "ssuu",
+ BusName, ObjName, ShutdownMode, TimeoutMs,
+ callStatus
+ , ErrorCode);
+}
+std::future<CommonAPI::CallStatus> ConsumerDBusProxy::RegisterShutdownClientAsync(const std::string& BusName, const std::string& ObjName, const uint32_t& ShutdownMode, const uint32_t& TimeoutMs, RegisterShutdownClientAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<std::string, std::string, uint32_t, uint32_t>,
+ CommonAPI::DBus::DBusSerializableArguments<int32_t> >::callMethodAsync(
+ *this,
+ "RegisterShutdownClient",
+ "ssuu",
+ BusName, ObjName, ShutdownMode, TimeoutMs,
+ std::move(callback));
+}
+void ConsumerDBusProxy::GetNodeState(CommonAPI::CallStatus& callStatus, int32_t& ErrorCode, int32_t& NodeStateId) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<>,
+ CommonAPI::DBus::DBusSerializableArguments<int32_t, int32_t> >::callMethodWithReply(
+ *this,
+ "GetNodeState",
+ "",
+ callStatus
+ , ErrorCode, NodeStateId);
+}
+std::future<CommonAPI::CallStatus> ConsumerDBusProxy::GetNodeStateAsync(GetNodeStateAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<>,
+ CommonAPI::DBus::DBusSerializableArguments<int32_t, int32_t> >::callMethodAsync(
+ *this,
+ "GetNodeState",
+ "",
+ std::move(callback));
+}
+void ConsumerDBusProxy::GetSessionState(const std::string& SessionName, const int32_t& SeatID, CommonAPI::CallStatus& callStatus, int32_t& SessionState, int32_t& ErrorCode) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<std::string, int32_t>,
+ CommonAPI::DBus::DBusSerializableArguments<int32_t, int32_t> >::callMethodWithReply(
+ *this,
+ "GetSessionState",
+ "si",
+ SessionName, SeatID,
+ callStatus
+ , SessionState, ErrorCode);
+}
+std::future<CommonAPI::CallStatus> ConsumerDBusProxy::GetSessionStateAsync(const std::string& SessionName, const int32_t& SeatID, GetSessionStateAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<std::string, int32_t>,
+ CommonAPI::DBus::DBusSerializableArguments<int32_t, int32_t> >::callMethodAsync(
+ *this,
+ "GetSessionState",
+ "si",
+ SessionName, SeatID,
+ std::move(callback));
+}
+void ConsumerDBusProxy::SetSessionState(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SessionState, const int32_t& SeatID, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<std::string, std::string, int32_t, int32_t>,
+ CommonAPI::DBus::DBusSerializableArguments<int32_t> >::callMethodWithReply(
+ *this,
+ "SetSessionState",
+ "ssii",
+ SessionName, SessionOwner, SessionState, SeatID,
+ callStatus
+ , ErrorCode);
+}
+std::future<CommonAPI::CallStatus> ConsumerDBusProxy::SetSessionStateAsync(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SessionState, const int32_t& SeatID, SetSessionStateAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<std::string, std::string, int32_t, int32_t>,
+ CommonAPI::DBus::DBusSerializableArguments<int32_t> >::callMethodAsync(
+ *this,
+ "SetSessionState",
+ "ssii",
+ SessionName, SessionOwner, SessionState, SeatID,
+ std::move(callback));
+}
+
+void ConsumerDBusProxy::getOwnVersion(uint16_t& ownVersionMajor, uint16_t& ownVersionMinor) const {
+ ownVersionMajor = 1;
+ ownVersionMinor = 0;
+}
+
+} // namespace NodeStateManager
+} // namespace genivi
+} // namespace org
diff --git a/src-gen/org/genivi/NodeStateManager/ConsumerDBusProxy.h b/src-gen/org/genivi/NodeStateManager/ConsumerDBusProxy.h
new file mode 100644
index 0000000..fe17687
--- /dev/null
+++ b/src-gen/org/genivi/NodeStateManager/ConsumerDBusProxy.h
@@ -0,0 +1,99 @@
+/*
+* This file was generated by the CommonAPI Generators.
+*
+ * Copyright (C) 2013, BMW AG
+ *
+ * \author Christian Linke, christian.linke@bmw.de BMW 2012,2013
+*/
+#ifndef ORG_GENIVI_NODESTATEMANAGER_Consumer_DBUS_PROXY_H_
+#define ORG_GENIVI_NODESTATEMANAGER_Consumer_DBUS_PROXY_H_
+
+#include <org/genivi/NodeStateManager/ConsumerProxyBase.h>
+
+#define COMMONAPI_INTERNAL_COMPILATION
+
+#include <CommonAPI/DBus/DBusFactory.h>
+#include <CommonAPI/DBus/DBusProxy.h>
+#include <CommonAPI/DBus/DBusAttribute.h>
+#include <CommonAPI/DBus/DBusEvent.h>
+
+#undef COMMONAPI_INTERNAL_COMPILATION
+
+#include <string>
+
+namespace org {
+namespace genivi {
+namespace NodeStateManager {
+
+class ConsumerDBusProxy: virtual public ConsumerProxyBase, virtual public CommonAPI::DBus::DBusProxy {
+ public:
+ ConsumerDBusProxy(
+ const std::string& commonApiAddress,
+ const std::string& interfaceName,
+ const std::string& busName,
+ const std::string& objectPath,
+ const std::shared_ptr<CommonAPI::DBus::DBusProxyConnection>& dbusProxyconnection);
+
+ virtual ~ConsumerDBusProxy() { }
+
+ virtual BootModeAttribute& getBootModeAttribute();
+ virtual RestartReasonAttribute& getRestartReasonAttribute();
+ virtual ShutdownReasonAttribute& getShutdownReasonAttribute();
+ virtual WakeUpReasonAttribute& getWakeUpReasonAttribute();
+
+ virtual NodeApplicationModeEvent& getNodeApplicationModeEvent();
+ virtual SessionStateChangedEvent& getSessionStateChangedEvent();
+ virtual NodeStateEvent& getNodeStateEvent();
+
+
+ virtual void GetAppHealthCount(CommonAPI::CallStatus& callStatus, uint32_t& Count);
+ virtual std::future<CommonAPI::CallStatus> GetAppHealthCountAsync(GetAppHealthCountAsyncCallback callback);
+
+ virtual void LifecycleRequestComplete(const uint32_t& RequestId, const int32_t& Status, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode);
+ virtual std::future<CommonAPI::CallStatus> LifecycleRequestCompleteAsync(const uint32_t& RequestId, const int32_t& Status, LifecycleRequestCompleteAsyncCallback callback);
+
+ virtual void GetInterfaceVersion(CommonAPI::CallStatus& callStatus, uint32_t& Version);
+ virtual std::future<CommonAPI::CallStatus> GetInterfaceVersionAsync(GetInterfaceVersionAsyncCallback callback);
+
+ virtual void GetApplicationMode(CommonAPI::CallStatus& callStatus, int32_t& ErrorCode, int32_t& ApplicationModeId);
+ virtual std::future<CommonAPI::CallStatus> GetApplicationModeAsync(GetApplicationModeAsyncCallback callback);
+
+ virtual void UnRegisterSession(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SeatID, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode);
+ virtual std::future<CommonAPI::CallStatus> UnRegisterSessionAsync(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SeatID, UnRegisterSessionAsyncCallback callback);
+
+ virtual void RegisterSession(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SeatID, const int32_t& SessionState, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode);
+ virtual std::future<CommonAPI::CallStatus> RegisterSessionAsync(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SeatID, const int32_t& SessionState, RegisterSessionAsyncCallback callback);
+
+ virtual void UnRegisterShutdownClient(const std::string& BusName, const std::string& ObjName, const uint32_t& ShutdownMode, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode);
+ virtual std::future<CommonAPI::CallStatus> UnRegisterShutdownClientAsync(const std::string& BusName, const std::string& ObjName, const uint32_t& ShutdownMode, UnRegisterShutdownClientAsyncCallback callback);
+
+ virtual void RegisterShutdownClient(const std::string& BusName, const std::string& ObjName, const uint32_t& ShutdownMode, const uint32_t& TimeoutMs, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode);
+ virtual std::future<CommonAPI::CallStatus> RegisterShutdownClientAsync(const std::string& BusName, const std::string& ObjName, const uint32_t& ShutdownMode, const uint32_t& TimeoutMs, RegisterShutdownClientAsyncCallback callback);
+
+ virtual void GetNodeState(CommonAPI::CallStatus& callStatus, int32_t& ErrorCode, int32_t& NodeStateId);
+ virtual std::future<CommonAPI::CallStatus> GetNodeStateAsync(GetNodeStateAsyncCallback callback);
+
+ virtual void GetSessionState(const std::string& SessionName, const int32_t& SeatID, CommonAPI::CallStatus& callStatus, int32_t& SessionState, int32_t& ErrorCode);
+ virtual std::future<CommonAPI::CallStatus> GetSessionStateAsync(const std::string& SessionName, const int32_t& SeatID, GetSessionStateAsyncCallback callback);
+
+ virtual void SetSessionState(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SessionState, const int32_t& SeatID, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode);
+ virtual std::future<CommonAPI::CallStatus> SetSessionStateAsync(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SessionState, const int32_t& SeatID, SetSessionStateAsyncCallback callback);
+
+ virtual void getOwnVersion(uint16_t& ownVersionMajor, uint16_t& ownVersionMinor) const;
+
+ private:
+ CommonAPI::DBus::DBusFreedesktopReadonlyAttribute<BootModeAttribute> bootMode_;
+ CommonAPI::DBus::DBusFreedesktopReadonlyAttribute<RestartReasonAttribute> restartReason_;
+ CommonAPI::DBus::DBusFreedesktopReadonlyAttribute<ShutdownReasonAttribute> shutdownReason_;
+ CommonAPI::DBus::DBusFreedesktopReadonlyAttribute<WakeUpReasonAttribute> wakeUpReason_;
+
+ CommonAPI::DBus::DBusEvent<NodeApplicationModeEvent> nodeApplicationMode_;
+ CommonAPI::DBus::DBusEvent<SessionStateChangedEvent> sessionStateChanged_;
+ CommonAPI::DBus::DBusEvent<NodeStateEvent> nodeState_;
+};
+
+} // namespace NodeStateManager
+} // namespace genivi
+} // namespace org
+
+#endif // ORG_GENIVI_NODESTATEMANAGER_Consumer_DBUS_PROXY_H_
diff --git a/src-gen/org/genivi/NodeStateManager/ConsumerProxy.h b/src-gen/org/genivi/NodeStateManager/ConsumerProxy.h
new file mode 100644
index 0000000..e0aab4d
--- /dev/null
+++ b/src-gen/org/genivi/NodeStateManager/ConsumerProxy.h
@@ -0,0 +1,604 @@
+/*
+* This file was generated by the CommonAPI Generators.
+*
+ * Copyright (C) 2013, BMW AG
+ *
+ * \author Christian Linke, christian.linke@bmw.de BMW 2012,2013
+*/
+#ifndef ORG_GENIVI_NODESTATEMANAGER_Consumer_PROXY_H_
+#define ORG_GENIVI_NODESTATEMANAGER_Consumer_PROXY_H_
+
+#include "ConsumerProxyBase.h"
+
+#define COMMONAPI_INTERNAL_COMPILATION
+
+#include <CommonAPI/AttributeExtension.h>
+#include <CommonAPI/Factory.h>
+
+#undef COMMONAPI_INTERNAL_COMPILATION
+
+namespace org {
+namespace genivi {
+namespace NodeStateManager {
+
+template <typename ... _AttributeExtensions>
+class ConsumerProxy: virtual public Consumer, virtual public ConsumerProxyBase, public _AttributeExtensions... {
+ public:
+ ConsumerProxy(std::shared_ptr<CommonAPI::Proxy> delegate);
+ ~ConsumerProxy();
+
+ /// Returns the wrapper class that provides access to the attribute BootMode.
+ virtual BootModeAttribute& getBootModeAttribute() {
+ return delegate_->getBootModeAttribute();
+ }
+
+ /// Returns the wrapper class that provides access to the attribute RestartReason.
+ virtual RestartReasonAttribute& getRestartReasonAttribute() {
+ return delegate_->getRestartReasonAttribute();
+ }
+
+ /// Returns the wrapper class that provides access to the attribute ShutdownReason.
+ virtual ShutdownReasonAttribute& getShutdownReasonAttribute() {
+ return delegate_->getShutdownReasonAttribute();
+ }
+
+ /// Returns the wrapper class that provides access to the attribute WakeUpReason.
+ virtual WakeUpReasonAttribute& getWakeUpReasonAttribute() {
+ return delegate_->getWakeUpReasonAttribute();
+ }
+
+
+ /// Returns the wrapper class that provides access to the broadcast NodeApplicationMode.
+ virtual NodeApplicationModeEvent& getNodeApplicationModeEvent() {
+ return delegate_->getNodeApplicationModeEvent();
+ }
+
+ /// Returns the wrapper class that provides access to the broadcast SessionStateChanged.
+ virtual SessionStateChangedEvent& getSessionStateChangedEvent() {
+ return delegate_->getSessionStateChangedEvent();
+ }
+
+ /// Returns the wrapper class that provides access to the broadcast NodeState.
+ virtual NodeStateEvent& getNodeStateEvent() {
+ return delegate_->getNodeStateEvent();
+ }
+
+
+
+ /**
+ * Calls GetAppHealthCount with synchronous semantics.
+ *
+ * All non-const parameters will be filled with the returned values.
+ * The CallStatus will be filled when the method returns and indicate either
+ * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus
+ * will be set.
+ * Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
+ */
+ virtual void GetAppHealthCount(CommonAPI::CallStatus& callStatus, uint32_t& Count);
+ /**
+ * Calls GetAppHealthCount with asynchronous semantics.
+ *
+ * The provided callback will be called when the reply to this call arrives or
+ * an error occurs during the call. The CallStatus will indicate either "SUCCESS"
+ * or which type of error has occurred. In case of any error, ONLY the CallStatus
+ * will have a defined value.
+ * The std::future returned by this method will be fulfilled at arrival of the reply.
+ * It will provide the same value for CallStatus as will be handed to the callback.
+ */
+ virtual std::future<CommonAPI::CallStatus> GetAppHealthCountAsync(GetAppHealthCountAsyncCallback callback);
+
+ /**
+ * Calls LifecycleRequestComplete with synchronous semantics.
+ *
+ * All const parameters are input parameters to this method.
+ * All non-const parameters will be filled with the returned values.
+ * The CallStatus will be filled when the method returns and indicate either
+ * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus
+ * will be set.
+ * Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
+ */
+ virtual void LifecycleRequestComplete(const uint32_t& RequestId, const int32_t& Status, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode);
+ /**
+ * Calls LifecycleRequestComplete with asynchronous semantics.
+ *
+ * The provided callback will be called when the reply to this call arrives or
+ * an error occurs during the call. The CallStatus will indicate either "SUCCESS"
+ * or which type of error has occurred. In case of any error, ONLY the CallStatus
+ * will have a defined value.
+ * The std::future returned by this method will be fulfilled at arrival of the reply.
+ * It will provide the same value for CallStatus as will be handed to the callback.
+ */
+ virtual std::future<CommonAPI::CallStatus> LifecycleRequestCompleteAsync(const uint32_t& RequestId, const int32_t& Status, LifecycleRequestCompleteAsyncCallback callback);
+
+ /**
+ * Calls GetInterfaceVersion with synchronous semantics.
+ *
+ * All non-const parameters will be filled with the returned values.
+ * The CallStatus will be filled when the method returns and indicate either
+ * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus
+ * will be set.
+ * Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
+ */
+ virtual void GetInterfaceVersion(CommonAPI::CallStatus& callStatus, uint32_t& Version);
+ /**
+ * Calls GetInterfaceVersion with asynchronous semantics.
+ *
+ * The provided callback will be called when the reply to this call arrives or
+ * an error occurs during the call. The CallStatus will indicate either "SUCCESS"
+ * or which type of error has occurred. In case of any error, ONLY the CallStatus
+ * will have a defined value.
+ * The std::future returned by this method will be fulfilled at arrival of the reply.
+ * It will provide the same value for CallStatus as will be handed to the callback.
+ */
+ virtual std::future<CommonAPI::CallStatus> GetInterfaceVersionAsync(GetInterfaceVersionAsyncCallback callback);
+
+ /**
+ * Calls GetApplicationMode with synchronous semantics.
+ *
+ * All non-const parameters will be filled with the returned values.
+ * The CallStatus will be filled when the method returns and indicate either
+ * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus
+ * will be set.
+ * Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
+ */
+ virtual void GetApplicationMode(CommonAPI::CallStatus& callStatus, int32_t& ErrorCode, int32_t& ApplicationModeId);
+ /**
+ * Calls GetApplicationMode with asynchronous semantics.
+ *
+ * The provided callback will be called when the reply to this call arrives or
+ * an error occurs during the call. The CallStatus will indicate either "SUCCESS"
+ * or which type of error has occurred. In case of any error, ONLY the CallStatus
+ * will have a defined value.
+ * The std::future returned by this method will be fulfilled at arrival of the reply.
+ * It will provide the same value for CallStatus as will be handed to the callback.
+ */
+ virtual std::future<CommonAPI::CallStatus> GetApplicationModeAsync(GetApplicationModeAsyncCallback callback);
+
+ /**
+ * Calls UnRegisterSession with synchronous semantics.
+ *
+ * All const parameters are input parameters to this method.
+ * All non-const parameters will be filled with the returned values.
+ * The CallStatus will be filled when the method returns and indicate either
+ * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus
+ * will be set.
+ * Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
+ */
+ virtual void UnRegisterSession(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SeatID, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode);
+ /**
+ * Calls UnRegisterSession with asynchronous semantics.
+ *
+ * The provided callback will be called when the reply to this call arrives or
+ * an error occurs during the call. The CallStatus will indicate either "SUCCESS"
+ * or which type of error has occurred. In case of any error, ONLY the CallStatus
+ * will have a defined value.
+ * The std::future returned by this method will be fulfilled at arrival of the reply.
+ * It will provide the same value for CallStatus as will be handed to the callback.
+ */
+ virtual std::future<CommonAPI::CallStatus> UnRegisterSessionAsync(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SeatID, UnRegisterSessionAsyncCallback callback);
+
+ /**
+ * Calls RegisterSession with synchronous semantics.
+ *
+ * All const parameters are input parameters to this method.
+ * All non-const parameters will be filled with the returned values.
+ * The CallStatus will be filled when the method returns and indicate either
+ * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus
+ * will be set.
+ * Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
+ */
+ virtual void RegisterSession(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SeatID, const int32_t& SessionState, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode);
+ /**
+ * Calls RegisterSession with asynchronous semantics.
+ *
+ * The provided callback will be called when the reply to this call arrives or
+ * an error occurs during the call. The CallStatus will indicate either "SUCCESS"
+ * or which type of error has occurred. In case of any error, ONLY the CallStatus
+ * will have a defined value.
+ * The std::future returned by this method will be fulfilled at arrival of the reply.
+ * It will provide the same value for CallStatus as will be handed to the callback.
+ */
+ virtual std::future<CommonAPI::CallStatus> RegisterSessionAsync(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SeatID, const int32_t& SessionState, RegisterSessionAsyncCallback callback);
+
+ /**
+ * Calls UnRegisterShutdownClient with synchronous semantics.
+ *
+ * All const parameters are input parameters to this method.
+ * All non-const parameters will be filled with the returned values.
+ * The CallStatus will be filled when the method returns and indicate either
+ * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus
+ * will be set.
+ * Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
+ */
+ virtual void UnRegisterShutdownClient(const std::string& BusName, const std::string& ObjName, const uint32_t& ShutdownMode, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode);
+ /**
+ * Calls UnRegisterShutdownClient with asynchronous semantics.
+ *
+ * The provided callback will be called when the reply to this call arrives or
+ * an error occurs during the call. The CallStatus will indicate either "SUCCESS"
+ * or which type of error has occurred. In case of any error, ONLY the CallStatus
+ * will have a defined value.
+ * The std::future returned by this method will be fulfilled at arrival of the reply.
+ * It will provide the same value for CallStatus as will be handed to the callback.
+ */
+ virtual std::future<CommonAPI::CallStatus> UnRegisterShutdownClientAsync(const std::string& BusName, const std::string& ObjName, const uint32_t& ShutdownMode, UnRegisterShutdownClientAsyncCallback callback);
+
+ /**
+ * Calls RegisterShutdownClient with synchronous semantics.
+ *
+ * All const parameters are input parameters to this method.
+ * All non-const parameters will be filled with the returned values.
+ * The CallStatus will be filled when the method returns and indicate either
+ * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus
+ * will be set.
+ * Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
+ */
+ virtual void RegisterShutdownClient(const std::string& BusName, const std::string& ObjName, const uint32_t& ShutdownMode, const uint32_t& TimeoutMs, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode);
+ /**
+ * Calls RegisterShutdownClient with asynchronous semantics.
+ *
+ * The provided callback will be called when the reply to this call arrives or
+ * an error occurs during the call. The CallStatus will indicate either "SUCCESS"
+ * or which type of error has occurred. In case of any error, ONLY the CallStatus
+ * will have a defined value.
+ * The std::future returned by this method will be fulfilled at arrival of the reply.
+ * It will provide the same value for CallStatus as will be handed to the callback.
+ */
+ virtual std::future<CommonAPI::CallStatus> RegisterShutdownClientAsync(const std::string& BusName, const std::string& ObjName, const uint32_t& ShutdownMode, const uint32_t& TimeoutMs, RegisterShutdownClientAsyncCallback callback);
+
+ /**
+ * Calls GetNodeState with synchronous semantics.
+ *
+ * All non-const parameters will be filled with the returned values.
+ * The CallStatus will be filled when the method returns and indicate either
+ * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus
+ * will be set.
+ * Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
+ */
+ virtual void GetNodeState(CommonAPI::CallStatus& callStatus, int32_t& ErrorCode, int32_t& NodeStateId);
+ /**
+ * Calls GetNodeState with asynchronous semantics.
+ *
+ * The provided callback will be called when the reply to this call arrives or
+ * an error occurs during the call. The CallStatus will indicate either "SUCCESS"
+ * or which type of error has occurred. In case of any error, ONLY the CallStatus
+ * will have a defined value.
+ * The std::future returned by this method will be fulfilled at arrival of the reply.
+ * It will provide the same value for CallStatus as will be handed to the callback.
+ */
+ virtual std::future<CommonAPI::CallStatus> GetNodeStateAsync(GetNodeStateAsyncCallback callback);
+
+ /**
+ * Calls GetSessionState with synchronous semantics.
+ *
+ * All const parameters are input parameters to this method.
+ * All non-const parameters will be filled with the returned values.
+ * The CallStatus will be filled when the method returns and indicate either
+ * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus
+ * will be set.
+ * Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
+ */
+ virtual void GetSessionState(const std::string& SessionName, const int32_t& SeatID, CommonAPI::CallStatus& callStatus, int32_t& SessionState, int32_t& ErrorCode);
+ /**
+ * Calls GetSessionState with asynchronous semantics.
+ *
+ * The provided callback will be called when the reply to this call arrives or
+ * an error occurs during the call. The CallStatus will indicate either "SUCCESS"
+ * or which type of error has occurred. In case of any error, ONLY the CallStatus
+ * will have a defined value.
+ * The std::future returned by this method will be fulfilled at arrival of the reply.
+ * It will provide the same value for CallStatus as will be handed to the callback.
+ */
+ virtual std::future<CommonAPI::CallStatus> GetSessionStateAsync(const std::string& SessionName, const int32_t& SeatID, GetSessionStateAsyncCallback callback);
+
+ /**
+ * Calls SetSessionState with synchronous semantics.
+ *
+ * All const parameters are input parameters to this method.
+ * All non-const parameters will be filled with the returned values.
+ * The CallStatus will be filled when the method returns and indicate either
+ * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus
+ * will be set.
+ * Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
+ */
+ virtual void SetSessionState(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SessionState, const int32_t& SeatID, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode);
+ /**
+ * Calls SetSessionState with asynchronous semantics.
+ *
+ * The provided callback will be called when the reply to this call arrives or
+ * an error occurs during the call. The CallStatus will indicate either "SUCCESS"
+ * or which type of error has occurred. In case of any error, ONLY the CallStatus
+ * will have a defined value.
+ * The std::future returned by this method will be fulfilled at arrival of the reply.
+ * It will provide the same value for CallStatus as will be handed to the callback.
+ */
+ virtual std::future<CommonAPI::CallStatus> SetSessionStateAsync(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SessionState, const int32_t& SeatID, SetSessionStateAsyncCallback callback);
+
+ /// Returns the CommonAPI address of the remote partner this proxy communicates with.
+ virtual std::string getAddress() const;
+
+ /// Returns the domain of the remote partner this proxy communicates with.
+ virtual const std::string& getDomain() const;
+
+ /// Returns the service ID of the remote partner this proxy communicates with.
+ virtual const std::string& getServiceId() const;
+
+ /// Returns the instance ID of the remote partner this proxy communicates with.
+ virtual const std::string& getInstanceId() const;
+
+ /// Returns true if the remote partner for this proxy is available.
+ virtual bool isAvailable() const;
+
+ /**
+ * Returns the wrapper class that is used to (de-)register for notifications about
+ * the availability of the remote partner of this proxy.
+ */
+ virtual CommonAPI::ProxyStatusEvent& getProxyStatusEvent();
+
+ /**
+ * Returns the wrapper class that is used to access version information of the remote
+ * partner of this proxy.
+ */
+ virtual CommonAPI::InterfaceVersionAttribute& getInterfaceVersionAttribute();
+
+ private:
+ std::shared_ptr<ConsumerProxyBase> delegate_;
+};
+
+namespace ConsumerExtensions {
+ template <template <typename > class _ExtensionType>
+ class BootModeAttributeExtension {
+ public:
+ typedef _ExtensionType<ConsumerProxyBase::BootModeAttribute> extension_type;
+
+ static_assert(std::is_base_of<typename CommonAPI::AttributeExtension<ConsumerProxyBase::BootModeAttribute>, extension_type>::value,
+ "Not CommonAPI Attribute Extension!");
+
+ BootModeAttributeExtension(ConsumerProxyBase& proxy): attributeExtension_(proxy.getBootModeAttribute()) {
+ }
+
+ inline extension_type& getBootModeAttributeExtension() {
+ return attributeExtension_;
+ }
+
+ private:
+ extension_type attributeExtension_;
+ };
+
+ template <template <typename > class _ExtensionType>
+ class RestartReasonAttributeExtension {
+ public:
+ typedef _ExtensionType<ConsumerProxyBase::RestartReasonAttribute> extension_type;
+
+ static_assert(std::is_base_of<typename CommonAPI::AttributeExtension<ConsumerProxyBase::RestartReasonAttribute>, extension_type>::value,
+ "Not CommonAPI Attribute Extension!");
+
+ RestartReasonAttributeExtension(ConsumerProxyBase& proxy): attributeExtension_(proxy.getRestartReasonAttribute()) {
+ }
+
+ inline extension_type& getRestartReasonAttributeExtension() {
+ return attributeExtension_;
+ }
+
+ private:
+ extension_type attributeExtension_;
+ };
+
+ template <template <typename > class _ExtensionType>
+ class ShutdownReasonAttributeExtension {
+ public:
+ typedef _ExtensionType<ConsumerProxyBase::ShutdownReasonAttribute> extension_type;
+
+ static_assert(std::is_base_of<typename CommonAPI::AttributeExtension<ConsumerProxyBase::ShutdownReasonAttribute>, extension_type>::value,
+ "Not CommonAPI Attribute Extension!");
+
+ ShutdownReasonAttributeExtension(ConsumerProxyBase& proxy): attributeExtension_(proxy.getShutdownReasonAttribute()) {
+ }
+
+ inline extension_type& getShutdownReasonAttributeExtension() {
+ return attributeExtension_;
+ }
+
+ private:
+ extension_type attributeExtension_;
+ };
+
+ template <template <typename > class _ExtensionType>
+ class WakeUpReasonAttributeExtension {
+ public:
+ typedef _ExtensionType<ConsumerProxyBase::WakeUpReasonAttribute> extension_type;
+
+ static_assert(std::is_base_of<typename CommonAPI::AttributeExtension<ConsumerProxyBase::WakeUpReasonAttribute>, extension_type>::value,
+ "Not CommonAPI Attribute Extension!");
+
+ WakeUpReasonAttributeExtension(ConsumerProxyBase& proxy): attributeExtension_(proxy.getWakeUpReasonAttribute()) {
+ }
+
+ inline extension_type& getWakeUpReasonAttributeExtension() {
+ return attributeExtension_;
+ }
+
+ private:
+ extension_type attributeExtension_;
+ };
+
+} // namespace ConsumerExtensions
+
+//
+// ConsumerProxy Implementation
+//
+template <typename ... _AttributeExtensions>
+ConsumerProxy<_AttributeExtensions...>::ConsumerProxy(std::shared_ptr<CommonAPI::Proxy> delegate):
+ delegate_(std::dynamic_pointer_cast<ConsumerProxyBase>(delegate)),
+ _AttributeExtensions(*(std::dynamic_pointer_cast<ConsumerProxyBase>(delegate)))... {
+}
+
+template <typename ... _AttributeExtensions>
+ConsumerProxy<_AttributeExtensions...>::~ConsumerProxy() {
+}
+
+template <typename ... _AttributeExtensions>
+void ConsumerProxy<_AttributeExtensions...>::GetAppHealthCount(CommonAPI::CallStatus& callStatus, uint32_t& Count) {
+ delegate_->GetAppHealthCount(callStatus, Count);
+}
+
+template <typename ... _AttributeExtensions>
+std::future<CommonAPI::CallStatus> ConsumerProxy<_AttributeExtensions...>::GetAppHealthCountAsync(GetAppHealthCountAsyncCallback callback) {
+ return delegate_->GetAppHealthCountAsync(callback);
+}
+
+template <typename ... _AttributeExtensions>
+void ConsumerProxy<_AttributeExtensions...>::LifecycleRequestComplete(const uint32_t& RequestId, const int32_t& Status, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode) {
+ delegate_->LifecycleRequestComplete(RequestId, Status, callStatus, ErrorCode);
+}
+
+template <typename ... _AttributeExtensions>
+std::future<CommonAPI::CallStatus> ConsumerProxy<_AttributeExtensions...>::LifecycleRequestCompleteAsync(const uint32_t& RequestId, const int32_t& Status, LifecycleRequestCompleteAsyncCallback callback) {
+ return delegate_->LifecycleRequestCompleteAsync(RequestId, Status, callback);
+}
+
+template <typename ... _AttributeExtensions>
+void ConsumerProxy<_AttributeExtensions...>::GetInterfaceVersion(CommonAPI::CallStatus& callStatus, uint32_t& Version) {
+ delegate_->GetInterfaceVersion(callStatus, Version);
+}
+
+template <typename ... _AttributeExtensions>
+std::future<CommonAPI::CallStatus> ConsumerProxy<_AttributeExtensions...>::GetInterfaceVersionAsync(GetInterfaceVersionAsyncCallback callback) {
+ return delegate_->GetInterfaceVersionAsync(callback);
+}
+
+template <typename ... _AttributeExtensions>
+void ConsumerProxy<_AttributeExtensions...>::GetApplicationMode(CommonAPI::CallStatus& callStatus, int32_t& ErrorCode, int32_t& ApplicationModeId) {
+ delegate_->GetApplicationMode(callStatus, ErrorCode, ApplicationModeId);
+}
+
+template <typename ... _AttributeExtensions>
+std::future<CommonAPI::CallStatus> ConsumerProxy<_AttributeExtensions...>::GetApplicationModeAsync(GetApplicationModeAsyncCallback callback) {
+ return delegate_->GetApplicationModeAsync(callback);
+}
+
+template <typename ... _AttributeExtensions>
+void ConsumerProxy<_AttributeExtensions...>::UnRegisterSession(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SeatID, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode) {
+ delegate_->UnRegisterSession(SessionName, SessionOwner, SeatID, callStatus, ErrorCode);
+}
+
+template <typename ... _AttributeExtensions>
+std::future<CommonAPI::CallStatus> ConsumerProxy<_AttributeExtensions...>::UnRegisterSessionAsync(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SeatID, UnRegisterSessionAsyncCallback callback) {
+ return delegate_->UnRegisterSessionAsync(SessionName, SessionOwner, SeatID, callback);
+}
+
+template <typename ... _AttributeExtensions>
+void ConsumerProxy<_AttributeExtensions...>::RegisterSession(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SeatID, const int32_t& SessionState, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode) {
+ delegate_->RegisterSession(SessionName, SessionOwner, SeatID, SessionState, callStatus, ErrorCode);
+}
+
+template <typename ... _AttributeExtensions>
+std::future<CommonAPI::CallStatus> ConsumerProxy<_AttributeExtensions...>::RegisterSessionAsync(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SeatID, const int32_t& SessionState, RegisterSessionAsyncCallback callback) {
+ return delegate_->RegisterSessionAsync(SessionName, SessionOwner, SeatID, SessionState, callback);
+}
+
+template <typename ... _AttributeExtensions>
+void ConsumerProxy<_AttributeExtensions...>::UnRegisterShutdownClient(const std::string& BusName, const std::string& ObjName, const uint32_t& ShutdownMode, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode) {
+ delegate_->UnRegisterShutdownClient(BusName, ObjName, ShutdownMode, callStatus, ErrorCode);
+}
+
+template <typename ... _AttributeExtensions>
+std::future<CommonAPI::CallStatus> ConsumerProxy<_AttributeExtensions...>::UnRegisterShutdownClientAsync(const std::string& BusName, const std::string& ObjName, const uint32_t& ShutdownMode, UnRegisterShutdownClientAsyncCallback callback) {
+ return delegate_->UnRegisterShutdownClientAsync(BusName, ObjName, ShutdownMode, callback);
+}
+
+template <typename ... _AttributeExtensions>
+void ConsumerProxy<_AttributeExtensions...>::RegisterShutdownClient(const std::string& BusName, const std::string& ObjName, const uint32_t& ShutdownMode, const uint32_t& TimeoutMs, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode) {
+ delegate_->RegisterShutdownClient(BusName, ObjName, ShutdownMode, TimeoutMs, callStatus, ErrorCode);
+}
+
+template <typename ... _AttributeExtensions>
+std::future<CommonAPI::CallStatus> ConsumerProxy<_AttributeExtensions...>::RegisterShutdownClientAsync(const std::string& BusName, const std::string& ObjName, const uint32_t& ShutdownMode, const uint32_t& TimeoutMs, RegisterShutdownClientAsyncCallback callback) {
+ return delegate_->RegisterShutdownClientAsync(BusName, ObjName, ShutdownMode, TimeoutMs, callback);
+}
+
+template <typename ... _AttributeExtensions>
+void ConsumerProxy<_AttributeExtensions...>::GetNodeState(CommonAPI::CallStatus& callStatus, int32_t& ErrorCode, int32_t& NodeStateId) {
+ delegate_->GetNodeState(callStatus, ErrorCode, NodeStateId);
+}
+
+template <typename ... _AttributeExtensions>
+std::future<CommonAPI::CallStatus> ConsumerProxy<_AttributeExtensions...>::GetNodeStateAsync(GetNodeStateAsyncCallback callback) {
+ return delegate_->GetNodeStateAsync(callback);
+}
+
+template <typename ... _AttributeExtensions>
+void ConsumerProxy<_AttributeExtensions...>::GetSessionState(const std::string& SessionName, const int32_t& SeatID, CommonAPI::CallStatus& callStatus, int32_t& SessionState, int32_t& ErrorCode) {
+ delegate_->GetSessionState(SessionName, SeatID, callStatus, SessionState, ErrorCode);
+}
+
+template <typename ... _AttributeExtensions>
+std::future<CommonAPI::CallStatus> ConsumerProxy<_AttributeExtensions...>::GetSessionStateAsync(const std::string& SessionName, const int32_t& SeatID, GetSessionStateAsyncCallback callback) {
+ return delegate_->GetSessionStateAsync(SessionName, SeatID, callback);
+}
+
+template <typename ... _AttributeExtensions>
+void ConsumerProxy<_AttributeExtensions...>::SetSessionState(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SessionState, const int32_t& SeatID, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode) {
+ delegate_->SetSessionState(SessionName, SessionOwner, SessionState, SeatID, callStatus, ErrorCode);
+}
+
+template <typename ... _AttributeExtensions>
+std::future<CommonAPI::CallStatus> ConsumerProxy<_AttributeExtensions...>::SetSessionStateAsync(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SessionState, const int32_t& SeatID, SetSessionStateAsyncCallback callback) {
+ return delegate_->SetSessionStateAsync(SessionName, SessionOwner, SessionState, SeatID, callback);
+}
+
+
+template <typename ... _AttributeExtensions>
+std::string ConsumerProxy<_AttributeExtensions...>::getAddress() const {
+ return delegate_->getAddress();
+}
+
+template <typename ... _AttributeExtensions>
+const std::string& ConsumerProxy<_AttributeExtensions...>::getDomain() const {
+ return delegate_->getDomain();
+}
+
+template <typename ... _AttributeExtensions>
+const std::string& ConsumerProxy<_AttributeExtensions...>::getServiceId() const {
+ return delegate_->getServiceId();
+}
+
+template <typename ... _AttributeExtensions>
+const std::string& ConsumerProxy<_AttributeExtensions...>::getInstanceId() const {
+ return delegate_->getInstanceId();
+}
+
+template <typename ... _AttributeExtensions>
+bool ConsumerProxy<_AttributeExtensions...>::isAvailable() const {
+ return delegate_->isAvailable();
+}
+
+template <typename ... _AttributeExtensions>
+CommonAPI::ProxyStatusEvent& ConsumerProxy<_AttributeExtensions...>::getProxyStatusEvent() {
+ return delegate_->getProxyStatusEvent();
+}
+
+template <typename ... _AttributeExtensions>
+CommonAPI::InterfaceVersionAttribute& ConsumerProxy<_AttributeExtensions...>::getInterfaceVersionAttribute() {
+ return delegate_->getInterfaceVersionAttribute();
+}
+
+} // namespace NodeStateManager
+} // namespace genivi
+} // namespace org
+
+namespace CommonAPI {
+template<template<typename > class _AttributeExtension>
+struct DefaultAttributeProxyFactoryHelper<org::genivi::NodeStateManager::ConsumerProxy,
+ _AttributeExtension> {
+ typedef typename org::genivi::NodeStateManager::ConsumerProxy<
+ org::genivi::NodeStateManager::ConsumerExtensions::BootModeAttributeExtension<_AttributeExtension>,
+ org::genivi::NodeStateManager::ConsumerExtensions::RestartReasonAttributeExtension<_AttributeExtension>,
+ org::genivi::NodeStateManager::ConsumerExtensions::ShutdownReasonAttributeExtension<_AttributeExtension>,
+ org::genivi::NodeStateManager::ConsumerExtensions::WakeUpReasonAttributeExtension<_AttributeExtension>
+ > class_t;
+};
+}
+
+
+#endif // ORG_GENIVI_NODESTATEMANAGER_Consumer_PROXY_H_
diff --git a/src-gen/org/genivi/NodeStateManager/ConsumerProxyBase.h b/src-gen/org/genivi/NodeStateManager/ConsumerProxyBase.h
new file mode 100644
index 0000000..a226480
--- /dev/null
+++ b/src-gen/org/genivi/NodeStateManager/ConsumerProxyBase.h
@@ -0,0 +1,99 @@
+ /*
+ * This file was generated by the CommonAPI Generators.
+ *
+ * Copyright (C) 2013, BMW AG
+ *
+ * \author Christian Linke, christian.linke@bmw.de BMW 2012,2013
+ */
+ #ifndef ORG_GENIVI_NODESTATEMANAGER_Consumer_PROXY_BASE_H_
+ #define ORG_GENIVI_NODESTATEMANAGER_Consumer_PROXY_BASE_H_
+
+ #include "Consumer.h"
+
+
+
+ #define COMMONAPI_INTERNAL_COMPILATION
+
+
+ #include <CommonAPI/Attribute.h>
+ #include <CommonAPI/Event.h>
+ #include <CommonAPI/Proxy.h>
+ #include <functional>
+ #include <future>
+
+ #undef COMMONAPI_INTERNAL_COMPILATION
+
+ namespace org {
+ namespace genivi {
+ namespace NodeStateManager {
+
+ class ConsumerProxyBase: virtual public CommonAPI::Proxy {
+ public:
+ typedef CommonAPI::ReadonlyAttribute<int32_t> BootModeAttribute;
+ typedef CommonAPI::ReadonlyAttribute<int32_t> RestartReasonAttribute;
+ typedef CommonAPI::ReadonlyAttribute<int32_t> ShutdownReasonAttribute;
+ typedef CommonAPI::ReadonlyAttribute<int32_t> WakeUpReasonAttribute;
+ typedef CommonAPI::Event<int32_t> NodeApplicationModeEvent;
+ typedef CommonAPI::Event<std::string, int32_t, int32_t> SessionStateChangedEvent;
+ typedef CommonAPI::Event<int32_t> NodeStateEvent;
+ typedef std::function<void(const CommonAPI::CallStatus&, const uint32_t&)> GetAppHealthCountAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&, const int32_t&)> LifecycleRequestCompleteAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&, const uint32_t&)> GetInterfaceVersionAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&, const int32_t&, const int32_t&)> GetApplicationModeAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&, const int32_t&)> UnRegisterSessionAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&, const int32_t&)> RegisterSessionAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&, const int32_t&)> UnRegisterShutdownClientAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&, const int32_t&)> RegisterShutdownClientAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&, const int32_t&, const int32_t&)> GetNodeStateAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&, const int32_t&, const int32_t&)> GetSessionStateAsyncCallback;
+ typedef std::function<void(const CommonAPI::CallStatus&, const int32_t&)> SetSessionStateAsyncCallback;
+
+ virtual BootModeAttribute& getBootModeAttribute() = 0;
+ virtual RestartReasonAttribute& getRestartReasonAttribute() = 0;
+ virtual ShutdownReasonAttribute& getShutdownReasonAttribute() = 0;
+ virtual WakeUpReasonAttribute& getWakeUpReasonAttribute() = 0;
+
+ virtual NodeApplicationModeEvent& getNodeApplicationModeEvent() = 0;
+ virtual SessionStateChangedEvent& getSessionStateChangedEvent() = 0;
+ virtual NodeStateEvent& getNodeStateEvent() = 0;
+
+
+ virtual void GetAppHealthCount(CommonAPI::CallStatus& callStatus, uint32_t& Count) = 0;
+ virtual std::future<CommonAPI::CallStatus> GetAppHealthCountAsync(GetAppHealthCountAsyncCallback callback) = 0;
+
+ virtual void LifecycleRequestComplete(const uint32_t& RequestId, const int32_t& Status, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode) = 0;
+ virtual std::future<CommonAPI::CallStatus> LifecycleRequestCompleteAsync(const uint32_t& RequestId, const int32_t& Status, LifecycleRequestCompleteAsyncCallback callback) = 0;
+
+ virtual void GetInterfaceVersion(CommonAPI::CallStatus& callStatus, uint32_t& Version) = 0;
+ virtual std::future<CommonAPI::CallStatus> GetInterfaceVersionAsync(GetInterfaceVersionAsyncCallback callback) = 0;
+
+ virtual void GetApplicationMode(CommonAPI::CallStatus& callStatus, int32_t& ErrorCode, int32_t& ApplicationModeId) = 0;
+ virtual std::future<CommonAPI::CallStatus> GetApplicationModeAsync(GetApplicationModeAsyncCallback callback) = 0;
+
+ virtual void UnRegisterSession(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SeatID, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode) = 0;
+ virtual std::future<CommonAPI::CallStatus> UnRegisterSessionAsync(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SeatID, UnRegisterSessionAsyncCallback callback) = 0;
+
+ virtual void RegisterSession(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SeatID, const int32_t& SessionState, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode) = 0;
+ virtual std::future<CommonAPI::CallStatus> RegisterSessionAsync(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SeatID, const int32_t& SessionState, RegisterSessionAsyncCallback callback) = 0;
+
+ virtual void UnRegisterShutdownClient(const std::string& BusName, const std::string& ObjName, const uint32_t& ShutdownMode, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode) = 0;
+ virtual std::future<CommonAPI::CallStatus> UnRegisterShutdownClientAsync(const std::string& BusName, const std::string& ObjName, const uint32_t& ShutdownMode, UnRegisterShutdownClientAsyncCallback callback) = 0;
+
+ virtual void RegisterShutdownClient(const std::string& BusName, const std::string& ObjName, const uint32_t& ShutdownMode, const uint32_t& TimeoutMs, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode) = 0;
+ virtual std::future<CommonAPI::CallStatus> RegisterShutdownClientAsync(const std::string& BusName, const std::string& ObjName, const uint32_t& ShutdownMode, const uint32_t& TimeoutMs, RegisterShutdownClientAsyncCallback callback) = 0;
+
+ virtual void GetNodeState(CommonAPI::CallStatus& callStatus, int32_t& ErrorCode, int32_t& NodeStateId) = 0;
+ virtual std::future<CommonAPI::CallStatus> GetNodeStateAsync(GetNodeStateAsyncCallback callback) = 0;
+
+ virtual void GetSessionState(const std::string& SessionName, const int32_t& SeatID, CommonAPI::CallStatus& callStatus, int32_t& SessionState, int32_t& ErrorCode) = 0;
+ virtual std::future<CommonAPI::CallStatus> GetSessionStateAsync(const std::string& SessionName, const int32_t& SeatID, GetSessionStateAsyncCallback callback) = 0;
+
+ virtual void SetSessionState(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SessionState, const int32_t& SeatID, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode) = 0;
+ virtual std::future<CommonAPI::CallStatus> SetSessionStateAsync(const std::string& SessionName, const std::string& SessionOwner, const int32_t& SessionState, const int32_t& SeatID, SetSessionStateAsyncCallback callback) = 0;
+ };
+
+ } // namespace NodeStateManager
+ } // namespace genivi
+ } // namespace org
+
+ #endif // ORG_GENIVI_NODESTATEMANAGER_Consumer_PROXY_BASE_H_
diff --git a/src-gen/org/genivi/NodeStateManager/ConsumerStub.h b/src-gen/org/genivi/NodeStateManager/ConsumerStub.h
new file mode 100644
index 0000000..4d4aebb
--- /dev/null
+++ b/src-gen/org/genivi/NodeStateManager/ConsumerStub.h
@@ -0,0 +1,147 @@
+/*
+* This file was generated by the CommonAPI Generators.
+*
+ * Copyright (C) 2013, BMW AG
+ *
+ * \author Christian Linke, christian.linke@bmw.de BMW 2012,2013
+*/
+#ifndef ORG_GENIVI_NODESTATEMANAGER_Consumer_STUB_H_
+#define ORG_GENIVI_NODESTATEMANAGER_Consumer_STUB_H_
+
+
+
+
+#include "Consumer.h"
+
+#define COMMONAPI_INTERNAL_COMPILATION
+
+
+#include <CommonAPI/Stub.h>
+
+#undef COMMONAPI_INTERNAL_COMPILATION
+
+namespace org {
+namespace genivi {
+namespace NodeStateManager {
+
+/**
+ * Receives messages from remote and handles all dispatching of deserialized calls
+ * to a stub for the service Consumer. Also provides means to send broadcasts
+ * and attribute-changed-notifications of observable attributes as defined by this service.
+ * An application developer should not need to bother with this class.
+ */
+class ConsumerStubAdapter: virtual public CommonAPI::StubAdapter, public Consumer {
+ public:
+
+ /**
+ * Sends a broadcast event for NodeApplicationMode. Should not be called directly.
+ * Instead, the "fire<broadcastName>Event" methods of the stub should be used.
+ */
+ virtual void fireNodeApplicationModeEvent(const int32_t& ApplicationModeId) = 0;
+ /**
+ * Sends a broadcast event for SessionStateChanged. Should not be called directly.
+ * Instead, the "fire<broadcastName>Event" methods of the stub should be used.
+ */
+ virtual void fireSessionStateChangedEvent(const std::string& SessionStateName, const int32_t& SeatID, const int32_t& SessionState) = 0;
+ /**
+ * Sends a broadcast event for NodeState. Should not be called directly.
+ * Instead, the "fire<broadcastName>Event" methods of the stub should be used.
+ */
+ virtual void fireNodeStateEvent(const int32_t& NodeState) = 0;
+};
+
+
+/**
+ * Defines the necessary callbacks to handle remote set events related to the attributes
+ * defined in the IDL description for Consumer.
+ * For each attribute two callbacks are defined:
+ * - a verification callback that allows to verify the requested value and to prevent setting
+ * e.g. an invalid value ("onRemoteSet<AttributeName>").
+ * - an action callback to do local work after the attribute value has been changed
+ * ("onRemote<AttributeName>Changed").
+ *
+ * This class and the one below are the ones an application developer needs to have
+ * a look at if he wants to implement a service.
+ */
+class ConsumerStubRemoteEvent {
+ public:
+ virtual ~ConsumerStubRemoteEvent() { }
+
+ /// Verification callback for remote set requests on the attribute BootMode.
+ virtual bool onRemoteSetBootModeAttribute(int32_t BootMode) = 0;
+ /// Action callback for remote set requests on the attribute BootMode.
+ virtual void onRemoteBootModeAttributeChanged() = 0;
+
+ /// Verification callback for remote set requests on the attribute RestartReason.
+ virtual bool onRemoteSetRestartReasonAttribute(int32_t RestartReason) = 0;
+ /// Action callback for remote set requests on the attribute RestartReason.
+ virtual void onRemoteRestartReasonAttributeChanged() = 0;
+
+ /// Verification callback for remote set requests on the attribute ShutdownReason.
+ virtual bool onRemoteSetShutdownReasonAttribute(int32_t ShutdownReason) = 0;
+ /// Action callback for remote set requests on the attribute ShutdownReason.
+ virtual void onRemoteShutdownReasonAttributeChanged() = 0;
+
+ /// Verification callback for remote set requests on the attribute WakeUpReason.
+ virtual bool onRemoteSetWakeUpReasonAttribute(int32_t WakeUpReason) = 0;
+ /// Action callback for remote set requests on the attribute WakeUpReason.
+ virtual void onRemoteWakeUpReasonAttributeChanged() = 0;
+
+};
+
+
+/**
+ * Defines the interface that must be implemented by any class that should provide
+ * the service Consumer to remote clients.
+ * This class and the one above are the ones an application developer needs to have
+ * a look at if he wants to implement a service.
+ */
+class ConsumerStub : public CommonAPI::Stub<ConsumerStubAdapter , ConsumerStubRemoteEvent> {
+ public:
+ virtual ~ConsumerStub() { }
+
+ /// Provides getter access to the attribute BootMode.
+ virtual const int32_t& getBootModeAttribute() = 0;
+ /// Provides getter access to the attribute RestartReason.
+ virtual const int32_t& getRestartReasonAttribute() = 0;
+ /// Provides getter access to the attribute ShutdownReason.
+ virtual const int32_t& getShutdownReasonAttribute() = 0;
+ /// Provides getter access to the attribute WakeUpReason.
+ virtual const int32_t& getWakeUpReasonAttribute() = 0;
+
+ /// This is the method that will be called on remote calls on the method GetAppHealthCount.
+ virtual void GetAppHealthCount(uint32_t& Count) = 0;
+ /// This is the method that will be called on remote calls on the method LifecycleRequestComplete.
+ virtual void LifecycleRequestComplete(uint32_t RequestId, int32_t Status, int32_t& ErrorCode) = 0;
+ /// This is the method that will be called on remote calls on the method GetInterfaceVersion.
+ virtual void GetInterfaceVersion(uint32_t& Version) = 0;
+ /// This is the method that will be called on remote calls on the method GetApplicationMode.
+ virtual void GetApplicationMode(int32_t& ErrorCode, int32_t& ApplicationModeId) = 0;
+ /// This is the method that will be called on remote calls on the method UnRegisterSession.
+ virtual void UnRegisterSession(std::string SessionName, std::string SessionOwner, int32_t SeatID, int32_t& ErrorCode) = 0;
+ /// This is the method that will be called on remote calls on the method RegisterSession.
+ virtual void RegisterSession(std::string SessionName, std::string SessionOwner, int32_t SeatID, int32_t SessionState, int32_t& ErrorCode) = 0;
+ /// This is the method that will be called on remote calls on the method UnRegisterShutdownClient.
+ virtual void UnRegisterShutdownClient(std::string BusName, std::string ObjName, uint32_t ShutdownMode, int32_t& ErrorCode) = 0;
+ /// This is the method that will be called on remote calls on the method RegisterShutdownClient.
+ virtual void RegisterShutdownClient(std::string BusName, std::string ObjName, uint32_t ShutdownMode, uint32_t TimeoutMs, int32_t& ErrorCode) = 0;
+ /// This is the method that will be called on remote calls on the method GetNodeState.
+ virtual void GetNodeState(int32_t& ErrorCode, int32_t& NodeStateId) = 0;
+ /// This is the method that will be called on remote calls on the method GetSessionState.
+ virtual void GetSessionState(std::string SessionName, int32_t SeatID, int32_t& SessionState, int32_t& ErrorCode) = 0;
+ /// This is the method that will be called on remote calls on the method SetSessionState.
+ virtual void SetSessionState(std::string SessionName, std::string SessionOwner, int32_t SessionState, int32_t SeatID, int32_t& ErrorCode) = 0;
+
+ /// Sends a broadcast event for NodeApplicationMode.
+ virtual void fireNodeApplicationModeEvent(const int32_t& ApplicationModeId) = 0;
+ /// Sends a broadcast event for SessionStateChanged.
+ virtual void fireSessionStateChangedEvent(const std::string& SessionStateName, const int32_t& SeatID, const int32_t& SessionState) = 0;
+ /// Sends a broadcast event for NodeState.
+ virtual void fireNodeStateEvent(const int32_t& NodeState) = 0;
+};
+
+} // namespace NodeStateManager
+} // namespace genivi
+} // namespace org
+
+#endif // ORG_GENIVI_NODESTATEMANAGER_Consumer_STUB_H_
diff --git a/src-gen/org/genivi/NodeStateManager/ConsumerStubDefault.cpp b/src-gen/org/genivi/NodeStateManager/ConsumerStubDefault.cpp
new file mode 100644
index 0000000..2cacb2f
--- /dev/null
+++ b/src-gen/org/genivi/NodeStateManager/ConsumerStubDefault.cpp
@@ -0,0 +1,217 @@
+/*
+* This file was generated by the CommonAPI Generators.
+*
+ * Copyright (C) 2013, BMW AG
+ *
+ * \author Christian Linke, christian.linke@bmw.de BMW 2012,2013
+*/
+#include <org/genivi/NodeStateManager/ConsumerStubDefault.h>
+
+namespace org {
+namespace genivi {
+namespace NodeStateManager {
+
+ConsumerStubDefault::ConsumerStubDefault():
+ remoteEventHandler_(this) {
+}
+
+ConsumerStubRemoteEvent* ConsumerStubDefault::initStubAdapter(const std::shared_ptr<ConsumerStubAdapter>& stubAdapter) {
+ stubAdapter_ = stubAdapter;
+ return &remoteEventHandler_;
+}
+
+const int32_t& ConsumerStubDefault::getBootModeAttribute() {
+ return bootModeAttributeValue_;
+}
+
+void ConsumerStubDefault::setBootModeAttribute(int32_t value) {
+ trySetBootModeAttribute(std::move(value));
+}
+
+void ConsumerStubDefault::onRemoteBootModeAttributeChanged() {
+ // No operation in default
+}
+
+bool ConsumerStubDefault::trySetBootModeAttribute(int32_t value) {
+ if (!validateBootModeAttributeRequestedValue(value))
+ return false;
+
+ const bool valueChanged = (bootModeAttributeValue_ != value);
+ bootModeAttributeValue_ = std::move(value);
+ return valueChanged;
+}
+
+bool ConsumerStubDefault::validateBootModeAttributeRequestedValue(const int32_t& value) {
+ return true;
+}
+
+bool ConsumerStubDefault::RemoteEventHandler::onRemoteSetBootModeAttribute(int32_t value) {
+ return defaultStub_->trySetBootModeAttribute(std::move(value));
+}
+
+void ConsumerStubDefault::RemoteEventHandler::onRemoteBootModeAttributeChanged() {
+ defaultStub_->onRemoteBootModeAttributeChanged();
+}
+
+const int32_t& ConsumerStubDefault::getRestartReasonAttribute() {
+ return restartReasonAttributeValue_;
+}
+
+void ConsumerStubDefault::setRestartReasonAttribute(int32_t value) {
+ trySetRestartReasonAttribute(std::move(value));
+}
+
+void ConsumerStubDefault::onRemoteRestartReasonAttributeChanged() {
+ // No operation in default
+}
+
+bool ConsumerStubDefault::trySetRestartReasonAttribute(int32_t value) {
+ if (!validateRestartReasonAttributeRequestedValue(value))
+ return false;
+
+ const bool valueChanged = (restartReasonAttributeValue_ != value);
+ restartReasonAttributeValue_ = std::move(value);
+ return valueChanged;
+}
+
+bool ConsumerStubDefault::validateRestartReasonAttributeRequestedValue(const int32_t& value) {
+ return true;
+}
+
+bool ConsumerStubDefault::RemoteEventHandler::onRemoteSetRestartReasonAttribute(int32_t value) {
+ return defaultStub_->trySetRestartReasonAttribute(std::move(value));
+}
+
+void ConsumerStubDefault::RemoteEventHandler::onRemoteRestartReasonAttributeChanged() {
+ defaultStub_->onRemoteRestartReasonAttributeChanged();
+}
+
+const int32_t& ConsumerStubDefault::getShutdownReasonAttribute() {
+ return shutdownReasonAttributeValue_;
+}
+
+void ConsumerStubDefault::setShutdownReasonAttribute(int32_t value) {
+ trySetShutdownReasonAttribute(std::move(value));
+}
+
+void ConsumerStubDefault::onRemoteShutdownReasonAttributeChanged() {
+ // No operation in default
+}
+
+bool ConsumerStubDefault::trySetShutdownReasonAttribute(int32_t value) {
+ if (!validateShutdownReasonAttributeRequestedValue(value))
+ return false;
+
+ const bool valueChanged = (shutdownReasonAttributeValue_ != value);
+ shutdownReasonAttributeValue_ = std::move(value);
+ return valueChanged;
+}
+
+bool ConsumerStubDefault::validateShutdownReasonAttributeRequestedValue(const int32_t& value) {
+ return true;
+}
+
+bool ConsumerStubDefault::RemoteEventHandler::onRemoteSetShutdownReasonAttribute(int32_t value) {
+ return defaultStub_->trySetShutdownReasonAttribute(std::move(value));
+}
+
+void ConsumerStubDefault::RemoteEventHandler::onRemoteShutdownReasonAttributeChanged() {
+ defaultStub_->onRemoteShutdownReasonAttributeChanged();
+}
+
+const int32_t& ConsumerStubDefault::getWakeUpReasonAttribute() {
+ return wakeUpReasonAttributeValue_;
+}
+
+void ConsumerStubDefault::setWakeUpReasonAttribute(int32_t value) {
+ trySetWakeUpReasonAttribute(std::move(value));
+}
+
+void ConsumerStubDefault::onRemoteWakeUpReasonAttributeChanged() {
+ // No operation in default
+}
+
+bool ConsumerStubDefault::trySetWakeUpReasonAttribute(int32_t value) {
+ if (!validateWakeUpReasonAttributeRequestedValue(value))
+ return false;
+
+ const bool valueChanged = (wakeUpReasonAttributeValue_ != value);
+ wakeUpReasonAttributeValue_ = std::move(value);
+ return valueChanged;
+}
+
+bool ConsumerStubDefault::validateWakeUpReasonAttributeRequestedValue(const int32_t& value) {
+ return true;
+}
+
+bool ConsumerStubDefault::RemoteEventHandler::onRemoteSetWakeUpReasonAttribute(int32_t value) {
+ return defaultStub_->trySetWakeUpReasonAttribute(std::move(value));
+}
+
+void ConsumerStubDefault::RemoteEventHandler::onRemoteWakeUpReasonAttributeChanged() {
+ defaultStub_->onRemoteWakeUpReasonAttributeChanged();
+}
+
+
+void ConsumerStubDefault::GetAppHealthCount(uint32_t& Count) {
+ // No operation in default
+}
+
+void ConsumerStubDefault::LifecycleRequestComplete(uint32_t RequestId, int32_t Status, int32_t& ErrorCode) {
+ // No operation in default
+}
+
+void ConsumerStubDefault::GetInterfaceVersion(uint32_t& Version) {
+ // No operation in default
+}
+
+void ConsumerStubDefault::GetApplicationMode(int32_t& ErrorCode, int32_t& ApplicationModeId) {
+ // No operation in default
+}
+
+void ConsumerStubDefault::UnRegisterSession(std::string SessionName, std::string SessionOwner, int32_t SeatID, int32_t& ErrorCode) {
+ // No operation in default
+}
+
+void ConsumerStubDefault::RegisterSession(std::string SessionName, std::string SessionOwner, int32_t SeatID, int32_t SessionState, int32_t& ErrorCode) {
+ // No operation in default
+}
+
+void ConsumerStubDefault::UnRegisterShutdownClient(std::string BusName, std::string ObjName, uint32_t ShutdownMode, int32_t& ErrorCode) {
+ // No operation in default
+}
+
+void ConsumerStubDefault::RegisterShutdownClient(std::string BusName, std::string ObjName, uint32_t ShutdownMode, uint32_t TimeoutMs, int32_t& ErrorCode) {
+ // No operation in default
+}
+
+void ConsumerStubDefault::GetNodeState(int32_t& ErrorCode, int32_t& NodeStateId) {
+ // No operation in default
+}
+
+void ConsumerStubDefault::GetSessionState(std::string SessionName, int32_t SeatID, int32_t& SessionState, int32_t& ErrorCode) {
+ // No operation in default
+}
+
+void ConsumerStubDefault::SetSessionState(std::string SessionName, std::string SessionOwner, int32_t SessionState, int32_t SeatID, int32_t& ErrorCode) {
+ // No operation in default
+}
+
+
+void ConsumerStubDefault::fireNodeApplicationModeEvent(const int32_t& ApplicationModeId) {
+ stubAdapter_->fireNodeApplicationModeEvent(ApplicationModeId);
+}
+void ConsumerStubDefault::fireSessionStateChangedEvent(const std::string& SessionStateName, const int32_t& SeatID, const int32_t& SessionState) {
+ stubAdapter_->fireSessionStateChangedEvent(SessionStateName, SeatID, SessionState);
+}
+void ConsumerStubDefault::fireNodeStateEvent(const int32_t& NodeState) {
+ stubAdapter_->fireNodeStateEvent(NodeState);
+}
+
+ConsumerStubDefault::RemoteEventHandler::RemoteEventHandler(ConsumerStubDefault* defaultStub):
+ defaultStub_(defaultStub) {
+}
+
+} // namespace NodeStateManager
+} // namespace genivi
+} // namespace org
diff --git a/src-gen/org/genivi/NodeStateManager/ConsumerStubDefault.h b/src-gen/org/genivi/NodeStateManager/ConsumerStubDefault.h
new file mode 100644
index 0000000..7cc92f9
--- /dev/null
+++ b/src-gen/org/genivi/NodeStateManager/ConsumerStubDefault.h
@@ -0,0 +1,126 @@
+/*
+* This file was generated by the CommonAPI Generators.
+*
+ * Copyright (C) 2013, BMW AG
+ *
+ * \author Christian Linke, christian.linke@bmw.de BMW 2012,2013
+*/
+#ifndef ORG_GENIVI_NODESTATEMANAGER_Consumer_STUB_DEFAULT_H_
+#define ORG_GENIVI_NODESTATEMANAGER_Consumer_STUB_DEFAULT_H_
+
+#include <org/genivi/NodeStateManager/ConsumerStub.h>
+
+namespace org {
+namespace genivi {
+namespace NodeStateManager {
+
+/**
+ * Provides a default implementation for ConsumerStubRemoteEvent and
+ * ConsumerStub. Method callbacks have an empty implementation,
+ * remote set calls on attributes will always change the value of the attribute
+ * to the one received.
+ *
+ * Override this stub if you only want to provide a subset of the functionality
+ * that would be defined for this service, and/or if you do not need any non-default
+ * behaviour.
+ */
+class ConsumerStubDefault : public ConsumerStub {
+ public:
+ ConsumerStubDefault();
+
+ ConsumerStubRemoteEvent* initStubAdapter(const std::shared_ptr<ConsumerStubAdapter>& stubAdapter);
+
+ virtual const int32_t& getBootModeAttribute();
+ virtual void setBootModeAttribute(int32_t value);
+
+ virtual const int32_t& getRestartReasonAttribute();
+ virtual void setRestartReasonAttribute(int32_t value);
+
+ virtual const int32_t& getShutdownReasonAttribute();
+ virtual void setShutdownReasonAttribute(int32_t value);
+
+ virtual const int32_t& getWakeUpReasonAttribute();
+ virtual void setWakeUpReasonAttribute(int32_t value);
+
+
+ virtual void GetAppHealthCount(uint32_t& Count);
+
+ virtual void LifecycleRequestComplete(uint32_t RequestId, int32_t Status, int32_t& ErrorCode);
+
+ virtual void GetInterfaceVersion(uint32_t& Version);
+
+ virtual void GetApplicationMode(int32_t& ErrorCode, int32_t& ApplicationModeId);
+
+ virtual void UnRegisterSession(std::string SessionName, std::string SessionOwner, int32_t SeatID, int32_t& ErrorCode);
+
+ virtual void RegisterSession(std::string SessionName, std::string SessionOwner, int32_t SeatID, int32_t SessionState, int32_t& ErrorCode);
+
+ virtual void UnRegisterShutdownClient(std::string BusName, std::string ObjName, uint32_t ShutdownMode, int32_t& ErrorCode);
+
+ virtual void RegisterShutdownClient(std::string BusName, std::string ObjName, uint32_t ShutdownMode, uint32_t TimeoutMs, int32_t& ErrorCode);
+
+ virtual void GetNodeState(int32_t& ErrorCode, int32_t& NodeStateId);
+
+ virtual void GetSessionState(std::string SessionName, int32_t SeatID, int32_t& SessionState, int32_t& ErrorCode);
+
+ virtual void SetSessionState(std::string SessionName, std::string SessionOwner, int32_t SessionState, int32_t SeatID, int32_t& ErrorCode);
+
+
+ virtual void fireNodeApplicationModeEvent(const int32_t& ApplicationModeId);
+ virtual void fireSessionStateChangedEvent(const std::string& SessionStateName, const int32_t& SeatID, const int32_t& SessionState);
+ virtual void fireNodeStateEvent(const int32_t& NodeState);
+
+ protected:
+ virtual void onRemoteBootModeAttributeChanged();
+ virtual bool trySetBootModeAttribute(int32_t value);
+ virtual bool validateBootModeAttributeRequestedValue(const int32_t& value);
+
+ virtual void onRemoteRestartReasonAttributeChanged();
+ virtual bool trySetRestartReasonAttribute(int32_t value);
+ virtual bool validateRestartReasonAttributeRequestedValue(const int32_t& value);
+
+ virtual void onRemoteShutdownReasonAttributeChanged();
+ virtual bool trySetShutdownReasonAttribute(int32_t value);
+ virtual bool validateShutdownReasonAttributeRequestedValue(const int32_t& value);
+
+ virtual void onRemoteWakeUpReasonAttributeChanged();
+ virtual bool trySetWakeUpReasonAttribute(int32_t value);
+ virtual bool validateWakeUpReasonAttributeRequestedValue(const int32_t& value);
+
+
+ private:
+ class RemoteEventHandler: public ConsumerStubRemoteEvent {
+ public:
+ RemoteEventHandler(ConsumerStubDefault* defaultStub);
+
+ virtual bool onRemoteSetBootModeAttribute(int32_t value);
+ virtual void onRemoteBootModeAttributeChanged();
+
+ virtual bool onRemoteSetRestartReasonAttribute(int32_t value);
+ virtual void onRemoteRestartReasonAttributeChanged();
+
+ virtual bool onRemoteSetShutdownReasonAttribute(int32_t value);
+ virtual void onRemoteShutdownReasonAttributeChanged();
+
+ virtual bool onRemoteSetWakeUpReasonAttribute(int32_t value);
+ virtual void onRemoteWakeUpReasonAttributeChanged();
+
+
+ private:
+ ConsumerStubDefault* defaultStub_;
+ };
+
+ RemoteEventHandler remoteEventHandler_;
+ std::shared_ptr<ConsumerStubAdapter> stubAdapter_;
+
+ int32_t bootModeAttributeValue_;
+ int32_t restartReasonAttributeValue_;
+ int32_t shutdownReasonAttributeValue_;
+ int32_t wakeUpReasonAttributeValue_;
+};
+
+} // namespace NodeStateManager
+} // namespace genivi
+} // namespace org
+
+#endif // ORG_GENIVI_NODESTATEMANAGER_Consumer_STUB_DEFAULT_H_
diff --git a/src-gen/org/genivi/NodeStateManager/LifeCycleConsumer.h b/src-gen/org/genivi/NodeStateManager/LifeCycleConsumer.h
new file mode 100644
index 0000000..674e11b
--- /dev/null
+++ b/src-gen/org/genivi/NodeStateManager/LifeCycleConsumer.h
@@ -0,0 +1,55 @@
+/*
+* This file was generated by the CommonAPI Generators.
+*
+ * Copyright (C) 2013, BMW AG
+ *
+ * \author Christian Linke, christian.linke@bmw.de BMW 2012,2013
+*/
+#ifndef ORG_GENIVI_NODESTATEMANAGER_Life_Cycle_Consumer_H_
+#define ORG_GENIVI_NODESTATEMANAGER_Life_Cycle_Consumer_H_
+
+
+
+#define COMMONAPI_INTERNAL_COMPILATION
+
+#include <CommonAPI/types.h>
+
+#undef COMMONAPI_INTERNAL_COMPILATION
+
+namespace org {
+namespace genivi {
+namespace NodeStateManager {
+
+class LifeCycleConsumer {
+ public:
+ virtual ~LifeCycleConsumer() { }
+
+ static inline const char* getInterfaceId();
+ static inline CommonAPI::Version getInterfaceVersion();
+};
+
+const char* LifeCycleConsumer::getInterfaceId() {
+ return "org.genivi.NodeStateManager.LifeCycleConsumer";
+}
+
+CommonAPI::Version LifeCycleConsumer::getInterfaceVersion() {
+ return CommonAPI::Version(1, 0);
+}
+
+
+} // namespace NodeStateManager
+} // namespace genivi
+} // namespace org
+
+namespace CommonAPI {
+
+}
+
+
+namespace std {
+ //hashes for types
+
+ //hashes for error types
+}
+
+#endif // ORG_GENIVI_NODESTATEMANAGER_Life_Cycle_Consumer_H_
diff --git a/src-gen/org/genivi/NodeStateManager/LifeCycleConsumerDBusProxy.cpp b/src-gen/org/genivi/NodeStateManager/LifeCycleConsumerDBusProxy.cpp
new file mode 100644
index 0000000..40f18e6
--- /dev/null
+++ b/src-gen/org/genivi/NodeStateManager/LifeCycleConsumerDBusProxy.cpp
@@ -0,0 +1,67 @@
+/*
+* This file was generated by the CommonAPI Generators.
+*
+ * Copyright (C) 2013, BMW AG
+ *
+ * \author Christian Linke, christian.linke@bmw.de BMW 2012,2013
+*/
+#include "LifeCycleConsumerDBusProxy.h"
+
+namespace org {
+namespace genivi {
+namespace NodeStateManager {
+
+std::shared_ptr<CommonAPI::DBus::DBusProxy> createLifeCycleConsumerDBusProxy(
+ const std::string& commonApiAddress,
+ const std::string& interfaceName,
+ const std::string& busName,
+ const std::string& objectPath,
+ const std::shared_ptr<CommonAPI::DBus::DBusProxyConnection>& dbusProxyConnection) {
+ return std::make_shared<LifeCycleConsumerDBusProxy>(commonApiAddress, interfaceName, busName, objectPath, dbusProxyConnection);
+}
+
+__attribute__((constructor)) void registerLifeCycleConsumerDBusProxy(void) {
+ CommonAPI::DBus::DBusFactory::registerProxyFactoryMethod(LifeCycleConsumer::getInterfaceId(),
+ &createLifeCycleConsumerDBusProxy);
+}
+
+LifeCycleConsumerDBusProxy::LifeCycleConsumerDBusProxy(
+ const std::string& commonApiAddress,
+ const std::string& interfaceName,
+ const std::string& busName,
+ const std::string& objectPath,
+ const std::shared_ptr<CommonAPI::DBus::DBusProxyConnection>& dbusProxyconnection):
+ CommonAPI::DBus::DBusProxy(commonApiAddress, interfaceName, busName, objectPath, dbusProxyconnection)
+ {
+}
+
+
+
+void LifeCycleConsumerDBusProxy::LifecycleRequest(const uint32_t& Request, const uint32_t& RequestId, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode) {
+ CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<uint32_t, uint32_t>,
+ CommonAPI::DBus::DBusSerializableArguments<int32_t> >::callMethodWithReply(
+ *this,
+ "LifecycleRequest",
+ "uu",
+ Request, RequestId,
+ callStatus
+ , ErrorCode);
+}
+std::future<CommonAPI::CallStatus> LifeCycleConsumerDBusProxy::LifecycleRequestAsync(const uint32_t& Request, const uint32_t& RequestId, LifecycleRequestAsyncCallback callback) {
+ return CommonAPI::DBus::DBusProxyHelper<CommonAPI::DBus::DBusSerializableArguments<uint32_t, uint32_t>,
+ CommonAPI::DBus::DBusSerializableArguments<int32_t> >::callMethodAsync(
+ *this,
+ "LifecycleRequest",
+ "uu",
+ Request, RequestId,
+ std::move(callback));
+}
+
+void LifeCycleConsumerDBusProxy::getOwnVersion(uint16_t& ownVersionMajor, uint16_t& ownVersionMinor) const {
+ ownVersionMajor = 1;
+ ownVersionMinor = 0;
+}
+
+} // namespace NodeStateManager
+} // namespace genivi
+} // namespace org
diff --git a/src-gen/org/genivi/NodeStateManager/LifeCycleConsumerDBusProxy.h b/src-gen/org/genivi/NodeStateManager/LifeCycleConsumerDBusProxy.h
new file mode 100644
index 0000000..351558d
--- /dev/null
+++ b/src-gen/org/genivi/NodeStateManager/LifeCycleConsumerDBusProxy.h
@@ -0,0 +1,53 @@
+/*
+* This file was generated by the CommonAPI Generators.
+*
+ * Copyright (C) 2013, BMW AG
+ *
+ * \author Christian Linke, christian.linke@bmw.de BMW 2012,2013
+*/
+#ifndef ORG_GENIVI_NODESTATEMANAGER_Life_Cycle_Consumer_DBUS_PROXY_H_
+#define ORG_GENIVI_NODESTATEMANAGER_Life_Cycle_Consumer_DBUS_PROXY_H_
+
+#include <org/genivi/NodeStateManager/LifeCycleConsumerProxyBase.h>
+
+#define COMMONAPI_INTERNAL_COMPILATION
+
+#include <CommonAPI/DBus/DBusFactory.h>
+#include <CommonAPI/DBus/DBusProxy.h>
+
+#undef COMMONAPI_INTERNAL_COMPILATION
+
+#include <string>
+
+namespace org {
+namespace genivi {
+namespace NodeStateManager {
+
+class LifeCycleConsumerDBusProxy: virtual public LifeCycleConsumerProxyBase, virtual public CommonAPI::DBus::DBusProxy {
+ public:
+ LifeCycleConsumerDBusProxy(
+ const std::string& commonApiAddress,
+ const std::string& interfaceName,
+ const std::string& busName,
+ const std::string& objectPath,
+ const std::shared_ptr<CommonAPI::DBus::DBusProxyConnection>& dbusProxyconnection);
+
+ virtual ~LifeCycleConsumerDBusProxy() { }
+
+
+
+
+ virtual void LifecycleRequest(const uint32_t& Request, const uint32_t& RequestId, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode);
+ virtual std::future<CommonAPI::CallStatus> LifecycleRequestAsync(const uint32_t& Request, const uint32_t& RequestId, LifecycleRequestAsyncCallback callback);
+
+ virtual void getOwnVersion(uint16_t& ownVersionMajor, uint16_t& ownVersionMinor) const;
+
+ private:
+
+};
+
+} // namespace NodeStateManager
+} // namespace genivi
+} // namespace org
+
+#endif // ORG_GENIVI_NODESTATEMANAGER_Life_Cycle_Consumer_DBUS_PROXY_H_
diff --git a/src-gen/org/genivi/NodeStateManager/LifeCycleConsumerDBusStubAdapter.cpp b/src-gen/org/genivi/NodeStateManager/LifeCycleConsumerDBusStubAdapter.cpp
new file mode 100644
index 0000000..f59fb96
--- /dev/null
+++ b/src-gen/org/genivi/NodeStateManager/LifeCycleConsumerDBusStubAdapter.cpp
@@ -0,0 +1,67 @@
+/*
+* This file was generated by the CommonAPI Generators.
+*
+ * Copyright (C) 2013, BMW AG
+ *
+ * \author Christian Linke, christian.linke@bmw.de BMW 2012,2013
+*/
+#include "LifeCycleConsumerDBusStubAdapter.h"
+#include <org/genivi/NodeStateManager/LifeCycleConsumer.h>
+
+namespace org {
+namespace genivi {
+namespace NodeStateManager {
+
+std::shared_ptr<CommonAPI::DBus::DBusStubAdapter> createLifeCycleConsumerDBusStubAdapter(
+ const std::string& commonApiAddress,
+ const std::string& interfaceName,
+ const std::string& busName,
+ const std::string& objectPath,
+ const std::shared_ptr<CommonAPI::DBus::DBusProxyConnection>& dbusProxyConnection,
+ const std::shared_ptr<CommonAPI::StubBase>& stubBase) {
+ return std::make_shared<LifeCycleConsumerDBusStubAdapter>(commonApiAddress, interfaceName, busName, objectPath, dbusProxyConnection, stubBase);
+}
+
+__attribute__((constructor)) void registerLifeCycleConsumerDBusStubAdapter(void) {
+ CommonAPI::DBus::DBusFactory::registerAdapterFactoryMethod(LifeCycleConsumer::getInterfaceId(),
+ &createLifeCycleConsumerDBusStubAdapter);
+}
+
+LifeCycleConsumerDBusStubAdapter::LifeCycleConsumerDBusStubAdapter(
+ const std::string& commonApiAddress,
+ const std::string& dbusInterfaceName,
+ const std::string& dbusBusName,
+ const std::string& dbusObjectPath,
+ const std::shared_ptr<CommonAPI::DBus::DBusProxyConnection>& dbusConnection,
+ const std::shared_ptr<CommonAPI::StubBase>& stub):
+ LifeCycleConsumerDBusStubAdapterHelper(commonApiAddress, dbusInterfaceName, dbusBusName, dbusObjectPath, dbusConnection, std::dynamic_pointer_cast<LifeCycleConsumerStub>(stub)) {
+}
+
+const char* LifeCycleConsumerDBusStubAdapter::getMethodsDBusIntrospectionXmlData() const {
+ return
+ "<method name=\"LifecycleRequest\">\n"
+ "<arg name=\"Request\" type=\"u\" direction=\"in\" />\n"
+ "<arg name=\"RequestId\" type=\"u\" direction=\"in\" />\n"
+ "<arg name=\"ErrorCode\" type=\"i\" direction=\"out\" />\n"
+ "</method>\n"
+ ;
+}
+
+
+
+static CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<
+ LifeCycleConsumerStub,
+ std::tuple<uint32_t, uint32_t>,
+ std::tuple<int32_t>
+ > lifecycleRequestStubDispatcher(&LifeCycleConsumerStub::LifecycleRequest, "i");
+
+
+
+} // namespace NodeStateManager
+} // namespace genivi
+} // namespace org
+
+template<>
+const org::genivi::NodeStateManager::LifeCycleConsumerDBusStubAdapterHelper::StubDispatcherTable org::genivi::NodeStateManager::LifeCycleConsumerDBusStubAdapterHelper::stubDispatcherTable_ = {
+ { { "LifecycleRequest", "uu" }, &org::genivi::NodeStateManager::lifecycleRequestStubDispatcher }
+};
diff --git a/src-gen/org/genivi/NodeStateManager/LifeCycleConsumerDBusStubAdapter.h b/src-gen/org/genivi/NodeStateManager/LifeCycleConsumerDBusStubAdapter.h
new file mode 100644
index 0000000..e6073ea
--- /dev/null
+++ b/src-gen/org/genivi/NodeStateManager/LifeCycleConsumerDBusStubAdapter.h
@@ -0,0 +1,46 @@
+/*
+* This file was generated by the CommonAPI Generators.
+*
+ * Copyright (C) 2013, BMW AG
+ *
+ * \author Christian Linke, christian.linke@bmw.de BMW 2012,2013
+*/
+#ifndef ORG_GENIVI_NODESTATEMANAGER_Life_Cycle_Consumer_DBUS_STUB_ADAPTER_H_
+#define ORG_GENIVI_NODESTATEMANAGER_Life_Cycle_Consumer_DBUS_STUB_ADAPTER_H_
+
+#include <org/genivi/NodeStateManager/LifeCycleConsumerStub.h>
+
+#define COMMONAPI_INTERNAL_COMPILATION
+
+#include <CommonAPI/DBus/DBusStubAdapterHelper.h>
+#include <CommonAPI/DBus/DBusFactory.h>
+
+#undef COMMONAPI_INTERNAL_COMPILATION
+
+namespace org {
+namespace genivi {
+namespace NodeStateManager {
+
+typedef CommonAPI::DBus::DBusStubAdapterHelper<LifeCycleConsumerStub> LifeCycleConsumerDBusStubAdapterHelper;
+
+class LifeCycleConsumerDBusStubAdapter: public LifeCycleConsumerStubAdapter, public LifeCycleConsumerDBusStubAdapterHelper {
+ public:
+ LifeCycleConsumerDBusStubAdapter(
+ const std::string& commonApiAddress,
+ const std::string& dbusInterfaceName,
+ const std::string& dbusBusName,
+ const std::string& dbusObjectPath,
+ const std::shared_ptr<CommonAPI::DBus::DBusProxyConnection>& dbusConnection,
+ const std::shared_ptr<CommonAPI::StubBase>& stub);
+
+
+
+ protected:
+ virtual const char* getMethodsDBusIntrospectionXmlData() const;
+};
+
+} // namespace NodeStateManager
+} // namespace genivi
+} // namespace org
+
+#endif // ORG_GENIVI_NODESTATEMANAGER_Life_Cycle_Consumer_DBUS_STUB_ADAPTER_H_
diff --git a/src-gen/org/genivi/NodeStateManager/LifeCycleConsumerProxy.h b/src-gen/org/genivi/NodeStateManager/LifeCycleConsumerProxy.h
new file mode 100644
index 0000000..9289e83
--- /dev/null
+++ b/src-gen/org/genivi/NodeStateManager/LifeCycleConsumerProxy.h
@@ -0,0 +1,151 @@
+/*
+* This file was generated by the CommonAPI Generators.
+*
+ * Copyright (C) 2013, BMW AG
+ *
+ * \author Christian Linke, christian.linke@bmw.de BMW 2012,2013
+*/
+#ifndef ORG_GENIVI_NODESTATEMANAGER_Life_Cycle_Consumer_PROXY_H_
+#define ORG_GENIVI_NODESTATEMANAGER_Life_Cycle_Consumer_PROXY_H_
+
+#include "LifeCycleConsumerProxyBase.h"
+
+#define COMMONAPI_INTERNAL_COMPILATION
+
+
+#undef COMMONAPI_INTERNAL_COMPILATION
+
+namespace org {
+namespace genivi {
+namespace NodeStateManager {
+
+template <typename ... _AttributeExtensions>
+class LifeCycleConsumerProxy: virtual public LifeCycleConsumer, virtual public LifeCycleConsumerProxyBase, public _AttributeExtensions... {
+ public:
+ LifeCycleConsumerProxy(std::shared_ptr<CommonAPI::Proxy> delegate);
+ ~LifeCycleConsumerProxy();
+
+
+
+
+ /**
+ * Calls LifecycleRequest with synchronous semantics.
+ *
+ * All const parameters are input parameters to this method.
+ * All non-const parameters will be filled with the returned values.
+ * The CallStatus will be filled when the method returns and indicate either
+ * "SUCCESS" or which type of error has occurred. In case of an error, ONLY the CallStatus
+ * will be set.
+ * Synchronous calls are not supported (will block indefinitely) when mainloop integration is used.
+ */
+ virtual void LifecycleRequest(const uint32_t& Request, const uint32_t& RequestId, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode);
+ /**
+ * Calls LifecycleRequest with asynchronous semantics.
+ *
+ * The provided callback will be called when the reply to this call arrives or
+ * an error occurs during the call. The CallStatus will indicate either "SUCCESS"
+ * or which type of error has occurred. In case of any error, ONLY the CallStatus
+ * will have a defined value.
+ * The std::future returned by this method will be fulfilled at arrival of the reply.
+ * It will provide the same value for CallStatus as will be handed to the callback.
+ */
+ virtual std::future<CommonAPI::CallStatus> LifecycleRequestAsync(const uint32_t& Request, const uint32_t& RequestId, LifecycleRequestAsyncCallback callback);
+
+ /// Returns the CommonAPI address of the remote partner this proxy communicates with.
+ virtual std::string getAddress() const;
+
+ /// Returns the domain of the remote partner this proxy communicates with.
+ virtual const std::string& getDomain() const;
+
+ /// Returns the service ID of the remote partner this proxy communicates with.
+ virtual const std::string& getServiceId() const;
+
+ /// Returns the instance ID of the remote partner this proxy communicates with.
+ virtual const std::string& getInstanceId() const;
+
+ /// Returns true if the remote partner for this proxy is available.
+ virtual bool isAvailable() const;
+
+ /**
+ * Returns the wrapper class that is used to (de-)register for notifications about
+ * the availability of the remote partner of this proxy.
+ */
+ virtual CommonAPI::ProxyStatusEvent& getProxyStatusEvent();
+
+ /**
+ * Returns the wrapper class that is used to access version information of the remote
+ * partner of this proxy.
+ */
+ virtual CommonAPI::InterfaceVersionAttribute& getInterfaceVersionAttribute();
+
+ private:
+ std::shared_ptr<LifeCycleConsumerProxyBase> delegate_;
+};
+
+
+//
+// LifeCycleConsumerProxy Implementation
+//
+template <typename ... _AttributeExtensions>
+LifeCycleConsumerProxy<_AttributeExtensions...>::LifeCycleConsumerProxy(std::shared_ptr<CommonAPI::Proxy> delegate):
+ delegate_(std::dynamic_pointer_cast<LifeCycleConsumerProxyBase>(delegate)),
+ _AttributeExtensions(*(std::dynamic_pointer_cast<LifeCycleConsumerProxyBase>(delegate)))... {
+}
+
+template <typename ... _AttributeExtensions>
+LifeCycleConsumerProxy<_AttributeExtensions...>::~LifeCycleConsumerProxy() {
+}
+
+template <typename ... _AttributeExtensions>
+void LifeCycleConsumerProxy<_AttributeExtensions...>::LifecycleRequest(const uint32_t& Request, const uint32_t& RequestId, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode) {
+ delegate_->LifecycleRequest(Request, RequestId, callStatus, ErrorCode);
+}
+
+template <typename ... _AttributeExtensions>
+std::future<CommonAPI::CallStatus> LifeCycleConsumerProxy<_AttributeExtensions...>::LifecycleRequestAsync(const uint32_t& Request, const uint32_t& RequestId, LifecycleRequestAsyncCallback callback) {
+ return delegate_->LifecycleRequestAsync(Request, RequestId, callback);
+}
+
+
+template <typename ... _AttributeExtensions>
+std::string LifeCycleConsumerProxy<_AttributeExtensions...>::getAddress() const {
+ return delegate_->getAddress();
+}
+
+template <typename ... _AttributeExtensions>
+const std::string& LifeCycleConsumerProxy<_AttributeExtensions...>::getDomain() const {
+ return delegate_->getDomain();
+}
+
+template <typename ... _AttributeExtensions>
+const std::string& LifeCycleConsumerProxy<_AttributeExtensions...>::getServiceId() const {
+ return delegate_->getServiceId();
+}
+
+template <typename ... _AttributeExtensions>
+const std::string& LifeCycleConsumerProxy<_AttributeExtensions...>::getInstanceId() const {
+ return delegate_->getInstanceId();
+}
+
+template <typename ... _AttributeExtensions>
+bool LifeCycleConsumerProxy<_AttributeExtensions...>::isAvailable() const {
+ return delegate_->isAvailable();
+}
+
+template <typename ... _AttributeExtensions>
+CommonAPI::ProxyStatusEvent& LifeCycleConsumerProxy<_AttributeExtensions...>::getProxyStatusEvent() {
+ return delegate_->getProxyStatusEvent();
+}
+
+template <typename ... _AttributeExtensions>
+CommonAPI::InterfaceVersionAttribute& LifeCycleConsumerProxy<_AttributeExtensions...>::getInterfaceVersionAttribute() {
+ return delegate_->getInterfaceVersionAttribute();
+}
+
+} // namespace NodeStateManager
+} // namespace genivi
+} // namespace org
+
+
+
+#endif // ORG_GENIVI_NODESTATEMANAGER_Life_Cycle_Consumer_PROXY_H_
diff --git a/src-gen/org/genivi/NodeStateManager/LifeCycleConsumerProxyBase.h b/src-gen/org/genivi/NodeStateManager/LifeCycleConsumerProxyBase.h
new file mode 100644
index 0000000..7ee8471
--- /dev/null
+++ b/src-gen/org/genivi/NodeStateManager/LifeCycleConsumerProxyBase.h
@@ -0,0 +1,43 @@
+ /*
+ * This file was generated by the CommonAPI Generators.
+ *
+ * Copyright (C) 2013, BMW AG
+ *
+ * \author Christian Linke, christian.linke@bmw.de BMW 2012,2013
+ */
+ #ifndef ORG_GENIVI_NODESTATEMANAGER_Life_Cycle_Consumer_PROXY_BASE_H_
+ #define ORG_GENIVI_NODESTATEMANAGER_Life_Cycle_Consumer_PROXY_BASE_H_
+
+ #include "LifeCycleConsumer.h"
+
+
+
+ #define COMMONAPI_INTERNAL_COMPILATION
+
+
+ #include <CommonAPI/Proxy.h>
+ #include <functional>
+ #include <future>
+
+ #undef COMMONAPI_INTERNAL_COMPILATION
+
+ namespace org {
+ namespace genivi {
+ namespace NodeStateManager {
+
+ class LifeCycleConsumerProxyBase: virtual public CommonAPI::Proxy {
+ public:
+ typedef std::function<void(const CommonAPI::CallStatus&, const int32_t&)> LifecycleRequestAsyncCallback;
+
+
+
+
+ virtual void LifecycleRequest(const uint32_t& Request, const uint32_t& RequestId, CommonAPI::CallStatus& callStatus, int32_t& ErrorCode) = 0;
+ virtual std::future<CommonAPI::CallStatus> LifecycleRequestAsync(const uint32_t& Request, const uint32_t& RequestId, LifecycleRequestAsyncCallback callback) = 0;
+ };
+
+ } // namespace NodeStateManager
+ } // namespace genivi
+ } // namespace org
+
+ #endif // ORG_GENIVI_NODESTATEMANAGER_Life_Cycle_Consumer_PROXY_BASE_H_
diff --git a/src-gen/org/genivi/NodeStateManager/LifeCycleConsumerStub.h b/src-gen/org/genivi/NodeStateManager/LifeCycleConsumerStub.h
new file mode 100644
index 0000000..b7d83fd
--- /dev/null
+++ b/src-gen/org/genivi/NodeStateManager/LifeCycleConsumerStub.h
@@ -0,0 +1,78 @@
+/*
+* This file was generated by the CommonAPI Generators.
+*
+ * Copyright (C) 2013, BMW AG
+ *
+ * \author Christian Linke, christian.linke@bmw.de BMW 2012,2013
+*/
+#ifndef ORG_GENIVI_NODESTATEMANAGER_Life_Cycle_Consumer_STUB_H_
+#define ORG_GENIVI_NODESTATEMANAGER_Life_Cycle_Consumer_STUB_H_
+
+
+
+
+#include "LifeCycleConsumer.h"
+
+#define COMMONAPI_INTERNAL_COMPILATION
+
+
+#include <CommonAPI/Stub.h>
+
+#undef COMMONAPI_INTERNAL_COMPILATION
+
+namespace org {
+namespace genivi {
+namespace NodeStateManager {
+
+/**
+ * Receives messages from remote and handles all dispatching of deserialized calls
+ * to a stub for the service LifeCycleConsumer. Also provides means to send broadcasts
+ * and attribute-changed-notifications of observable attributes as defined by this service.
+ * An application developer should not need to bother with this class.
+ */
+class LifeCycleConsumerStubAdapter: virtual public CommonAPI::StubAdapter, public LifeCycleConsumer {
+ public:
+
+};
+
+
+/**
+ * Defines the necessary callbacks to handle remote set events related to the attributes
+ * defined in the IDL description for LifeCycleConsumer.
+ * For each attribute two callbacks are defined:
+ * - a verification callback that allows to verify the requested value and to prevent setting
+ * e.g. an invalid value ("onRemoteSet<AttributeName>").
+ * - an action callback to do local work after the attribute value has been changed
+ * ("onRemote<AttributeName>Changed").
+ *
+ * This class and the one below are the ones an application developer needs to have
+ * a look at if he wants to implement a service.
+ */
+class LifeCycleConsumerStubRemoteEvent {
+ public:
+ virtual ~LifeCycleConsumerStubRemoteEvent() { }
+
+};
+
+
+/**
+ * Defines the interface that must be implemented by any class that should provide
+ * the service LifeCycleConsumer to remote clients.
+ * This class and the one above are the ones an application developer needs to have
+ * a look at if he wants to implement a service.
+ */
+class LifeCycleConsumerStub : public CommonAPI::Stub<LifeCycleConsumerStubAdapter , LifeCycleConsumerStubRemoteEvent> {
+ public:
+ virtual ~LifeCycleConsumerStub() { }
+
+
+ /// This is the method that will be called on remote calls on the method LifecycleRequest.
+ virtual void LifecycleRequest(uint32_t Request, uint32_t RequestId, int32_t& ErrorCode) = 0;
+
+};
+
+} // namespace NodeStateManager
+} // namespace genivi
+} // namespace org
+
+#endif // ORG_GENIVI_NODESTATEMANAGER_Life_Cycle_Consumer_STUB_H_
diff --git a/src-gen/org/genivi/NodeStateManager/LifeCycleConsumerStubDefault.cpp b/src-gen/org/genivi/NodeStateManager/LifeCycleConsumerStubDefault.cpp
new file mode 100644
index 0000000..cc7dbfd
--- /dev/null
+++ b/src-gen/org/genivi/NodeStateManager/LifeCycleConsumerStubDefault.cpp
@@ -0,0 +1,36 @@
+/*
+* This file was generated by the CommonAPI Generators.
+*
+ * Copyright (C) 2013, BMW AG
+ *
+ * \author Christian Linke, christian.linke@bmw.de BMW 2012,2013
+*/
+#include <org/genivi/NodeStateManager/LifeCycleConsumerStubDefault.h>
+
+namespace org {
+namespace genivi {
+namespace NodeStateManager {
+
+LifeCycleConsumerStubDefault::LifeCycleConsumerStubDefault():
+ remoteEventHandler_(this) {
+}
+
+LifeCycleConsumerStubRemoteEvent* LifeCycleConsumerStubDefault::initStubAdapter(const std::shared_ptr<LifeCycleConsumerStubAdapter>& stubAdapter) {
+ stubAdapter_ = stubAdapter;
+ return &remoteEventHandler_;
+}
+
+
+void LifeCycleConsumerStubDefault::LifecycleRequest(uint32_t Request, uint32_t RequestId, int32_t& ErrorCode) {
+ // No operation in default
+}
+
+
+
+LifeCycleConsumerStubDefault::RemoteEventHandler::RemoteEventHandler(LifeCycleConsumerStubDefault* defaultStub):
+ defaultStub_(defaultStub) {
+}
+
+} // namespace NodeStateManager
+} // namespace genivi
+} // namespace org
diff --git a/src-gen/org/genivi/NodeStateManager/LifeCycleConsumerStubDefault.h b/src-gen/org/genivi/NodeStateManager/LifeCycleConsumerStubDefault.h
new file mode 100644
index 0000000..22e86ab
--- /dev/null
+++ b/src-gen/org/genivi/NodeStateManager/LifeCycleConsumerStubDefault.h
@@ -0,0 +1,59 @@
+/*
+* This file was generated by the CommonAPI Generators.
+*
+ * Copyright (C) 2013, BMW AG
+ *
+ * \author Christian Linke, christian.linke@bmw.de BMW 2012,2013
+*/
+#ifndef ORG_GENIVI_NODESTATEMANAGER_Life_Cycle_Consumer_STUB_DEFAULT_H_
+#define ORG_GENIVI_NODESTATEMANAGER_Life_Cycle_Consumer_STUB_DEFAULT_H_
+
+#include <org/genivi/NodeStateManager/LifeCycleConsumerStub.h>
+
+namespace org {
+namespace genivi {
+namespace NodeStateManager {
+
+/**
+ * Provides a default implementation for LifeCycleConsumerStubRemoteEvent and
+ * LifeCycleConsumerStub. Method callbacks have an empty implementation,
+ * remote set calls on attributes will always change the value of the attribute
+ * to the one received.
+ *
+ * Override this stub if you only want to provide a subset of the functionality
+ * that would be defined for this service, and/or if you do not need any non-default
+ * behaviour.
+ */
+class LifeCycleConsumerStubDefault : public LifeCycleConsumerStub {
+ public:
+ LifeCycleConsumerStubDefault();
+
+ LifeCycleConsumerStubRemoteEvent* initStubAdapter(const std::shared_ptr<LifeCycleConsumerStubAdapter>& stubAdapter);
+
+
+ virtual void LifecycleRequest(uint32_t Request, uint32_t RequestId, int32_t& ErrorCode);
+
+
+
+ protected:
+
+ private:
+ class RemoteEventHandler: public LifeCycleConsumerStubRemoteEvent {
+ public:
+ RemoteEventHandler(LifeCycleConsumerStubDefault* defaultStub);
+
+
+ private:
+ LifeCycleConsumerStubDefault* defaultStub_;
+ };
+
+ RemoteEventHandler remoteEventHandler_;
+ std::shared_ptr<LifeCycleConsumerStubAdapter> stubAdapter_;
+
+};
+
+} // namespace NodeStateManager
+} // namespace genivi
+} // namespace org
+
+#endif // ORG_GENIVI_NODESTATEMANAGER_Life_Cycle_Consumer_STUB_DEFAULT_H_