myMPD
Internal API documentation
Loading...
Searching...
No Matches
mg_user_data.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_WEBSERVER_MG_USER_DATA_H
12#define MYMPD_WEBSERVER_MG_USER_DATA_H
13
14#include "dist/mongoose/mongoose.h"
15#include "dist/sds/sds.h"
16#include "src/lib/config_def.h"
17#include "src/lib/list.h"
18
19#include <stdbool.h>
20
53
54void mg_user_data_free(struct t_mg_user_data *mg_user_data);
55void mg_user_data_free_void(void *mg_user_data);
56
57#endif
Centtral myMPD configuration definitions.
Linked list implementation.
void mg_user_data_free(struct t_mg_user_data *mg_user_data)
Definition mg_user_data.c:21
void mg_user_data_free_void(void *mg_user_data)
Definition mg_user_data.c:45
Definition config_def.h:40
Definition list.h:32
Definition mg_user_data.h:24
struct t_config * config
Pointer to myMPD configuration.
Definition mg_user_data.h:25
struct mg_str cert
pointer to ssl cert_content
Definition mg_user_data.h:48
struct t_webradios * webradiodb
Pointer to WebradioDB in mympd_api thread.
Definition mg_user_data.h:50
struct mg_str key
pointer to ssl key_content
Definition mg_user_data.h:49
sds browse_directory
document root
Definition mg_user_data.h:26
sds cert_content
the server certificate
Definition mg_user_data.h:46
struct t_list session_list
list of myMPD sessions (pin protection mode)
Definition mg_user_data.h:36
sds * thumbnail_names
sds array of coverimage thumbnail names
Definition mg_user_data.h:30
sds * coverimage_names
sds array of coverimage names
Definition mg_user_data.h:28
int thumbnail_names_len
length of thumbnail_names array
Definition mg_user_data.h:31
bool publish_music
true if mpd music directory is accessible
Definition mg_user_data.h:33
struct t_webradios * webradio_favorites
Pointer to webradio favorits in mympd_api thread.
Definition mg_user_data.h:51
struct t_list stream_uris
uri for the mpd stream reverse proxy
Definition mg_user_data.h:35
sds placeholder_playlist
name of custom playlist image
Definition mg_user_data.h:41
sds placeholder_booklet
name of custom booklet image
Definition mg_user_data.h:37
sds placeholder_folder
name of custom folder image
Definition mg_user_data.h:43
sds music_directory
mpd music directory
Definition mg_user_data.h:27
int connection_count
number of http connections
Definition mg_user_data.h:34
sds placeholder_transparent
name of custom transparent image
Definition mg_user_data.h:44
sds placeholder_smartpls
name of custom smart playlist image
Definition mg_user_data.h:42
sds key_content
the server key
Definition mg_user_data.h:47
int coverimage_names_len
length of coverimage_names array
Definition mg_user_data.h:29
sds placeholder_na
name of custom not available image
Definition mg_user_data.h:39
sds placeholder_stream
name of custom stream image
Definition mg_user_data.h:40
sds placeholder_mympd
name of custom mympd image
Definition mg_user_data.h:38
bool mympd_api_started
true if the mympd_api thread is ready, else false
Definition mg_user_data.h:45
bool publish_playlists
true if mpd playlist directory is configured
Definition mg_user_data.h:32
Definition webradio.h:31