]> git.street.me.uk Git - andy/viking.git/blobdiff - src/curl_download.h
Read zip files contents which are stored with no compression.
[andy/viking.git] / src / curl_download.h
index 36eb2018d7a09c7d9c8979d6c6d4139727477f90..84d8ed172907837c2b1e5e9b4986b8528f62ece6 100644 (file)
 
 #include <stdio.h>
 
-int curl_download_get_url ( const char *hostname, const char *uri, FILE *f );
-int curl_download_uri ( const char *uri, FILE *f );
+#include "download.h"
+
+G_BEGIN_DECLS
+
+/* Error messages returned by download functions */
+enum { CURL_DOWNLOAD_NO_ERROR = 0,
+       CURL_DOWNLOAD_NO_NEWER_FILE,
+       CURL_DOWNLOAD_ERROR };
+
+void curl_download_init ();
+void curl_download_uninit ();
+int curl_download_get_url ( const char *hostname, const char *uri, FILE *f, DownloadMapOptions *options, gboolean ftp, DownloadFileOptions *file_options, void *handle );
+int curl_download_uri ( const char *uri, FILE *f, DownloadMapOptions *options, DownloadFileOptions *file_options, void *handle );
+void * curl_download_handle_init ();
+void curl_download_handle_cleanup ( void * handle );
+
+G_END_DECLS
 
 #endif