summaryrefslogtreecommitdiff
path: root/lib/rpmts_internal.h
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2022-10-11 08:55:45 +0300
committerPanu Matilainen <pmatilai@redhat.com>2022-10-20 14:01:21 +0300
commitc890b4482159215f12788fee40068a318532a7b3 (patch)
treeff3e3902791a128cfd96cad4c63a22685125214d /lib/rpmts_internal.h
parent89676fad73d0808588dca620344efa4d6b3889b4 (diff)
downloadrpm-c890b4482159215f12788fee40068a318532a7b3.tar.gz
Refactor db iterator locked to single rpmte to a common helper function
Two places doing the same thing, they also share all the bugs... No functional changes here.
Diffstat (limited to 'lib/rpmts_internal.h')
-rw-r--r--lib/rpmts_internal.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/rpmts_internal.h b/lib/rpmts_internal.h
index 6bd11a5fc..9c6fd4a93 100644
--- a/lib/rpmts_internal.h
+++ b/lib/rpmts_internal.h
@@ -116,6 +116,10 @@ RPM_GNUC_INTERNAL
rpmdbMatchIterator rpmtsPrunedIterator(rpmts ts, rpmDbiTagVal tag,
const char * key, int prune);
+/* Return rpmdb iterator locked to a single rpmte */
+RPM_GNUC_INTERNAL
+rpmdbMatchIterator rpmtsTeIterator(rpmts ts, rpmte te, int prune);
+
RPM_GNUC_INTERNAL
rpmal rpmtsCreateAl(rpmts ts, rpmElementTypes types);