diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2007-10-19 12:27:41 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2007-10-19 12:27:41 +0300 |
commit | 494c56e94ae9bbdcec46b746dc6837de42c890b7 (patch) | |
tree | 68471e082161db711cc20e5b28d401544776f615 /lib/rpmps.c | |
parent | dffede23507ece9740de2523171f021b6772fa4f (diff) | |
download | rpm-494c56e94ae9bbdcec46b746dc6837de42c890b7.tar.gz |
Add methods for accessing rpmProblem data
Diffstat (limited to 'lib/rpmps.c')
-rw-r--r-- | lib/rpmps.c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/lib/rpmps.c b/lib/rpmps.c index 0908324d0..fce8b9d55 100644 --- a/lib/rpmps.c +++ b/lib/rpmps.c @@ -216,6 +216,36 @@ static inline int snprintf(char * buf, int nb, const char * fmt, ...) } #endif +const char * rpmProblemGetPkgNEVR(const rpmProblem p) +{ + return (p->pkgNEVR); +} + +const char * rpmProblemGetAltNEVR(const rpmProblem p) +{ + return (p->altNEVR); +} + +fnpyKey rpmProblemGetKey(const rpmProblem p) +{ + return (p->key); +} + +rpmProblemType rpmProblemGetType(const rpmProblem p) +{ + return (p->type); +} + +const char * rpmProblemGetStr(const rpmProblem p) +{ + return (p->str1); +} + +unsigned long rpmProblemGetLong(const rpmProblem p) +{ + return (p->ulong1); +} + const char * rpmProblemString(const rpmProblem prob) { const char * pkgNEVR = (prob->pkgNEVR ? prob->pkgNEVR : "?pkgNEVR?"); |