summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/rpmds.c4
-rw-r--r--lib/rpmds.h7
-rw-r--r--lib/rpmfi.c5
-rw-r--r--lib/rpmfi.h7
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