myMPD
Internal API documentation
Loading...
Searching...
No Matches
albumart.h
Go to the documentation of this file.
1/*
2 SPDX-License-Identifier: GPL-3.0-or-later
3 myMPD (c) 2018-2026 Juergen Mang <mail@jcgames.de>
4 https://github.com/jcorporation/mympd
5*/
6
10
11#ifndef MYMPD_WEB_SERVER_ALBUMART_H
12#define MYMPD_WEB_SERVER_ALBUMART_H
13
14#include "dist/mongoose/mongoose.h"
15#include "dist/sds/sds.h"
17
22 ALBUMART_SM,
23 ALBUMART_MD,
24 ALBUMART_LG
25};
26
27void webserver_send_albumart_redirect(struct mg_connection *nc, sds data);
28void webserver_send_albumart(struct mg_connection *nc, sds data, sds binary);
29void request_handler_albumart_by_album_id(struct mg_http_message *hm, unsigned long conn_id, enum albumart_sizes size);
30bool request_handler_albumart_by_uri(struct mg_connection *nc, struct mg_http_message *hm, enum albumart_sizes size);
31#endif
Webserver utility functions.
void webserver_send_albumart(struct mg_connection *nc, sds data, sds binary)
Definition albumart.c:92
void webserver_send_albumart_redirect(struct mg_connection *nc, sds data)
Definition albumart.c:57
albumart_sizes
Definition albumart.h:21
bool request_handler_albumart_by_uri(struct mg_connection *nc, struct mg_http_message *hm, enum albumart_sizes size)
Definition albumart.c:139
void request_handler_albumart_by_album_id(struct mg_http_message *hm, unsigned long conn_id, enum albumart_sizes size)
Definition albumart.c:119