summaryrefslogtreecommitdiff
path: root/lib/tagname.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2010-09-21 12:27:27 +0300
committerPanu Matilainen <pmatilai@redhat.com>2010-09-21 12:27:27 +0300
commit6c02709c1d1de915a8faa67f0b0156757b5bbb3d (patch)
tree5b540399fafed1529dd2aec4e034a41a4cee6b6c /lib/tagname.c
parent6402ce41b86eab1f2c1b2e09b24982e5d559b171 (diff)
downloadlibrpm-tizen-6c02709c1d1de915a8faa67f0b0156757b5bbb3d.tar.gz
librpm-tizen-6c02709c1d1de915a8faa67f0b0156757b5bbb3d.tar.bz2
librpm-tizen-6c02709c1d1de915a8faa67f0b0156757b5bbb3d.zip
Split tag type and return type to separate fields in tag table
- rpmTagType is a pure enum really, avoid mixing it up unnecessarily
Diffstat (limited to 'lib/tagname.c')
-rw-r--r--lib/tagname.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/tagname.c b/lib/tagname.c
index 5ea62b58d..49955437e 100644
--- a/lib/tagname.c
+++ b/lib/tagname.c
@@ -17,6 +17,7 @@ struct headerTagTableEntry_s {
const char * shortname; /*!< "Human readable" short name. */
rpmTag val; /*!< Tag numeric value. */
rpmTagType type; /*!< Tag type. */
+ rpmTagReturnType retype; /*!< Tag return type. */
int extension; /*!< Extension or "real" tag */
};
@@ -201,7 +202,8 @@ static rpmTagType _tagType(rpmTag tag)
i--;
}
t = _rpmTags.byValue[i];
- return t->type;
+ /* XXX this is dumb */
+ return (rpmTagType)(t->type | t->retype);
}
}
break;