summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/alpm.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/alpm.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/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 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.