summaryrefslogtreecommitdiff
path: root/lib/rpmgi.h
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2010-03-19 19:25:23 +0200
committerPanu Matilainen <pmatilai@redhat.com>2010-03-19 19:25:23 +0200
commit606ceca33302751af140d8d9ebca598a6a06a39b (patch)
tree76cb8449a0c6abd8ea05474de34a673e48232278 /lib/rpmgi.h
parentaf659c87ce93b3d1506d5fdf6bece4891758eea4 (diff)
downloadrpm-606ceca33302751af140d8d9ebca598a6a06a39b.tar.gz
rpm-606ceca33302751af140d8d9ebca598a6a06a39b.tar.bz2
rpm-606ceca33302751af140d8d9ebca598a6a06a39b.zip
Return headers from rpmgiNext() directly
Diffstat (limited to 'lib/rpmgi.h')
-rw-r--r--lib/rpmgi.h12
1 files changed, 2 insertions, 10 deletions
diff --git a/lib/rpmgi.h b/lib/rpmgi.h
index 079109f08..79abbe621 100644
--- a/lib/rpmgi.h
+++ b/lib/rpmgi.h
@@ -47,18 +47,10 @@ rpmgi rpmgiNew(rpmts ts, rpmgiFlags flags, ARGV_const_t argv);
/** \ingroup rpmgi
* Perform next iteration step.
* @param gi generalized iterator
- * @returns RPMRC_OK on success, RPMRC_NOTFOUND on EOI
+ * @returns next header, NULL on end of iteration
*/
RPM_GNUC_INTERNAL
-rpmRC rpmgiNext(rpmgi gi);
-
-/** \ingroup rpmgi
- * Return current iteration header.
- * @param gi generalized iterator
- * @returns header
- */
-RPM_GNUC_INTERNAL
-Header rpmgiHeader(rpmgi gi);
+Header rpmgiNext(rpmgi gi);
/** \ingroup rpmgi
* Return number of errors (file not found etc) encountered during iteration