libmpdclient 2.22
|
MPD client library. More...
#include "compiler.h"
#include <stdbool.h>
Go to the source code of this file.
Enumerations | |
enum | mpd_replay_gain_mode { MPD_REPLAY_OFF = 0 , MPD_REPLAY_TRACK , MPD_REPLAY_ALBUM , MPD_REPLAY_AUTO , MPD_REPLAY_UNKNOWN } |
Functions | |
enum mpd_replay_gain_mode | mpd_parse_replay_gain_name (const char *name) |
const char * | mpd_lookup_replay_gain_mode (enum mpd_replay_gain_mode mode) |
bool | mpd_send_replay_gain_status (struct mpd_connection *connection) |
enum mpd_replay_gain_mode | mpd_recv_replay_gain_status (struct mpd_connection *connection) |
enum mpd_replay_gain_mode | mpd_run_replay_gain_status (struct mpd_connection *connection) |
bool | mpd_send_replay_gain_mode (struct mpd_connection *connection, enum mpd_replay_gain_mode mode) |
bool | mpd_run_replay_gain_mode (struct mpd_connection *connection, enum mpd_replay_gain_mode mode) |
MPD client library.
Do not include this header directly. Use mpd/client.h instead.
Definition in file replay_gain.h.
enum mpd_replay_gain_mode |
MPD's replay gain mode.
Definition at line 53 of file replay_gain.h.
enum mpd_replay_gain_mode mpd_parse_replay_gain_name | ( | const char * | name | ) |
Parse a mpd_pair value to check which replay gain mode it contains.
const char * mpd_lookup_replay_gain_mode | ( | enum mpd_replay_gain_mode | mode | ) |
Looks up the name of the specified replay gain mode.
bool mpd_send_replay_gain_status | ( | struct mpd_connection * | connection | ) |
Queries the current state of replay gain mode on MPD.
Sends the "replay_gain_status" command to MPD. Call mpd_recv_replay_gain_status() to read the response.
connection | the connection to MPD |
enum mpd_replay_gain_mode mpd_recv_replay_gain_status | ( | struct mpd_connection * | connection | ) |
Receives the current state of replay gain mode on MPD. Shortcut for mpd_recv_pair_named() and mpd_parse_replay_gain_name() ad mpd_return_pair().
connection | the connection to MPD |
enum mpd_replay_gain_mode mpd_run_replay_gain_status | ( | struct mpd_connection * | connection | ) |
Shortcut for mpd_send_replay_gain_status(), mpd_recv_replay_gain_status() and mpd_response_finish().
connection | the connection to MPD |
bool mpd_send_replay_gain_mode | ( | struct mpd_connection * | connection, |
enum mpd_replay_gain_mode | mode | ||
) |
Sets the current state of replay gain mode on MPD.
connection | the connection to MPD |
mode | the desired replay gain mode |
bool mpd_run_replay_gain_mode | ( | struct mpd_connection * | connection, |
enum mpd_replay_gain_mode | mode | ||
) |
Shortcut for mpd_send_replay_gain_mode() and mpd_response_finish().
connection | the connection to MPD |
mode | mode the desired replay gain mode |