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

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

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

Functions

void jukebox_state_default (struct t_jukebox_state *jukebox_state)
void jukebox_state_free (struct t_jukebox_state *jukebox_state)
void jukebox_state_copy (struct t_jukebox_state *src, struct t_jukebox_state *dst)

Detailed Description

Central myMPD state for the mympd_api thread.

Function Documentation

◆ jukebox_state_copy()

void jukebox_state_copy ( struct t_jukebox_state * src,
struct t_jukebox_state * dst )

Copies the jukebox settings

Parameters
srcsource
dstdestination

◆ jukebox_state_default()

void jukebox_state_default ( struct t_jukebox_state * jukebox_state)

Sets jukebox state defaults

Parameters
jukebox_statepointer to t_jukebox_state struct

◆ jukebox_state_free()

void jukebox_state_free ( struct t_jukebox_state * jukebox_state)

Frees the t_jukebox_state struct

Parameters
jukebox_statepointer to t_jukebox_state struct