Fix compatibility for x64 arch.
[platform/core/system/sync-agent.git] / include / plugin / data_converter_resource.h
1 /*
2  * sync-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 #ifndef DATA_CONVERTER_RESOURCE_H_
19 #define DATA_CONVERTER_RESOURCE_H_
20
21 #ifdef __cplusplus
22 extern "C" {
23 #endif                          /* __cplusplus */
24
25 /**
26  * @file data_converter_resource.h
27  * @brief       Support to share structure DataConverter plugIn with sync-agent-framework
28  */
29
30 /** @addtogroup plugin_dataconverter DataConverter Domain
31  * @ingroup plugin
32  *      @{
33  */
34
35 /**
36  * Structure of Converter plugin's object's field - linked list
37  */
38         struct sync_agent_plugin_field_info {
39                 char *field_name;       /**< field name */
40                 int field_child_cnt;    /**< field's child count */
41                 struct sync_agent_plugin_field_info *field_child_list;  /**< next field info node */
42         };
43
44 /**
45  * Structure of Converter plugin's Object info
46  */
47         typedef struct {
48                 char *type;     /**< object type */
49                 char *version;
50                         /**< object version */
51                 int field_cnt;  /**< field count */
52                 struct sync_agent_plugin_field_info *field_list;        /**< real field list **/
53         } sync_agent_plugin_object_info_s;
54
55         typedef struct sync_agent_plugin_field_info sync_agent_plugin_field_info_s;
56
57 /**
58  *      @}
59  */
60
61 #ifdef __cplusplus
62 }
63 #endif                          /* __cplusplus */
64 #endif                          /* DATA_CONVERTER_RESOURCE_H_ */