From adb10c3ab244cc00eb863d5b036fa7bdd76f8152 Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Tue, 16 Nov 2010 15:57:39 +1000 Subject: Prototype disk space checking functionality Very basic prototyping for adding functionality to check free disk space before performing package installs. Signed-off-by: Allan McRae Signed-off-by: Dan McGee --- lib/libalpm/diskspace.h | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 lib/libalpm/diskspace.h (limited to 'lib/libalpm/diskspace.h') diff --git a/lib/libalpm/diskspace.h b/lib/libalpm/diskspace.h new file mode 100644 index 00000000..69e39d8e --- /dev/null +++ b/lib/libalpm/diskspace.h @@ -0,0 +1,29 @@ +/* + * diskspace.h + * + * Copyright (c) 2010 Pacman Development Team + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +#ifndef _ALPM_DISKSPACE_H +#define _ALPM_DISKSPACE_H + +#include "alpm.h" + +int _alpm_check_diskspace(pmtrans_t *trans, pmdb_t *db); + +#endif /* _ALPM_DISKSPACE_H */ + +/* vim: set ts=2 sw=2 noet: */ -- cgit v1.2.3-24-g4f1b