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

myMPD last played API More...

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

Go to the source code of this file.

Functions

bool mympd_api_last_played_add_song (struct t_partition_state *partition_state, unsigned last_played_count)
 
sds mympd_api_last_played_list (struct t_partition_state *partition_state, struct t_stickerdb_state *stickerdb, sds buffer, unsigned request_id, unsigned offset, unsigned limit, sds expression, const struct t_fields *tagcols)
 

Detailed Description

myMPD last played API

Function Documentation

◆ mympd_api_last_played_add_song()

bool mympd_api_last_played_add_song ( struct t_partition_state partition_state,
unsigned  last_played_count 
)

Public functions Adds the current playing song to the last played list

Parameters
partition_statepointer to partition state
last_played_countmax songs in last_played list
Returns
true on success, else false

◆ mympd_api_last_played_list()

sds mympd_api_last_played_list ( struct t_partition_state partition_state,
struct t_stickerdb_state stickerdb,
sds  buffer,
unsigned  request_id,
unsigned  offset,
unsigned  limit,
sds  expression,
const struct t_fields tagcols 
)

Prints a jsonrpc response with the last played songs

Parameters
partition_statepointer to partition state
stickerdbpointer to stickerdb state
bufferalready allocated sds string to append the response
request_idjsonrpc request id
offsetoffset
limitmax number of entries to return
expressionmpd search expression
tagcolscolumns to print
Returns
pointer to buffer