|
myMPD
Internal API documentation
|
myMPD search API More...
#include "compile_time.h"#include "src/mympd_api/search.h"#include "src/lib/api.h"#include "src/lib/json/json_print.h"#include "src/lib/json/json_rpc.h"#include "src/mympd_api/sticker.h"#include "src/mympd_client/errorhandler.h"#include "src/mympd_client/search.h"#include "src/mympd_client/stickerdb.h"#include "src/mympd_client/tags.h"
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 |