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

MPD client idle event handling. More...

#include "src/lib/api.h"
#include "src/lib/mympd_state.h"
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

void 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()

void 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

◆ 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