summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e125369)
raw | patch | inline | side by side (parent: e125369)
author | Kalle Wallin <kaw@linux.se> | |
Fri, 18 Jun 2004 14:19:23 +0000 (14:19 +0000) | ||
committer | Kalle Wallin <kaw@linux.se> | |
Fri, 18 Jun 2004 14:19:23 +0000 (14:19 +0000) |
src/mpdclient.c | patch | blob | history | |
src/mpdclient.h | patch | blob | history |
diff --git a/src/mpdclient.c b/src/mpdclient.c
index bb6c90fa9e4fc5de84fef192c19bbe5a78f48030..1069f8ef539c914cc8605aeeee6f124756389be1 100644 (file)
--- a/src/mpdclient.c
+++ b/src/mpdclient.c
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)
{
diff --git a/src/mpdclient.h b/src/mpdclient.h
index 7debd80508810ecc9db7a164336630caf9c31b9a..c5df09ed800625a5f4a952167dc0fd96e1661a7c 100644 (file)
--- a/src/mpdclient.h
+++ b/src/mpdclient.h
gint mpdclient_cmd_crossfade(mpdclient_t *c, gint value);
gint mpdclient_cmd_db_update(mpdclient_t *c, gchar *path);
gint mpdclient_cmd_volume(mpdclient_t *c, gint value);
+gint mpdclient_cmd_add_path(mpdclient_t *c, gchar *path);
gint mpdclient_cmd_add(mpdclient_t *c, mpd_Song *song);
gint mpdclient_cmd_delete(mpdclient_t *c, gint index);