summaryrefslogtreecommitdiff
path: root/plugins/artwork/artwork.h
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-02-28 19:04:15 +0100
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-02-28 19:04:15 +0100
commitdc16ab2da7065f82230087a84654167aec5444dc (patch)
tree469d9b9da96de74fc27c261112fe68b9c6c0d9eb /plugins/artwork/artwork.h
parent515d5e66bb81bdf1fc63b28e8f50ee558d767630 (diff)
cover-art WIP
Diffstat (limited to 'plugins/artwork/artwork.h')
-rw-r--r--plugins/artwork/artwork.h24
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*/
+