From: Panu Matilainen Date: Fri, 7 Dec 2007 09:43:06 +0000 (+0200) Subject: Make rpmLogRec opaque X-Git-Tag: rpm-4.6.0-rc1~1305 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ca9ff17a4d21ec6ba78a56a0f1ddae7e8e16682e;p=platform%2Fupstream%2Frpm.git Make rpmLogRec opaque --- diff --git a/rpmio/rpmlog.c b/rpmio/rpmlog.c index 7b2865d..bc8608f 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 c45c350..e1281a7 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.