From 53597efbca88638fb29cdfdde478774bb896fe2f Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 25 Aug 2009 00:43:48 +0200 Subject: [PATCH] mpdclient: pass const song object to mpdclient_cmd_add() --- src/mpdclient.c | 2 +- src/mpdclient.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); -- 2.30.2