|
myMPD
Internal API documentation
|
myMPD browse database API More...
#include "compile_time.h"#include "src/mympd_api/albums.h"#include "src/lib/album.h"#include "src/lib/cache/cache_rax_album.h"#include "src/lib/fields.h"#include "src/lib/json/json_print.h"#include "src/lib/json/json_rpc.h"#include "src/lib/log.h"#include "src/lib/rax_extras.h"#include "src/lib/sds_extras.h"#include "src/lib/search.h"#include "src/lib/sticker.h"#include "src/mympd_api/extra_media.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"#include <string.h>
Functions | |
| static sds | get_sort_key_album (sds key, enum sort_by_type sort_by, enum mpd_tag_type sort_tag, const struct t_album *album) |
| static bool | check_album_sort_tag (enum sort_by_type sort_by, enum mpd_tag_type sort_tag, struct t_albums_config *album_config) |
| 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) |
myMPD browse database API
|
static |
Validates the album sort tag
| sort_by | sort by type |
| sort_tag | sort tag |
| album_config | pointer to album config |
|
static |
Gets an alphanumeric string for sorting
| key | already allocated sds string to append |
| sort_by | enum sort_by |
| sort_tag | mpd tag to sort by |
| album | pointer to t_album |
| 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
| mympd_state | pointer to mympd state |
| partition_state | pointer to partition specific states |
| buffer | sds string to append response |
| request_id | jsonrpc request id |
| albumid | id of the album (key in the album_cache) |
| tagcols | t_fields struct of song tags to print |
| 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
| mympd_state | pointer to mympd_state |
| partition_state | pointer to partition specific states |
| buffer | sds string to append response |
| request_id | jsonrpc request id |
| expression | mpd search expression |
| sort | tag to sort the result |
| sortdesc | true to sort descending, false to sort ascending |
| offset | offset of results to print |
| limit | max number of results to print |
| tagcols | tags to print |