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

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

#include "dist/sds/sds.h"
#include "src/lib/config/config_def.h"
#include "src/lib/config/jukebox_state.h"
#include "src/lib/config/mympd_mpd_state.h"
#include "src/lib/event.h"
#include "src/lib/jukebox.h"
#include "src/lib/list/list.h"
#include <time.h>
Include dependency graph for partition_state.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  t_partition_state

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 )

Public functions

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