libmpdclient 2.22
partition.h
Go to the documentation of this file.
1// SPDX-License-Identifier: BSD-2-Clause
2// Copyright The Music Player Daemon Project
3
10#ifndef MPD_PARTITION_H
11#define MPD_PARTITION_H
12
13#include "recv.h"
14#include "compiler.h"
15
16#include <stdbool.h>
17
18struct mpd_pair;
22struct mpd_partition;
23struct mpd_connection;
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
38mpd_malloc
39struct mpd_partition *
40mpd_partition_new(const struct mpd_pair *pair);
41
47void
49
55mpd_pure
56const char *
57mpd_partition_get_name(const struct mpd_partition *partition);
58
70bool
71mpd_send_newpartition(struct mpd_connection *connection, const char *partition);
72
82bool
83mpd_run_newpartition(struct mpd_connection *connection, const char *partition);
84
94bool
96 const char *partition);
97
107bool
109 const char *partition);
110
120bool
122 const char *partition);
123
133bool
135 const char *partition);
136
146bool
148
161mpd_malloc
162static inline struct mpd_pair *
164{
165 return mpd_recv_pair_named(connection, "partition");
166}
167
177mpd_malloc
178struct mpd_partition *
180
181#ifdef __cplusplus
182}
183#endif
184
185#endif
bool mpd_send_switch_partition(struct mpd_connection *connection, const char *partition)
const char * mpd_partition_get_name(const struct mpd_partition *partition)
bool mpd_send_newpartition(struct mpd_connection *connection, const char *partition)
static struct mpd_pair * mpd_recv_partition_pair(struct mpd_connection *connection)
Definition partition.h:163
bool mpd_run_switch_partition(struct mpd_connection *connection, const char *partition)
struct mpd_partition * mpd_partition_new(const struct mpd_pair *pair)
struct mpd_partition * mpd_recv_partition(struct mpd_connection *connection)
bool mpd_run_newpartition(struct mpd_connection *connection, const char *partition)
bool mpd_run_delete_partition(struct mpd_connection *connection, const char *partition)
bool mpd_send_delete_partition(struct mpd_connection *connection, const char *partition)
void mpd_partition_free(struct mpd_partition *partition)
bool mpd_send_listpartitions(struct mpd_connection *connection)
MPD client library.
struct mpd_pair * mpd_recv_pair_named(struct mpd_connection *connection, const char *name)