2010-03-07 05:07:09 -05:00
|
|
|
|
|
|
|
#ifndef __ARTWORK_H__
|
|
|
|
#define __ARTWORK_H__
|
|
|
|
|
2011-03-30 12:27:23 -04:00
|
|
|
#define ART_FMT_PNG 1
|
|
|
|
#define ART_FMT_JPEG 2
|
|
|
|
|
2015-10-19 15:15:29 -04:00
|
|
|
#include <event2/buffer.h>
|
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
|
2015-04-09 15:23:20 -04:00
|
|
|
artwork_get_item(struct evbuffer *evbuf, int id, int max_w, int max_h);
|
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
|
2015-04-09 15:23:20 -04:00
|
|
|
artwork_get_group(struct evbuffer *evbuf, int id, int max_w, int max_h);
|
2014-11-10 16:53:08 -05:00
|
|
|
|
|
|
|
/* Checks if the file is an artwork file */
|
|
|
|
int
|
|
|
|
artwork_file_is_artwork(const char *filename);
|
2010-03-07 05:07:09 -05:00
|
|
|
|
|
|
|
#endif /* !__ARTWORK_H__ */
|