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.
21 * @brief This file is the header file of defined factory bootstrap
24 #ifndef FACTORY_BOOTSTRAP_H_
25 #define FACTORY_BOOTSTRAP_H_
28 #include <sync_agent.h>
31 #include "common/dm_error.h"
32 #include "common/dm_common_def.h"
34 #define DDF_FILES "/usr/share/oma-dm-cfg/ddf/slp_ddfs.txt"
35 #define DDF_MSCFUMO_DMACC_FILE "/usr/share/oma-dm-cfg/ddf/slp_msctestserver_dmacc_ddf.txt"
36 #define DDF_MSCLAWMO_DMACC_FILE "/usr/share/oma-dm-cfg/ddf/slp_mscserver_dmacc_ddf.txt"
37 #define DDF_GCF_DMACC_FILE "/usr/share/oma-dm-cfg/ddf/slp_gcf_dmacc_ddf.txt"
39 #define DDF_SPEC_COUNT 10
40 #define MAX_FILE_PATH 100
41 #define MAX_SERVICE_NAME 50
44 sync_agent_dm_mo_type_e mo_type; /**< mo_type : SYNC_AGENT_DM_MO_TYPE_DMACC, SYNC_AGENT_DM_MO_TYPE_DEVINFO, SYNC_AGENT_DM_MO_TYPE_DEVDETAIL, SYNC_AGENT_DM_MO_TYPE_FUMO, SYNC_AGENT_DM_MO_TYPE_LAWMO, SYNC_AGENT_DM_MO_TYPE_SCOMO, SYNC_AGENT_DM_MO_TYPE_NO_TYPE */
45 char schema_file[MAX_FILE_PATH]; /**< schema_file : schema_file paht*/
46 int service_ddf; /**< service_ddf : 1,2,3,4,5,6,7*/
47 int server_type; /**< service_type : 4, 8, 16*/
51 * @par Description: API to start factory bootstrap
55 * @par Typical use case:
56 * @par par Method of function operation:
57 * @par Important notes:
58 * @param[in] file size
60 * @return DM_OK on success
61 * DM_ERROR, DM_ERR_DDF_PROCCESS on error
74 DM_ERROR factory_bootstrap(SERVICE_SERVER_TYPE server_type);
76 #endif /* FACTORY_BOOTSTRAP_H_ */