Artwork caching (pull request #61), 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
This commit is contained in:
chme
2014-11-10 22:53:08 +01:00
committed by ejurgensen
parent 61a4da215c
commit 7578bb1205
18 changed files with 2142 additions and 1197 deletions

View File

@@ -2,9 +2,6 @@
#ifndef __ARTWORK_H__
#define __ARTWORK_H__
#define ART_CAN_PNG (1 << 0)
#define ART_CAN_JPEG (1 << 1)
#define ART_FMT_PNG 1
#define ART_FMT_JPEG 2
@@ -16,10 +13,14 @@
/* Get artwork for individual track */
int
artwork_get_item(int id, int max_w, int max_h, int format, struct evbuffer *evbuf);
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, int format, struct evbuffer *evbuf);
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__ */