summaryrefslogtreecommitdiff
path: root/rpmio
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2007-12-07 11:43:06 +0200
committerPanu Matilainen <pmatilai@redhat.com>2007-12-07 11:43:06 +0200
commitca9ff17a4d21ec6ba78a56a0f1ddae7e8e16682e (patch)
tree75128eec8bb9dc048cbc681f572af27c6054b221 /rpmio
parente98903dbb10d860f9eb2b5b315aab4b1fa9b4152 (diff)
downloadrpm-ca9ff17a4d21ec6ba78a56a0f1ddae7e8e16682e.tar.gz
rpm-ca9ff17a4d21ec6ba78a56a0f1ddae7e8e16682e.tar.bz2
rpm-ca9ff17a4d21ec6ba78a56a0f1ddae7e8e16682e.zip
Make rpmLogRec opaque
Diffstat (limited to 'rpmio')
-rw-r--r--rpmio/rpmlog.c5
-rw-r--r--rpmio/rpmlog.h5
2 files changed, 6 insertions, 4 deletions
diff --git a/rpmio/rpmlog.c b/rpmio/rpmlog.c
index 7b2865dbc..bc8608fa3 100644
--- a/rpmio/rpmlog.c
+++ b/rpmio/rpmlog.c
@@ -10,6 +10,11 @@
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;
diff --git a/rpmio/rpmlog.h b/rpmio/rpmlog.h
index c45c350ba..e1281a78b 100644
--- a/rpmio/rpmlog.h
+++ b/rpmio/rpmlog.h
@@ -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.