summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2010-10-22 11:31:36 +0300
committerPanu Matilainen <pmatilai@redhat.com>2010-10-22 11:31:36 +0300
commitf955db901b1a84b39906281a7e35d3147ef3df69 (patch)
tree0b249c74612978f861c8a5ef2ac627b5df69faa4
parent73c079735a2af231ff63e7150fdee3b33bacbae6 (diff)
downloadlibrpm-tizen-f955db901b1a84b39906281a7e35d3147ef3df69.tar.gz
librpm-tizen-f955db901b1a84b39906281a7e35d3147ef3df69.tar.bz2
librpm-tizen-f955db901b1a84b39906281a7e35d3147ef3df69.zip
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
-rw-r--r--lib/rpmte.c4
-rw-r--r--lib/rpmte.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/rpmte.c b/lib/rpmte.c
index 976be60e1..9638831c1 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 b89c2ad1c..a66c1e91f 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.