Code

const pointers
[ncmpc.git] / src / libmpdclient.h
index 437951b31069de465928d22e0f0308c71fffe231..fe1991edc28f1f63d03e991b1e5ba0be8001fb8b 100644 (file)
@@ -91,7 +91,7 @@ typedef enum mpd_TagItems
        MPD_TAG_NUM_OF_ITEM_TYPES
 }mpd_TagItems;
 
-extern char * mpdTagItemKeys[MPD_TAG_NUM_OF_ITEM_TYPES];
+extern const char *const mpdTagItemKeys[MPD_TAG_NUM_OF_ITEM_TYPES];
 
 /* internal stuff don't touch this struct */
 typedef struct _mpd_ReturnElement {
@@ -498,7 +498,7 @@ void mpd_sendVolumeCommand(mpd_Connection * connection, int volumeChange);
 
 void mpd_sendCrossfadeCommand(mpd_Connection * connection, int seconds);
 
-void mpd_sendUpdateCommand(mpd_Connection * connection, char * path);
+void mpd_sendUpdateCommand(mpd_Connection * connection, const char *path);
 
 /* returns the update job id, call this after a update command*/
 int mpd_getUpdateId(mpd_Connection * connection);