aboutsummaryrefslogtreecommitdiff
path: root/include/url.h
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2020-01-21 23:49:46 -0500
committerJoseph Hunkeler <jhunkeler@gmail.com>2020-01-21 23:49:46 -0500
commit1a427e0e5e16bc75d05a961a4001923b26b7b2f8 (patch)
tree375c1e80c8982836a58b03839dd75921c1c6233b /include/url.h
parent77a35c4a098a11bcb8d93a8748f21a930b88b0d5 (diff)
downloadspmc-1a427e0e5e16bc75d05a961a4001923b26b7b2f8.tar.gz
groundhog day
Diffstat (limited to 'include/url.h')
-rw-r--r--include/url.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/url.h b/include/url.h
index 99a8b96..aa8f5b5 100644
--- a/include/url.h
+++ b/include/url.h
@@ -29,6 +29,7 @@ struct fcurl_data
size_t buffer_len; /* currently allocated buffers length */
size_t buffer_pos; /* end of data in buffer*/
int still_running; /* Is background url fetch still in progress */
+ long http_status; /* HTTP server response code */
};
typedef struct fcurl_data URL_FILE;
@@ -40,5 +41,6 @@ int url_feof(URL_FILE *file);
size_t url_fread(void *ptr, size_t size, size_t nmemb, URL_FILE *file);
char *url_fgets(char *ptr, size_t size, URL_FILE *file);
void url_rewind(URL_FILE *file);
-
+const char *http_response_str(long code);
+long get_http_response(CURLM *handle);
#endif // SPM_SPM_URL_H