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/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 c2a069ad..6203f765 100644 --- a/lib/libalpm/alpm.h +++ b/lib/libalpm/alpm.h @@ -1358,6 +1358,12 @@ alpm_filelist_t *alpm_pkg_get_files(alpm_pkg_t *pkg); */ alpm_list_t *alpm_pkg_get_backup(alpm_pkg_t *pkg); +/** Returns the list of alternatives provided by the package + * @param pkg a pointer to package + * @return a reference to a list of char* objects + */ +alpm_list_t *alpm_pkg_get_alternatives(alpm_pkg_t *pkg); + /** Returns the database containing pkg. * Returns a pointer to the alpm_db_t structure the package is * originating from, or NULL if the package was loaded from a file. -- cgit v1.2.3-24-g4f1b