|
myMPD
Internal API documentation
|
myMPD last played API More...
#include "src/lib/mympd_state.h"

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) |
myMPD last played API
| 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
| partition_state | pointer to partition state |
| last_played_count | max songs in 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
| partition_state | pointer to partition state |
| stickerdb | pointer to stickerdb state |
| buffer | already allocated sds string to append the response |
| request_id | jsonrpc request id |
| offset | offset |
| limit | max number of entries to return |
| expression | mpd search expression |
| tagcols | columns to print |