Skip to content

Commit 706ba1d

Browse files
RDKEMW-1017 RDKEMW-1018: Fix build issue
Signed-off-by: yuvaramachandran_gurusamy <[email protected]>
1 parent e1a0226 commit 706ba1d

File tree

2 files changed

+36
-35
lines changed

2 files changed

+36
-35
lines changed

apis/Miracast/IMiracastPlayer.h

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -38,20 +38,21 @@ namespace WPEFramework
3838
STATE_INITIATED = 1 /* @text INITIATED */,
3939
STATE_INPROGRESS = 2 /* @text INPROGRESS */,
4040
STATE_PLAYING = 3 /* @text PLAYING */,
41-
STATE_STOPPED = 4 /* @text STOPPED */
41+
STATE_STOPPED = 4 /* @text STOPPED */,
42+
STATE_PAUSED = 5 /* @text PAUSED */
4243
};
4344

44-
enum ErrorCode : uint8_t
45+
enum ReasonCode : uint8_t
4546
{
46-
ERROR_CODE_SUCCESS = 200 /* @text SUCCESS */,
47-
ERROR_CODE_APP_REQ_TO_STOP = 201 /* @text APP_REQ_TO_STOP */,
48-
ERROR_CODE_SRC_DEV_REQ_TO_STOP = 202 /* @text SRC_DEV_REQ_TO_STOP */,
49-
ERROR_CODE_RTSP_ERROR = 203 /* @text RTSP_FAILURE */,
50-
ERROR_CODE_RTSP_TIMEOUT = 204 /* @text RTSP_TIMEOUT */,
51-
ERROR_CODE_RTSP_METHOD_NOT_SUPPORTED = 205 /* @text RTSP_NOT_SUPPORTED */,
52-
ERROR_CODE_GST_ERROR = 206 /* @text GST_FAILURE */,
53-
ERROR_CODE_INT_FAILURE = 207 /* @text INTERNAL_FAILURE */,
54-
ERROR_CODE_NEW_SRC_DEV_CONNECT_REQ = 208 /* @text NEW_SRC_DEV_CONNECT_REQ */,
47+
REASON_CODE_SUCCESS = 200 /* @text SUCCESS */,
48+
REASON_CODE_APP_REQ_TO_STOP = 201 /* @text APP_REQ_TO_STOP */,
49+
REASON_CODE_SRC_DEV_REQ_TO_STOP = 202 /* @text SRC_DEV_REQ_TO_STOP */,
50+
REASON_CODE_RTSP_ERROR = 203 /* @text RTSP_FAILURE */,
51+
REASON_CODE_RTSP_TIMEOUT = 204 /* @text RTSP_TIMEOUT */,
52+
REASON_CODE_RTSP_METHOD_NOT_SUPPORTED = 205 /* @text RTSP_NOT_SUPPORTED */,
53+
REASON_CODE_GST_ERROR = 206 /* @text GST_FAILURE */,
54+
REASON_CODE_INT_FAILURE = 207 /* @text INTERNAL_FAILURE */,
55+
REASON_CODE_NEW_SRC_DEV_CONNECT_REQ = 208 /* @text NEW_SRC_DEV_CONNECT_REQ */,
5556
};
5657

5758
enum StopReasonCode : uint16_t
@@ -117,7 +118,7 @@ namespace WPEFramework
117118
// @param playerState: Current state of the player (e.g., INITIATED | INPROGRESS | PLAYING | STOPPED/IDLE(Default State).)
118119
// @param reasonCode: Reason code for the player state update
119120
// @param reason: reason code Decription
120-
virtual void OnStateChange(const string &clientName /* @text name */, const string &clientMac /* @text mac */, const State &playerState /* @text state */, const ErrorCode &reasonCode /* @text reason_code */, const string &reason /* @text reason */) {};
121+
virtual void OnStateChange(const string &clientName /* @text name */, const string &clientMac /* @text mac */, const State &playerState /* @text state */, const ReasonCode &reasonCode /* @text reason_code */, const string &reason /* @text reason */) {};
121122
};
122123

123124
// @json:omit

