# HG changeset patch # User Eugene Zagidullin # Date 1196175800 -10800 # Node ID 36b9f3e6cbcff7cc357b7aa2c9295ad2b034021b # Parent 5490098247580c9d5af5f09facfd3cec2f13e4bf demac: added stub for update_song_tuple() for debugging purposes diff -r 549009824758 -r 36b9f3e6cbcf src/demac/plugin.c --- 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 };