From 1f1e53c208cfa0e284511470acb679fe10c4d80c Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Mon, 22 Dec 2014 15:11:39 +0100 Subject: libalpm: Add accessors for the base field MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit adds the necessary accessor functions to get the PKGBASE of a package, forcing the desc file to be parsed. Signed-off-by: Johannes Löthberg Signed-off-by: Allan McRae --- lib/libalpm/alpm.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/libalpm/alpm.h') diff --git a/lib/libalpm/alpm.h b/lib/libalpm/alpm.h index e6ef3ae3..91b94615 100644 --- a/lib/libalpm/alpm.h +++ b/lib/libalpm/alpm.h @@ -1101,6 +1101,12 @@ int alpm_pkg_should_ignore(alpm_handle_t *handle, alpm_pkg_t *pkg); */ const char *alpm_pkg_get_filename(alpm_pkg_t *pkg); +/** Returns the package base name. + * @param pkg a pointer to package + * @return a reference to an internal string + */ +const char *alpm_pkg_get_base(alpm_pkg_t *pkg); + /** Returns the package name. * @param pkg a pointer to package * @return a reference to an internal string -- cgit v1.2.3-24-g4f1b