diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-02-06 06:07:09 -0500 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-02-06 06:07:40 -0500 |
commit | bf3bb228f028cc3d990f1dd54d8d03af038fe91d (patch) | |
tree | 4d5e63398a19398817b1fbe89b935a39b8a7b40b /include/download.h | |
parent | b6225dc7cadb63161150283e99b902ea8a89dceb (diff) | |
download | stasis-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.h | 2 |
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 |