player.h
Go to the documentation of this file.
// SPDX-License-Identifier: BSD-2-Clause
// Copyright The Music Player Daemon Project
#ifndef MPD_PLAYER_H
#define MPD_PLAYER_H
#include "compiler.h"
#include "status.h"
#include <stdbool.h>
struct mpd_connection;
struct mpd_song;
#ifdef __cplusplus
extern "C" {
#endif
bool
mpd_send_current_song(struct mpd_connection *connection);
mpd_malloc
struct mpd_song *
mpd_run_current_song(struct mpd_connection *connection);
bool
mpd_send_play(struct mpd_connection *connection);
bool
mpd_run_play(struct mpd_connection *connection);
bool
mpd_send_play_pos(struct mpd_connection *connection, unsigned song_pos);
bool
mpd_run_play_pos(struct mpd_connection *connection, unsigned song_pos);
bool
mpd_send_play_id(struct mpd_connection *connection, unsigned song_id);
bool
mpd_run_play_id(struct mpd_connection *connection, unsigned song_id);
bool
mpd_send_stop(struct mpd_connection *connection);
bool
mpd_run_stop(struct mpd_connection *connection);
bool
mpd_send_toggle_pause(struct mpd_connection *connection);
bool
mpd_run_toggle_pause(struct mpd_connection *connection);
bool
mpd_send_pause(struct mpd_connection *connection, bool mode);
bool
mpd_run_pause(struct mpd_connection *connection, bool mode);
bool
mpd_send_next(struct mpd_connection *connection);
bool
mpd_run_next(struct mpd_connection *connection);
bool
mpd_send_previous(struct mpd_connection *connection);
bool
mpd_run_previous(struct mpd_connection *connection);
bool
mpd_send_seek_pos(struct mpd_connection *connection,
unsigned song_pos, unsigned t);
bool
mpd_run_seek_pos(struct mpd_connection *connection,
unsigned song_pos, unsigned t);
bool
mpd_send_seek_id(struct mpd_connection *connection,
unsigned song_id, unsigned t);
bool
mpd_run_seek_id(struct mpd_connection *connection,
unsigned song_id, unsigned t);
bool
mpd_send_seek_id_float(struct mpd_connection *connection,
unsigned song_id, float t);
bool
mpd_run_seek_id_float(struct mpd_connection *connection,
unsigned song_id, float t);
bool
mpd_send_seek_current(struct mpd_connection *connection,
float t, bool relative);
bool
mpd_run_seek_current(struct mpd_connection *connection,
float t, bool relative);
bool
mpd_send_repeat(struct mpd_connection *connection, bool mode);
bool
mpd_run_repeat(struct mpd_connection *connection, bool mode);
bool
mpd_send_random(struct mpd_connection *connection, bool mode);
bool
mpd_run_random(struct mpd_connection *connection, bool mode);
bool
mpd_send_single_state(struct mpd_connection *connection,
enum mpd_single_state state);
bool
mpd_run_single_state(struct mpd_connection *connection,
enum mpd_single_state state);
bool
mpd_send_single(struct mpd_connection *connection, bool mode);
bool
mpd_run_single(struct mpd_connection *connection, bool mode);
bool
mpd_send_consume(struct mpd_connection *connection, bool mode);
bool
mpd_run_consume(struct mpd_connection *connection, bool mode);
bool
mpd_send_consume_state(struct mpd_connection *connection, enum mpd_consume_state state);
bool
mpd_run_consume_state(struct mpd_connection *connection, enum mpd_consume_state state);
bool
mpd_send_crossfade(struct mpd_connection *connection, unsigned seconds);
bool
mpd_run_crossfade(struct mpd_connection *connection, unsigned seconds);
bool
mpd_send_mixrampdb(struct mpd_connection *connection, float db);
bool
mpd_run_mixrampdb(struct mpd_connection *connection, float db);
bool
mpd_send_mixrampdelay(struct mpd_connection *connection, float seconds);
bool
mpd_run_mixrampdelay(struct mpd_connection *connection, float seconds);
bool
mpd_send_clearerror(struct mpd_connection *connection);
bool
mpd_run_clearerror(struct mpd_connection *connection);
#ifdef __cplusplus
}
#endif
#endif
mpd_send_stop
bool mpd_send_stop(struct mpd_connection *connection)
mpd_send_repeat
bool mpd_send_repeat(struct mpd_connection *connection, bool mode)
mpd_send_mixrampdb
bool mpd_send_mixrampdb(struct mpd_connection *connection, float db)
mpd_run_seek_current
bool mpd_run_seek_current(struct mpd_connection *connection, float t, bool relative)
mpd_run_single
bool mpd_run_single(struct mpd_connection *connection, bool mode)
mpd_send_seek_pos
bool mpd_send_seek_pos(struct mpd_connection *connection, unsigned song_pos, unsigned t)
mpd_run_play_pos
bool mpd_run_play_pos(struct mpd_connection *connection, unsigned song_pos)
mpd_send_current_song
bool mpd_send_current_song(struct mpd_connection *connection)
mpd_run_current_song
struct mpd_song * mpd_run_current_song(struct mpd_connection *connection)
mpd_run_consume
bool mpd_run_consume(struct mpd_connection *connection, bool mode)
mpd_send_play_id
bool mpd_send_play_id(struct mpd_connection *connection, unsigned song_id)
mpd_send_random
bool mpd_send_random(struct mpd_connection *connection, bool mode)
mpd_run_crossfade
bool mpd_run_crossfade(struct mpd_connection *connection, unsigned seconds)
mpd_send_play_pos
bool mpd_send_play_pos(struct mpd_connection *connection, unsigned song_pos)
mpd_send_seek_id_float
bool mpd_send_seek_id_float(struct mpd_connection *connection, unsigned song_id, float t)
mpd_run_single_state
bool mpd_run_single_state(struct mpd_connection *connection, enum mpd_single_state state)
mpd_run_next
bool mpd_run_next(struct mpd_connection *connection)
mpd_run_clearerror
bool mpd_run_clearerror(struct mpd_connection *connection)
mpd_run_pause
bool mpd_run_pause(struct mpd_connection *connection, bool mode)
mpd_send_previous
bool mpd_send_previous(struct mpd_connection *connection)
mpd_send_crossfade
bool mpd_send_crossfade(struct mpd_connection *connection, unsigned seconds)
mpd_run_seek_id
bool mpd_run_seek_id(struct mpd_connection *connection, unsigned song_id, unsigned t)
mpd_send_mixrampdelay
bool mpd_send_mixrampdelay(struct mpd_connection *connection, float seconds)
mpd_send_single
bool mpd_send_single(struct mpd_connection *connection, bool mode)
mpd_run_toggle_pause
bool mpd_run_toggle_pause(struct mpd_connection *connection)
mpd_send_seek_id
bool mpd_send_seek_id(struct mpd_connection *connection, unsigned song_id, unsigned t)
mpd_send_clearerror
bool mpd_send_clearerror(struct mpd_connection *connection)
mpd_send_consume
bool mpd_send_consume(struct mpd_connection *connection, bool mode)
mpd_send_play
bool mpd_send_play(struct mpd_connection *connection)
mpd_run_previous
bool mpd_run_previous(struct mpd_connection *connection)
mpd_run_stop
bool mpd_run_stop(struct mpd_connection *connection)
mpd_send_toggle_pause
bool mpd_send_toggle_pause(struct mpd_connection *connection)
mpd_run_seek_id_float
bool mpd_run_seek_id_float(struct mpd_connection *connection, unsigned song_id, float t)
mpd_run_mixrampdelay
bool mpd_run_mixrampdelay(struct mpd_connection *connection, float seconds)
mpd_run_consume_state
bool mpd_run_consume_state(struct mpd_connection *connection, enum mpd_consume_state state)
mpd_run_seek_pos
bool mpd_run_seek_pos(struct mpd_connection *connection, unsigned song_pos, unsigned t)
mpd_run_random
bool mpd_run_random(struct mpd_connection *connection, bool mode)
mpd_send_seek_current
bool mpd_send_seek_current(struct mpd_connection *connection, float t, bool relative)
mpd_run_repeat
bool mpd_run_repeat(struct mpd_connection *connection, bool mode)
mpd_run_play_id
bool mpd_run_play_id(struct mpd_connection *connection, unsigned song_id)
mpd_send_consume_state
bool mpd_send_consume_state(struct mpd_connection *connection, enum mpd_consume_state state)
mpd_send_pause
bool mpd_send_pause(struct mpd_connection *connection, bool mode)
mpd_run_mixrampdb
bool mpd_run_mixrampdb(struct mpd_connection *connection, float db)
mpd_run_play
bool mpd_run_play(struct mpd_connection *connection)
mpd_send_single_state
bool mpd_send_single_state(struct mpd_connection *connection, enum mpd_single_state state)
mpd_send_next
bool mpd_send_next(struct mpd_connection *connection)
status.h
MPD client library.
mpd_single_state
mpd_single_state
Definition status.h:39
mpd_consume_state
mpd_consume_state
Definition status.h:64
mpd_connection
mpd_song