27
27
{
28
28
namespace Exchange
29
29
{
30
- // @json @text:keep
30
+ /* @json 1.0.0 @text:keep */
31
31
struct EXTERNAL IHdmiCecSink : virtual public Core::IUnknown {
32
32
enum { ID = ID_HDMI_CEC_SINK };
33
33
34
- struct HdmiCecSinkActivePath
34
+ struct EXTERNAL HdmiCecSinkActivePath
35
35
{
36
- uint8_t logicalAddress; /* @text logical address */
37
- string physicalAddress; /* @text physical address */
38
- string deviceType; /* @text device type */
39
- string vendorID; /* @text vendor id */
40
- string osdName; /* @text osd name */
36
+ uint8_t logicalAddress;
37
+ string physicalAddress;
38
+ string deviceType;
39
+ string vendorID;
40
+ string osdName;
41
41
};
42
42
43
- struct HdmiCecSinkDevices
43
+ struct EXTERNAL HdmiCecSinkDevices
44
44
{
45
- uint8_t logicalAddress; /* @text logical address */
46
- string physicalAddress; /* @text physical address */
47
- string deviceType; /* @text device type */
48
- string cecVersion; /* @text cec version */
49
- string osdName; /* @text osd name */
50
- string vendorID; /* @text vendor id */
51
- string powerStatus; /* @text power status */
52
- string portNumber; /* @text port number */
45
+ uint8_t logicalAddress;
46
+ string physicalAddress;
47
+ string deviceType;
48
+ string cecVersion;
49
+ string osdName;
50
+ string vendorID;
51
+ string powerStatus;
52
+ string portNumber;
53
53
};
54
54
55
55
struct EXTERNAL HdmiCecSinkSuccess {
67
67
68
68
// @brief Triggered when routing though the HDMI ARC port is successfully established.
69
69
// @text arcInitiationEvent
70
- // @param success : Is the operation successful or not
71
- virtual void ArcInitiationEvent (const string success /* @in */ ) {};
70
+ // @param status : Is the operation successful or not
71
+ virtual void ArcInitiationEvent (const string status ) {};
72
72
73
73
// @brief Triggered when routing though the HDMI ARC port terminates.
74
74
// @text arcTerminationEvent
75
- // @param success : Is the operation successful or not
76
- virtual void ArcTerminationEvent (const string success /* @in */ ) {};
75
+ // @param status : Is the operation successful or not
76
+ virtual void ArcTerminationEvent (const string status ) {};
77
77
78
78
// @brief Triggered when the active source device changes.
79
79
// @text onActiveSourceChange
80
80
// @param logicalAddress: Logical address of the active source
81
81
// @param physicalAddress: Physical address of the active source
82
- virtual void OnActiveSourceChange (const int logicalAddress /* @in */ , const string physicalAddress /* @in */ ) {};
82
+ virtual void OnActiveSourceChange (const int logicalAddress, const string physicalAddress) {};
83
83
84
84
// @brief Triggered when a new device is added to the CEC network.
85
85
// @text onDeviceAdded
86
86
// @param logicalAddress: Logical address of the added device
87
- virtual void OnDeviceAdded (const int logicalAddress /* @in */ ) {};
87
+ virtual void OnDeviceAdded (const int logicalAddress) {};
88
88
89
89
// @brief Triggered when device information changes.
90
90
// @text onDeviceInfoUpdated
91
91
// @param logicalAddress: Logical address of the device
92
- virtual void OnDeviceInfoUpdated (const int logicalAddress /* @in */ ) {};
92
+ virtual void OnDeviceInfoUpdated (const int logicalAddress) {};
93
93
94
94
// @brief Triggered when a device is removed from the CEC network.
95
95
// @text onDeviceRemoved
96
96
// @param logicalAddress: Logical address of the removed device
97
- virtual void OnDeviceRemoved (const int logicalAddress /* @in */ ) {};
97
+ virtual void OnDeviceRemoved (const int logicalAddress) {};
98
98
99
99
// @brief Triggered when an <Image View ON> CEC message is received from the source device.
100
100
// @text onImageViewOnMsg
101
101
// @param logicalAddress: Logical address of the device
102
- virtual void OnImageViewOnMsg (const int logicalAddress /* @in */ ) {};
102
+ virtual void OnImageViewOnMsg (const int logicalAddress) {};
103
103
104
104
// @brief Triggered when the source is no longer active.
105
105
// @text onInActiveSource
106
106
// @param logicalAddress: Logical address of the source
107
107
// @param physicalAddress: Physical address of the source
108
- virtual void OnInActiveSource (const int logicalAddress /* @in */ , const string physicalAddress /* @in */ ) {};
108
+ virtual void OnInActiveSource (const int logicalAddress, const string physicalAddress) {};
109
109
110
110
// @brief Triggered when a <Text View ON> CEC message is received from the source device.
111
111
// @text onTextViewOnMsg
112
112
// @param logicalAddress: Logical address of the device
113
- virtual void OnTextViewOnMsg (const int logicalAddress /* @in */ ) {};
113
+ virtual void OnTextViewOnMsg (const int logicalAddress) {};
114
114
115
115
// @brief Triggered when the TV is in standby mode and it receives <Image View ON>/ <Text View ON>/ <Active Source> CEC message from the connected source device.
116
116
// @text onWakeupFromStandby
117
117
// @param logicalAddress: Logical address of the device
118
- virtual void OnWakeupFromStandby (const int logicalAddress /* @in */ ) {};
118
+ virtual void OnWakeupFromStandby (const int logicalAddress) {};
119
119
120
120
// @brief Triggered when an audio device is added or removed.
121
121
// @text reportAudioDeviceConnectedStatus
122
122
// @param status: Status of the audio device
123
123
// @param audioDeviceConnected: Audio device connected or not
124
- virtual void ReportAudioDeviceConnectedStatus (const string status /* @in */ , const string audioDeviceConnected /* @in */ ) {};
124
+ virtual void ReportAudioDeviceConnectedStatus (const string status, const string audioDeviceConnected) {};
125
125
126
126
// @brief Triggered when CEC <Report Audio Status> message of device is received.
127
127
// @text reportAudioStatusEvent
128
128
// @param muteStatus: Mute status of the device
129
129
// @param volumeLevel: Volume level of the device
130
- virtual void ReportAudioStatusEvent (const int muteStatus /* @in */ , const int volumeLevel /* @in */ ) {};
130
+ virtual void ReportAudioStatusEvent (const int muteStatus, const int volumeLevel) {};
131
131
132
132
// @brief Triggered when CEC <Feature Abort> message of device is received.
133
133
// @text reportFeatureAbortEvent
134
134
// @param logicalAddress: Logical address of the device
135
135
// @param opcode: Opcode of the message
136
136
// @param FeatureAbortReason: Reason for the feature abort
137
- virtual void ReportFeatureAbortEvent (const int logicalAddress /* @in */ , const int opcode /* @in */ , const int FeatureAbortReason /* @in */ ) {};
137
+ virtual void ReportFeatureAbortEvent (const int logicalAddress, const int opcode, const int FeatureAbortReason) {};
138
138
139
139
// @brief Triggered when the HDMI-CEC is enabled.
140
140
// @text reportCecEnabledEvent
141
141
// @param cecEnable: HDMI-CEC enabled or not
142
- virtual void ReportCecEnabledEvent (const string cecEnable /* @in */ ) {};
142
+ virtual void ReportCecEnabledEvent (const string cecEnable) {};
143
143
144
144
// @brief Triggered when CEC <Set System Audio Mode> message of device is received.
145
145
// @text setSystemAudioModeEvent
146
146
// @param audioMode: Audio mode of the device
147
- virtual void SetSystemAudioModeEvent (const string audioMode /* @in */ ) {};
147
+ virtual void SetSystemAudioModeEvent (const string audioMode) {};
148
148
149
149
// @brief Triggered when SAD is received from the connected audio device. See requestShortAudioDescriptor.
150
150
// @text shortAudiodescriptorEvent
154
154
// @brief Triggered when the source device changes status to STANDBY.
155
155
// @text standbyMessageReceived
156
156
// @param logicalAddress: Logical address of the device
157
- virtual void StandbyMessageReceived (const int logicalAddress /* @in */ ) {};
157
+ virtual void StandbyMessageReceived (const int logicalAddress) {};
158
158
159
159
// @brief Triggered when the source device changes.
160
160
// @text reportAudioDevicePowerStatus
161
161
// @param powerStatus: Power status of the device
162
- virtual void ReportAudioDevicePowerStatus (const int powerStatus /* @in */ ) {};
162
+ virtual void ReportAudioDevicePowerStatus (const int powerStatus) {};
163
163
164
164
165
165
};
233
233
// @brief Request the active source in the network
234
234
// @text requestActiveSource
235
235
// @param success: Is the operation successful or not
236
- virtual Core::hresult RequestActiveSource (HdmiCecSinkSuccess &success /* @out */ ) = 0;
236
+ virtual Core::hresult RequestActiveSource (HdmiCecSinkSuccess &successResult /* @out */ ) = 0;
237
237
238
238
// @brief Sends the CEC Request Short Audio Descriptor (SAD) message as an
239
239
// @text requestShortAudioDescriptor
240
240
// @param success: Is the operation successful or not
241
- virtual Core::hresult RequestShortAudioDescriptor (HdmiCecSinkSuccess &success /* @out */ ) = 0;
241
+ virtual Core::hresult RequestShortAudioDescriptor (HdmiCecSinkSuccess &successResult /* @out */ ) = 0;
242
242
243
243
// @brief This message is used to power on the connected audio device. Usually sent by the TV when it comes out of standby and detects audio device connected in the network.
244
244
// @text sendAudioDevicePowerOnMessage
245
245
// @param success: Is the operation successful or not
246
- virtual Core::hresult SendAudioDevicePowerOnMessage (HdmiCecSinkSuccess &success /* @out */ ) = 0;
246
+ virtual Core::hresult SendAudioDevicePowerOnMessage (HdmiCecSinkSuccess &successResult /* @out */ ) = 0;
247
247
248
248
// @brief Sends the CEC <Give Audio Status> message to request the audio status.
249
249
// @text sendGetAudioStatusMessage
250
250
// @param success: Is the operation successful or not
251
- virtual Core::hresult SendGetAudioStatusMessage (HdmiCecSinkSuccess &success /* @out */ ) = 0;
251
+ virtual Core::hresult SendGetAudioStatusMessage (HdmiCecSinkSuccess &successResult /* @out */ ) = 0;
252
252
253
253
// @brief Sends the CEC <User Control Pressed> message when TV remote key is pressed.
254
254
// @text sendKeyPressEvent
255
255
// @param logicalAddress: Logical address of the device
256
256
// @param keyCode: Key code of the key press event
257
257
// @param success: Is the operation successful or not
258
- virtual Core::hresult SendKeyPressEvent (const uint32_t &logicalAddress /* @in */ , const uint32_t &keyCode /* @in */ , HdmiCecSinkSuccess &success /* @out */ ) = 0;
258
+ virtual Core::hresult SendKeyPressEvent (const uint32_t &logicalAddress /* @in */ , const uint32_t &keyCode /* @in */ , HdmiCecSinkSuccess &successResult /* @out */ ) = 0;
259
259
260
260
// @brief Sends the CEC <User Control Pressed> message when TV remote key is pressed.
261
261
// @text sendUserControlPressed
262
262
// @param logicalAddress: Logical address of the device
263
263
// @param keyCode: Key code of the key press event
264
264
// @param success: Is the operation successful or not
265
- virtual Core::hresult SendUserControlPressed (const uint32_t &logicalAddress /* @in */ , const uint32_t &keyCode /* @in */ , HdmiCecSinkSuccess &success /* @out */ ) = 0;
265
+ virtual Core::hresult SendUserControlPressed (const uint32_t &logicalAddress /* @in */ , const uint32_t &keyCode /* @in */ , HdmiCecSinkSuccess &successResult /* @out */ ) = 0;
266
266
267
267
// @brief Sends the CEC <User Control Released> message when TV remote key is released.
268
268
// @text sendUserControlReleased
269
269
// @param logicalAddress: Logical address of the device
270
270
// @param success: Is the operation successful or not
271
- virtual Core::hresult SendUserControlReleased (const uint32_t &logicalAddress /* @in */ , HdmiCecSinkSuccess &success /* @out */ ) = 0;
271
+ virtual Core::hresult SendUserControlReleased (const uint32_t &logicalAddress /* @in */ , HdmiCecSinkSuccess &successResult /* @out */ ) = 0;
272
272
273
273
// @brief Sends the CEC <Standby> message to another CEC device
274
274
// @text sendStandbyMessage
275
275
// @param success: Is the operation successful or not
276
- virtual Core::hresult SendStandbyMessage (HdmiCecSinkSuccess &success /* @out */ ) = 0;
276
+ virtual Core::hresult SendStandbyMessage (HdmiCecSinkSuccess &successResult /* @out */ ) = 0;
277
277
278
278
// @brief Sets the source device to active (setStreamPath). The source wakes from standby if it’s in the standby state.
279
279
// @text setActivePath
280
280
// @param activePath: Active path of the device
281
281
// @param success: Is the operation successful or not
282
- virtual Core::hresult SetActivePath (const string &activePath /* @in */ , HdmiCecSinkSuccess &success /* @out */ ) = 0;
282
+ virtual Core::hresult SetActivePath (const string &activePath /* @in */ , HdmiCecSinkSuccess &successResult /* @out */ ) = 0;
283
283
284
284
// @brief Sets the current active source as TV (physical address 0.0.0.0). This call needs to be made when the TV switches to internal tuner or any apps.
285
285
// @text setActiveSource
286
286
// @param success: Is the operation successful or not
287
- virtual Core::hresult SetActiveSource (HdmiCecSinkSuccess &success /* @out */ ) = 0;
287
+ virtual Core::hresult SetActiveSource (HdmiCecSinkSuccess &successResult /* @out */ ) = 0;
288
288
289
289
// @brief Sets the status of the HDMI CEC Sink
290
290
// @text setEnabled
291
291
// @param enabled: Is the HDMI CEC Sink enabled or not
292
292
// @param success: Is the operation successful or not
293
- virtual Core::hresult SetEnabled (const bool &enabled /* @in */ , HdmiCecSinkSuccess &success /* @out */ ) = 0;
293
+ virtual Core::hresult SetEnabled (const bool &enabled /* @in */ , HdmiCecSinkSuccess &successResult /* @out */ ) = 0;
294
294
295
295
// @brief Updates the internal data structure with the new menu Language and also broadcasts the <Set Menu Language> CEC message.
296
296
// @text setMenuLanguage
297
297
// @param language: Menu language to be set
298
298
// @param success: Is the operation successful or not
299
- virtual Core::hresult SetMenuLanguage (const string &language /* @in */ , HdmiCecSinkSuccess &success /* @out */ ) = 0;
299
+ virtual Core::hresult SetMenuLanguage (const string &language /* @in */ , HdmiCecSinkSuccess &successResult /* @out */ ) = 0;
300
300
301
301
// @brief Sets the OSD name of the HDMI CEC Sink
302
302
// @text setOSDName
303
303
// @param osdName: OSD name of the HDMI CEC Sink
304
304
// @param success: Is the operation successful or not
305
- virtual Core::hresult SetOSDName (const string &name /* @in */ , HdmiCecSinkSuccess &success /* @out */ ) = 0;
305
+ virtual Core::hresult SetOSDName (const string &name /* @in */ , HdmiCecSinkSuccess &successResult /* @out */ ) = 0;
306
306
307
307
// @brief Changes routing while switching between HDMI inputs and TV.
308
308
// @text setRoutingChange
309
309
// @param oldPort: Old port number
310
310
// @param newPort: New port number
311
311
// @param success: Is the operation successful or not
312
- virtual Core::hresult SetRoutingChange (const string &oldPort /* @in */ , const string &newPort /* @in */ , HdmiCecSinkSuccess &success /* @out */ ) = 0;
312
+ virtual Core::hresult SetRoutingChange (const string &oldPort /* @in */ , const string &newPort /* @in */ , HdmiCecSinkSuccess &successResult /* @out */ ) = 0;
313
313
314
314
// @brief Enable (or disable) HDMI-CEC Audio Return Channel (ARC) routing. Upon enabling, triggers arcInitiationEvent and upon disabling, triggers arcTerminationEvent.
315
315
// @text setupARCRouting
316
316
// @param enabled: Is the HDMI-CEC ARC routing enabled or not
317
317
// @param success: Is the operation successful or not
318
- virtual Core::hresult SetupARCRouting (const bool &enabled /* @in */ , HdmiCecSinkSuccess &success /* @out */ ) = 0;
318
+ virtual Core::hresult SetupARCRouting (const bool &enabled /* @in */ , HdmiCecSinkSuccess &successResult /* @out */ ) = 0;
319
319
320
320
// @brief Sets the vendor ID of the HDMI CEC Sink
321
321
// @text setVendorId
322
322
// @param vendorId: Vendor ID of the HDMI CEC Sink
323
323
// @param success: Is the operation successful or not
324
- virtual Core::hresult SetVendorId (const string &vendorid /* @in */ , HdmiCecSinkSuccess &success /* @out */ ) = 0;
324
+ virtual Core::hresult SetVendorId (const string &vendorid /* @in */ , HdmiCecSinkSuccess &successResult /* @out */ ) = 0;
325
325
326
326
// @brief Sets the Current Latency Values such as Video Latency, Latency Flags,Audio Output Compensated value and Audio Output Delay by sending <Report Current Latency> message for Dynamic Auto LipSync Feature.
327
327
// @text setLatencyInfo
330
330
// @param audioOutputCompensated: Audio Output Compensated value
331
331
// @param audioOutputDelay: Audio Output Delay value
332
332
// @param success: Is the operation successful or not
333
- virtual Core::hresult SetLatencyInfo (const string &videoLatency /* @in */ , const string &lowLatencyMode /* @in */ , const string &audioOutputCompensated /* @in */ , const string &audioOutputDelay /* @in */ , HdmiCecSinkSuccess &success /* @out */ ) = 0;
333
+ virtual Core::hresult SetLatencyInfo (const string &videoLatency /* @in */ , const string &lowLatencyMode /* @in */ , const string &audioOutputCompensated /* @in */ , const string &audioOutputDelay /* @in */ , HdmiCecSinkSuccess &successResult /* @out */ ) = 0;
334
334
335
- };
335
+ // @brief Requests the audio device power status.
336
+ // @text requestAudioDevicePowerStatus
337
+ // @param success: Is the operation successful or not
338
+ virtual Core::hresult RequestAudioDevicePowerStatus (HdmiCecSinkSuccess &successResult /* @out */ ) = 0;
336
339
340
+ };
337
341
} // namespace Exchange
338
342
} // namespace WPEFramework
339
-
343
+
0 commit comments