|
myMPD
Internal API documentation
|
myMPD Albumart API More...
#include "src/lib/mympd_state.h"

Go to the source code of this file.
Functions | |
| sds | mympd_api_albumart_getcover_by_album_id (struct t_partition_state *partition_state, struct t_cache *album_cache, sds buffer, unsigned request_id, sds albumid, unsigned size) |
| sds | mympd_api_albumart_getcover_by_uri (struct t_mympd_state *mympd_state, struct t_partition_state *partition_state, sds buffer, unsigned request_id, unsigned long conn_id, sds uri, void **binary) |
myMPD Albumart API
| sds mympd_api_albumart_getcover_by_album_id | ( | struct t_partition_state * | partition_state, |
| struct t_cache * | album_cache, | ||
| sds | buffer, | ||
| unsigned | request_id, | ||
| sds | albumid, | ||
| unsigned | size | ||
| ) |
Reads the albumart by album id
| partition_state | pointer to partition specific states |
| album_cache | pointer to album cache |
| buffer | already allocated sds string for the jsonrpc response |
| request_id | request id |
| albumid | the album id |
| size | size of the albumart |
| sds mympd_api_albumart_getcover_by_uri | ( | struct t_mympd_state * | mympd_state, |
| struct t_partition_state * | partition_state, | ||
| sds | buffer, | ||
| unsigned | request_id, | ||
| unsigned long | conn_id, | ||
| sds | uri, | ||
| void ** | binary | ||
| ) |
Reads the albumart from mpd by song uri
| mympd_state | pointer to mympd state |
| partition_state | pointer to partition specific states |
| buffer | already allocated sds string for the jsonrpc response |
| request_id | request id |
| conn_id | mongoose connection id |
| uri | uri to get cover for |
| binary | pointer to an already allocated sds string for the binary response |