From 0d17da2615efe3e7168000f57ddd285365dd7515 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Tue, 11 Sep 2012 13:53:24 +0300 Subject: Add an alternative rpmds constructor to allow shared pool usage - rpmdsNewPool() allows specifying shared/private pool, and rpmdsNew() is now just a wrapper to always call it with NULL (ie private) pool. --- lib/rpmds.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'lib/rpmds.h') diff --git a/lib/rpmds.h b/lib/rpmds.h index d096b672a..d0ec29245 100644 --- a/lib/rpmds.h +++ b/lib/rpmds.h @@ -98,6 +98,7 @@ rpmds rpmdsLink(rpmds ds); * @return NULL always */ rpmds rpmdsFree(rpmds ds); + /** \ingroup rpmds * Create and load a dependency set. * @param h header @@ -107,6 +108,16 @@ rpmds rpmdsFree(rpmds ds); */ rpmds rpmdsNew(Header h, rpmTagVal tagN, int flags); +/** \ingroup rpmds + * Create and load a dependency set. + * @param pool shared string pool (or NULL for private pool) + * @param h header + * @param tagN type of dependency + * @param flags unused + * @return new dependency set + */ +rpmds rpmdsNewPool(rpmstrPool pool, Header h, rpmTagVal tagN, int flags); + /** \ingroup rpmds * Return new formatted dependency string. * @param dspfx formatted dependency string prefix -- cgit v1.2.1