summaryrefslogtreecommitdiff
path: root/lib/rpmds.h
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2012-09-13 12:46:41 +0300
committerPanu Matilainen <pmatilai@redhat.com>2012-09-13 13:03:38 +0300
commit17d3db4e3a36861ffc50d7232e92d39834079931 (patch)
treee5891fc5cd9729d6376f12069a3f970bfefeb9d2 /lib/rpmds.h
parent26ae2e4390f4e03d70ee3b267a0735f1f2b1ef10 (diff)
downloadlibrpm-tizen-17d3db4e3a36861ffc50d7232e92d39834079931.tar.gz
librpm-tizen-17d3db4e3a36861ffc50d7232e92d39834079931.tar.bz2
librpm-tizen-17d3db4e3a36861ffc50d7232e92d39834079931.zip
Unify the three rpmdsFooMatchesDep() functions into one
- These all do more or less the same thing, easily handled with a common function that takes a couple of more extra parameters. The old variants become just wrappers to call the pool-aware rpmdsMatches() with suitable arguments.
Diffstat (limited to 'lib/rpmds.h')
-rw-r--r--lib/rpmds.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/rpmds.h b/lib/rpmds.h
index 9127e51bd..750fe37ab 100644
--- a/lib/rpmds.h
+++ b/lib/rpmds.h
@@ -377,6 +377,18 @@ int rpmdsMatchesDep (const Header h, int ix, const rpmds req, int nopromote);
*/
int rpmdsNVRMatchesDep(const Header h, const rpmds req, int nopromote);
+/** \ingroup rpmds
+ * Swiss army knife dependency matching function.
+ * @param pool string pool (or NULL for private pool)
+ * @param h header
+ * @param prix index to provides (or -1 or any)
+ * @param req dependency set
+ * @param selfevr only look at package EVR?
+ * @param nopromote dont promote epoch in comparison?
+ * @return 1 if dependency overlaps, 0 otherwise
+ */
+int rpmdsMatches(rpmstrPool pool, Header h, int prix,
+ rpmds req, int selfevr, int nopromote);
/**
* Load rpmlib provides into a dependency set.
* @retval *dsp (loaded) depedency set