stringnormalization.h
Go to the documentation of this file.
// SPDX-License-Identifier: BSD-3-Clause
// Copyright The Music Player Daemon Project
#ifndef LIBMPDCLIENT_STRINGNORMALIZATION_H
#define LIBMPDCLIENT_STRINGNORMALIZATION_H
#include "recv.h"
#include "compiler.h"
#include <stdbool.h>
enum mpd_stringnormalization_option
{
MPD_STRINGNORMALIZATION_UNKNOWN = -1,
MPD_STRINGNORMALIZATION_STRIP_DIACRITICS,
/* IMPORTANT: the ordering above must be
retained, or else the libmpdclient ABI breaks */
MPD_STRINGNORMALIZATION_COUNT
};
#ifdef __cplusplus
extern "C" {
#endif
const char *
mpd_stringnormalization_name(enum mpd_stringnormalization_option option);
enum mpd_stringnormalization_option
mpd_stringnormalization_name_parse(const char *name);
bool
mpd_send_list_stringnormalization(struct mpd_connection *connection);
bool
mpd_send_list_stringnormalization_available(struct mpd_connection *connection);
mpd_malloc
static inline struct mpd_pair *
mpd_recv_stringnormalization_pair(struct mpd_connection *connection)
{
return mpd_recv_pair_named(connection, "stringnormalization");
}
bool
mpd_send_disable_stringnormalization(struct mpd_connection *connection,
const enum mpd_stringnormalization_option *options, unsigned n);
bool
mpd_run_disable_stringnormalization(struct mpd_connection *connection,
const enum mpd_stringnormalization_option *options, unsigned n);
bool
mpd_send_enable_stringnormalization(struct mpd_connection *connection,
const enum mpd_stringnormalization_option *options, unsigned n);
bool
mpd_run_enable_stringnormalization(struct mpd_connection *connection,
const enum mpd_stringnormalization_option *options, unsigned n);
bool
mpd_send_clear_stringnormalization(struct mpd_connection *connection);
bool
mpd_run_clear_stringnormalization(struct mpd_connection *connection);
bool
mpd_send_all_stringnormalization(struct mpd_connection *connection);
bool
mpd_run_all_stringnormalization(struct mpd_connection *connection);
#ifdef __cplusplus
}
#endif
#endif
recv.h
MPD client library.
mpd_recv_pair_named
struct mpd_pair * mpd_recv_pair_named(struct mpd_connection *connection, const char *name)
mpd_run_clear_stringnormalization
bool mpd_run_clear_stringnormalization(struct mpd_connection *connection)
mpd_run_all_stringnormalization
bool mpd_run_all_stringnormalization(struct mpd_connection *connection)
mpd_send_list_stringnormalization_available
bool mpd_send_list_stringnormalization_available(struct mpd_connection *connection)
mpd_send_list_stringnormalization
bool mpd_send_list_stringnormalization(struct mpd_connection *connection)
mpd_stringnormalization_option
mpd_stringnormalization_option
Definition stringnormalization.h:16
MPD_STRINGNORMALIZATION_COUNT
@ MPD_STRINGNORMALIZATION_COUNT
Definition stringnormalization.h:28
MPD_STRINGNORMALIZATION_STRIP_DIACRITICS
@ MPD_STRINGNORMALIZATION_STRIP_DIACRITICS
Definition stringnormalization.h:23
MPD_STRINGNORMALIZATION_UNKNOWN
@ MPD_STRINGNORMALIZATION_UNKNOWN
Definition stringnormalization.h:21
mpd_send_enable_stringnormalization
bool mpd_send_enable_stringnormalization(struct mpd_connection *connection, const enum mpd_stringnormalization_option *options, unsigned n)
mpd_send_clear_stringnormalization
bool mpd_send_clear_stringnormalization(struct mpd_connection *connection)
mpd_stringnormalization_name_parse
enum mpd_stringnormalization_option mpd_stringnormalization_name_parse(const char *name)
mpd_recv_stringnormalization_pair
static struct mpd_pair * mpd_recv_stringnormalization_pair(struct mpd_connection *connection)
Definition stringnormalization.h:92
mpd_send_all_stringnormalization
bool mpd_send_all_stringnormalization(struct mpd_connection *connection)
mpd_run_enable_stringnormalization
bool mpd_run_enable_stringnormalization(struct mpd_connection *connection, const enum mpd_stringnormalization_option *options, unsigned n)
mpd_stringnormalization_name
const char * mpd_stringnormalization_name(enum mpd_stringnormalization_option option)
mpd_send_disable_stringnormalization
bool mpd_send_disable_stringnormalization(struct mpd_connection *connection, const enum mpd_stringnormalization_option *options, unsigned n)
mpd_run_disable_stringnormalization
bool mpd_run_disable_stringnormalization(struct mpd_connection *connection, const enum mpd_stringnormalization_option *options, unsigned n)
mpd_connection
mpd_pair
Definition pair.h:16