2010-03-07 05:07:09 -05:00
|
|
|
|
|
|
|
#ifndef __ARTWORK_H__
|
|
|
|
#define __ARTWORK_H__
|
|
|
|
|
2011-03-30 12:27:23 -04:00
|
|
|
#define ART_CAN_PNG (1 << 0)
|
|
|
|
#define ART_CAN_JPEG (1 << 1)
|
|
|
|
|
|
|
|
#define ART_FMT_PNG 1
|
|
|
|
#define ART_FMT_JPEG 2
|
|
|
|
|
2014-09-28 16:44:45 -04:00
|
|
|
#ifdef HAVE_LIBEVENT2
|
|
|
|
# include <event2/buffer.h>
|
|
|
|
#else
|
|
|
|
# include <event.h>
|
|
|
|
#endif
|
2011-03-30 12:27:23 -04:00
|
|
|
|
2014-09-30 12:55:32 -04:00
|
|
|
/* Get artwork for individual track */
|
2010-03-07 05:07:09 -05:00
|
|
|
int
|
2011-03-30 12:27:23 -04:00
|
|
|
artwork_get_item(int id, int max_w, int max_h, int format, struct evbuffer *evbuf);
|
2010-03-07 05:07:09 -05:00
|
|
|
|
2014-09-30 12:55:32 -04:00
|
|
|
/* Get artwork for album or artist */
|
2010-03-07 05:07:09 -05:00
|
|
|
int
|
2011-03-30 12:27:23 -04:00
|
|
|
artwork_get_group(int id, int max_w, int max_h, int format, struct evbuffer *evbuf);
|
2010-03-07 05:07:09 -05:00
|
|
|
|
|
|
|
#endif /* !__ARTWORK_H__ */
|