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-2025 Juergen Mang <mail@jcgames.de>
4 https://github.com/jcorporation/mympd
5*/
6
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,
31 struct t_mg_user_data *mg_user_data, unsigned long conn_id, enum albumart_sizes size);
32#endif
Webserver utility functions.
Definition mg_user_data.h:38
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, struct t_mg_user_data *mg_user_data, unsigned long conn_id, enum albumart_sizes size)
Definition albumart.c:141
void request_handler_albumart_by_album_id(struct mg_http_message *hm, unsigned long conn_id, enum albumart_sizes size)
Definition albumart.c:119