diff options
Diffstat (limited to 'plugins/artwork/artwork.h')
-rw-r--r-- | plugins/artwork/artwork.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/artwork/artwork.h b/plugins/artwork/artwork.h index 1c60475c..117e263d 100644 --- a/plugins/artwork/artwork.h +++ b/plugins/artwork/artwork.h @@ -10,6 +10,8 @@ typedef void (*artwork_callback) (const char *fname, const char *artist, const c typedef struct { DB_misc_t plugin; // returns filename of cached image, or NULL + // negative size has special meanings: + // -1: return default cover if not available (otherwise NULL will be returned) char* (*get_album_art) (const char *fname, const char *artist, const char *album, int size, artwork_callback callback, void *user_data); // this has to be called to clear queue on exit, before caller terminates @@ -19,6 +21,9 @@ typedef struct { // synchronously get filename char* (*get_album_art_sync) (const char *fname, const char *artist, const char *album, int size); + + // creates full path string for cache storage + void (*make_cache_path) (char *path, int size, const char *album, const char *artist, int img_size); } DB_artwork_plugin_t; #endif /*__ARTWORK_H*/ |