From: Max Kellermann Date: Mon, 24 Aug 2009 22:43:48 +0000 (+0200) Subject: mpdclient: pass const song object to mpdclient_cmd_add() X-Git-Tag: release-0.15~30 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=53597efbca88638fb29cdfdde478774bb896fe2f;p=ncmpc.git mpdclient: pass const song object to mpdclient_cmd_add() --- diff --git a/src/mpdclient.c b/src/mpdclient.c index 5f46326..a4224a6 100644 --- a/src/mpdclient.c +++ b/src/mpdclient.c @@ -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; diff --git a/src/mpdclient.h b/src/mpdclient.h index 42aa17c..1abe2f6 100644 --- a/src/mpdclient.h +++ b/src/mpdclient.h @@ -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);