|
myMPD
Internal API documentation
|
Add random functions. More...
#include "compile_time.h"#include "src/mympd_worker/random_select.h"#include "dist/sds/sds.h"#include "src/lib/cache/cache_rax.h"#include "src/lib/cache/cache_rax_album.h"#include "src/lib/json/json_print.h"#include "src/lib/json/json_rpc.h"#include "src/lib/log.h"#include "src/lib/sds_extras.h"#include "src/mympd_client/errorhandler.h"#include "src/mympd_client/queue.h"#include "src/mympd_client/random_select.h"#include "src/mympd_client/shortcuts.h"#include "src/mympd_client/tags.h"#include <stdbool.h>#include <string.h>
Functions | |
| bool | mympd_worker_add_random_to_queue (struct t_mympd_worker_state *mympd_worker_state, unsigned add, unsigned mode, sds plist, bool play, sds partition) |
| sds | mympd_worker_list_random (struct t_mympd_worker_state *mympd_worker_state, sds buffer, unsigned request_id, unsigned quantity, unsigned mode, sds plist) |
Add random functions.
| bool mympd_worker_add_random_to_queue | ( | struct t_mympd_worker_state * | mympd_worker_state, |
| unsigned | add, | ||
| unsigned | mode, | ||
| sds | plist, | ||
| bool | play, | ||
| sds | partition | ||
| ) |
Adds randoms songs or albums to the queue
| mympd_worker_state | pointer to mympd_worker_state |
| add | number of songs/albums to add |
| mode | 1 = add songs, 2 = add albums |
| plist | playlist to select songs from |
| play | Play the inserted songs? |
| partition | partition to add the selection |
| sds mympd_worker_list_random | ( | struct t_mympd_worker_state * | mympd_worker_state, |
| sds | buffer, | ||
| unsigned | request_id, | ||
| unsigned | quantity, | ||
| unsigned | mode, | ||
| sds | plist | ||
| ) |
Lists randoms songs or albums
| mympd_worker_state | pointer to mympd_worker_state |
| buffer | Already allocated sds string to append the response |
| request_id | Jsonrpc id |
| quantity | number of songs/albums to add |
| mode | 1 = add songs, 2 = add albums |
| plist | playlist to select songs from |