Added CD-TEXT dump function.

This commit is contained in:
Svend Sorensen
2005-03-19 06:20:01 +00:00
parent e973893d2a
commit 5b34a8361e
4 changed files with 22 additions and 3 deletions

View File

@@ -151,3 +151,16 @@ const char *cdtext_get_key (int pti, int istrack)
return key;
}
void cdtext_dump (Cdtext *cdtext, int istrack)
{
int pti;
char *value = NULL;
for (pti = 0; PTI_END != pti; pti++) {
if (NULL != (value = cdtext_get(pti, cdtext))) {
printf("%s: ", cdtext_get_key(pti, istrack));
printf("%s\n", value);
}
}
}