diff options
author | Dan McGee <dan@archlinux.org> | 2011-07-06 05:01:29 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-07-06 05:01:29 +0200 |
commit | b678e002714b732d7ea6a48029ac1a5b285d04e5 (patch) | |
tree | b3fe62d91cf53fd10d238ad9014d824135fd2172 /lib/libalpm/dload.h | |
parent | eda741ae93519bea80af45e01ba7417cc50a4e1b (diff) | |
parent | 57eac093c40b0a54ab5d9f14519b9e44140e0c3d (diff) | |
download | pacman-b678e002714b732d7ea6a48029ac1a5b285d04e5.tar.gz pacman-b678e002714b732d7ea6a48029ac1a5b285d04e5.tar.xz |
Merge remote-tracking branch 'dave/download'
Diffstat (limited to 'lib/libalpm/dload.h')
-rw-r--r-- | lib/libalpm/dload.h | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/lib/libalpm/dload.h b/lib/libalpm/dload.h index 0cdd9001..341a4a1a 100644 --- a/lib/libalpm/dload.h +++ b/lib/libalpm/dload.h @@ -25,15 +25,22 @@ #include <time.h> -/* internal structure for communicating with curl progress callback */ -struct fileinfo { +struct dload_payload { alpm_handle_t *handle; const char *filename; + char *cd_filename; + char *fileurl; double initial_size; + long max_size; + int force; + int allow_resume; + int errors_ok; }; -int _alpm_download(alpm_handle_t *handle, const char *url, const char *localpath, - int force, int allow_resume, int errors_ok); +void _alpm_dload_payload_free(struct dload_payload *payload); + +int _alpm_download(struct dload_payload *payload, const char *localpath, + char **final_file); #endif /* _ALPM_DLOAD_H */ |