summaryrefslogtreecommitdiff
path: root/lib/libalpm/package.h
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2014-12-22 15:11:39 +0100
committerAllan McRae <allan@archlinux.org>2014-12-24 11:19:30 +1000
commit1f1e53c208cfa0e284511470acb679fe10c4d80c (patch)
treecfb91aa4ac252813f46e2b5db821a41e523c6c7d /lib/libalpm/package.h
parent9f527d2de453b542293e24d85ee894fa6452259a (diff)
downloadpacman-1f1e53c208cfa0e284511470acb679fe10c4d80c.tar.xz
libalpm: Add accessors for the base field
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> Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'lib/libalpm/package.h')
-rw-r--r--lib/libalpm/package.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libalpm/package.h b/lib/libalpm/package.h
index 98c1e6d6..5ab9b207 100644
--- a/lib/libalpm/package.h
+++ b/lib/libalpm/package.h
@@ -43,6 +43,7 @@
* defined default_pkg_ops struct to work just fine for their needs.
*/
struct pkg_operations {
+ const char *(*get_base) (alpm_pkg_t *);
const char *(*get_desc) (alpm_pkg_t *);
const char *(*get_url) (alpm_pkg_t *);
alpm_time_t (*get_builddate) (alpm_pkg_t *);