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

Go to the source code of this file.
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) |
myMPD search API
| 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
| partition_state | pointer to partition specific states |
| stickerdb | pointer to stickerdb state |
| buffer | already allocated sds string to append the result |
| request_id | jsonrpc request id |
| expression | mpd search expression |
| sort | tag to sort |
| sortdesc | false = ascending, true = descending |
| offset | result offset |
| limit | max number of results to return |
| tagcols | tags to return |
| result | pointer to bool to set returncode |