summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/alpm.h
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2013-10-16 04:23:11 +0200
committerAllan McRae <allan@archlinux.org>2013-10-31 07:20:02 +0100
commit23923200c3e34563c8124a1b098bc0866f4e92e5 (patch)
treeef9d697b9e0cd1e0d2bd1365cb5f844a8eea02d1 /lib/libalpm/alpm.h
parentd4ba5bdda6595db83babbac1c59fac129fcaff24 (diff)
downloadpacman-23923200c3e34563c8124a1b098bc0866f4e92e5.tar.gz
pacman-23923200c3e34563c8124a1b098bc0866f4e92e5.tar.xz
Expose alpm_pkg_should_ignore
This function is useful for frontends to annotate package upgrades that will be ignored. Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'lib/libalpm/alpm.h')
-rw-r--r--lib/libalpm/alpm.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/libalpm/alpm.h b/lib/libalpm/alpm.h
index 29b9f378..2c8c1e61 100644
--- a/lib/libalpm/alpm.h
+++ b/lib/libalpm/alpm.h
@@ -793,6 +793,15 @@ alpm_list_t *alpm_pkg_compute_requiredby(alpm_pkg_t *pkg);
*/
alpm_list_t *alpm_pkg_compute_optionalfor(alpm_pkg_t *pkg);
+/** Test if a package should be ignored.
+ * Checks if the package is ignored via IgnorePkg, or if the package is
+ * in a group ignored via IgnoreGroup.
+ * @param handle the context handle
+ * @param pkg the package to test
+ * @return 1 if the package should be ignored, 0 otherwise
+ */
+int alpm_pkg_should_ignore(alpm_handle_t *handle, alpm_pkg_t *pkg);
+
/** @name Package Property Accessors
* Any pointer returned by these functions points to internal structures
* allocated by libalpm. They should not be freed nor modified in any