|
myMPD
Internal API documentation
|
Add random functions. More...
#include "src/mympd_worker/state.h"

Go to the source code of this file.
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 |