capabilities.h
Go to the documentation of this file.
// SPDX-License-Identifier: BSD-2-Clause
// Copyright The Music Player Daemon Project
#ifndef MPD_CAPABILITIES_H
#define MPD_CAPABILITIES_H
#include "recv.h"
#include "compiler.h"
#include "tag.h"
#include <stdbool.h>
struct mpd_connection;
#ifdef __cplusplus
extern "C" {
#endif
bool
mpd_send_allowed_commands(struct mpd_connection *connection);
bool
mpd_send_disallowed_commands(struct mpd_connection *connection);
mpd_malloc
static inline struct mpd_pair *
mpd_recv_command_pair(struct mpd_connection *connection)
{
return mpd_recv_pair_named(connection, "command");
}
bool
mpd_send_list_url_schemes(struct mpd_connection *connection);
mpd_malloc
static inline struct mpd_pair *
mpd_recv_url_scheme_pair(struct mpd_connection *connection)
{
return mpd_recv_pair_named(connection, "handler");
}
bool
mpd_send_list_tag_types(struct mpd_connection *connection);
mpd_malloc
static inline struct mpd_pair *
mpd_recv_tag_type_pair(struct mpd_connection *connection)
{
return mpd_recv_pair_named(connection, "tagtype");
}
bool
mpd_send_disable_tag_types(struct mpd_connection *connection,
const enum mpd_tag_type *types, unsigned n);
bool
mpd_run_disable_tag_types(struct mpd_connection *connection,
const enum mpd_tag_type *types, unsigned n);
bool
mpd_send_enable_tag_types(struct mpd_connection *connection,
const enum mpd_tag_type *types, unsigned n);
bool
mpd_run_enable_tag_types(struct mpd_connection *connection,
const enum mpd_tag_type *types, unsigned n);
bool
mpd_send_clear_tag_types(struct mpd_connection *connection);
bool
mpd_run_clear_tag_types(struct mpd_connection *connection);
bool
mpd_send_all_tag_types(struct mpd_connection *connection);
bool
mpd_run_all_tag_types(struct mpd_connection *connection);
#ifdef __cplusplus
}
#endif
#endif
mpd_send_list_url_schemes
bool mpd_send_list_url_schemes(struct mpd_connection *connection)
mpd_send_enable_tag_types
bool mpd_send_enable_tag_types(struct mpd_connection *connection, const enum mpd_tag_type *types, unsigned n)
mpd_recv_tag_type_pair
static struct mpd_pair * mpd_recv_tag_type_pair(struct mpd_connection *connection)
Definition capabilities.h:112
mpd_send_disallowed_commands
bool mpd_send_disallowed_commands(struct mpd_connection *connection)
mpd_recv_command_pair
static struct mpd_pair * mpd_recv_command_pair(struct mpd_connection *connection)
Definition capabilities.h:58
mpd_send_clear_tag_types
bool mpd_send_clear_tag_types(struct mpd_connection *connection)
mpd_run_disable_tag_types
bool mpd_run_disable_tag_types(struct mpd_connection *connection, const enum mpd_tag_type *types, unsigned n)
mpd_run_enable_tag_types
bool mpd_run_enable_tag_types(struct mpd_connection *connection, const enum mpd_tag_type *types, unsigned n)
mpd_run_all_tag_types
bool mpd_run_all_tag_types(struct mpd_connection *connection)
mpd_send_disable_tag_types
bool mpd_send_disable_tag_types(struct mpd_connection *connection, const enum mpd_tag_type *types, unsigned n)
mpd_send_all_tag_types
bool mpd_send_all_tag_types(struct mpd_connection *connection)
mpd_recv_url_scheme_pair
static struct mpd_pair * mpd_recv_url_scheme_pair(struct mpd_connection *connection)
Definition capabilities.h:85
mpd_send_list_tag_types
bool mpd_send_list_tag_types(struct mpd_connection *connection)
mpd_send_allowed_commands
bool mpd_send_allowed_commands(struct mpd_connection *connection)
mpd_run_clear_tag_types
bool mpd_run_clear_tag_types(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
tag.h
mpd_tag_type
mpd_tag_type
Definition tag.h:25