The download provider daemon is added newly.
[profile/ivi/download-provider.git] / src / agent / include / download-agent-basic.h
1 /*
2  * Download Agent
3  *
4  * Copyright (c) 2000 - 2012 Samsung Electronics Co., Ltd. All rights reserved.
5  *
6  * Contact: Jungki Kwak <jungki.kwak@samsung.com>, Keunsoon Lee <keunsoon.lee@samsung.com>
7  *
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
11  *
12  *     http://www.apache.org/licenses/LICENSE-2.0
13  *
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.
19  *
20  * @file                download-agent-basic.h
21  * @brief
22  * @author              Keunsoon Lee(keunsoon.lee@samsung.com)
23  ***/
24
25 #ifndef _Download_Agent_Basic_H
26 #define _Download_Agent_Basic_H
27
28 #include <string.h>
29
30 #include "download-agent-type.h"
31 #include "download-agent-interface.h"
32 #include "download-agent-dl-mgr.h"
33
34 typedef struct _extension_data_t {
35         const char **request_header;
36         const int *request_header_count;
37         const char *install_path;
38         const char *file_name;
39         void *user_data;
40 } extension_data_t;
41
42 da_result_t start_download(const char* url, da_handle_t *dl_req_id);
43 da_result_t start_download_with_extension(const char *url , da_handle_t *dl_req_id, extension_data_t *extension_data);
44
45 #endif