11#ifndef MYMPD_WEBSERVER_MG_USER_DATA_H
12#define MYMPD_WEBSERVER_MG_USER_DATA_H
14#include "dist/mongoose/mongoose.h"
15#include "dist/sds/sds.h"
22#define MAX_EMBEDDED_FILES 50
Central myMPD configuration definitions.
Linked list implementation.
struct t_mg_user_data * webserver_init_mg_user_data(struct t_config *config)
Definition mg_user_data.c:38
void mg_user_data_free(struct t_mg_user_data *mg_user_data)
Definition mg_user_data.c:157
#define MAX_EMBEDDED_FILES
Array size for embedded files.
Definition mg_user_data.h:22
void mg_user_data_free_void(void *mg_user_data)
Definition mg_user_data.c:186
Definition config_def.h:22
Definition mg_user_data.h:27
unsigned size
Size of the data.
Definition mg_user_data.h:33
const char * uri
URI.
Definition mg_user_data.h:28
bool compressed
Data is compressed.
Definition mg_user_data.h:30
bool cache
Add cache header in response.
Definition mg_user_data.h:31
const char * mimetype
Mime type.
Definition mg_user_data.h:29
const unsigned char * data
The data.
Definition mg_user_data.h:32
Definition mg_user_data.h:39
struct t_config * config
Pointer to myMPD configuration.
Definition mg_user_data.h:40
int image_names_sm_len
length of small image_names array
Definition mg_user_data.h:44
struct t_webradios * webradiodb
Pointer to WebradioDB in mympd_api thread.
Definition mg_user_data.h:66
sds browse_directory
document root
Definition mg_user_data.h:41
sds cert_content
the server certificate
Definition mg_user_data.h:63
struct t_list session_list
list of myMPD sessions (pin protection mode)
Definition mg_user_data.h:53
sds * image_names_md
sds array of medium image names
Definition mg_user_data.h:45
int image_names_md_len
length of medium image_names array
Definition mg_user_data.h:46
bool publish_music
true if mpd music directory is accessible
Definition mg_user_data.h:50
struct t_lyrics lyrics
lyrics settings
Definition mg_user_data.h:70
struct t_webradios * webradio_favorites
Pointer to webradio favorites in mympd_api thread.
Definition mg_user_data.h:67
struct t_list stream_uris
uri for the mpd stream reverse proxy
Definition mg_user_data.h:52
sds placeholder_playlist
name of custom playlist image
Definition mg_user_data.h:58
sds placeholder_booklet
name of custom booklet image
Definition mg_user_data.h:54
sds placeholder_folder
name of custom folder image
Definition mg_user_data.h:60
sds music_directory
mpd music directory
Definition mg_user_data.h:42
int connection_count
number of http connections
Definition mg_user_data.h:51
sds placeholder_transparent
name of custom transparent image
Definition mg_user_data.h:61
struct mg_tls_opts tls_opts
Server side tls.
Definition mg_user_data.h:65
sds placeholder_smartpls
name of custom smart playlist image
Definition mg_user_data.h:59
sds key_content
the server key
Definition mg_user_data.h:64
sds * image_names_sm
sds array of small image names
Definition mg_user_data.h:43
sds * image_names_lg
sds array of large image names
Definition mg_user_data.h:47
sds placeholder_na
name of custom not available image
Definition mg_user_data.h:56
unsigned embedded_file_index
Index of last embedded_file.
Definition mg_user_data.h:69
sds placeholder_stream
name of custom stream image
Definition mg_user_data.h:57
sds placeholder_mympd
name of custom mympd image
Definition mg_user_data.h:55
int image_names_lg_len
length of large image_names array
Definition mg_user_data.h:48
bool mympd_api_started
true if the mympd_api thread is ready, else false
Definition mg_user_data.h:62
bool publish_playlists
true if mpd playlist directory is configured
Definition mg_user_data.h:49
struct t_embedded_file embedded_files[MAX_EMBEDDED_FILES]
Embedded files.
Definition mg_user_data.h:68