summaryrefslogtreecommitdiff
path: root/agent/include/download-agent-plugin-libcurl.h
diff options
context:
space:
mode:
authorjk7744.park <jk7744.park@samsung.com>2015-02-01 14:10:33 +0900
committerjk7744.park <jk7744.park@samsung.com>2015-02-01 14:10:33 +0900
commitd7efab678d65d5ea8c470d328427f24f4d683af9 (patch)
tree184c76feb27d8056dd39823d7b998fdf1681c80e /agent/include/download-agent-plugin-libcurl.h
parent335597a2db0a33a96684c052e4cf8a0736918fcf (diff)
downloaddownload-provider-d7efab678d65d5ea8c470d328427f24f4d683af9.tar.gz
download-provider-d7efab678d65d5ea8c470d328427f24f4d683af9.tar.bz2
download-provider-d7efab678d65d5ea8c470d328427f24f4d683af9.zip
Diffstat (limited to 'agent/include/download-agent-plugin-libcurl.h')
-rw-r--r--agent/include/download-agent-plugin-libcurl.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/agent/include/download-agent-plugin-libcurl.h b/agent/include/download-agent-plugin-libcurl.h
new file mode 100644
index 0000000..67a4c53
--- /dev/null
+++ b/agent/include/download-agent-plugin-libcurl.h
@@ -0,0 +1,35 @@
+/*
+ * Copyright (c) 2012 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the License);
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef _Download_Agent_Plugin_Libcurl_H
+#define _Download_Agent_Plugin_Libcrul_H
+
+#include "download-agent-type.h"
+#include "download-agent-dl-info.h"
+
+#define MAX_SESSION_COUNT DA_MAX_DOWNLOAD_REQ_AT_ONCE
+#define MAX_TIMEOUT DA_MAX_TIME_OUT
+
+da_ret_t PI_http_start(da_info_t *da_info);
+da_ret_t PI_http_disconnect(http_info_t *info);
+da_ret_t PI_http_cancel(http_info_t *info);
+da_ret_t PI_http_pause(http_info_t *info);
+da_ret_t PI_http_unpause(http_info_t *info);
+#ifdef _RAF_SUPPORT
+da_ret_t PI_http_set_file_name_to_curl(http_msg_t *http_msg, char *file_path);
+#endif
+
+#endif