Tizen 2.1 base
[platform/framework/web/download-provider.git] / src / include / download-provider-da-interface.h
1 /*
2  * Copyright (c) 2012 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  * Licensed under the Apache License, Version 2.0 (the License);
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an AS IS BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 #ifndef DOWNLOAD_PROVIDER2_DA_INTERFACE_H
18 #define DOWNLOAD_PROVIDER2_DA_INTERFACE_H
19
20 int dp_is_file_exist(const char *file_path);
21 int dp_init_agent();
22 void dp_deinit_agent();
23 dp_error_type dp_start_agent_download(dp_request *request);
24 dp_error_type dp_resume_agent_download(int req_id);
25 dp_error_type dp_pause_agent_download(int req_id);
26 dp_error_type dp_cancel_agent_download(int req_id);
27 int dp_is_alive_download(int req_id);
28
29 #endif