summaryrefslogtreecommitdiff
path: root/lib/rpmgi.h
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2007-12-05 15:56:18 +0200
committerPanu Matilainen <pmatilai@redhat.com>2007-12-05 15:56:18 +0200
commit9f34c3244316ee239739229bd3d1c89053d08179 (patch)
tree9911bc52455909ead91572dd72aeac38cc2b1fa8 /lib/rpmgi.h
parentc54001150fa2c1408759c81998f8a00e2a96c5c4 (diff)
downloadrpm-9f34c3244316ee239739229bd3d1c89053d08179.tar.gz
rpm-9f34c3244316ee239739229bd3d1c89053d08179.tar.bz2
rpm-9f34c3244316ee239739229bd3d1c89053d08179.zip
Fix query return codes (rhbz#244236)
- count + skip over errors in rpmgiNext() instead of stopping iteration - add rpmgiNumErrors() for retrieving errors, use it in query
Diffstat (limited to 'lib/rpmgi.h')
-rw-r--r--lib/rpmgi.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/lib/rpmgi.h b/lib/rpmgi.h
index 4b4cf4252..0153fda52 100644
--- a/lib/rpmgi.h
+++ b/lib/rpmgi.h
@@ -111,13 +111,26 @@ rpmts rpmgiTs(rpmgi gi);
* @param argv arg list
* @param ftsOpts fts(3) flags
* @param flags iterator flags
- * @returns RPMRC_OK on success
+ * @return RPMRC_OK on success
*/
rpmRC rpmgiSetArgs(rpmgi gi, ARGV_t argv,
int ftsOpts, rpmgiFlags flags);
+
+/** \ingroup rpmgi
+ * Retrieve iterator flags
+ * @param gi generalized iterator
+ * @return iterator flags
+ */
rpmgiFlags rpmgiGetFlags(rpmgi gi);
+/** \ingroup rpmgi
+ * Return number of errors (file not found etc) encountered during iteration
+ * @param gi generalized iterator
+ * @return number of errors
+ */
+int rpmgiNumErrors(rpmgi gi);
+
#ifdef __cplusplus
}
#endif