From 0b3bcb6c7f1bb4a633896b8a9936e498570ef8e1 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 15 Sep 2008 12:27:28 +0200 Subject: const pointers Convert pointers to const whenever it is possible. Fixes all those -Wconst warnings. --- src/mpdclient.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mpdclient.h') diff --git a/src/mpdclient.h b/src/mpdclient.h index 44c266afc..5f231c383 100644 --- a/src/mpdclient.h +++ b/src/mpdclient.h @@ -114,7 +114,7 @@ GList *mpdclient_get_albums_utf8(mpdclient_t *c, gchar *artist_utf8); #define IS_ACK_ERROR(n) (n & MPD_ERROR_ACK) #define GET_ACK_ERROR_CODE(n) ((n & 0xFF00) >> 8) -typedef void (*mpdc_error_cb_t) (mpdclient_t *c, gint error, gchar *msg); +typedef void (*mpdc_error_cb_t) (mpdclient_t *c, gint error, const gchar *msg); void mpdclient_install_error_callback(mpdclient_t *c, mpdc_error_cb_t cb); void mpdclient_remove_error_callback(mpdclient_t *c, mpdc_error_cb_t cb); @@ -161,7 +161,7 @@ void mpdclient_playlist_callback(mpdclient_t *c, int event, gpointer data); /*** filelist functions ***************************************************/ mpdclient_filelist_t *mpdclient_filelist_free(mpdclient_filelist_t *filelist); -mpdclient_filelist_t *mpdclient_filelist_get(mpdclient_t *c, gchar *path); +mpdclient_filelist_t *mpdclient_filelist_get(mpdclient_t *c, const gchar *path); mpdclient_filelist_t *mpdclient_filelist_search(mpdclient_t *c, int exact_match, int table, -- cgit v1.2.3