1 2 3 4 5 6 7 8 9 10 11 12
#ifndef DOWNLOAD_H #define DOWNLOAD_H struct Buffer; typedef struct fallback fallback; /* |fall| can be NULL */ int download_to_buffer(const char *url, struct Buffer *buffer, fallback *fall); /* |fall| can be NULL */ int is_header_response_ok(const char *url, fallback *fall); #endif