Lines Matching refs:tag
76 uint32_t tag; /* 4 byte tag */ member
127 rpm_index *tag = &tags[idx]; in rpm_gettags() local
128 tag->tag = ntohl(tag->tag); in rpm_gettags()
129 tag->type = ntohl(tag->type); in rpm_gettags()
130 tag->count = ntohl(tag->count); in rpm_gettags()
131 tag->offset = storepos + ntohl(tag->offset); in rpm_gettags()
133 tag->tag -= 743; in rpm_gettags()
159 int *tag = (int *)key; in bsearch_rpmtag() local
161 return (*tag - tmp->tag); in bsearch_rpmtag()
164 static char *rpm_getstr(int tag, int itemindex) in rpm_getstr() argument
167 found = bsearch(&tag, G.mytags, G.tagcount, sizeof(G.mytags[0]), bsearch_rpmtag); in rpm_getstr()
182 static char *rpm_getstr0(int tag) in rpm_getstr0() argument
184 return rpm_getstr(tag, 0); in rpm_getstr0()
189 static int rpm_getint(int tag, int itemindex) in rpm_getint() argument
196 found = bsearch(&tag, G.mytags, G.tagcount, sizeof(G.mytags[0]), bsearch_rpmtag); in rpm_getint()
216 static int rpm_getcount(int tag) in rpm_getcount() argument
219 found = bsearch(&tag, G.mytags, G.tagcount, sizeof(G.mytags[0]), bsearch_rpmtag); in rpm_getcount()
270 rpm_index *tag = &G.mytags[i];
271 if (tag->type == RPM_STRING_TYPE
272 || tag->type == RPM_I18NSTRING_TYPE
273 || tag->type == RPM_STRING_ARRAY_TYPE
276 char *str = (char *) G.map + tag->offset;
279 i, tag->tag, tag->type, tag->offset, tag->count, str
281 for (n = 1; n < tag->count; n++) {