Eliminate rpmps and rpmProblem structure details from the API
authorPanu Matilainen <pmatilai@redhat.com>
Fri, 19 Oct 2007 09:30:26 +0000 (12:30 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Fri, 19 Oct 2007 09:30:26 +0000 (12:30 +0300)
lib/rpmps.c
lib/rpmps.h

index fce8b9d..be72c88 100644 (file)
 #include "misc.h"
 #include "debug.h"
 
+/**
+ */
+struct rpmProblem_s {
+    char * pkgNEVR;
+    char * altNEVR;
+    fnpyKey key;
+    rpmProblemType type;
+    int ignoreProblem;
+    char * str1;
+    unsigned long ulong1;
+};
+
+/**
+ */
+struct rpmps_s {
+    int numProblems;           /*!< Current probs array size. */
+    int numProblemsAlloced;    /*!< Allocated probs array size. */
+    rpmProblem probs;          /*!< Array of specific problems. */
+    int nrefs;                 /*!< Reference count. */
+};
+
+struct rpmpsi_s {
+    size_t ix;
+    rpmps ps;
+};
+
 
 int _rpmps_debug = 0;
 
index 350daa3..04464a8 100644 (file)
@@ -44,32 +44,6 @@ typedef enum rpmProblemType_e {
  } rpmProblemType;
 
 /**
- */
-struct rpmProblem_s {
-    char * pkgNEVR;
-    char * altNEVR;
-    fnpyKey key;
-    rpmProblemType type;
-    int ignoreProblem;
-    char * str1;
-    unsigned long ulong1;
-};
-
-/**
- */
-struct rpmps_s {
-    int numProblems;           /*!< Current probs array size. */
-    int numProblemsAlloced;    /*!< Allocated probs array size. */
-    rpmProblem probs;          /*!< Array of specific problems. */
-    int nrefs;                 /*!< Reference count. */
-};
-
-struct rpmpsi_s {
-    size_t ix;
-    rpmps ps;
-};
-
-/**
  * Return package NEVR
  * @param prob         rpm problem
  * @return             package NEVR