summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/diskspace.h
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2011-09-08 04:48:00 +0200
committerDan McGee <dan@archlinux.org>2011-10-17 15:39:04 +0200
commit6e29f02e94022e141eced2e0cdcb5b85894317ad (patch)
tree11f5443acad6d3abb9d0aa9ff33bf4fbc1299a35 /lib/libalpm/diskspace.h
parentae25167bcd592186749b79ea31b10fb78ed9fb2d (diff)
downloadpacman-6e29f02e94022e141eced2e0cdcb5b85894317ad.tar.gz
pacman-6e29f02e94022e141eced2e0cdcb5b85894317ad.tar.xz
diskspace: add _alpm_check_downloadspace()
This function determines if the given cachedir has at least the given amount of free space on it. This will be later used in the sync code to preemptively halt downloads. Signed-off-by: Dave Reisner <dreisner@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/diskspace.h')
-rw-r--r--lib/libalpm/diskspace.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libalpm/diskspace.h b/lib/libalpm/diskspace.h
index 5944bb17..a613e232 100644
--- a/lib/libalpm/diskspace.h
+++ b/lib/libalpm/diskspace.h
@@ -50,6 +50,8 @@ typedef struct __alpm_mountpoint_t {
} alpm_mountpoint_t;
int _alpm_check_diskspace(alpm_handle_t *handle);
+int _alpm_check_downloadspace(alpm_handle_t *handle, const char *cachedir,
+ size_t num_files, off_t *file_sizes);
#endif /* _ALPM_DISKSPACE_H */