aboutsummaryrefslogtreecommitdiff
path: root/include/download.h
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2024-02-06 06:07:09 -0500
committerJoseph Hunkeler <jhunkeler@gmail.com>2024-02-06 06:07:40 -0500
commitbf3bb228f028cc3d990f1dd54d8d03af038fe91d (patch)
tree4d5e63398a19398817b1fbe89b935a39b8a7b40b /include/download.h
parentb6225dc7cadb63161150283e99b902ea8a89dceb (diff)
downloadstasis-bf3bb228f028cc3d990f1dd54d8d03af038fe91d.tar.gz
Improve download()
* Returns HTTP status code * Emits curl error message to stderr (or to a buffer if the third argument is not NULL)
Diffstat (limited to 'include/download.h')
-rw-r--r--include/download.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/download.h b/include/download.h
index 41eba98..440c749 100644
--- a/include/download.h
+++ b/include/download.h
@@ -8,6 +8,6 @@
#include <curl/curl.h>
size_t download_writer(void *fp, size_t size, size_t nmemb, void *stream);
-int download(char *url, const char *filename);
+long download(char *url, const char *filename, char **errmsg);
#endif //OMC_DOWNLOAD_H