Lines Matching refs:tags
61 struct filetag *tags;
159 struct filetag *tags;
161 tags = realloc(file->tags, (file->ntags + 1) * sizeof(*tags));
162 if (tags == 0)
165 file->tags = tags;
166 file->tags[file->ntags++] = *filetag;
168 /* sort tags by location */
171 qsort(file->tags, file->ntags, sizeof(file->tags[0]), tag_compare);
186 file->tags[index] = file->tags[index + 1];
217 begin2 = file->tags[i].location;
218 end2 = begin2 + file->tags[i].length;
221 return file->tags[i].tag; /* duplicate */
249 * DESCRIPTION: search for tags in a file
297 /* locate tags indicated by SEEK frames */
334 if (file->tags[0].location == 0)
335 id3_tag_setlength(file->primary, file->tags[0].length);
363 tag = file->tags[i].tag;
370 if (file->tags)
371 free(file->tags);
378 * DESCRIPTION: create a new file structure and load tags
397 file->tags = 0;
405 /* load tags from the file */
482 * DESCRIPTION: close a file and delete its associated tags
582 file->tags[0].length == length) {
585 if (fseek(file->iofile, file->tags[0].location, SEEK_SET) == -1 ||
650 /* write tags */
658 /* update file tags array? ... */