mirror of
https://github.com/owntone/owntone-server.git
synced 2025-03-26 23:40:58 -04:00
- 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
27 lines
539 B
C
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__ */
|