#ifndef RETR_H
#define RETR_H
+/* These global vars should be made static to retr.c and exported via
+ functions! */
+extern SUM_SIZE_INT total_downloaded_bytes;
+extern double total_download_time;
+extern FILE *output_stream;
+extern bool output_stream_regular;
+
/* Flags for fd_read_body. */
enum {
rb_read_exactly = 1,
char *fd_read_line (int);
uerr_t retrieve_url (const char *, char **, char **, const char *, int *);
-uerr_t retrieve_from_file (const char *, int, int *);
+uerr_t retrieve_from_file (const char *, bool, int *);
-char *retr_rate (wgint, double, int);
+const char *retr_rate (wgint, double);
double calc_rate (wgint, double, int *);
void printwhat (int, int);
void rotate_backups (const char *);
-/* Because there's no http.h. */
-
-struct url;
-
-uerr_t http_loop (struct url *, char **, char **, const char *, int *,
- struct url *);
-void save_cookies (void);
-
-
#endif /* RETR_H */