summaryrefslogtreecommitdiff
path: root/lib/rpmtypes.h
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2008-01-30 11:55:06 +0200
committerPanu Matilainen <pmatilai@redhat.com>2008-01-30 11:55:06 +0200
commite97aefc89bdd10616a8bd0fce642a93148ab357a (patch)
treecb54d8e5170f986741cc3c13671d5a721d01fe95 /lib/rpmtypes.h
parent73ebfe9ad49e56230393ff2ffa818436b40fdedd (diff)
downloadlibrpm-tizen-e97aefc89bdd10616a8bd0fce642a93148ab357a.tar.gz
librpm-tizen-e97aefc89bdd10616a8bd0fce642a93148ab357a.tar.bz2
librpm-tizen-e97aefc89bdd10616a8bd0fce642a93148ab357a.zip
Move rpmRC definition to rpmtypes
- lot of places drag in rpmlib.h just for that...
Diffstat (limited to 'lib/rpmtypes.h')
-rw-r--r--lib/rpmtypes.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/rpmtypes.h b/lib/rpmtypes.h
index 53e74d020..1bb087eef 100644
--- a/lib/rpmtypes.h
+++ b/lib/rpmtypes.h
@@ -39,6 +39,17 @@ typedef struct rpmSpec_s * rpmSpec;
typedef const void * fnpyKey;
+/**
+ * Package read return codes.
+ */
+typedef enum rpmRC_e {
+ RPMRC_OK = 0, /*!< Generic success code */
+ RPMRC_NOTFOUND = 1, /*!< Generic not found code. */
+ RPMRC_FAIL = 2, /*!< Generic failure code. */
+ RPMRC_NOTTRUSTED = 3, /*!< Signature is OK, but key is not trusted. */
+ RPMRC_NOKEY = 4 /*!< Public key is unavailable. */
+} rpmRC;
+
#ifdef __cplusplus
}
#endif