X-Git-Url: https://git.street.me.uk/andy/viking.git/blobdiff_plain/a31889935875a7d1d32c8dae2d6218d7938167f8..d61ec067563735c651f81e6ad0f31be01a8c202b:/src/curl_download.h diff --git a/src/curl_download.h b/src/curl_download.h index 8ad40038..84d8ed17 100644 --- a/src/curl_download.h +++ b/src/curl_download.h @@ -26,8 +26,20 @@ #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 (); -int curl_download_get_url ( const char *hostname, const char *uri, FILE *f, DownloadOptions *options ); -int curl_download_uri ( const char *uri, FILE *f, DownloadOptions *options ); +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