Skip to content

Commit 47ae77c

Browse files
RDKEMW-1017 RDKEMW-1018: PlayerReasonCode enum change
Signed-off-by: yuvaramachandran_gurusamy <[email protected]>
1 parent f94365f commit 47ae77c

File tree

2 files changed

+24
-24
lines changed

2 files changed

+24
-24
lines changed

apis/Miracast/IMiracastPlayer.h

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@ namespace WPEFramework
3434

3535
enum PlayerReasonCode : uint32_t
3636
{
37-
MIRACAST_PLAYER_REASON_CODE_SUCCESS = 200 /* @text SUCCESS */,
38-
MIRACAST_PLAYER_REASON_CODE_APP_REQ_TO_STOP = 201 /* @text APP REQUESTED TO STOP. */,
39-
MIRACAST_PLAYER_REASON_CODE_SRC_DEV_REQ_TO_STOP = 202 /* @text SRC DEVICE REQUESTED TO STOP. */,
40-
MIRACAST_PLAYER_REASON_CODE_RTSP_ERROR = 203 /* @text RTSP Failure. */,
41-
MIRACAST_PLAYER_REASON_CODE_RTSP_TIMEOUT = 204 /* @text RTSP Timeout. */,
42-
MIRACAST_PLAYER_REASON_CODE_RTSP_METHOD_NOT_SUPPORTED = 205 /* @text RTSP Method Not Supported. */,
43-
MIRACAST_PLAYER_REASON_CODE_GST_ERROR = 206 /* @text GStreamer Failure. */,
44-
MIRACAST_PLAYER_REASON_CODE_INT_FAILURE = 207 /* @text Internal Failure. */,
45-
MIRACAST_PLAYER_REASON_CODE_NEW_SRC_DEV_CONNECT_REQ = 208 /* @text APP REQ TO STOP FOR NEW CONNECTION. */,
37+
REASON_CODE_SUCCESS = 200 /* @text SUCCESS */,
38+
REASON_CODE_APP_REQ_TO_STOP = 201 /* @text APP_REQ_TO_STOP */,
39+
REASON_CODE_SRC_DEV_REQ_TO_STOP = 202 /* @text SRC_DEV_REQ_TO_STOP */,
40+
REASON_CODE_RTSP_ERROR = 203 /* @text RTSP_FAILURE */,
41+
REASON_CODE_RTSP_TIMEOUT = 204 /* @text RTSP_TIMEOUT */,
42+
REASON_CODE_RTSP_METHOD_NOT_SUPPORTED = 205 /* @text RTSP_NOT_SUPPORTED */,
43+
REASON_CODE_GST_ERROR = 206 /* @text GST_FAILURE */,
44+
REASON_CODE_INT_FAILURE = 207 /* @text INTERNAL_FAILURE */,
45+
REASON_CODE_NEW_SRC_DEV_CONNECT_REQ = 208 /* @text NEW_SRC_DEV_CONNECT_REQ */,
4646
};
4747

4848
enum PlayerStopReasonCode : uint32_t
@@ -115,7 +115,7 @@ namespace WPEFramework
115115
// @param deviceParam: Contains Source and Sink Device related properties
116116
// @param videoRect: Video rectangle to be used for Miracast playback (x, y, width, height)
117117
// @param success: Is the operation successful or not
118-
virtual Core::hresult PlayRequest(const DeviceParameters &deviceParam /* @in @text device_parameters */, const VideoRectangle &videoRect /* @in @text video_rectangle */, Result &success /* @out */) = 0;
118+
virtual Core::hresult PlayRequest(const DeviceParameters &deviceParam /* @in @text device_parameters */, const VideoRectangle &videoRect /* @in @text video_rectangle */, Result &returnPayload /* @out */) = 0;
119119

120120
// @brief To stop the Miracast Player to tear down the RTSP communication, stop/close the GStreamer pipeline, clean up, and reset the player state
121121
// @text stopRequest
@@ -124,7 +124,7 @@ namespace WPEFramework
124124
// @param reasonCode: Reason code for the player stop request
125125
// @param reason: Reason for the player stop request
126126
// @param success: Is the operation successful or not
127-
virtual Core::hresult StopRequest(const string &clientMac /* @in @text mac */, const string &clientName /* @in @text name */, const PlayerStopReasonCode &reasonCode /* @in @text reason_code */, Result &success /* @out */) = 0;
127+
virtual Core::hresult StopRequest(const string &clientMac /* @in @text mac */, const string &clientName /* @in @text name */, const PlayerStopReasonCode &reasonCode /* @in @text reason_code */, Result &returnPayload /* @out */) = 0;
128128

