From: Panu Matilainen Date: Fri, 22 Oct 2010 08:31:36 +0000 (+0300) Subject: Switch rpmte API and internals to use rpmTagVal instead of rpmTag X-Git-Tag: rpm-4.9.0-beta1~159 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f955db901b1a84b39906281a7e35d3147ef3df69;p=platform%2Fupstream%2Frpm.git Switch rpmte API and internals to use rpmTagVal instead of rpmTag - Except for rpmteColorDS(), these can get called with intergral value instead of the actual enumeration --- diff --git a/lib/rpmte.c b/lib/rpmte.c index 976be60..9638831 100644 --- a/lib/rpmte.c +++ b/lib/rpmte.c @@ -513,7 +513,7 @@ fnpyKey rpmteKey(rpmte te) return (te != NULL ? te->key : NULL); } -rpmds rpmteDS(rpmte te, rpmTag tag) +rpmds rpmteDS(rpmte te, rpmTagVal tag) { if (te == NULL) return NULL; @@ -730,7 +730,7 @@ int rpmteFailed(rpmte te) return (te != NULL) ? te->failed : -1; } -static int rpmteHaveTransScript(rpmte te, rpmTag tag) +static int rpmteHaveTransScript(rpmte te, rpmTagVal tag) { int rc = 0; if (tag == RPMTAG_PRETRANS) { diff --git a/lib/rpmte.h b/lib/rpmte.h index b89c2ad..a66c1e9 100644 --- a/lib/rpmte.h +++ b/lib/rpmte.h @@ -230,7 +230,7 @@ int rpmteFailed(rpmte te); * @param tag dependency tag * @return dependency tag set */ -rpmds rpmteDS(rpmte te, rpmTag tag); +rpmds rpmteDS(rpmte te, rpmTagVal tag); /** \ingroup rpmte * Retrieve file info tag set from transaction element.