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"
21#define MAX_EMBEDDED_FILES 50
Central myMPD configuration definitions.
Linked list implementation.
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:21
void mg_user_data_free_void(void *mg_user_data)
Definition mg_user_data.c:182
Definition config_def.h:22
Definition mg_user_data.h:26
unsigned size
Size of the data.
Definition mg_user_data.h:32
const char * uri
URI.
Definition mg_user_data.h:27
bool compressed
Data is compressed.
Definition mg_user_data.h:29
bool cache
Add cache header in response.
Definition mg_user_data.h:30
const char * mimetype
Mime type.
Definition mg_user_data.h:28
const unsigned char * data
The data.
Definition mg_user_data.h:31
Definition mg_user_data.h:38
struct t_config * config
Pointer to myMPD configuration.
Definition mg_user_data.h:39
struct mg_str cert
pointer to ssl cert_content
Definition mg_user_data.h:64
int image_names_sm_len
length of small image_names array
Definition mg_user_data.h:43
struct t_webradios * webradiodb
Pointer to WebradioDB in mympd_api thread.
Definition mg_user_data.h:66
struct mg_str key
pointer to ssl key_content
Definition mg_user_data.h:65
sds browse_directory
document root
Definition mg_user_data.h:40
sds cert_content
the server certificate
Definition mg_user_data.h:62
struct t_list session_list
list of myMPD sessions (pin protection mode)
Definition mg_user_data.h:52
sds * image_names_md
sds array of medium image names
Definition mg_user_data.h:44
int image_names_md_len
length of medium image_names array
Definition mg_user_data.h:45
bool publish_music
true if mpd music directory is accessible
Definition mg_user_data.h:49
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:51
sds placeholder_playlist
name of custom playlist image
Definition mg_user_data.h:57
sds placeholder_booklet
name of custom booklet image
Definition mg_user_data.h:53
sds placeholder_folder
name of custom folder image
Definition mg_user_data.h:59
sds music_directory
mpd music directory
Definition mg_user_data.h:41
int connection_count
number of http connections
Definition mg_user_data.h:50
sds placeholder_transparent
name of custom transparent image
Definition mg_user_data.h:60
sds placeholder_smartpls
name of custom smart playlist image
Definition mg_user_data.h:58
sds key_content
the server key
Definition mg_user_data.h:63
sds * image_names_sm
sds array of small image names
Definition mg_user_data.h:42
sds * image_names_lg
sds array of large image names
Definition mg_user_data.h:46
sds placeholder_na
name of custom not available image
Definition mg_user_data.h:55
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:56
sds placeholder_mympd
name of custom mympd image
Definition mg_user_data.h:54
int image_names_lg_len
length of large image_names array
Definition mg_user_data.h:47
bool mympd_api_started
true if the mympd_api thread is ready, else false
Definition mg_user_data.h:61
bool publish_playlists
true if mpd playlist directory is configured
Definition mg_user_data.h:48
struct t_embedded_file embedded_files[MAX_EMBEDDED_FILES]
Embedded files.
Definition mg_user_data.h:68