X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=http.h;h=04169d5f9c8fa4cb82ad720b9e6d371f02be83d3;hb=464509f790f409d95e0820364ef7296d82942d8c;hp=aeba9301f8fe1a1d4e2f9819257579375be648aa;hpb=144126abf99f2eac48e63b7ea85a8f3f99f814db;p=git.git diff --git a/http.h b/http.h index aeba9301f..04169d5f9 100644 --- a/http.h +++ b/http.h @@ -7,6 +7,15 @@ #include #include "strbuf.h" +#include "remote.h" + +/* + * We detect based on the cURL version if multi-transfer is + * usable in this implementation and define this symbol accordingly. + * This is not something Makefile should set nor users should pass + * via CFLAGS. + */ +#undef USE_CURL_MULTI #if LIBCURL_VERSION_NUM >= 0x071000 #define USE_CURL_MULTI @@ -75,7 +84,7 @@ extern void add_fill_function(void *data, int (*fill)(void *)); extern void step_active_slots(void); #endif -extern void http_init(void); +extern void http_init(struct remote *remote); extern void http_cleanup(void); extern int data_received;