chme 7578bb1205 Artwork caching (pull request ), and also:
- introduced new section in config file for sqlite pragma settings,
added config for artwork cache
- added setting of pragma synchronous, cache size and journal mode to
daap cache
2014-11-10 22:53:08 +01:00

27 lines
539 B
C

#ifndef __ARTWORK_H__
#define __ARTWORK_H__
#define ART_FMT_PNG 1
#define ART_FMT_JPEG 2
#ifdef HAVE_LIBEVENT2
# include <event2/buffer.h>
#else
# include <event.h>
#endif
/* Get artwork for individual track */
int
artwork_get_item(int id, int max_w, int max_h, struct evbuffer *evbuf);
/* Get artwork for album or artist */
int
artwork_get_group(int id, int max_w, int max_h, struct evbuffer *evbuf);
/* Checks if the file is an artwork file */
int
artwork_file_is_artwork(const char *filename);
#endif /* !__ARTWORK_H__ */