diff options
Diffstat (limited to 'lib/libfetch/common.h')
-rw-r--r-- | lib/libfetch/common.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/libfetch/common.h b/lib/libfetch/common.h index f869eb8..6dad684 100644 --- a/lib/libfetch/common.h +++ b/lib/libfetch/common.h @@ -65,16 +65,20 @@ int _fetch_add_entry(struct url_ent **, int *, int *, #endif /* - * I don't really like exporting _http_request() from http.c, but ftp.c - * occasionally needs to use an HTTP proxy, and this saves me from adding - * a lot of special-case code to http.c to handle those cases. + * I don't really like exporting _http_request() and _ftp_request(), + * but the HTTP and FTP code occasionally needs to cross-call + * eachother, and this saves me from adding a lot of special-case code + * to handle those cases. * - * Note that _http_request() frees purl, which is way ugly but saves us a + * Note that _*_request() free purl, which is way ugly but saves us a * whole lot of trouble. */ FILE *_http_request(struct url *, const char *, struct url_stat *, struct url *, const char *); +FILE *_ftp_request(struct url *, const char *, + struct url_stat *, struct url *, + const char *); /* * Check whether a particular flag is set |