Code

mpdclient: pass const song object to mpdclient_cmd_add()
authorMax Kellermann <max@duempel.org>
Mon, 24 Aug 2009 22:43:48 +0000 (00:43 +0200)
committerMax Kellermann <max@duempel.org>
Mon, 24 Aug 2009 22:43:48 +0000 (00:43 +0200)
src/mpdclient.c
src/mpdclient.h

index 5f4632613632183bfb5c487c2589d5a60fa53202..a4224a68cd3183ffe8826aa0f1e9af11f3269e13 100644 (file)
@@ -478,7 +478,7 @@ mpdclient_cmd_add_path(mpdclient_t *c, const gchar *path_utf8)
 }
 
 gint
-mpdclient_cmd_add(mpdclient_t *c, struct mpd_song *song)
+mpdclient_cmd_add(mpdclient_t *c, const struct mpd_song *song)
 {
        gint retval = 0;
 
index 42aa17c6877184e31a249f3a90e93139cae56d37..1abe2f6bc7ab1350b8f04f04e5d024daf7919245 100644 (file)
@@ -69,7 +69,7 @@ gint mpdclient_cmd_volume_up(struct mpdclient *c);
 gint mpdclient_cmd_volume_down(struct mpdclient *c);
 gint mpdclient_cmd_add_path(mpdclient_t *c, const gchar *path);
 
-gint mpdclient_cmd_add(mpdclient_t *c, struct mpd_song *song);
+gint mpdclient_cmd_add(mpdclient_t *c, const struct mpd_song *song);
 gint mpdclient_cmd_delete(mpdclient_t *c, gint index);
 gint mpdclient_cmd_move(mpdclient_t *c, gint old_index, gint new_index);