Mercurial > audlegacy-plugins
changeset 2190:36b9f3e6cbcf
demac: added stub for update_song_tuple() for debugging purposes
author | Eugene Zagidullin <e.asphyx@gmail.com> |
---|---|
date | Tue, 27 Nov 2007 18:03:20 +0300 |
parents | 549009824758 |
children | 329267b09658 c19a820de01e |
files | src/demac/plugin.c |
diffstat | 1 files changed, 14 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/demac/plugin.c Sun Nov 25 23:45:10 2007 +0300 +++ b/src/demac/plugin.c Tue Nov 27 18:03:20 2007 +0300 @@ -385,6 +385,19 @@ } } +static gboolean demac_update_song_tuple(Tuple *tuple, VFSFile *vfd) { + fprintf(stderr, "demac_update_song_tuple(): stub\n"); + fprintf(stderr, "Title: %s\n", aud_tuple_get_string(tuple, FIELD_TITLE, NULL)); + fprintf(stderr, "Artist: %s\n", aud_tuple_get_string(tuple, FIELD_ARTIST, NULL)); + fprintf(stderr, "Album: %s\n", aud_tuple_get_string(tuple, FIELD_ALBUM, NULL)); + fprintf(stderr, "Comment: %s\n", aud_tuple_get_string(tuple, FIELD_COMMENT, NULL)); + fprintf(stderr, "Genre: %s\n", aud_tuple_get_string(tuple, FIELD_GENRE, NULL)); + fprintf(stderr, "Year: %d\n", aud_tuple_get_int(tuple, FIELD_YEAR, NULL)); + fprintf(stderr, "Track: %d\n", aud_tuple_get_int(tuple, FIELD_TRACK_NUMBER, NULL)); + + return TRUE; +} + static gchar *fmts[] = { "ape", NULL }; static InputPlugin demac_ip = { @@ -401,6 +414,7 @@ .vfs_extensions = fmts, .mseek = demac_mseek, .probe_for_tuple = demac_probe_for_tuple, + .update_song_tuple = demac_update_song_tuple, }; InputPlugin *demac_iplist[] = { &demac_ip, NULL };