|
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/config_def.h"#include "src/lib/config/mympd_mpd_state.h"#include "src/lib/config/partition_state.h"#include "src/lib/config/stickerdb_state.h"#include "src/lib/config/timer_state.h"#include "src/lib/event.h"#include "src/lib/fields.h"#include "src/lib/jukebox.h"#include "src/lib/list/list.h"#include "src/lib/lyrics.h"#include "src/lib/webradio.h"

Go to the source code of this file.
Data Structures | |
| struct | t_mympd_state |
Functions | |
| void | mympd_state_save (struct t_mympd_state *mympd_state, bool free_data) |
| void | mympd_state_default (struct t_mympd_state *mympd_state, struct t_config *config) |
| void | mympd_state_free (struct t_mympd_state *mympd_state) |
Central myMPD state for the mympd_api thread.
| 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 |