|
myMPD
Internal API documentation
|
Central myMPD state for the mympd_api thread. More...
#include "compile_time.h"#include "src/lib/mympd_state.h"#include "src/lib/cache/cache_rax_album.h"#include "src/lib/event.h"#include "src/lib/last_played.h"#include "src/lib/mem.h"#include "src/lib/sds_extras.h"#include "src/lib/timer.h"#include "src/lib/utility.h"#include "src/lib/webradio.h"#include "src/mympd_api/home.h"#include "src/mympd_api/timer.h"#include "src/mympd_api/trigger.h"#include "src/mympd_client/presets.h"#include <string.h>
Central myMPD state for the mympd_api thread.
| 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 | ||
| ) |
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 |