partition.h
Go to the documentation of this file.
// SPDX-License-Identifier: BSD-2-Clause
// Copyright The Music Player Daemon Project
#ifndef MPD_PARTITION_H
#define MPD_PARTITION_H
#include "recv.h"
#include "compiler.h"
#include <stdbool.h>
struct mpd_pair;
struct mpd_partition;
struct mpd_connection;
#ifdef __cplusplus
extern "C" {
#endif
mpd_malloc
struct mpd_partition *
mpd_partition_new(const struct mpd_pair *pair);
void
mpd_partition_free(struct mpd_partition *partition);
mpd_pure
const char *
mpd_partition_get_name(const struct mpd_partition *partition);
bool
mpd_send_newpartition(struct mpd_connection *connection, const char *partition);
bool
mpd_run_newpartition(struct mpd_connection *connection, const char *partition);
bool
mpd_send_delete_partition(struct mpd_connection *connection,
const char *partition);
bool
mpd_run_delete_partition(struct mpd_connection *connection,
const char *partition);
bool
mpd_send_switch_partition(struct mpd_connection *connection,
const char *partition);
bool
mpd_run_switch_partition(struct mpd_connection *connection,
const char *partition);
bool
mpd_send_listpartitions(struct mpd_connection *connection);
mpd_malloc
static inline struct mpd_pair *
mpd_recv_partition_pair(struct mpd_connection *connection)
{
return mpd_recv_pair_named(connection, "partition");
}
mpd_malloc
struct mpd_partition *
mpd_recv_partition(struct mpd_connection *connection);
#ifdef __cplusplus
}
#endif
#endif
mpd_send_switch_partition
bool mpd_send_switch_partition(struct mpd_connection *connection, const char *partition)
mpd_partition_get_name
const char * mpd_partition_get_name(const struct mpd_partition *partition)
mpd_send_newpartition
bool mpd_send_newpartition(struct mpd_connection *connection, const char *partition)
mpd_recv_partition_pair
static struct mpd_pair * mpd_recv_partition_pair(struct mpd_connection *connection)
Definition partition.h:163
mpd_run_switch_partition
bool mpd_run_switch_partition(struct mpd_connection *connection, const char *partition)
mpd_partition_new
struct mpd_partition * mpd_partition_new(const struct mpd_pair *pair)
mpd_recv_partition
struct mpd_partition * mpd_recv_partition(struct mpd_connection *connection)
mpd_run_newpartition
bool mpd_run_newpartition(struct mpd_connection *connection, const char *partition)
mpd_run_delete_partition
bool mpd_run_delete_partition(struct mpd_connection *connection, const char *partition)
mpd_send_delete_partition
bool mpd_send_delete_partition(struct mpd_connection *connection, const char *partition)
mpd_partition_free
void mpd_partition_free(struct mpd_partition *partition)
mpd_send_listpartitions
bool mpd_send_listpartitions(struct mpd_connection *connection)
recv.h
MPD client library.
mpd_recv_pair_named
struct mpd_pair * mpd_recv_pair_named(struct mpd_connection *connection, const char *name)
mpd_connection
mpd_pair
Definition pair.h:16
mpd_partition