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

myMPD browse database API More...

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

Go to the source code of this file.

Functions

sds mympd_api_album_detail (struct t_mympd_state *mympd_state, struct t_partition_state *partition_state, sds buffer, unsigned request_id, sds albumid, const struct t_fields *tagcols)
 
sds mympd_api_album_list (struct t_mympd_state *mympd_state, struct t_partition_state *partition_state, sds buffer, unsigned request_id, sds expression, sds sort, bool sortdesc, unsigned offset, unsigned limit, const struct t_fields *tagcols)
 

Detailed Description

myMPD browse database API

Function Documentation

◆ mympd_api_album_detail()

sds mympd_api_album_detail ( struct t_mympd_state mympd_state,
struct t_partition_state partition_state,
sds  buffer,
unsigned  request_id,
sds  albumid,
const struct t_fields tagcols 
)

Lists album details

Parameters
mympd_statepointer to mympd state
partition_statepointer to partition specific states
buffersds string to append response
request_idjsonrpc request id
albumidid of the album (key in the album_cache)
tagcolst_fields struct of song tags to print
Returns
pointer to buffer

◆ mympd_api_album_list()

sds mympd_api_album_list ( struct t_mympd_state mympd_state,
struct t_partition_state partition_state,
sds  buffer,
unsigned  request_id,
sds  expression,
sds  sort,
bool  sortdesc,
unsigned  offset,
unsigned  limit,
const struct t_fields tagcols 
)

Lists albums from the album_cache

Parameters
mympd_statepointer to mympd_state
partition_statepointer to partition specific states
buffersds string to append response
request_idjsonrpc request id
expressionmpd search expression
sorttag to sort the result
sortdesctrue to sort descending, false to sort ascending
offsetoffset of results to print
limitmax number of results to print
tagcolstags to print
Returns
pointer to buffer