myMPD
Internal API documentation
Loading...
Searching...
No Matches
mympd_state.c File Reference

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>
Include dependency graph for mympd_state.c:

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)

Detailed Description

Central myMPD state for the mympd_api thread.

Function Documentation

◆ mympd_state_default()

void mympd_state_default ( struct t_mympd_state * mympd_state,
struct t_config * config )

Sets mympd_state defaults.

Parameters
mympd_statepointer to central myMPD state
configpointer to static config

◆ mympd_state_free()

void mympd_state_free ( struct t_mympd_state * mympd_state)

Frees the myMPD state, frees also the referenced structs.

Parameters
mympd_statepointer to central myMPD state

◆ mympd_state_save()

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.

Parameters
mympd_statepointer to central myMPD state
free_datatrue=free the struct, else not