summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/package.h
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2020-02-10 12:59:07 +0100
committerAllan McRae <allan@archlinux.org>2020-03-09 08:05:24 +0100
commitaba1c4cac64582771f76fc6e681bc1066af5fcf9 (patch)
tree2de3f4e7bcc95d7f07b447833bfeb45fa43a3516 /lib/libalpm/package.h
parenta40e652359ed8b2c5dec9d8efbead8a8afbfdf8d (diff)
downloadpacman-aba1c4cac64582771f76fc6e681bc1066af5fcf9.tar.gz
pacman-aba1c4cac64582771f76fc6e681bc1066af5fcf9.tar.xz
Store and read name of alternatives
Add the names of supplied alternatives to the .PKGINFO file. Read and store these values in libalpm. This information is currently not used anywhere. Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'lib/libalpm/package.h')
-rw-r--r--lib/libalpm/package.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libalpm/package.h b/lib/libalpm/package.h
index c37bd11e..26c605b8 100644
--- a/lib/libalpm/package.h
+++ b/lib/libalpm/package.h
@@ -66,6 +66,7 @@ struct pkg_operations {
alpm_list_t *(*get_replaces) (alpm_pkg_t *);
alpm_filelist_t *(*get_files) (alpm_pkg_t *);
alpm_list_t *(*get_backup) (alpm_pkg_t *);
+ alpm_list_t *(*get_alternatives) (alpm_pkg_t *);
void *(*changelog_open) (alpm_pkg_t *);
size_t (*changelog_read) (void *, size_t, const alpm_pkg_t *, void *);
@@ -120,6 +121,7 @@ struct __alpm_pkg_t {
alpm_list_t *provides;
alpm_list_t *removes; /* in transaction targets only */
alpm_pkg_t *oldpkg; /* in transaction targets only */
+ alpm_list_t *alternatives;
struct pkg_operations *ops;