summaryrefslogtreecommitdiff
path: root/rpmio/rpmlog.h
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2001-02-17 17:53:21 +0000
committerjbj <devnull@localhost>2001-02-17 17:53:21 +0000
commit8f99e61fc799c32282fc93d5783e7fd4f84779c8 (patch)
tree4d1933e52f9c02ffaa8fa66b7282b2d662e34ef2 /rpmio/rpmlog.h
parente89f3d17910f91811bcb7a87378dc0f413ab6e66 (diff)
downloadrpm-8f99e61fc799c32282fc93d5783e7fd4f84779c8.tar.gz
rpm-8f99e61fc799c32282fc93d5783e7fd4f84779c8.tar.bz2
rpm-8f99e61fc799c32282fc93d5783e7fd4f84779c8.zip
Merge changes from rpm-4.0.2.
Add iterators and reverse flag so that erase transactions can run backwards. CVS patchset: 4556 CVS date: 2001/02/17 17:53:21
Diffstat (limited to 'rpmio/rpmlog.h')
-rw-r--r--rpmio/rpmlog.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/rpmio/rpmlog.h b/rpmio/rpmlog.h
index 36f55a0d3..bbf568e51 100644
--- a/rpmio/rpmlog.h
+++ b/rpmio/rpmlog.h
@@ -174,6 +174,15 @@ int rpmlogGetNrecs(void);
/*@observer@*/ const char * rpmlogMessage(void);
/**
+ * Return error code from last rpmError() message.
+ * @deprecated Perl-RPM needs, what's really needed is predictable, non-i18n
+ * encumbered, error text that can be retrieved through rpmlogMessage()
+ * and parsed IMHO.
+ * @return code from last message
+ */
+int rpmlogCode(void);
+
+/**
* Print all rpmError() messages.
* @param f file handle (NULL uses stderr)
*/
@@ -213,6 +222,13 @@ rpmlogCallback rpmlogSetCallback(rpmlogCallback cb);
rpmlogCallback rpmErrorSetCallback(rpmlogCallback cb);
/**
+ * Return error code from last rpmError() message.
+ * @deprecated Perl-RPM needs, use rpmlogCode() instead.
+ * @return code from last message
+ */
+int rpmErrorCode(void);
+
+/**
* Return text of last rpmError() message.
* @deprecated gnorpm needs, use rpmlogMessage() instead.
* @return text of last message