|
myMPD
Internal API documentation
|
MPD partitions specific functions. More...
#include "compile_time.h"#include "src/mympd_client/partitions.h"#include "src/lib/last_played.h"#include "src/lib/log.h"#include "src/lib/mem.h"#include "src/lib/mympd_state.h"#include "src/lib/sds_extras.h"#include "src/lib/signal.h"#include "src/lib/timer.h"#include "src/mympd_api/settings.h"#include "src/mympd_api/status.h"#include "src/mympd_api/timer.h"#include "src/mympd_api/timer_handlers.h"#include "src/mympd_api/trigger.h"#include "src/mympd_client/connection.h"#include "src/mympd_client/errorhandler.h"#include "src/mympd_client/features.h"#include "src/mympd_client/jukebox.h"#include <string.h>
Functions | |
| bool | partitions_connect (struct t_mympd_state *mympd_state, struct t_partition_state *partition_state) |
| struct t_partition_state * | partitions_get_by_name (struct t_mympd_state *mympd_state, const char *name) |
| void | partitions_list_clear (struct t_mympd_state *mympd_state) |
| bool | partitions_populate (struct t_mympd_state *mympd_state) |
| bool | partitions_check (struct t_mympd_state *mympd_state, const char *name) |
| void | partitions_add (struct t_mympd_state *mympd_state, const char *name) |
MPD partitions specific functions.
| void partitions_add | ( | struct t_mympd_state * | mympd_state, |
| const char * | name | ||
| ) |
Adds a partition to the partition list
| mympd_state | pointer to t_mympd_state struct |
| name | partition name |
| bool partitions_check | ( | struct t_mympd_state * | mympd_state, |
| const char * | name | ||
| ) |
Checks if the partition is already in the list
| mympd_state | pointer to t_mympd_state struct |
| name | partition name |
| bool partitions_connect | ( | struct t_mympd_state * | mympd_state, |
| struct t_partition_state * | partition_state | ||
| ) |
Connects to MPD and switches to the defined partition
| mympd_state | Pointer to mympd_state |
| partition_state | Pointer to partition state |
| struct t_partition_state * partitions_get_by_name | ( | struct t_mympd_state * | mympd_state, |
| const char * | name | ||
| ) |
Get the partition state struct by partition name
| mympd_state | pointer to central myMPD state |
| name | mpd partition name |
| void partitions_list_clear | ( | struct t_mympd_state * | mympd_state | ) |
Removes all but default partition from the list
| mympd_state | pointer to central myMPD state |
| bool partitions_populate | ( | struct t_mympd_state * | mympd_state | ) |
Populates the partition list: removes and adds partitions according to mpd
| mympd_state | pointer to t_mympd_state struct |