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

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

#include "compile_time.h"
#include "src/lib/config/partition_state.h"
#include "src/lib/mem.h"
#include "src/lib/sds/sds_extras.h"
#include "src/lib/sds/sds_file.h"
#include "src/lib/timer.h"
#include "src/mympd_client/presets.h"
#include <string.h>
Include dependency graph for partition_state.c:

Functions

void partition_state_default (struct t_partition_state *partition_state, const char *name, struct t_mpd_state *mpd_state, struct t_config *config)
void partition_state_free (struct t_partition_state *partition_state)

Detailed Description

Central myMPD partition state for the mympd_api thread.

Function Documentation

◆ partition_state_default()

void partition_state_default ( struct t_partition_state * partition_state,
const char * name,
struct t_mpd_state * mpd_state,
struct t_config * config )

Sets per partition state defaults

Parameters
partition_statepointer to t_partition_state struct
namepartition name
mpd_statepointer to shared mpd state
configpointer to static config

◆ partition_state_free()

void partition_state_free ( struct t_partition_state * partition_state)

Frees the t_partition_state struct

Parameters
partition_statepointer to t_partition_state struct