39#ifndef MPD_CONNECTION_H
40#define MPD_CONNECTION_H
193 unsigned timeout_ms);
316 unsigned major,
unsigned minor,
enum mpd_server_error mpd_connection_get_server_error(const struct mpd_connection *connection)
const struct mpd_settings * mpd_connection_get_settings(const struct mpd_connection *connection)
const unsigned * mpd_connection_get_server_version(const struct mpd_connection *connection)
void mpd_connection_free(struct mpd_connection *connection)
const char * mpd_connection_get_error_message(const struct mpd_connection *connection)
struct mpd_connection * mpd_connection_new_async(struct mpd_async *async, const char *welcome)
void mpd_connection_set_timeout(struct mpd_connection *connection, unsigned timeout_ms)
int mpd_connection_cmp_server_version(const struct mpd_connection *connection, unsigned major, unsigned minor, unsigned patch)
bool mpd_connection_set_keepalive(struct mpd_connection *connection, bool keepalive)
int mpd_connection_get_fd(const struct mpd_connection *connection)
unsigned mpd_connection_get_server_error_location(const struct mpd_connection *connection)
int mpd_connection_get_system_error(const struct mpd_connection *connection)
struct mpd_connection * mpd_connection_new(const char *host, unsigned port, unsigned timeout_ms)
bool mpd_connection_clear_error(struct mpd_connection *connection)
struct mpd_async * mpd_connection_get_async(struct mpd_connection *connection)
enum mpd_error mpd_connection_get_error(const struct mpd_connection *connection)