diff options
author | Junio C Hamano <gitster@pobox.com> | 2009-04-07 22:33:05 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-04-07 22:33:05 -0700 |
commit | fe42fe4bcaaf262082a982e43bca1d8cac5a706d (patch) | |
tree | 0400d85c7a4553f0957f7a84acd3466da2fa112c /http.h | |
parent | Merge branch 'js/maint-submodule-checkout' (diff) | |
parent | Allow curl to rewind the read buffers (diff) | |
download | tgif-fe42fe4bcaaf262082a982e43bca1d8cac5a706d.tar.xz |
Merge branch 'ms/http-auth'
* ms/http-auth:
Allow curl to rewind the read buffers
Diffstat (limited to 'http.h')
-rw-r--r-- | http.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -37,6 +37,10 @@ #define CURLE_HTTP_RETURNED_ERROR CURLE_HTTP_NOT_FOUND #endif +#if LIBCURL_VERSION_NUM < 0x070c03 +#define NO_CURL_IOCTL +#endif + struct slot_results { CURLcode curl_result; @@ -67,6 +71,9 @@ struct buffer extern size_t fread_buffer(void *ptr, size_t eltsize, size_t nmemb, void *strbuf); extern size_t fwrite_buffer(const void *ptr, size_t eltsize, size_t nmemb, void *strbuf); extern size_t fwrite_null(const void *ptr, size_t eltsize, size_t nmemb, void *strbuf); +#ifndef NO_CURL_IOCTL +extern curlioerr ioctl_buffer(CURL *handle, int cmd, void *clientp); +#endif /* Slot lifecycle functions */ extern struct active_request_slot *get_active_slot(void); |