summaryrefslogtreecommitdiff
path: root/lib/libalpm/alpm.h
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2014-09-15 18:06:47 +0200
committerAllan McRae <allan@archlinux.org>2014-09-30 22:20:53 +1000
commit4e263f24c6ed1cc710b7873b9ea37534117247ea (patch)
treeafdf105036af29f6830f2bcbe1b9f2308f85f2d8 /lib/libalpm/alpm.h
parent13c9745302b11dcee7b1b894d95789a2caf11c9d (diff)
downloadpacman-4e263f24c6ed1cc710b7873b9ea37534117247ea.tar.xz
libalpm: export alpm_splitdep as alpm_dep_from_depstring and alpm_dep_free
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'lib/libalpm/alpm.h')
-rw-r--r--lib/libalpm/alpm.h11
1 files changed, 11 insertions, 0 deletions
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);
+
/** @} */
/** @} */