|
myMPD
Internal API documentation
|
Central myMPD state for the mympd_api thread. More...
#include "compile_time.h"#include "src/lib/config/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/sds_extras.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>
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 ) |
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 |