owntone-server/src/artwork.h

26 lines
534 B
C
Raw Normal View History

#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
#ifdef HAVE_LIBEVENT2
# include <event2/buffer.h>
#else
# include <event.h>
#endif
2014-09-30 12:55:32 -04:00
/* Get artwork for individual track */
int
artwork_get_item(int id, int max_w, int max_h, int format, struct evbuffer *evbuf);
2014-09-30 12:55:32 -04:00
/* Get artwork for album or artist */
int
artwork_get_group(int id, int max_w, int max_h, int format, struct evbuffer *evbuf);
#endif /* !__ARTWORK_H__ */