From 5e68e9d4514b5e3e50b25e4242be0a4d27da4fdc Mon Sep 17 00:00:00 2001 From: Andrew Fyfe Date: Fri, 29 Jun 2007 10:41:48 +0100 Subject: Cleanup of pacman_deptest() Clean up some left over code from http://projects.archlinux.org/git/gitweb.cgi?p=pacman.git;a=commitdiff;h=7653bb93997f52848b54ab80868cd6da52808a75 Signed-off-by: Andrew Fyfe Signed-off-by: Dan McGee --- lib/libalpm/alpm.h | 1 + lib/libalpm/deps.c | 12 ++++++++++++ 2 files changed, 13 insertions(+) (limited to 'lib/libalpm') diff --git a/lib/libalpm/alpm.h b/lib/libalpm/alpm.h index a7fcb5c2..268437ba 100644 --- a/lib/libalpm/alpm.h +++ b/lib/libalpm/alpm.h @@ -357,6 +357,7 @@ pmdeptype_t alpm_dep_get_type(pmdepmissing_t *miss); pmdepmod_t alpm_dep_get_mod(pmdepmissing_t *miss); const char *alpm_dep_get_name(pmdepmissing_t *miss); const char *alpm_dep_get_version(pmdepmissing_t *miss); +const char *alpm_depend_get_name(pmdepend_t *dep); /* * File conflicts diff --git a/lib/libalpm/deps.c b/lib/libalpm/deps.c index 524136bd..794fbdbc 100644 --- a/lib/libalpm/deps.c +++ b/lib/libalpm/deps.c @@ -766,4 +766,16 @@ const char SYMEXPORT *alpm_dep_get_version(pmdepmissing_t *miss) return miss->depend.version; } + +const char SYMEXPORT *alpm_depend_get_name(pmdepend_t *dep) +{ + ALPM_LOG_FUNC; + + /* Sanity checks */ + ASSERT(handle != NULL, return(NULL)); + ASSERT(dep != NULL, return(NULL)); + + return dep->name; +} + /* vim: set ts=2 sw=2 noet: */ -- cgit v1.2.3-70-g09d2