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

MPD client idle event handling. More...

Include dependency graph for idle.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

bool mympd_client_idle (struct t_mympd_state *mympd_state, struct t_work_request *request)
void mympd_client_scrobble (struct t_mympd_state *mympd_state, struct t_partition_state *partition_state)

Detailed Description

MPD client idle event handling.

Function Documentation

◆ mympd_client_idle()

bool mympd_client_idle ( struct t_mympd_state * mympd_state,
struct t_work_request * request )

Public functions This is the central function to handle api requests and mpd events. It is called from the mympd_api thread.

Parameters
mympd_statepointer to the mympd state struct
requestwork request from the mympd_api queue
Returns
true if an event was handled

◆ mympd_client_scrobble()

void mympd_client_scrobble ( struct t_mympd_state * mympd_state,
struct t_partition_state * partition_state )

Scrobble event Execute scrobble event scripts, updates the last play list and sets stickers.

Parameters
mympd_statepointer to partition state
partition_statepointer to partition specific state