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_THUMBNAIL,
23 ALBUMART_FULL
24};
25
26void webserver_send_albumart_redirect(struct mg_connection *nc, sds data);
27void webserver_send_albumart(struct mg_connection *nc, sds data, sds binary);
28void request_handler_albumart_by_album_id(struct mg_http_message *hm, unsigned long conn_id, enum albumart_sizes size);
29bool request_handler_albumart_by_uri(struct mg_connection *nc, struct mg_http_message *hm,
30 struct t_mg_user_data *mg_user_data, unsigned long conn_id, enum albumart_sizes size);
31#endif
Definition mg_user_data.h:24
void webserver_send_albumart(struct mg_connection *nc, sds data, sds binary)
Definition albumart.c:81
void webserver_send_albumart_redirect(struct mg_connection *nc, sds data)
Definition albumart.c:55
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:130
void request_handler_albumart_by_album_id(struct mg_http_message *hm, unsigned long conn_id, enum albumart_sizes size)
Definition albumart.c:108
Webserver utility functions.