summaryrefslogtreecommitdiffstats
path: root/src/pacman/check.h
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2012-05-04 04:07:50 +0200
committerAllan McRae <allan@archlinux.org>2012-12-14 04:45:12 +0100
commit18ddf90ff41a9de6611400065b18f6de8dc35b01 (patch)
treec51ae8a6ba27140ac876b1ba67ca01f621c202db /src/pacman/check.h
parent097d5a478b32aece93013580fdb06cacbaf0e9a0 (diff)
downloadpacman-18ddf90ff41a9de6611400065b18f6de8dc35b01.tar.gz
pacman-18ddf90ff41a9de6611400065b18f6de8dc35b01.tar.xz
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 <allan@archlinux.org>
Diffstat (limited to 'src/pacman/check.h')
-rw-r--r--src/pacman/check.h29
1 files changed, 29 insertions, 0 deletions
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 <pacman-dev@archlinux.org>
+ *
+ * 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 <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef _PM_CHECK_H
+#define _PM_CHECK_H
+
+#include <alpm.h>
+
+int check(alpm_pkg_t *pkg);
+
+#endif /* _PM_CHECK_H */
+
+/* vim: set ts=2 sw=2 noet: */