summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/alpm.h
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2014-12-20 17:12:06 +0100
committerJohannes Löthberg <johannes@kyriasis.com>2014-12-20 17:17:22 +0100
commit17e743557815dd696d883a32c4e3791e7e4c5a90 (patch)
treef9a7eb49d2d990c0323af5eb8416afc6a2ad7b4e /lib/libalpm/alpm.h
parent8d4984cc648f72aad78833216400a23e9a25d708 (diff)
downloadpacman-pkgbase.tar.xz
libalpm: Add accessors for the base fieldpkgbase
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 <johannes@kyriasis.com>
Diffstat (limited to 'lib/libalpm/alpm.h')
-rw-r--r--lib/libalpm/alpm.h6
1 files changed, 6 insertions, 0 deletions
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