index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Allan McRae <allan@archlinux.org> | 2012-08-12 16:28:42 +1000 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2012-12-14 12:35:34 +1000 |
commit | d0e5cd2c7faef6159ab353714fa5227739994b2f (patch) | |
tree | 290fa301adf0daa733f7ec298593a456b3c01e61 /lib/libalpm/alpm.h | |
parent | 9a24f1ffc50deb7d979430ac85475b10b4a98d28 (diff) |
-rw-r--r-- | lib/libalpm/alpm.h | 8 |
diff --git a/lib/libalpm/alpm.h b/lib/libalpm/alpm.h index bf726fc2..8d6edb81 100644 --- a/lib/libalpm/alpm.h +++ b/lib/libalpm/alpm.h @@ -712,6 +712,14 @@ int alpm_pkg_vercmp(const char *a, const char *b); */ alpm_list_t *alpm_pkg_compute_requiredby(alpm_pkg_t *pkg); +/** Computes the list of packages optionally requiring a given package. + * The return value of this function is a newly allocated + * list of package names (char*), it should be freed by the caller. + * @param pkg a package + * @return the list of packages optionally requiring pkg + */ +alpm_list_t *alpm_pkg_compute_optionalfor(alpm_pkg_t *pkg); + /** @name Package Property Accessors * Any pointer returned by these functions points to internal structures * allocated by libalpm. They should not be freed nor modified in any |