Switch rpmte API and internals to use rpmTagVal instead of rpmTag
authorPanu Matilainen <pmatilai@redhat.com>
Fri, 22 Oct 2010 08:31:36 +0000 (11:31 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Fri, 22 Oct 2010 08:31:36 +0000 (11:31 +0300)
- Except for rpmteColorDS(), these can get called with intergral
  value instead of the actual enumeration

lib/rpmte.c
lib/rpmte.h

index 976be60..9638831 100644 (file)
@@ -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) {
index b89c2ad..a66c1e9 100644 (file)
@@ -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.