From aba1c4cac64582771f76fc6e681bc1066af5fcf9 Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Mon, 10 Feb 2020 21:59:07 +1000 Subject: 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 --- lib/libalpm/package.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/libalpm/package.h') 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; -- cgit v1.2.3-24-g4f1b