Make rpmLogRec opaque
authorPanu Matilainen <pmatilai@redhat.com>
Fri, 7 Dec 2007 09:43:06 +0000 (11:43 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Fri, 7 Dec 2007 09:43:06 +0000 (11:43 +0200)
rpmio/rpmlog.c
rpmio/rpmlog.h

index 7b2865d..bc8608f 100644 (file)
 static int nrecs = 0;
 static rpmlogRec recs = NULL;
 
+struct rpmlogRec_s {
+    int                code;           /* unused */
+    const char * message;      /* log message string */
+};
+
 int rpmlogGetNrecs(void)
 {
     return nrecs;
index c45c350..e1281a7 100644 (file)
@@ -156,10 +156,7 @@ typedef void (*rpmlogCallback) (void);
 
 /** \ingroup rpmlog
  */
-typedef struct rpmlogRec_s {
-    int                code;
-    const char * message;
-} * rpmlogRec;
+typedef struct rpmlogRec_s * rpmlogRec;
 
 /** \ingroup rpmlog
  * Return number of rpmError() ressages.