myMPD
Internal API documentation
Loading...
Searching...
No Matches
search.c File Reference

myMPD search API More...

Include dependency graph for search.c:

Functions

sds mympd_api_search_songs (struct t_partition_state *partition_state, struct t_stickerdb_state *stickerdb, sds buffer, unsigned request_id, const char *expression, const char *sort, bool sortdesc, unsigned offset, unsigned limit, const struct t_fields *tagcols, bool *result)
 

Detailed Description

myMPD search API

Function Documentation

◆ mympd_api_search_songs()

sds mympd_api_search_songs ( struct t_partition_state partition_state,
struct t_stickerdb_state stickerdb,
sds  buffer,
unsigned  request_id,
const char *  expression,
const char *  sort,
bool  sortdesc,
unsigned  offset,
unsigned  limit,
const struct t_fields tagcols,
bool *  result 
)

Searches the mpd database for songs by expression and returns an jsonrpc result

Parameters
partition_statepointer to partition specific states
stickerdbpointer to stickerdb state
bufferalready allocated sds string to append the result
request_idjsonrpc request id
expressionmpd search expression
sorttag to sort
sortdescfalse = ascending, true = descending
offsetresult offset
limitmax number of results to return
tagcolstags to return
resultpointer to bool to set returncode
Returns
pointer to buffer