libmpdclient 2.22
|
MPD client library. More...
#include "compiler.h"
#include <stdbool.h>
#include <stddef.h>
Go to the source code of this file.
Functions | |
bool | mpd_send_albumart (struct mpd_connection *connection, const char *uri, unsigned offset) |
int | mpd_recv_albumart (struct mpd_connection *connection, void *buffer, size_t buffer_size) |
int | mpd_run_albumart (struct mpd_connection *connection, const char *uri, unsigned offset, void *buffer, size_t buffer_size) |
MPD client library.
Do not include this header directly. Use mpd/client.h instead.
Definition in file albumart.h.
bool mpd_send_albumart | ( | struct mpd_connection * | connection, |
const char * | uri, | ||
unsigned | offset | ||
) |
Sends the "albumart" command to MPD. Call mpd_recv_albumart() to read response lines.
connection | a valid and connected mpd_connection |
uri | the URI of the song |
offset | to read from |
int mpd_recv_albumart | ( | struct mpd_connection * | connection, |
void * | buffer, | ||
size_t | buffer_size | ||
) |
Receives the "albumart" response
connection | a valid and connected mpd_connection |
buffer | an already allocated buffer, the size must be the same or greater than the binary chunk size (default 8192, can be set with binarylimit command) |
buffer_size | the size of the allocated buffer |
int mpd_run_albumart | ( | struct mpd_connection * | connection, |
const char * | uri, | ||
unsigned | offset, | ||
void * | buffer, | ||
size_t | buffer_size | ||
) |
Shortcut for mpd_send_albumart(), mpd_recv_albumart() and mpd_response_finish().
connection | a valid and connected mpd_connection |
uri | the URI of the song |
offset | to read from |
buffer | an already allocated buffer, the size must be the same or greater than the binary chunk size (default 8192, can be set with binarylimit command) |
buffer_size | the size of the allocated buffer |