diff options
author | waker <wakeroid@gmail.com> | 2009-09-03 21:48:05 +0200 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2009-09-03 21:48:05 +0200 |
commit | c92e90a5159ac7a81b6f859b16779cea804707ef (patch) | |
tree | b28fb395317d9752e8290d8bf8595179e1551553 /plugins.c | |
parent | bdd655e1d6dc660a81529ba06b82f91670d11d6f (diff) |
tag reader is now exposed through plugin API; fixed some mp3 parsing problems
Diffstat (limited to 'plugins.c')
-rw-r--r-- | plugins.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -38,6 +38,7 @@ #include "playback.h" #include "common.h" #include "conf.h" +#include "junklib.h" // deadbeef api DB_functions_t deadbeef_api = { @@ -87,6 +88,11 @@ DB_functions_t deadbeef_api = { .volume_get_db = volume_get_db, .volume_set_amp = plug_volume_set_amp, .volume_get_amp = volume_get_amp, + // junk reading + .junk_read_id3v1 = (int (*)(DB_playItem_t *it, FILE *fp))junk_read_id3v1, + .junk_read_id3v2 = (int (*)(DB_playItem_t *it, FILE *fp))junk_read_id3v2, + .junk_read_ape = (int (*)(DB_playItem_t *it, FILE *fp))junk_read_ape, + .junk_get_leading_size = junk_get_leading_size, }; const char * |