comparison src/demac/plugin.c @ 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
comparison
equal deleted inserted replaced
2189:549009824758 2190:36b9f3e6cbcf
383 g_signal_connect(G_OBJECT(about_window), "destroy", 383 g_signal_connect(G_OBJECT(about_window), "destroy",
384 G_CALLBACK(gtk_widget_destroyed), &about_window); 384 G_CALLBACK(gtk_widget_destroyed), &about_window);
385 } 385 }
386 } 386 }
387 387
388 static gboolean demac_update_song_tuple(Tuple *tuple, VFSFile *vfd) {
389 fprintf(stderr, "demac_update_song_tuple(): stub\n");
390 fprintf(stderr, "Title: %s\n", aud_tuple_get_string(tuple, FIELD_TITLE, NULL));
391 fprintf(stderr, "Artist: %s\n", aud_tuple_get_string(tuple, FIELD_ARTIST, NULL));
392 fprintf(stderr, "Album: %s\n", aud_tuple_get_string(tuple, FIELD_ALBUM, NULL));
393 fprintf(stderr, "Comment: %s\n", aud_tuple_get_string(tuple, FIELD_COMMENT, NULL));
394 fprintf(stderr, "Genre: %s\n", aud_tuple_get_string(tuple, FIELD_GENRE, NULL));
395 fprintf(stderr, "Year: %d\n", aud_tuple_get_int(tuple, FIELD_YEAR, NULL));
396 fprintf(stderr, "Track: %d\n", aud_tuple_get_int(tuple, FIELD_TRACK_NUMBER, NULL));
397
398 return TRUE;
399 }
400
388 static gchar *fmts[] = { "ape", NULL }; 401 static gchar *fmts[] = { "ape", NULL };
389 402
390 static InputPlugin demac_ip = { 403 static InputPlugin demac_ip = {
391 .description = "Monkey's Audio Plugin", 404 .description = "Monkey's Audio Plugin",
392 .init = demac_init, 405 .init = demac_init,
399 .get_song_tuple = demac_get_tuple, 412 .get_song_tuple = demac_get_tuple,
400 .is_our_file_from_vfs = demac_probe_vfs, 413 .is_our_file_from_vfs = demac_probe_vfs,
401 .vfs_extensions = fmts, 414 .vfs_extensions = fmts,
402 .mseek = demac_mseek, 415 .mseek = demac_mseek,
403 .probe_for_tuple = demac_probe_for_tuple, 416 .probe_for_tuple = demac_probe_for_tuple,
417 .update_song_tuple = demac_update_song_tuple,
404 }; 418 };
405 419
406 InputPlugin *demac_iplist[] = { &demac_ip, NULL }; 420 InputPlugin *demac_iplist[] = { &demac_ip, NULL };
407 DECLARE_PLUGIN(demac, NULL, NULL, demac_iplist, NULL, NULL, NULL, NULL, NULL); 421 DECLARE_PLUGIN(demac, NULL, NULL, demac_iplist, NULL, NULL, NULL, NULL, NULL);
408 422