|
myMPD
Internal API documentation
|
myMPD Albumart API More...
#include "compile_time.h"#include "src/mympd_api/albumart.h"#include "src/lib/album.h"#include "src/lib/api.h"#include "src/lib/cache/cache_disk.h"#include "src/lib/cache/cache_disk_images.h"#include "src/lib/cache/cache_rax_album.h"#include "src/lib/json/json_print.h"#include "src/lib/json/json_rpc.h"#include "src/lib/log.h"#include "src/lib/mem.h"#include "src/lib/mimetype.h"#include "src/lib/sds_extras.h"#include "src/mympd_api/trigger.h"#include "src/mympd_client/errorhandler.h"#include "src/mympd_client/search.h"#include <string.h>
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 |