]> git.street.me.uk Git - andy/viking.git/blobdiff - src/curl_download.h
[DOC] Mention map tilesize configuration.
[andy/viking.git] / src / curl_download.h
index 8f266530207244ead54461f1dac8c257e21b6488..0696f13bc013f2cb4f8c3773a0aa10a1ac3ed4aa 100644 (file)
 G_BEGIN_DECLS
 
 /* Error messages returned by download functions */
-enum { CURL_DOWNLOAD_NO_ERROR = 0,
-       CURL_DOWNLOAD_NO_NEWER_FILE,
-       CURL_DOWNLOAD_ERROR };
+typedef enum {
+  CURL_DOWNLOAD_NO_ERROR = 0,
+  CURL_DOWNLOAD_NO_NEWER_FILE,
+  CURL_DOWNLOAD_ERROR
+} CURL_download_t;
 
 typedef struct {
   /**
@@ -51,8 +53,8 @@ typedef struct {
 
 void curl_download_init ();
 void curl_download_uninit ();
-int curl_download_get_url ( const char *hostname, const char *uri, FILE *f, DownloadFileOptions *options, gboolean ftp, CurlDownloadOptions *curl_options, void *handle );
-int curl_download_uri ( const char *uri, FILE *f, DownloadFileOptions *options, CurlDownloadOptions *curl_options, void *handle );
+CURL_download_t curl_download_get_url ( const char *hostname, const char *uri, FILE *f, DownloadFileOptions *options, gboolean ftp, CurlDownloadOptions *curl_options, void *handle );
+CURL_download_t curl_download_uri ( const char *uri, FILE *f, DownloadFileOptions *options, CurlDownloadOptions *curl_options, void *handle );
 void * curl_download_handle_init ();
 void curl_download_handle_cleanup ( void * handle );