|
myMPD
Internal API documentation
|
Central myMPD state for the mympd_api thread. More...
#include "dist/sds/sds.h"#include "src/lib/cache/cache_rax.h"#include "src/lib/config_def.h"#include "src/lib/event.h"#include "src/lib/fields.h"#include "src/lib/jukebox.h"#include "src/lib/list.h"#include "src/lib/webradio.h"#include <time.h>

Go to the source code of this file.
Data Structures | |
| struct | t_mpd_features |
| struct | t_mpd_state |
| struct | t_jukebox_state |
| struct | t_partition_state |
| struct | t_stickerdb_state |
| struct | t_timer_definition |
| struct | t_timer_list |
| struct | t_lyrics |
| struct | t_mympd_state |
Enumerations | |
| enum | mpd_conn_states { MPD_CONNECTED , MPD_DISCONNECTED , MPD_FAILURE } |
Central myMPD state for the mympd_api thread.
| enum mpd_conn_states |
| void jukebox_state_copy | ( | struct t_jukebox_state * | src, |
| struct t_jukebox_state * | dst | ||
| ) |
Copies the jukebox settings
| src | source |
| dst | destination |
| void jukebox_state_default | ( | struct t_jukebox_state * | jukebox_state | ) |
Sets jukebox state defaults
| jukebox_state | pointer to t_jukebox_state struct |
| void jukebox_state_free | ( | struct t_jukebox_state * | jukebox_state | ) |
Frees the t_jukebox_state struct
| jukebox_state | pointer to t_jukebox_state struct |
| void mympd_mpd_state_copy | ( | struct t_mpd_state * | src, |
| struct t_mpd_state * | dst | ||
| ) |
Copy mpd state
| src | source |
| dst | destination |
| void mympd_mpd_state_default | ( | struct t_mpd_state * | mpd_state, |
| struct t_config * | config | ||
| ) |
Sets mpd_state defaults.
| mpd_state | pointer to mpd_state |
| config | pointer to static config |
| void mympd_mpd_state_features_copy | ( | struct t_mpd_features * | src, |
| struct t_mpd_features * | dst | ||
| ) |
Copy mpd state feature flags
| src | source |
| dst | destination |
| void mympd_mpd_state_features_default | ( | struct t_mpd_features * | feat | ) |
Sets all feature states to default
| feat | pointer to mpd feature struct |
| void mympd_mpd_state_free | ( | struct t_mpd_state * | mpd_state | ) |
Frees the t_mpd_state struct
| mpd_state | Pointer to mpd_state |
| void mympd_state_default | ( | struct t_mympd_state * | mympd_state, |
| struct t_config * | config | ||
| ) |
Sets mympd_state defaults.
| mympd_state | pointer to central myMPD state |
| config | pointer to static config |
| void mympd_state_free | ( | struct t_mympd_state * | mympd_state | ) |
Frees the myMPD state, frees also the referenced structs.
| mympd_state | pointer to central myMPD state |
| void mympd_state_save | ( | struct t_mympd_state * | mympd_state, |
| bool | free_data | ||
| ) |
Public functions
Saves in-memory states to disc. This is done on shutdown and on SIGHUP.
| mympd_state | pointer to central myMPD state |
| free_data | true=free the struct, else not |
| void partition_state_default | ( | struct t_partition_state * | partition_state, |
| const char * | name, | ||
| struct t_mpd_state * | mpd_state, | ||
| struct t_config * | config | ||
| ) |
Sets per partition state defaults
| partition_state | pointer to t_partition_state struct |
| name | partition name |
| mpd_state | pointer to shared mpd state |
| config | pointer to static config |
| void partition_state_free | ( | struct t_partition_state * | partition_state | ) |
Frees the t_partition_state struct
| partition_state | pointer to t_partition_state struct |
| void stickerdb_state_default | ( | struct t_stickerdb_state * | stickerdb, |
| struct t_config * | config | ||
| ) |
Sets stickerdb state defaults
| stickerdb | pointer to stickerdb state |
| config | pointer to static config |
| void stickerdb_state_free | ( | struct t_stickerdb_state * | stickerdb | ) |
Frees the t_stickerdb_state struct
| stickerdb | pointer to struct |