apis/Miracast/IMiracastService.h

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -30,35 +30,35 @@ namespace WPEFramework
3030
{
3131
enum { ID = ID_MIRACAST_SERVICE };
3232

33-
enum ErrorCode : uint8_t
33+
enum ReasonCode : uint8_t
3434
{
35-
ERROR_CODE_SUCCESS = 100 /* @text SUCCESS */,
36-
ERROR_CODE_P2P_CONNECT_FAILURE = 101 /* @text P2P_CONNECT_FAILURE */,
37-
ERROR_CODE_P2P_GROUP_NEGOTIATION_FAILURE = 102 /* @text P2P_GROUP_NEGOTIATION_FAILURE */,
38-
ERROR_CODE_P2P_GROUP_FORMATION_FAILURE = 103 /* @text P2P_GROUP_FORMATION_FAILURE */,
39-
ERROR_CODE_GENERIC_FAILURE = 104 /* @text GENERIC_FAILURE */
35+
REASON_CODE_SUCCESS = 100 /* @text SUCCESS */,
36+
REASON_CODE_P2P_CONNECT_FAILURE = 101 /* @text P2P_CONNECT_FAILURE */,
37+
REASON_CODE_P2P_GROUP_NEGOTIATION_FAILURE = 102 /* @text P2P_GROUP_NEGOTIATION_FAILURE */,
38+
REASON_CODE_P2P_GROUP_FORMATION_FAILURE = 103 /* @text P2P_GROUP_FORMATION_FAILURE */,
39+
REASON_CODE_GENERIC_FAILURE = 104 /* @text GENERIC_FAILURE */
4040
};
4141

4242
enum PlayerState : uint8_t
4343
{
44-
STATE_IDLE = 0 /* @text IDLE */,
45-
STATE_INITIATED = 1 /* @text INITIATED */,
46-
STATE_INPROGRESS = 2 /* @text INPROGRESS */,
47-
STATE_PLAYING = 3 /* @text PLAYING */,
48-
STATE_STOPPED = 4 /* @text STOPPED */
44+
PLAYER_STATE_IDLE = 0 /* @text IDLE */,
45+
PLAYER_STATE_INITIATED = 1 /* @text INITIATED */,
46+
PLAYER_STATE_INPROGRESS = 2 /* @text INPROGRESS */,
47+
PLAYER_STATE_PLAYING = 3 /* @text PLAYING */,
48+
PLAYER_STATE_STOPPED = 4 /* @text STOPPED */
4949
};
5050

51-
enum PlayerErrorCode : uint8_t
51+
enum PlayerReasonCode : uint8_t
5252
{
53-
ERROR_CODE_SUCCESS = 200 /* @text SUCCESS */,
54-
ERROR_CODE_APP_REQ_TO_STOP = 201 /* @text APP_REQ_TO_STOP */,
55-
ERROR_CODE_SRC_DEV_REQ_TO_STOP = 202 /* @text SRC_DEV_REQ_TO_STOP */,
56-
ERROR_CODE_RTSP_ERROR = 203 /* @text RTSP_FAILURE */,
57-
ERROR_CODE_RTSP_TIMEOUT = 204 /* @text RTSP_TIMEOUT */,
58-
ERROR_CODE_RTSP_METHOD_NOT_SUPPORTED = 205 /* @text RTSP_NOT_SUPPORTED */,
59-
ERROR_CODE_GST_ERROR = 206 /* @text GST_FAILURE */,
60-
ERROR_CODE_INT_FAILURE = 207 /* @text INTERNAL_FAILURE */,
61-
ERROR_CODE_NEW_SRC_DEV_CONNECT_REQ = 208 /* @text NEW_SRC_DEV_CONNECT_REQ */,
53+
PLAYER_REASON_CODE_SUCCESS = 200 /* @text SUCCESS */,
54+
PLAYER_REASON_CODE_APP_REQ_TO_STOP = 201 /* @text APP_REQ_TO_STOP */,
55+
PLAYER_REASON_CODE_SRC_DEV_REQ_TO_STOP = 202 /* @text SRC_DEV_REQ_TO_STOP */,
56+
PLAYER_REASON_CODE_RTSP_ERROR = 203 /* @text RTSP_FAILURE */,
57+
PLAYER_REASON_CODE_RTSP_TIMEOUT = 204 /* @text RTSP_TIMEOUT */,
58+
PLAYER_REASON_CODE_RTSP_METHOD_NOT_SUPPORTED = 205 /* @text RTSP_NOT_SUPPORTED */,
59+
PLAYER_REASON_CODE_GST_ERROR = 206 /* @text GST_FAILURE */,
60+
PLAYER_REASON_CODE_INT_FAILURE = 207 /* @text INTERNAL_FAILURE */,
61+
PLAYER_REASON_CODE_NEW_SRC_DEV_CONNECT_REQ = 208 /* @text NEW_SRC_DEV_CONNECT_REQ */,
6262
};
6363

6464
enum LogLevel : uint8_t
@@ -108,7 +108,7 @@ namespace WPEFramework
108108
// @param clientName: Name of the client device
109109
// @param errorCode: Error code for the connection failure
110110
// @param reason: Reason for the connection failure
111-
virtual void OnClientConnectionError(const string &clientMac /* @text mac */, const string &clientName /* @text name */, const ErrorCode &reason /* @text reason */, const string &errorCodeStr /* @text error_code */) {};
111+
virtual void OnClientConnectionError(const string &clientMac /* @text mac */, const string &clientName /* @text name */, const ReasonCode &reason /* @text reason */, const string &reasonCodeStr /* @text error_code */) {};
112112

113113
// @brief Miracast Service Plugin raises this Event to request RA or MiracastWidget to launch the Miracast Player
114114
// @text onLaunchRequest
@@ -157,7 +157,7 @@ namespace WPEFramework
157157
// @param reasonCode: Reason code for the player state update
158158
// @param reason: Reason for the player state update
159159
// @param success: Is the operation successful or not
160-
virtual Core::hresult UpdatePlayerState(const string &clientMac /* @in @text mac */, const PlayerState &playerState /* @in @text state */, const PlayerErrorCode &reasonCode /* @in @text reason_code */, Result &returnPayload /* @out */) = 0;
160+
virtual Core::hresult UpdatePlayerState(const string &clientMac /* @in @text mac */, const PlayerState &playerState /* @in @text state */, const PlayerReasonCode &reasonCode /* @in @text reason_code */, Result &returnPayload /* @out */) = 0;
161161

162162
// @brief Enable or Disable or Reduce the Logging level for Miracast
163163
// @text setLogging

0 commit comments

Comments
 (0)