Initialize Tizen 2.3
[framework/system/oma-dm-agent.git] / include / dm-engine / cp / dm_cp_struct.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 #ifndef DM_CP_STRUCT_H_
19 #define DM_CP_STRUCT_H_
20
21 typedef enum {
22         DM_CP_APP_OMADS = 1
23 } DM_CP_APP_ID;
24
25 typedef struct string_node {
26         char *data;
27         struct string_node *next;
28 } String_Node;
29
30 typedef struct dm_cp_port {
31         char *portnbr;
32         String_Node *service;   /* * */
33         struct dm_cp_port *next;
34 } DM_CP_Port;
35
36 /************************ PXLOGICAL *****************************/
37
38 typedef struct dm_cp_pxlogical_pxauthinfo {
39         char *pxAuth_type;
40         char *pxAuth_id;        /* ? */
41         char *pxAuth_pw;        /* ? */
42         struct dm_cp_pxlogical_pxauthinfo *next;
43 } DM_CP_PxLogical_PxAuthInfo;
44
45 typedef struct dm_cp_pxlogical_pxphysical {
46         char *physical_proxy_id;
47         String_Node *domain;    /* * */
48         char *pxAddr;
49         char *pxAddrType;       /* ? */
50         char *pxAddr_FQDN;      /* ? */
51         char *wsp_version;      /* ? */
52         char *push_enabled;     /* ? */
53         char *pull_enabled;     /* ? */
54         String_Node *to_napid;  /* + */
55         DM_CP_Port *port;       /* * */
56         struct dm_cp_pxlogical_pxphysical *next;
57 } DM_CP_PxLogical_PxPhysical;
58
59 typedef struct dm_cp_pxlogical {
60         char *proxy_id;
61         char *proxy_pw;         /* ? */
62         char *ppg_auth_type;    /* ? */
63         char *proxy_provider_id;        /* ? */
64         char *name;
65         String_Node *domain;    /* * */
66         char *trust;            /* ? */
67         char *master;           /* ? */
68         char *start_page;       /* ? */
69         char *bas_auth_id;      /* ? */
70         char *bas_auth_pw;      /* ? */
71         char *wsp_version;      /* ? */
72         char *push_enabled;     /* ? */
73         char *pull_enabled;     /* ? */
74         DM_CP_PxLogical_PxAuthInfo *pxAuthInfo; /* * */
75         DM_CP_Port *port;       /* * */
76         DM_CP_PxLogical_PxPhysical *pxPhysical; /* + */
77         struct dm_cp_pxlogical *next;
78 } DM_CP_PxLogical;
79
80 /************************ BOOTSTRAP *****************************/
81
82 typedef struct dm_cp_bootstrap {
83         char *name;
84         String_Node *network;
85         char *country;
86         String_Node *proxy_id;
87         char *provurl;
88         char *context_allow;
89         struct dm_cp_bootstrap *next;
90 } DM_CP_Bootstrap;
91
92 /************************ APPLICATION *****************************/
93
94 typedef struct dm_cp_application_appaddr {
95         char *addr;
96         char *addr_type;        /* ? */
97         DM_CP_Port *port;       /* * */
98         struct dm_cp_application_appaddr *next;
99 } DM_CP_Application_AppAddr;
100
101 typedef struct dm_cp_application_appauth {
102         char *auth_level;       /* ? */
103         char *auth_type;        /* ? */
104         char *auth_name;        /* ? */
105         char *auth_secret;      /* ? */
106         char *auth_data;        /* ? */
107         struct dm_cp_application_appauth *next;
108 } DM_CP_Application_AppAuth;
109
110 typedef struct dm_cp_application_resource {
111         char *uri;
112         char *name;             /* ? */
113         char *accept;           /* ? */
114         char *auth_type;        /* ? */
115         char *auth_name;        /* ? */
116         char *auth_secret;      /* ? */
117         char *auth_data;        /* ? */
118         char *start_page;       /* ? */
119         struct dm_cp_application_resource *next;
120 } DM_CP_Application_Resource;
121
122 typedef struct dm_cp_application {
123         char *app_ID;
124         char *provider_ID;      /* ? */
125         char *name;             /* ? */
126         char *accept;           /* ? */
127         char *protocol;         /* ? */
128         String_Node *to_proxy;  /* * */
129         String_Node *to_napid;  /* * */
130         String_Node *addr;      /* * */
131         DM_CP_Application_AppAddr *appAddr;     /* * */
132         DM_CP_Application_AppAuth *appAuth;     /* * */
133         DM_CP_Application_Resource *resource;   /* * */
134         struct dm_cp_application *next;
135 } DM_CP_Application;
136
137 /************************ NAPDEF *****************************/
138
139 typedef struct dm_cp_napdef_napauthinfo {
140         char *auth_type;
141         char *auth_name;        /* ? */
142         char *auth_secret;      /* ? */
143         String_Node *auth_entity;       /* * */
144         char *spi;              /* ? */
145         struct dm_cp_napdef_napauthinfo *next;
146 } DM_CP_Napdef_AuthInfo;
147
148 typedef struct dm_cp_napdef_validity {
149         char *country;          /* ? */
150         char *network;          /* ? */
151         char *sid;              /* ? */
152         char *soc;              /* ? */
153         char *validuntil;       /* ? */
154         struct dm_cp_napdef_validity *next;
155 } DM_CP_Napdef_validity;
156
157 typedef struct dm_cp_napdef {
158         char *nap_ID;
159         String_Node *bearer;    /* * */
160         char *name;
161         char *internet;         /* ? */
162         char *nap_address;
163         char *nap_addr_type;    /* ? */
164         String_Node *dns_addr;  /* * */
165         char *call_type;        /* ? */
166         char *local_addr;       /* ? */
167         char *local_addr_type;  /* ? */
168         char *link_speed;       /* ? */
169         char *dn_link_speed;    /* ? */
170         char *linger;           /* ? */
171         char *delivery_err_sdu; /* ? */
172         char *delivery_order;   /* ? */
173         char *traffic_class;    /* ? */
174         char *max_sdu_size;     /* ? */
175         char *max_bitrate_uplink;       /* ? */
176         char *max_bitrate_dnlink;       /* ? */
177         char *residual_ber;     /* ? */
178         char *sdu_error_ratio;  /* ? */
179         char *traffic_handl_prio;       /* ? */
180         char *transfer_delay;   /* ? */
181         char *guaranteed_bitrate_uplink;        /* ? */
182         char *guaranteed_bitrate_dnlink;        /* ? */
183         char *max_num_retry;    /* ? */
184         char *first_retry_timeout;      /* ? */
185         char *rereg_threshold;  /* ? */
186         char *t_bit;            /* ? */
187         DM_CP_Napdef_AuthInfo *auth_info;
188         DM_CP_Napdef_validity *validity;
189         struct dm_cp_napdef *next;
190 } DM_CP_Napdef;
191
192 /************************ CP *****************************/
193
194 typedef struct {
195         DM_CP_Bootstrap *bootstraps;
196         DM_CP_Napdef *napdefs;
197         DM_CP_Application *applications;
198         DM_CP_PxLogical *pxLogical;
199 } DM_CP;
200
201 #endif                          /* DM_CP_STRUCT_H_ */