summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/alpm.h
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2010-11-16 07:43:45 +0100
committerDan McGee <dan@archlinux.org>2010-12-13 03:29:59 +0100
commit3f0d98c124db1547d6595762bd2d125b4350b861 (patch)
treef4169db4b041783e010843c7333b9afbdfb9da9e /lib/libalpm/alpm.h
parente527699dddca41e3af6c1872e851405a4f5212a0 (diff)
downloadpacman-3f0d98c124db1547d6595762bd2d125b4350b861.tar.gz
pacman-3f0d98c124db1547d6595762bd2d125b4350b861.tar.xz
Implement disk space checking
Pull together the work of the previous commits to implement a check for enough free space before performing an install transaction. Abort if there is not enough free space with an appropriate pm_errno.. Signed-off-by: Allan McRae <allan@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/alpm.h')
-rw-r--r--lib/libalpm/alpm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libalpm/alpm.h b/lib/libalpm/alpm.h
index 237e2356..4d0ca501 100644
--- a/lib/libalpm/alpm.h
+++ b/lib/libalpm/alpm.h
@@ -479,6 +479,7 @@ enum _pmerrno_t {
PM_ERR_NOT_A_FILE,
PM_ERR_NOT_A_DIR,
PM_ERR_WRONG_ARGS,
+ PM_ERR_DISK_SPACE,
/* Interface */
PM_ERR_HANDLE_NULL,
PM_ERR_HANDLE_NOT_NULL,