Tizen 2.0 Release
[framework/system/oma-dm-agent.git] / include / serviceadapter / networkbinder / na_binder.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 NA_BINDER_H_
19 #define NA_BINDER_H_
20
21 /*sync-agent*/
22 #include <sync_agent.h>
23
24 /*dm-agent*/
25 #include "serviceadapter/sa_define.h"
26
27 #define HTTP_X_SYNCML_HMAC                      "x-syncml-hmac"
28 #define HTTP_COOKIE                                                     "cookie"
29
30 /**
31  * @par Description: API to send msg oma sepc, syncml sepc
32  *
33  *
34  * @par Purpose:
35  * @par Typical use case:
36  * @par Method of function operation:
37  * @par Important notes:
38   * @param[in]  accType                 (obex, http ...)
39   * @param[in]  loc_uri                         server url
40   * @param[in]  sesion id               session id
41   * @param[in]  is_hmac                 is hmac
42   * @param[in]  username                username
43   * @param[in]  list                            header list
44  *
45  *
46  * @return                              1                                                               success
47  *                                                      o                                                               fail
48  *
49  *
50  * @par Errors:
51  *
52  * @pre None.
53  * @post
54  * @see
55  * @remarks None.
56  *
57  * @par Sample Code:
58  * @code
59  * @endcode
60  */
61 int NA_http_header_binder(char *accType, char *loc_uri, char *sessionid, int isHMAC, char *username, char *mac, GList ** list);
62
63 /**
64  * @par Description: API to send msg oma sepc, syncml sepc
65  *
66  *
67  * @par Purpose:
68  * @par Typical use case:
69  * @par Method of function operation:
70  * @param[in]   receive header                  receive header
71  * @param[in]   temp jsessionid                         temp jsession id
72  * @param[out] real jsession id                 real jsession id
73  * @param[out]  other cookie                            other cookie (not use)
74  *
75  *
76  * @return                              1                                                               success
77  *                                                      o                                                               fail
78  *
79  *
80  * @par Errors:
81  *
82  * @pre None.
83  * @post
84  * @see
85  * @remarks None.
86  *
87  * @par Sample Code:
88  * @code
89  * @endcode
90  */
91 int add_jsession_in_httpheader(GList * recv_header, char *temp_jsessionid, char **real_jsessionid, char **real_other_cookie);
92
93 #endif                          /* NA_BINDER_H_ */