diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2012-09-12 12:53:56 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2012-09-12 12:53:56 +0300 |
commit | 00b6d69a7a7a55f381043fc26f1ee86f15d26014 (patch) | |
tree | 6acf4feb35b3a4bed53a5f822b123a05be4bd6b8 /lib | |
parent | d10a9941326f7d397428c8ab0b4ba571cfc6c184 (diff) | |
download | librpm-tizen-00b6d69a7a7a55f381043fc26f1ee86f15d26014.tar.gz librpm-tizen-00b6d69a7a7a55f381043fc26f1ee86f15d26014.tar.bz2 librpm-tizen-00b6d69a7a7a55f381043fc26f1ee86f15d26014.zip |
Add getter methods for rpmds and rpmfi string pool handle
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rpmds.c | 4 | ||||
-rw-r--r-- | lib/rpmds.h | 7 | ||||
-rw-r--r-- | lib/rpmfi.c | 5 | ||||
-rw-r--r-- | lib/rpmfi.h | 7 |
4 files changed, 23 insertions, 0 deletions
diff --git a/lib/rpmds.c b/lib/rpmds.c index 6f7d674ad..b694e0fb3 100644 --- a/lib/rpmds.c +++ b/lib/rpmds.c @@ -968,3 +968,7 @@ int rpmdsRpmlib(rpmds * dsp, const void * tblp) return rc; } +rpmstrPool rpmdsPool(rpmds ds) +{ + return (ds != NULL) ? ds->pool : NULL; +} diff --git a/lib/rpmds.h b/lib/rpmds.h index d0ec29245..f04290c5b 100644 --- a/lib/rpmds.h +++ b/lib/rpmds.h @@ -348,6 +348,13 @@ int rpmdsNVRMatchesDep(const Header h, const rpmds req, int nopromote); */ int rpmdsRpmlib(rpmds * dsp, const void * tblp); +/** \ingroup rpmds + * Return dependency set string pool handle + * @param fi dependency set + * @return string pool handle (weak reference) + */ +rpmstrPool rpmdsPool(rpmds ds); + #ifdef __cplusplus } #endif diff --git a/lib/rpmfi.c b/lib/rpmfi.c index 81dff6a3b..9a3c9b809 100644 --- a/lib/rpmfi.c +++ b/lib/rpmfi.c @@ -1348,3 +1348,8 @@ int rpmfiConfigConflict(const rpmfi fi) { return rpmfiConfigConflictIndex(fi, fi ? fi->i : -1); } + +rpmstrPool rpmfiPool(rpmfi fi) +{ + return (fi != NULL) ? fi->pool : NULL; +} diff --git a/lib/rpmfi.h b/lib/rpmfi.h index 17a14bffa..2e3ac2466 100644 --- a/lib/rpmfi.h +++ b/lib/rpmfi.h @@ -461,6 +461,13 @@ rpmFileAction rpmfiDecideFate(const rpmfi ofi, rpmfi nfi, int skipMissing); */ int rpmfiConfigConflict(const rpmfi fi); +/** \ingroup rpmfi + * Return file info set string pool handle + * @param fi file info + * @return string pool handle (weak reference) + */ +rpmstrPool rpmfiPool(rpmfi fi); + #ifdef __cplusplus } #endif |