aboutsummaryrefslogtreecommitdiffstats
path: root/src/command.c
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-06-12 13:30:16 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-06-12 13:30:16 +0000
commit21703b5edc33934c6e0f3c3628378098fd86fb9f (patch)
tree99844539214f32b72d9e639c4422ccbef9376efb /src/command.c
parentaed9c23ec68eccf67747ac9d1a48b5b404644440 (diff)
downloadmpd-21703b5edc33934c6e0f3c3628378098fd86fb9f.tar.gz
mpd-21703b5edc33934c6e0f3c3628378098fd86fb9f.tar.xz
mpd-21703b5edc33934c6e0f3c3628378098fd86fb9f.zip
change 'current' command to 'currentsong'
git-svn-id: https://svn.musicpd.org/mpd/trunk@1447 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/command.c')
-rw-r--r--src/command.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/command.c b/src/command.c
index 9014ccccc..e75cc556e 100644
--- a/src/command.c
+++ b/src/command.c
@@ -81,7 +81,7 @@
#define COMMAND_CROSSFADE "crossfade"
#define COMMAND_URL_HANDLERS "urlhandlers"
#define COMMAND_PLCHANGES "plchanges"
-#define COMMAND_CURRENT "current"
+#define COMMAND_CURRENTSONG "currentsong"
#define COMMAND_STATUS_VOLUME "volume"
#define COMMAND_STATUS_STATE "state"
@@ -194,7 +194,7 @@ int handleStop(FILE * fp, unsigned int * permission, int argArrayLength,
return stopPlaylist(fp);
}
-int handleCurrent(FILE * fp, unsigned int * permission, int argArrayLength,
+int handleCurrentSong(FILE * fp, unsigned int * permission, int argArrayLength,
char ** argArray)
{
int song = getPlaylistCurrentSong();
@@ -761,7 +761,7 @@ void initCommands() {
addCommand(COMMAND_PLAY ,PERMISSION_CONTROL, 0, 1,handlePlay,NULL);
addCommand(COMMAND_PLAYID ,PERMISSION_CONTROL, 0, 1,handlePlayId,NULL);
addCommand(COMMAND_STOP ,PERMISSION_CONTROL, 0, 0,handleStop,NULL);
- addCommand(COMMAND_CURRENT ,PERMISSION_READ , 0, 0,handleCurrent,NULL);
+ addCommand(COMMAND_CURRENTSONG ,PERMISSION_READ , 0, 0,handleCurrentSong,NULL);
addCommand(COMMAND_PAUSE ,PERMISSION_CONTROL, 0, 1,handlePause,NULL);
addCommand(COMMAND_STATUS ,PERMISSION_READ, 0, 0,commandStatus,NULL);
addCommand(COMMAND_KILL ,PERMISSION_ADMIN, -1,-1,handleKill,NULL);