From 4e263f24c6ed1cc710b7873b9ea37534117247ea Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Mon, 15 Sep 2014 18:06:47 +0200 Subject: libalpm: export alpm_splitdep as alpm_dep_from_depstring and alpm_dep_free Signed-off-by: Florian Pritz --- lib/libalpm/alpm.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'lib/libalpm/alpm.h') diff --git a/lib/libalpm/alpm.h b/lib/libalpm/alpm.h index 1cfd4f5b..888b6a00 100644 --- a/lib/libalpm/alpm.h +++ b/lib/libalpm/alpm.h @@ -1517,6 +1517,17 @@ alpm_list_t *alpm_checkconflicts(alpm_handle_t *handle, alpm_list_t *pkglist); */ char *alpm_dep_compute_string(const alpm_depend_t *dep); +/** Return a newly allocated dependency information parsed from a string + * @param depstring a formatted string, e.g. "glibc=2.12" + * @return a dependency info structure + */ +alpm_depend_t *alpm_dep_from_string(const char *depstring); + +/** Free a dependency info structure + * @param dep struct to free + */ +void alpm_dep_free(alpm_depend_t *dep); + /** @} */ /** @} */ -- cgit v1.2.3-24-g4f1b