129129
// @brief Set the Video Rectangle.
130130
// @text setVideoRectangle
@@ -133,25 +133,25 @@ namespace WPEFramework
133133
// @param width: Width of the rectangle
134134
// @param height: Height of the rectangle
135135
// @param success: Is the operation successful or not
136-
virtual Core::hresult SetVideoRectangle(const int32_t &startX /* @in @text X */, const int32_t &startY /* @in @text Y */, const int32_t &width /* @in @text W */, const int32_t &height /* @in @text H */, Result &success /* @out */) = 0;
136+
virtual Core::hresult SetVideoRectangle(const int32_t &startX /* @in @text X */, const int32_t &startY /* @in @text Y */, const int32_t &width /* @in @text W */, const int32_t &height /* @in @text H */, Result &returnPayload /* @out */) = 0;
137137

138138
// @brief To Enable/Disable/Reduce the Logging level for Miracast
139139
// @text setLogging
140140
// @param clienMac: MacAddress of the client device
141141
// @param clienName: Name of the client device
142142
// @param success: Is the operation successful or not
143-
virtual Core::hresult SetLogging(const string &logLevel /* @in @text level */, const SeparateLogger &separateLogger /* @in @text separate_logger */, Result &success /* @out */) = 0;
143+
virtual Core::hresult SetLogging(const string &logLevel /* @in @text level */, const SeparateLogger &separateLogger /* @in @text separate_logger */, Result &returnPayload /* @out */) = 0;
144144

145145
// @brief To configure the westeros environment arguments for the Miracast Player
146146
// @text setWesterosEnvironment
147147
// @param westerosArgs: Westeros environment arguments to be set
148148
// @param success: Is the operation successful or not
149-
virtual Core::hresult SetWesterosEnvironment( IWesterosEnvArgumentsIterator * const westerosArgs /* @in @text westerosArgs */, Result &success /* @out */) = 0;
149+
virtual Core::hresult SetWesterosEnvironment( IWesterosEnvArgumentsIterator * const westerosArgs /* @in @text westerosArgs */, Result &returnPayload /* @out */) = 0;
150150

151151
// @brief To reset the westeros environment arguments for the Miracast Player
152152
// @text unsetWesterosEnvironment
153153
// @param success: Is the operation successful or not
154-
virtual Core::hresult UnsetWesterosEnvironment(bool &success /* @out */) = 0;
154+
virtual Core::hresult UnsetWesterosEnvironment(Result &returnPayload /* @out */) = 0;
155155
};
156156
} // namespace Exchange
157157
} // namespace WPEFramework

apis/Miracast/IMiracastService.h

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,17 @@ namespace WPEFramework
3232
{
3333
enum { ID = ID_MIRACAST_SERVICE };
3434

35-
enum PlayerReasonCode : uint8_t
35+
enum PlayerReasonCode : uint32_t
3636
{
3737
REASON_CODE_SUCCESS = 200 /* @text SUCCESS */,
38-
REASON_CODE_APP_REQ_TO_STOP = 201 /* @text APP REQUESTED TO STOP. */,
39-
REASON_CODE_SRC_DEV_REQ_TO_STOP = 202 /* @text SRC DEVICE REQUESTED TO STOP. */,
40-
REASON_CODE_RTSP_ERROR = 203 /* @text RTSP Failure. */,
41-
REASON_CODE_RTSP_TIMEOUT = 204 /* @text RTSP Timeout. */,
42-
REASON_CODE_RTSP_METHOD_NOT_SUPPORTED = 205 /* @text RTSP Method Not Supported. */,
43-
REASON_CODE_GST_ERROR = 206 /* @text GStreamer Failure. */,
44-
REASON_CODE_INT_FAILURE = 207 /* @text Internal Failure. */,
45-
REASON_CODE_NEW_SRC_DEV_CONNECT_REQ = 208 /* @text APP REQ TO STOP FOR NEW CONNECTION. */,
38+
REASON_CODE_APP_REQ_TO_STOP = 201 /* @text APP_REQ_TO_STOP */,
39+
REASON_CODE_SRC_DEV_REQ_TO_STOP = 202 /* @text SRC_DEV_REQ_TO_STOP */,
40+
REASON_CODE_RTSP_ERROR = 203 /* @text RTSP_FAILURE */,
41+
REASON_CODE_RTSP_TIMEOUT = 204 /* @text RTSP_TIMEOUT */,
42+
REASON_CODE_RTSP_METHOD_NOT_SUPPORTED = 205 /* @text RTSP_NOT_SUPPORTED */,
43+
REASON_CODE_GST_ERROR = 206 /* @text GST_FAILURE */,
44+
REASON_CODE_INT_FAILURE = 207 /* @text INTERNAL_FAILURE */,
45+
REASON_CODE_NEW_SRC_DEV_CONNECT_REQ = 208 /* @text NEW_SRC_DEV_CONNECT_REQ */,
4646
};
4747

4848
struct EXTERNAL DeviceParameters

0 commit comments

Comments
 (0)