From 49d3277a7345108f10322712852f3f1f1df92eb6 Mon Sep 17 00:00:00 2001 From: Kalle Wallin Date: Fri, 18 Jun 2004 14:19:23 +0000 Subject: Added the mpdclient_cmd_add_path function git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1553 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/mpdclient.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/mpdclient.c') diff --git a/src/mpdclient.c b/src/mpdclient.c index bb6c90fa9..1069f8ef5 100644 --- a/src/mpdclient.c +++ b/src/mpdclient.c @@ -329,6 +329,18 @@ mpdclient_cmd_volume(mpdclient_t *c, gint value) return mpdclient_finish_command(c); } +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) { -- cgit v1.2.3