4 * Copyright (c) 2000 - 2012 Samsung Electronics Co., Ltd. All rights reserved.
6 * Contact: Jungki Kwak <jungki.kwak@samsung.com>, Keunsoon Lee <keunsoon.lee@samsung.com>
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
20 * @file download-agent-utils-dl-req-id-history.h
21 * @brief Including operations for dl-req-id-history
22 * @author Keunsoon Lee(keunsoon.lee@samsung.com)
26 #ifndef _Download_Agent_Utils_Hash_Table_H
27 #define _Download_Agent_Utils_Hash_Table_H
29 #include "download-agent-pthread.h"
31 typedef struct _dl_req_id_history_t dl_req_id_history_t;
32 struct _dl_req_id_history_t {
35 pthread_mutex_t mutex;
38 da_result_t init_dl_req_id_history(dl_req_id_history_t *dl_req_id_history);
39 da_result_t deinit_dl_req_id_history(dl_req_id_history_t *dl_req_id_history);
41 int get_available_dl_req_id(dl_req_id_history_t *dl_req_id_history);
44 #endif /* _Download_Agent_Utils_Hash_Table_H */