diff options
Diffstat (limited to 'plugins/artwork/artwork.h')
-rw-r--r-- | plugins/artwork/artwork.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/plugins/artwork/artwork.h b/plugins/artwork/artwork.h new file mode 100644 index 00000000..816ca349 --- /dev/null +++ b/plugins/artwork/artwork.h @@ -0,0 +1,24 @@ +#ifndef __ARTWORK_H +#define __ARTWORK_H + +#include "../../deadbeef.h" + +typedef void (*artwork_callback) (const char *artist, const char *album); + +char* +fetch (const char *url); + +int +fetch_to_file (const char *url, const char *filename); + +int +fetch_to_stream (const char *url, FILE *stream); + +typedef struct { + DB_misc_t plugin; + // returns filename of cached image, or NULL + char* (*get_album_art) (DB_playItem_t *track, artwork_callback callback); +} DB_artwork_plugin_t; + +#endif /*__ARTWORK_H*/ + |