#include "config.h"
#include "playlist.h"
#include "Compiler.h"
#include <mpd/client.h>
Go to the source code of this file.
|
bool | mpdclient_handle_error (struct mpdclient *c) |
|
struct mpdclient * | mpdclient_new (const gchar *host, unsigned port, unsigned timeout_ms, const gchar *password) |
|
void | mpdclient_free (struct mpdclient *c) |
|
char * | mpdclient_settings_name (const struct mpdclient *c) |
|
void | mpdclient_connect (struct mpdclient *c) |
|
void | mpdclient_disconnect (struct mpdclient *c) |
|
bool | mpdclient_update (struct mpdclient *c) |
|
struct mpd_connection * | mpdclient_get_connection (struct mpdclient *c) |
|
bool | mpdclient_cmd_crop (struct mpdclient *c) |
|
bool | mpdclient_cmd_clear (struct mpdclient *c) |
|
bool | mpdclient_cmd_volume (struct mpdclient *c, gint value) |
|
bool | mpdclient_cmd_volume_up (struct mpdclient *c) |
|
bool | mpdclient_cmd_volume_down (struct mpdclient *c) |
|
bool | mpdclient_cmd_add_path (struct mpdclient *c, const gchar *path) |
|
bool | mpdclient_cmd_add (struct mpdclient *c, const struct mpd_song *song) |
|
bool | mpdclient_cmd_delete (struct mpdclient *c, gint index) |
|
bool | mpdclient_cmd_delete_range (struct mpdclient *c, unsigned start, unsigned end) |
|
bool | mpdclient_cmd_move (struct mpdclient *c, unsigned dest, unsigned src) |
|
bool | mpdclient_cmd_subscribe (struct mpdclient *c, const char *channel) |
|
bool | mpdclient_cmd_unsubscribe (struct mpdclient *c, const char *channel) |
|
bool | mpdclient_cmd_send_message (struct mpdclient *c, const char *channel, const char *text) |
|
bool | mpdclient_send_read_messages (struct mpdclient *c) |
|
struct mpd_message * | mpdclient_recv_message (struct mpdclient *c) |
|
bool | mpdclient_playlist_update (struct mpdclient *c) |
|
bool | mpdclient_playlist_update_changes (struct mpdclient *c) |
|
bool | mpdclient_filelist_add_all (struct mpdclient *c, struct filelist *fl) |
|
◆ anonymous enum
Enumerator |
---|
MPD_IDLE_ALL | all idle events the version of libmpdclient, ncmpc is compiled against, supports
|
◆ mpdclient_handle_error()
bool mpdclient_handle_error |
( |
struct mpdclient * |
c | ) |
|
◆ mpdclient_new()
struct mpdclient* mpdclient_new |
( |
const gchar * |
host, |
|
|
unsigned |
port, |
|
|
unsigned |
timeout_ms, |
|
|
const gchar * |
password |
|
) |
| |
◆ mpdclient_free()
◆ mpdclient_settings_name()
char* mpdclient_settings_name |
( |
const struct mpdclient * |
c | ) |
|
Determine a human-readable "name" of the settings currently used to connect to MPD.
- Returns
- an allocated string that needs to be freed (with g_free()) by the caller
◆ mpdclient_connect()
void mpdclient_connect |
( |
struct mpdclient * |
c | ) |
|
◆ mpdclient_disconnect()
void mpdclient_disconnect |
( |
struct mpdclient * |
c | ) |
|
◆ mpdclient_update()
bool mpdclient_update |
( |
struct mpdclient * |
c | ) |
|
◆ mpdclient_get_connection()
struct mpd_connection* mpdclient_get_connection |
( |
struct mpdclient * |
c | ) |
|
◆ mpdclient_cmd_crop()
bool mpdclient_cmd_crop |
( |
struct mpdclient * |
c | ) |
|
◆ mpdclient_cmd_clear()
bool mpdclient_cmd_clear |
( |
struct mpdclient * |
c | ) |
|
◆ mpdclient_cmd_volume()
bool mpdclient_cmd_volume |
( |
struct mpdclient * |
c, |
|
|
gint |
value |
|
) |
| |
◆ mpdclient_cmd_volume_up()
bool mpdclient_cmd_volume_up |
( |
struct mpdclient * |
c | ) |
|
◆ mpdclient_cmd_volume_down()
bool mpdclient_cmd_volume_down |
( |
struct mpdclient * |
c | ) |
|
◆ mpdclient_cmd_add_path()
bool mpdclient_cmd_add_path |
( |
struct mpdclient * |
c, |
|
|
const gchar * |
path |
|
) |
| |
◆ mpdclient_cmd_add()
bool mpdclient_cmd_add |
( |
struct mpdclient * |
c, |
|
|
const struct mpd_song * |
song |
|
) |
| |
◆ mpdclient_cmd_delete()
bool mpdclient_cmd_delete |
( |
struct mpdclient * |
c, |
|
|
gint |
index |
|
) |
| |
◆ mpdclient_cmd_delete_range()
bool mpdclient_cmd_delete_range |
( |
struct mpdclient * |
c, |
|
|
unsigned |
start, |
|
|
unsigned |
end |
|
) |
| |
◆ mpdclient_cmd_move()
bool mpdclient_cmd_move |
( |
struct mpdclient * |
c, |
|
|
unsigned |
dest, |
|
|
unsigned |
src |
|
) |
| |
◆ mpdclient_cmd_subscribe()
bool mpdclient_cmd_subscribe |
( |
struct mpdclient * |
c, |
|
|
const char * |
channel |
|
) |
| |
◆ mpdclient_cmd_unsubscribe()
bool mpdclient_cmd_unsubscribe |
( |
struct mpdclient * |
c, |
|
|
const char * |
channel |
|
) |
| |
◆ mpdclient_cmd_send_message()
bool mpdclient_cmd_send_message |
( |
struct mpdclient * |
c, |
|
|
const char * |
channel, |
|
|
const char * |
text |
|
) |
| |
◆ mpdclient_send_read_messages()
bool mpdclient_send_read_messages |
( |
struct mpdclient * |
c | ) |
|
◆ mpdclient_recv_message()
struct mpd_message* mpdclient_recv_message |
( |
struct mpdclient * |
c | ) |
|
◆ mpdclient_playlist_update()
bool mpdclient_playlist_update |
( |
struct mpdclient * |
c | ) |
|
◆ mpdclient_playlist_update_changes()
bool mpdclient_playlist_update_changes |
( |
struct mpdclient * |
c | ) |
|
◆ mpdclient_filelist_add_all()