Skip to content

Commit 682b865

Browse files
authored
Update IXCast.h
1 parent 95accfe commit 682b865

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

apis/XCast/IXCast.h

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ namespace WPEFramework {
4949
INTERNAL = 500 /* @text internal */
5050
};
5151

52-
struct EXTERNAL XCastSuccess {
53-
bool success /* @text success */ /* @brief true if the request was successful, false otherwise */;
54-
};
52+
// struct EXTERNAL XCastSuccess {
53+
// bool success /* @text success */ /* @brief true if the request was successful, false otherwise */;
54+
// };
5555

5656
struct EXTERNAL ApplicationInfo {
5757
string appName /* @text name */ /* @brief Application name in request URI must have exact match to one of the names. Otherwise, matching prefix is needed. If the application name in request URI does not match any names or prefixes, then the request shall fail */;
@@ -114,7 +114,7 @@ namespace WPEFramework {
114114
// @param applicationId: Application instance ID
115115
// @param error: Error string, if any
116116
// @param success: Whether the request succeeded
117-
virtual Core::hresult UpdateApplicationState(const string& applicationName /* @in @text applicationName */, const State& state /* @in @text state */, const string& applicationId /* @in @text applicationId */, const ErrorCode& error /* @in @text error */, XCastSuccess& success /* @out */) = 0;
117+
virtual Core::hresult UpdateApplicationState(const string& applicationName /* @in @text applicationName */, const State& state /* @in @text state */, const string& applicationId /* @in @text applicationId */, const ErrorCode& error /* @in @text error */, bool& success /* @out */) = 0;
118118
/****************************************UpdateApplicationState()*****************************/
119119

120120
/****************************************getProtocolVersion()**********************************/
@@ -130,7 +130,7 @@ namespace WPEFramework {
130130
// @brief Sets the manufacturer name of the device
131131
// @param manufacturer: The Manufacturer name of the device which used to update in dd.xml
132132
// @param success: Whether the request succeeded
133-
virtual Core::hresult SetManufacturerName(const string &manufacturername /* @in @text manufacturer */, XCastSuccess& success /* @out */) = 0;
133+
virtual Core::hresult SetManufacturerName(const string &manufacturername /* @in @text manufacturer */, bool& success /* @out */) = 0;
134134
/***************************************** setManufacturerName() **********************************/
135135

136136
/****************************************getManufacturerName()**********************************/
@@ -146,7 +146,7 @@ namespace WPEFramework {
146146
// @brief Sets the model name of the device
147147
// @param model: The Model name of the device which used to update in dd.xml
148148
// @param success: Whether the request succeeded
149-
virtual Core::hresult SetModelName(const string &modelname /* @in @text model */, XCastSuccess& success /* @out */) = 0;
149+
virtual Core::hresult SetModelName(const string &modelname /* @in @text model */, bool& success /* @out */) = 0;
150150
/***************************************** setModelName() **********************************/
151151

152152
/****************************************getModelName()**********************************/
@@ -162,7 +162,7 @@ namespace WPEFramework {
162162
// @brief Enable or disable XCAST service
163163
// @parm enabled: true for enabled or false for disabled
164164
// @param success: Whether the request succeeded
165-
virtual Core::hresult SetEnabled(const bool& enabled /* @in @text enabled */, XCastSuccess& success /* @out */) = 0;
165+
virtual Core::hresult SetEnabled(const bool& enabled /* @in @text enabled */, bool& success /* @out */) = 0;
166166
/***************************************** setEnabled() **********************************/
167167

168168
/****************************************getEnabled()**********************************/
@@ -178,7 +178,7 @@ namespace WPEFramework {
178178
// @brief Sets the expected xcast behavior in standby mode
179179
// @param standbybehavior: whether to remain active or inactive during standby mode (must be one of the following: active, inactive)
180180
// @param success: Whether the request succeeded
181-
virtual Core::hresult SetStandbyBehavior(const StandbyBehavior &standbybehavior /* @in @text standbybehavior */, XCastSuccess& success /* @out */) = 0;
181+
virtual Core::hresult SetStandbyBehavior(const StandbyBehavior &standbybehavior /* @in @text standbybehavior */, bool& success /* @out */) = 0;
182182
/***************************************** setStandbyBehavior() *********************************/
183183

184184
/****************************************getStandbyBehavior()**********************************/
@@ -194,7 +194,7 @@ namespace WPEFramework {
194194
// @brief Sets the friendly name of the device
195195
// @param friendlyname: The friendly name of the device which used to display on the client device list
196196
// @param success: Whether the request succeeded
197-
virtual Core::hresult SetFriendlyName(const string &friendlyname /* @in @text friendlyname */, XCastSuccess& success /* @out */) = 0;
197+
virtual Core::hresult SetFriendlyName(const string &friendlyname /* @in @text friendlyname */, bool& success /* @out */) = 0;
198198
/***************************************** setFriendlyName() **********************************/
199199

200200
/****************************************getFriendlyName()**********************************/
@@ -210,15 +210,15 @@ namespace WPEFramework {
210210
// @brief Registers an application
211211
// @param applications: Json array with one or more application details to register
212212
// @param success: Whether the request succeeded
213-
virtual Core::hresult RegisterApplications(IApplicationInfoIterator* const appInfoList /* @text applications */ , XCastSuccess& success /* @out */) = 0;
213+
virtual Core::hresult RegisterApplications(IApplicationInfoIterator* const appInfoList /* @text applications */ , bool& success /* @out */) = 0;
214214
/****************************************registerApplications()**********************************/
215215

216216
/****************************************unregisterApplications()**********************************/
217217
// @text unregisterApplications
218218
// @brief Unregisters an application
219219
// @param applications: One or more application name to unregister
220220
// @param success: Whether the request succeeded
221-
virtual Core::hresult UnregisterApplications(IStringIterator* const applications /* @in @text applications */, XCastSuccess& success /* @out */) = 0;
221+
virtual Core::hresult UnregisterApplications(IStringIterator* const applications /* @in @text applications */, bool& success /* @out */) = 0;
222222
/****************************************unregisterApplications()**********************************/
223223

224224

0 commit comments

Comments
 (0)