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

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

#include "dist/sds/sds.h"
#include "src/lib/fields.h"
#include <stdbool.h>
Include dependency graph for mympd_mpd_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_mpd_features
struct  t_mpd_state

Enumerations

enum  mympd_mpd_conn_states { MPD_CONNECTED , MPD_DISCONNECTED , MPD_FAILURE }

Functions

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_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_free (struct t_mpd_state *mpd_state)

Detailed Description

Central myMPD mpd state for the mympd_api thread.

Enumeration Type Documentation

◆ mympd_mpd_conn_states

MPD connection states

Enumerator
MPD_CONNECTED 

mpd is connected

MPD_DISCONNECTED 

mpd is disconnected

MPD_FAILURE 

mpd is in unrecoverable failure state

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)

Public functions

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