index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
-rw-r--r-- | lib/libalpm/dload.h | 20 |
diff --git a/lib/libalpm/dload.h b/lib/libalpm/dload.h index 63266491..341a4a1a 100644 --- a/lib/libalpm/dload.h +++ b/lib/libalpm/dload.h @@ -25,14 +25,22 @@ #include <time.h> -#define PM_DLBUF_LEN (1024 * 16) +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_single_file(const char *filename, - alpm_list_t *servers, const char *localpath, - int force); +void _alpm_dload_payload_free(struct dload_payload *payload); -int _alpm_download_files(alpm_list_t *files, - alpm_list_t *servers, const char *localpath); +int _alpm_download(struct dload_payload *payload, const char *localpath, + char **final_file); #endif /* _ALPM_DLOAD_H */ |