From 18ddf90ff41a9de6611400065b18f6de8dc35b01 Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Fri, 4 May 2012 12:07:50 +1000 Subject: Move check function into its own file There is going to be a lot of overlap in the code for the quick and full checks that can be abstracted into their own functions. Also many other file checking functions will be needed for the full check. Put all these in a separate source file. Signed-off-by: Allan McRae --- src/pacman/check.h | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 src/pacman/check.h (limited to 'src/pacman/check.h') diff --git a/src/pacman/check.h b/src/pacman/check.h new file mode 100644 index 00000000..b107a7f5 --- /dev/null +++ b/src/pacman/check.h @@ -0,0 +1,29 @@ +/* + * check.h + * + * Copyright (c) 2012 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 _PM_CHECK_H +#define _PM_CHECK_H + +#include + +int check(alpm_pkg_t *pkg); + +#endif /* _PM_CHECK_H */ + +/* vim: set ts=2 sw=2 noet: */ -- cgit v1.2.3-24-g4f1b