Skip to content

Commit 417ce9d

Browse files
RDKEMW-1017 RDKEMW-1018: Update the API definitons
Signed-off-by: yuvaramachandran_gurusamy <[email protected]>
1 parent bda9862 commit 417ce9d

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

apis/Miracast/IMiracastPlayer.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ namespace WPEFramework
5757

5858
enum StopReasonCode : uint16_t
5959
{
60-
STOP_REASON_APP_REQ_FOR_EXIT = 301 /* @text APP_REQ_TO_STOP_ON_EXIT */,
61-
STOP_REASON_APP_REQ_FOR_NEW_CONNECTION = 302 /* @text APP_REQ_TO_STOP_ON_NEW_CONNECTION */
60+
STOP_REASON_APP_REQ_FOR_EXIT = 300 /* @text APP_REQ_TO_STOP_ON_EXIT */,
61+
STOP_REASON_APP_REQ_FOR_NEW_CONNECTION = 301 /* @text APP_REQ_TO_STOP_ON_NEW_CONNECTION */
6262
};
6363

6464
enum LogLevel : uint8_t
@@ -118,7 +118,7 @@ namespace WPEFramework
118118
// @param playerState: Current state of the player (e.g., INITIATED | INPROGRESS | PLAYING | STOPPED/IDLE(Default State).)
119119
// @param reasonCode: Reason code for the player state update
120120
// @param reason: reason code Decription
121-
virtual void OnStateChange(const string &clientName /* @text name */, const string &clientMac /* @text mac */, const State &playerState /* @text state */, const ReasonCode &reasonCode /* @text reason */, const string &reasonCodeStr /* @text reason_code */) {};
121+
virtual void OnStateChange(const string &clientName /* @text name */, const string &clientMac /* @text mac */, const State &playerState /* @text state */, const string &reasonCode /* @text reason_code */, const ReasonCode &reasonDescription /* @text reason */) {};
122122
};
123123

124124
// @json:omit
@@ -144,7 +144,7 @@ namespace WPEFramework
144144
// @param reasonCode: Reason code for the player stop request
145145
// @param reason: Reason for the player stop request
146146
// @param success: Is the operation successful or not
147-
virtual Core::hresult StopRequest(const string &clientMac /* @in @text mac */, const string &clientName /* @in @text name */, const StopReasonCode &reasonCode /* @in @text reason_code */, Result &returnPayload /* @out */) = 0;
147+
virtual Core::hresult StopRequest(const string &clientMac /* @in @text mac */, const string &clientName /* @in @text name */, const int &reasonCode /* @in @text reason_code */, Result &returnPayload /* @out */) = 0;
148148

149149
// @brief Set the Video Rectangle.
150150
// @text setVideoRectangle
@@ -153,7 +153,7 @@ namespace WPEFramework
153153
// @param width: Width of the rectangle
154154
// @param height: Height of the rectangle
155155
// @param success: Is the operation successful or not
156-
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;
156+
virtual Core::hresult SetVideoRectangle(const int &startX /* @in @text X */, const int &startY /* @in @text Y */, const int &width /* @in @text W */, const int &height /* @in @text H */, Result &returnPayload /* @out */) = 0;
157157

158158
// @brief To Enable/Disable/Reduce the Logging level for Miracast
159159
// @text setLogging

apis/Miracast/IMiracastService.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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 ReasonCode &reason /* @text reason */, const string &reasonCodeStr /* @text error_code */) {};
111+
virtual void OnClientConnectionError(const string &clientMac /* @text mac */, const string &clientName /* @text name */, const string &reasonCode /* @text error_code */, const ReasonCode &reasonDescription /* @text reason */) {};
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 PlayerReasonCode &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 int &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)