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.
22 #include <sync_agent.h>
25 #include "serviceadapter/sa_define.h"
27 #define HTTP_X_SYNCML_HMAC "x-syncml-hmac"
28 #define HTTP_COOKIE "cookie"
31 * @par Description: API to send msg oma sepc, syncml sepc
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
61 int NA_http_header_binder(char *accType, char *loc_uri, char *sessionid, int isHMAC, char *username, char *mac, GList ** list);
64 * @par Description: API to send msg oma sepc, syncml sepc
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)
91 int add_jsession_in_httpheader(GList * recv_header, char *temp_jsessionid, char **real_jsessionid, char **real_other_cookie);
93 #endif /* NA_BINDER_H_ */