Move rpmRC definition to rpmtypes
authorPanu Matilainen <pmatilai@redhat.com>
Wed, 30 Jan 2008 09:55:06 +0000 (11:55 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Wed, 30 Jan 2008 09:55:06 +0000 (11:55 +0200)
- lot of places drag in rpmlib.h just for that...

lib/rpmlib.h
lib/rpmtypes.h

index 11a4575..c5690e3 100644 (file)
 extern "C" {
 #endif
 
-/**
- * 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;
-
 extern struct rpmMacroContext_s * rpmGlobalMacroContext;
 
 extern struct rpmMacroContext_s * rpmCLIMacroContext;
index 53e74d0..1bb087e 100644 (file)
@@ -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