summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/deps.h
diff options
context:
space:
mode:
authorNagy Gabor <ngaba@bibl.u-szeged.hu>2008-07-04 15:39:26 +0200
committerDan McGee <dan@archlinux.org>2008-07-08 04:04:37 +0200
commit616b5967b8581d51f9e08dd4178c921eee617d4b (patch)
tree5c8fc3a02831f49353f076a3acd2fb365e6bba9a /lib/libalpm/deps.h
parentf7199f36ba5a2b42da51cd227855caaa43c51d58 (diff)
downloadpacman-616b5967b8581d51f9e08dd4178c921eee617d4b.tar.gz
pacman-616b5967b8581d51f9e08dd4178c921eee617d4b.tar.xz
New _alpm_find_dep_satisfier function
This function finds the first satisfier package in a pkglist. Using it instead of _alpm_find_dep_satisfiers eliminates some memleaks and it is faster. (_alpm_find_dep_satisfiers and _alpm_find_pkg_satisfiers will be removed soon.) Signed-off-by: Nagy Gabor <ngaba@bibl.u-szeged.hu> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/deps.h')
-rw-r--r--lib/libalpm/deps.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libalpm/deps.h b/lib/libalpm/deps.h
index 7bf178d3..1e539b74 100644
--- a/lib/libalpm/deps.h
+++ b/lib/libalpm/deps.h
@@ -52,6 +52,7 @@ int _alpm_resolvedeps(pmdb_t *local, alpm_list_t *dbs_sync, pmpkg_t *syncpkg,
**data);
int _alpm_dep_edge(pmpkg_t *pkg1, pmpkg_t *pkg2);
pmdepend_t *_alpm_splitdep(const char *depstring);
+pmpkg_t *_alpm_find_dep_satisfier(alpm_list_t *pkgs, pmdepend_t *dep);
alpm_list_t *_alpm_find_dep_satisfiers(alpm_list_t *pkgs, pmdepend_t *dep);
#endif /* _ALPM_DEPS_H */