myMPD
Internal API documentation
Loading...
Searching...
No Matches
partitions.h
Go to the documentation of this file.
1/*
2 SPDX-License-Identifier: GPL-3.0-or-later
3 myMPD (c) 2018-2025 Juergen Mang <mail@jcgames.de>
4 https://github.com/jcorporation/mympd
5*/
6
11#ifndef MYMPD_MPD_CLIENT_PARTITIONS_H
12#define MYMPD_MPD_CLIENT_PARTITIONS_H
13
14#include "src/lib/mympd_state.h"
15
16bool partitions_connect(struct t_mympd_state *mympd_state, struct t_partition_state *partition_state);
17struct t_partition_state *partitions_get_by_name(struct t_mympd_state *mympd_state, const char *name);
18void partitions_list_clear(struct t_mympd_state *mympd_state);
19bool partitions_populate(struct t_mympd_state *mympd_state);
20bool partitions_check(struct t_mympd_state *mympd_state, const char *name);
21void partitions_add(struct t_mympd_state *mympd_state, const char *name);
22#endif
void partitions_list_clear(struct t_mympd_state *mympd_state)
Definition partitions.c:128
bool partitions_populate(struct t_mympd_state *mympd_state)
Definition partitions.c:145
bool partitions_connect(struct t_mympd_state *mympd_state, struct t_partition_state *partition_state)
Definition partitions.c:39
void partitions_add(struct t_mympd_state *mympd_state, const char *name)
Definition partitions.c:207
bool partitions_check(struct t_mympd_state *mympd_state, const char *name)
Definition partitions.c:191
struct t_partition_state * partitions_get_by_name(struct t_mympd_state *mympd_state, const char *name)
Definition partitions.c:113
Central myMPD state for the mympd_api thread.
Definition mympd_state.h:215
Definition mympd_state.h:114
sds name
partition name
Definition mympd_state.h:141