myMPD filesystem API
More...
|
| static void | free_t_dir_entry (void *data) |
| |
| static bool | search_dir_entry (rax *rt, sds key, sds entity_name, struct mpd_entity *entity, sds searchstr) |
| |
| sds | mympd_api_browse_filesystem (struct t_mympd_state *mympd_state, struct t_partition_state *partition_state, sds buffer, unsigned request_id, sds path, unsigned offset, unsigned limit, sds searchstr, const struct t_fields *tagcols) |
| |
◆ free_t_dir_entry()
| static void free_t_dir_entry |
( |
void * |
data | ) |
|
|
static |
private functions Frees the t_dir_entry struct used as callback for rax_free_data
- Parameters
-
◆ mympd_api_browse_filesystem()
| sds mympd_api_browse_filesystem |
( |
struct t_mympd_state * |
mympd_state, |
|
|
struct t_partition_state * |
partition_state, |
|
|
sds |
buffer, |
|
|
unsigned |
request_id, |
|
|
sds |
path, |
|
|
unsigned |
offset, |
|
|
unsigned |
limit, |
|
|
sds |
searchstr, |
|
|
const struct t_fields * |
tagcols |
|
) |
| |
Public functions Lists the entry of directory in the mpd music directory as jsonrpc response Custom order: directories, playlists, songs
- Parameters
-
| mympd_state | pointer to mympd state |
| partition_state | pointer to the partition state |
| buffer | already allocated sds string to append result |
| request_id | jsonrpc request id |
| path | path to list |
| offset | offset for listing |
| limit | max entries to list |
| searchstr | string to search |
| tagcols | columns to print |
- Returns
- pointer to buffer
◆ search_dir_entry()
| static bool search_dir_entry |
( |
rax * |
rt, |
|
|
sds |
key, |
|
|
sds |
entity_name, |
|
|
struct mpd_entity * |
entity, |
|
|
sds |
searchstr |
|
) |
| |
|
static |
Search the entry for searchstr and add matches to the rax tree
- Parameters
-
| rt | rax tree to insert |
| key | key to insert |
| entity_name | displayname of the entity |
| entity | pointer to mpd entity |
| searchstr | string to search in entity_name |
- Returns
- true on match, else false