owntone-server/src/artwork.h

23 lines
483 B
C
Raw Normal View History

#ifndef __ARTWORK_H__
#define __ARTWORK_H__
#define ART_FMT_PNG 1
#define ART_FMT_JPEG 2
#include <event2/buffer.h>
2014-09-30 12:55:32 -04:00
/* Get artwork for individual track */
int
artwork_get_item(struct evbuffer *evbuf, int id, int max_w, int max_h);
2014-09-30 12:55:32 -04:00
/* Get artwork for album or artist */
int
artwork_get_group(struct evbuffer *evbuf, int id, int max_w, int max_h);
/* Checks if the file is an artwork file */
int
artwork_file_is_artwork(const char *filename);
#endif /* !__ARTWORK_H__ */