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.
23 #include <sync_agent.h>
26 #include "dm-engine/dl-manager/na_fw_dl_binder.h"
28 #ifndef OMADM_AGENT_LOG
30 #define LOG_TAG "OMA_DM_DL"
33 void add_header_info(GList ** header_info_list, char *key, char *value)
37 retm_if((key) == NULL, "key is NULL!!");
38 retm_if((value) == NULL, "value is NULL!!");
41 sync_agent_na_common_header_info_s *header_info = (sync_agent_na_common_header_info_s *) calloc(1, sizeof(sync_agent_na_common_header_info_s));
42 if (header_info == NULL) {
43 _DEBUG_INFO("alloc error");
46 header_info->key = key;
47 header_info->value = value;
48 *header_info_list = g_list_append(*header_info_list, header_info);