diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2007-12-07 11:43:06 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2007-12-07 11:43:06 +0200 |
commit | ca9ff17a4d21ec6ba78a56a0f1ddae7e8e16682e (patch) | |
tree | 75128eec8bb9dc048cbc681f572af27c6054b221 /rpmio | |
parent | e98903dbb10d860f9eb2b5b315aab4b1fa9b4152 (diff) | |
download | rpm-ca9ff17a4d21ec6ba78a56a0f1ddae7e8e16682e.tar.gz rpm-ca9ff17a4d21ec6ba78a56a0f1ddae7e8e16682e.tar.bz2 rpm-ca9ff17a4d21ec6ba78a56a0f1ddae7e8e16682e.zip |
Make rpmLogRec opaque
Diffstat (limited to 'rpmio')
-rw-r--r-- | rpmio/rpmlog.c | 5 | ||||
-rw-r--r-- | rpmio/rpmlog.h | 5 |
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. |