3 * Copyright (c) 2012 Samsung Electronics Co., Ltd.
5 * Licensed under the Apache License, Version 2.0 (the License);
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
18 #ifndef FUMO_ENGINE_H_
19 #define FUMO_ENGINE_H_
22 #include "common/dm_error.h"
23 #include "dm-engine/fumo/fumo_engine_internal.h"
26 * @par Description: API to execute fumo operation
30 * @par Typical use case:
31 * @par Method of function operation:
32 * @par Important notes:
33 * @param[in] full_path mo full path
34 * @param[in] value value
35 * @param[out] fumo_return fumo return value
37 * @return DM_OK success
51 DM_ERROR fumo_exec(char *full_path, char *value, FUMO_Error * fumo_return);
54 * @par Description: API to operate firmware download
58 * @par Typical use case:
59 * @par Method of function operation:
60 * @par Important notes:
61 * @param[in] full_path mo full path
62 * @param[out] fumo_return fumo return value
64 * @return DM_OK success
78 DM_ERROR firmware_download_opeartion(char *full_path, FUMO_Error * fumo_return);
81 * @par Description: API to operate firmware update
85 * @par Typical use case:
86 * @par Method of function operation:
87 * @par Important notes:
88 * @param[in] full_path mo full path
89 * @param[out] fumo_return fumo return value
91 * @return DM_OK success
105 DM_ERROR firmware_update_operation(char *full_path, FUMO_Error * fumo_return);
108 * @par Description: API to operate firmware download&update
112 * @par Typical use case:
113 * @par Method of function operation:
114 * @par Important notes:
115 * @param[in] full_path mo full path
116 * @param[out] fumo_return fumo return value
118 * @return DM_OK success
132 DM_ERROR firmware_downloadupdate_operation(char *full_path, FUMO_Error * fumo_return);
135 * @par Description: API to operate firmware EXT
139 * @par Typical use case:
140 * @par Method of function operation:
141 * @par Important notes:
142 * @param[in] full_path mo full path
143 * @param[out] fumo_return fumo return value
145 * @return DM_OK success
159 DM_ERROR vendor_dependency_firmware_operation(char *full_path, FUMO_Error * fumo_return);
162 * @par Description: API to fumo engine operation (engine state flow)
166 * @par Typical use case:
167 * @par Method of function operation:
168 * @par Important notes:
169 * @param[in] full_path mo full path
170 * @param[in] down_server down server url
171 * @param[in] fumo_state fumo state
172 * @param[out] fumo_return fumo return value
174 * @return DM_OK success
188 DM_ERROR fumo_engine_state_operation(char *full_path, char *down_server, FUMO_Error * fumo_return);
191 * @par Description: API to get current fumo state
195 * @par Typical use case:
196 * @par Method of function operation:
197 * @par Important notes:
198 * @param[in] full_path mo full path
199 * @param[out] fumo_state_data fumo state data
201 * @return DM_OK success
215 DM_ERROR get_current_fumo_state(char *full_path, char **fumo_state_data);
218 * @par Description: API to set current fumo state
222 * @par Typical use case:
223 * @par Method of function operation:
224 * @par Important notes:
225 * @param[in] full_path mo full path
226 * @param[in] fumo_state_data fumo state data
228 * @return DM_OK success
242 DM_ERROR set_current_fumo_state(char *full_path, FUMO_State fumo_status);
244 #endif /* FUMO_ENGINE_H_ */