Albumart functions.
More...
#include "dist/mongoose/mongoose.h"
#include "dist/sds/sds.h"
#include "src/webserver/utility.h"
Go to the source code of this file.
◆ albumart_sizes
◆ request_handler_albumart_by_album_id()
void request_handler_albumart_by_album_id |
( |
struct mg_http_message * |
hm, |
|
|
unsigned long |
conn_id, |
|
|
enum albumart_sizes |
size |
|
) |
| |
Request handler for /albumart/albumid and /albumart-thumb/albumid. Sends the request to the mympd_api thread.
- Parameters
-
hm | http message |
conn_id | connection id |
size | size of the albumart |
◆ request_handler_albumart_by_uri()
bool request_handler_albumart_by_uri |
( |
struct mg_connection * |
nc, |
|
|
struct mg_http_message * |
hm, |
|
|
struct t_mg_user_data * |
mg_user_data, |
|
|
unsigned long |
conn_id, |
|
|
enum albumart_sizes |
size |
|
) |
| |
Request handler for /albumart and /albumart-thumb
- Parameters
-
nc | mongoose connection |
hm | http message |
mg_user_data | pointer to mongoose configuration |
conn_id | connection id |
size | albumart size |
- Returns
- true: an image was served, false: request was sent to the mympd_api thread to get the image by MPD
◆ webserver_send_albumart()
void webserver_send_albumart |
( |
struct mg_connection * |
nc, |
|
|
sds |
data, |
|
|
sds |
binary |
|
) |
| |
Sends the albumart response from mpd to the client
- Parameters
-
nc | mongoose connection |
data | jsonrpc response |
binary | the image |
◆ webserver_send_albumart_redirect()
void webserver_send_albumart_redirect |
( |
struct mg_connection * |
nc, |
|
|
sds |
data |
|
) |
| |
Public functions Sends the albumart redirect response from the albumart_by_albumid handler
- Parameters
-
nc | mongoose connection |
data | jsonrpc response |