diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2012-09-11 13:53:24 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2012-09-11 13:53:24 +0300 |
commit | 0d17da2615efe3e7168000f57ddd285365dd7515 (patch) | |
tree | 476a4fe6e83e53d8403ed1a1e1da7f7c30949e6a /lib/rpmds.h | |
parent | 2d62f297bc07682f221cc8d4c893fa72d32e342b (diff) | |
download | rpm-0d17da2615efe3e7168000f57ddd285365dd7515.tar.gz |
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.
Diffstat (limited to 'lib/rpmds.h')
-rw-r--r-- | lib/rpmds.h | 11 |
1 files changed, 11 insertions, 0 deletions
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 @@ -108,6 +109,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 * @param ds dependency set |