Tizen 2.0 Release
[framework/system/oma-dm-agent.git] / include / dm-engine / bootstrap / factory_bootstrap.h
1 /*
2  * oma-dm-agent
3  * Copyright (c) 2012 Samsung Electronics Co., Ltd.
4  *
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
8  *
9  *     http://www.apache.org/licenses/LICENSE-2.0
10  *
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.
16  */
17
18 /**
19  *   @DM_Error.h
20  *   @version                                                                   0.1
21  *   @brief                                                                             This file is the header file of defined factory bootstrap
22  */
23
24 #ifndef FACTORY_BOOTSTRAP_H_
25 #define FACTORY_BOOTSTRAP_H_
26
27 /*sync-agent*/
28 #include <sync_agent.h>
29
30 /*dm-agent*/
31 #include "common/dm_error.h"
32 #include "common/dm_common_def.h"
33
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"
38
39 #define DDF_SPEC_COUNT          10
40 #define MAX_FILE_PATH                           100
41 #define MAX_SERVICE_NAME                50
42
43 typedef struct {
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*/
48 } ddf_spec;
49
50 /**
51  * @par Description: API to start factory bootstrap
52  *
53  *
54  * @par Purpose:
55  * @par Typical use case:
56  * @par par Method of function operation:
57  * @par Important notes:
58  * @param[in]           file size
59  *
60  * @return                      DM_OK on success
61  *                                              DM_ERROR, DM_ERR_DDF_PROCCESS on error
62  *
63  * @par Errors:
64  *
65  * @pre None.
66  * @post
67  * @see
68  * @remarks None.
69  *
70  * @par Sample Code:
71  * @code
72  * @endcode
73  */
74 DM_ERROR factory_bootstrap(SERVICE_SERVER_TYPE server_type);
75
76 #endif                          /* FACTORY_BOOTSTRAP_H_ */