myMPD
Internal API documentation
Loading...
Searching...
No Matches
mympd_state.h
Go to the documentation of this file.
1/*
2 SPDX-License-Identifier: GPL-3.0-or-later
3 myMPD (c) 2018-2026 Juergen Mang <mail@jcgames.de>
4 https://github.com/jcorporation/mympd
5*/
6
10
11#ifndef MYMPD_STATE_H
12#define MYMPD_STATE_H
13
14#include "dist/sds/sds.h"
21#include "src/lib/event.h"
22#include "src/lib/fields.h"
23#include "src/lib/jukebox.h"
24#include "src/lib/list/list.h"
25#include "src/lib/lyrics.h"
26#include "src/lib/webradio.h"
27
32 struct t_config *config;
42 bool smartpls;
69 unsigned volume_min;
70 unsigned volume_max;
71 unsigned volume_step;
81};
82
86void mympd_state_save(struct t_mympd_state *mympd_state, bool free_data);
87void mympd_state_default(struct t_mympd_state *mympd_state, struct t_config *config);
88void mympd_state_free(struct t_mympd_state *mympd_state);
89
90#endif
General rax cache handling.
Central myMPD configuration definitions.
Event handling.
Fields handling.
Jukebox library.
Lyrics.
Webradio functions.
Linked list implementation.
Central myMPD mpd state for the mympd_api thread.
void mympd_state_free(struct t_mympd_state *mympd_state)
Definition mympd_state.c:143
void mympd_state_save(struct t_mympd_state *mympd_state, bool free_data)
Definition mympd_state.c:32
void mympd_state_default(struct t_mympd_state *mympd_state, struct t_config *config)
Definition mympd_state.c:60
Central myMPD partition state for the mympd_api thread.
Central myMPD stickerdb state for the mympd_api thread.
Definition event.h:41
Definition cache_rax.h:22
Definition config_def.h:22
Definition list.h:33
Definition lyrics.h:17
Definition mympd_mpd_state.h:56
Definition fields.h:20
Definition mympd_state.h:31
struct t_stickerdb_state * stickerdb
states for stickerdb connection
Definition mympd_state.h:35
struct t_list trigger_list
list of triggers
Definition mympd_state.h:39
sds view_browse_playlist_detail
view settings for the listing of playlist contents
Definition mympd_state.h:55
sds view_browse_database_album_list
view settings for the album list view
Definition mympd_state.h:52
unsigned volume_max
maximum mpd volume
Definition mympd_state.h:70
struct t_config * config
pointer to static config
Definition mympd_state.h:32
struct t_mympd_mpd_tags smartpls_generate_tag_types
generate smart playlists for each value for this tag
Definition mympd_state.h:46
struct t_webradios * webradiodb
WebradioDB.
Definition mympd_state.h:79
struct t_cache album_cache
the album cache created by the mympd_worker thread
Definition mympd_state.h:77
sds view_queue_current
view settings for the queue view
Definition mympd_state.h:48
sds image_names_lg
comma separated string of large coverimage names
Definition mympd_state.h:68
sds view_browse_database_tag_list
view settings for the album list view
Definition mympd_state.h:53
sds view_queue_jukebox_song
view settings for the jukebox queue view for songs
Definition mympd_state.h:59
bool tag_disc_empty_is_first
handle empty disc tag as disc one for albums
Definition mympd_state.h:74
sds image_names_sm
comma separated string of small coverimage names
Definition mympd_state.h:66
sds navbar_icons
json string of navigation bar icons
Definition mympd_state.h:65
struct t_timer_list timer_list
list of timers
Definition mympd_state.h:37
sds info_txt_name
name of album info files
Definition mympd_state.h:76
sds view_browse_radio_webradiodb
view settings for the webradiodb view
Definition mympd_state.h:61
sds booklet_name
name of the booklet files
Definition mympd_state.h:75
sds view_browse_database_album_detail_info
view settings for the album detail view
Definition mympd_state.h:50
struct t_lyrics lyrics
lyrics settings
Definition mympd_state.h:72
sds view_browse_radio_favorites
view settings for the radio favorites view
Definition mympd_state.h:62
struct t_webradios * webradio_favorites
webradio favorites
Definition mympd_state.h:80
unsigned volume_step
volume step for +/- buttons
Definition mympd_state.h:71
sds smartpls_sort
sort smart playlists by this tag
Definition mympd_state.h:43
sds view_playback
view settings for playback view
Definition mympd_state.h:57
sds music_directory
mpd music directory setting (real value is in mpd_state)
Definition mympd_state.h:63
struct mympd_pfds pfds
fds to poll in the event loop
Definition mympd_state.h:36
bool smartpls
enable smart playlists
Definition mympd_state.h:42
sds smartpls_prefix
name prefix for smart playlists
Definition mympd_state.h:44
sds smartpls_generate_tag_list
generate smart playlists for each value for this tag (string representation)
Definition mympd_state.h:47
sds playlist_directory
mpd playlist directory (real value is in mpd_state)
Definition mympd_state.h:64
unsigned last_played_count
number of songs to keep in the last played list (disk + memory)
Definition mympd_state.h:78
sds view_browse_playlist_list
view settings for the listing of playlists
Definition mympd_state.h:54
sds view_queue_last_played
view settings for last played view
Definition mympd_state.h:58
struct t_partition_state * partition_state
list of partition states
Definition mympd_state.h:34
struct t_mpd_state * mpd_state
mpd state shared across partitions
Definition mympd_state.h:33
sds view_queue_jukebox_album
view settings for the jukebox queue view for albums
Definition mympd_state.h:60
struct t_list home_list
list of home icons
Definition mympd_state.h:38
sds view_browse_filesystem
view settings for filesystem listing
Definition mympd_state.h:56
sds view_browse_database_album_detail
view settings for the album detail title list
Definition mympd_state.h:51
sds webui_settings
settings only relevant for webui, saved as string containing json
Definition mympd_state.h:73
sds image_names_md
comma separated string of medium coverimage names
Definition mympd_state.h:67
unsigned volume_min
minimum mpd volume
Definition mympd_state.h:69
int smartpls_interval
interval to refresh smart playlists in seconds
Definition mympd_state.h:45
sds view_search
view settings for the search view
Definition mympd_state.h:49
sds tag_list_search
comma separated string of tags for search
Definition mympd_state.h:40
sds tag_list_browse
comma separated string of tags for browse
Definition mympd_state.h:41
Definition partition_state.h:27
Definition stickerdb_state.h:21
Definition timer_state.h:38
Definition webradio.h:31
Central myMPD state for the mympd_api thread.