aboutsummaryrefslogtreecommitdiffstats
path: root/src/mpdclient.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mpdclient.c')
-rw-r--r--src/mpdclient.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/mpdclient.c b/src/mpdclient.c
index bb6c90fa9..1069f8ef5 100644
--- a/src/mpdclient.c
+++ b/src/mpdclient.c
@@ -330,6 +330,18 @@ mpdclient_cmd_volume(mpdclient_t *c, gint value)
}
gint
+mpdclient_cmd_add_path(mpdclient_t *c, gchar *path)
+{
+ gint retval;
+ gchar *path_utf8 = locale_to_utf8(path);
+
+ mpd_sendAddCommand(c->connection, path_utf8);
+ retval=mpdclient_finish_command(c);
+ g_free(path_utf8);
+ return retval;
+}
+
+gint
mpdclient_cmd_add(mpdclient_t *c, mpd_Song *song)
{
gint retval = 0;