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

Central myMPD state for the mympd_api thread. More...

#include "compile_time.h"
#include "src/lib/config/mympd_mpd_state.h"
#include "src/lib/mem.h"
#include "src/lib/sds/sds_extras.h"
#include <string.h>
Include dependency graph for mympd_mpd_state.c:

Functions

void mympd_mpd_state_default (struct t_mpd_state *mpd_state, struct t_config *config)
void mympd_mpd_state_copy (struct t_mpd_state *src, struct t_mpd_state *dst)
void mympd_mpd_state_features_default (struct t_mpd_features *feat)
void mympd_mpd_state_features_copy (struct t_mpd_features *src, struct t_mpd_features *dst)
void mympd_mpd_state_free (struct t_mpd_state *mpd_state)

Detailed Description

Central myMPD state for the mympd_api thread.

Function Documentation

◆ mympd_mpd_state_copy()

void mympd_mpd_state_copy ( struct t_mpd_state * src,
struct t_mpd_state * dst )

Copy mpd state

Parameters
srcsource
dstdestination

◆ mympd_mpd_state_default()

void mympd_mpd_state_default ( struct t_mpd_state * mpd_state,
struct t_config * config )

Sets mpd_state defaults.

Parameters
mpd_statepointer to mpd_state
configpointer to static config

◆ mympd_mpd_state_features_copy()

void mympd_mpd_state_features_copy ( struct t_mpd_features * src,
struct t_mpd_features * dst )

Copy mpd state feature flags

Parameters
srcsource
dstdestination

◆ mympd_mpd_state_features_default()

void mympd_mpd_state_features_default ( struct t_mpd_features * feat)

Sets all feature states to default

Parameters
featpointer to mpd feature struct

◆ mympd_mpd_state_free()

void mympd_mpd_state_free ( struct t_mpd_state * mpd_state)

Frees the t_mpd_state struct

Parameters
mpd_statePointer to mpd_state