index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dave Reisner <d@falconindy.com> | 2011-06-24 00:18:01 -0400 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2011-07-05 22:58:55 -0400 |
commit | 6dc71926f9b16ebcf11b924941092d6eab204224 (patch) | |
tree | 5e90f3b970a257687f9a123590b4ff3c94d1812f /lib/libalpm/dload.h | |
parent | 6c9b82e72ac067207b1d66a3112485ad8d690f32 (diff) |
-rw-r--r-- | lib/libalpm/dload.h | 13 |
diff --git a/lib/libalpm/dload.h b/lib/libalpm/dload.h index 351b2b30..6a2dd392 100644 --- a/lib/libalpm/dload.h +++ b/lib/libalpm/dload.h @@ -33,8 +33,17 @@ struct fileinfo { double initial_size; }; -int _alpm_download(alpm_handle_t *handle, const char *url, const char *localpath, - char **final_file, int force, int allow_resume, int errors_ok); +struct dload_payload { + char *filename; + char *fileurl; + long max_size; +}; + +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); #endif /* _ALPM_DLOAD_H */ |