diff options
author | Dave Reisner <dreisner@archlinux.org> | 2011-07-01 03:19:25 +0200 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2011-07-06 05:00:02 +0200 |
commit | 3eec745910bb908717a8b4ed7f5b630a92a5c9eb (patch) | |
tree | b87189a8d755d7159d61d5ef6f00d9e1a456286f /lib/libalpm/dload.h | |
parent | 6dc71926f9b16ebcf11b924941092d6eab204224 (diff) | |
download | pacman-3eec745910bb908717a8b4ed7f5b630a92a5c9eb.tar.gz pacman-3eec745910bb908717a8b4ed7f5b630a92a5c9eb.tar.xz |
absorb some _alpm_download params into payload struct
Restore some sanity to the number of arguments passed to _alpm_download
and curl_download_internal.
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Diffstat (limited to 'lib/libalpm/dload.h')
-rw-r--r-- | lib/libalpm/dload.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/libalpm/dload.h b/lib/libalpm/dload.h index 6a2dd392..3945d245 100644 --- a/lib/libalpm/dload.h +++ b/lib/libalpm/dload.h @@ -34,16 +34,19 @@ struct fileinfo { }; struct dload_payload { + alpm_handle_t *handle; char *filename; char *fileurl; long max_size; + int force; + int allow_resume; + int errors_ok; }; void _alpm_dload_payload_free(struct dload_payload *payload); -int _alpm_download(alpm_handle_t *handle, struct dload_payload *payload, - const char *localpath, char **final_file, int force, int allow_resume, - int errors_ok); +int _alpm_download(struct dload_payload *payload, const char *localpath, + char **final_file); #endif /* _ALPM_DLOAD_H */ |