mirror of
https://github.com/aaru-dps/libaaruformat.git
synced 2025-12-16 19:24:40 +00:00
Use uthash for media tags handling.
This commit is contained in:
11
tool/info.c
11
tool/info.c
@@ -31,6 +31,8 @@ int info(char* path)
|
||||
char* strBuffer;
|
||||
UErrorCode u_error_code;
|
||||
uint i, j;
|
||||
mediaTagEntry* mediaTag;
|
||||
mediaTagEntry* tmpMediaTag;
|
||||
|
||||
ctx = aaruf_open(path);
|
||||
|
||||
@@ -532,6 +534,15 @@ int info(char* path)
|
||||
|
||||
if(ctx->checksums.hasSpamSum) printf("SpamSum: %s\n", ctx->checksums.spamsum);
|
||||
|
||||
if(ctx->mediaTags != NULL)
|
||||
{
|
||||
printf("Media tags:\n");
|
||||
HASH_ITER(hh, ctx->mediaTags, mediaTag, tmpMediaTag)
|
||||
{
|
||||
printf("\tType %d is %d bytes long.\n", mediaTag->type, mediaTag->length);
|
||||
}
|
||||
}
|
||||
|
||||
aaruf_close(ctx);
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user