]> sjero.net Git - wget/blobdiff - src/retr.h
[svn] * retr.c (fd_read_body): Report the amount of data *written* as
[wget] / src / retr.h
index 047b4f963582891e94b5646a66f8e460eb622348..da93734dcc2e84c583c5dd0f4e5e5db9b8404001 100644 (file)
@@ -30,13 +30,19 @@ so, delete this exception statement from your version.  */
 #ifndef RETR_H
 #define RETR_H
 
+/* Flags for fd_read_body. */
+enum {
+  rb_read_exactly  = 1,
+  rb_skip_startpos = 2
+};
+
+int fd_read_body PARAMS ((int, FILE *, long, long, long *, double *, int));
+
 typedef const char *(*hunk_terminator_t) PARAMS ((const char *, int, int));
 
 char *fd_read_hunk PARAMS ((int, hunk_terminator_t, int));
 char *fd_read_line PARAMS ((int));
 
-int fd_read_body PARAMS ((int, FILE *, long, int, long, long *, double *));
-
 uerr_t retrieve_url PARAMS ((const char *, char **, char **,
                             const char *, int *));
 uerr_t retrieve_from_file PARAMS ((const char *, int, int *));