aboutsummaryrefslogtreecommitdiffstats
path: root/src/command.c
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-06-02 23:22:37 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-06-02 23:22:37 +0000
commitb48ac2dfa355206d0a49169451f86c964a4c3e30 (patch)
tree3d847ca97088aea59f0bd7e5d668944000834f43 /src/command.c
parent8fca32b12d00db3ebfbbceb8a51880e505b5a780 (diff)
downloadmpd-b48ac2dfa355206d0a49169451f86c964a4c3e30.tar.gz
mpd-b48ac2dfa355206d0a49169451f86c964a4c3e30.tar.xz
mpd-b48ac2dfa355206d0a49169451f86c964a4c3e30.zip
add urlhandlers command, but prolly not needed
git-svn-id: https://svn.musicpd.org/mpd/trunk@1307 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/command.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/command.c b/src/command.c
index 09f869ee0..044c811ab 100644
--- a/src/command.c
+++ b/src/command.c
@@ -73,6 +73,7 @@
#define COMMAND_SETVOL "setvol"
#define COMMAND_PASSWORD "password"
#define COMMAND_CROSSFADE "crossfade"
+#define COMMAND_URL_HANDLERS "urlhandlers"
#define COMMAND_STATUS_VOLUME "volume"
#define COMMAND_STATUS_STATE "state"
@@ -135,6 +136,12 @@ void addCommand(char * name, unsigned int reqPermission, int minargs,
insertInList(commandList, cmd->cmd, cmd);
}
+int handleUrlHandlers(FILE * fp, unsigned int * permission, int argArrayLength,
+ char ** argArray)
+{
+ return printRemoteUrlHandlers(fp);
+}
+
int handlePlay(FILE * fp, unsigned int * permission, int argArrayLength,
char ** argArray)
{
@@ -628,6 +635,7 @@ void initCommands() {
addCommand(COMMAND_SETVOL ,PERMISSION_CONTROL, 1, 1,handleSetVol,NULL);
addCommand(COMMAND_PASSWORD ,0, 1, 1,handlePassword,NULL);
addCommand(COMMAND_CROSSFADE ,PERMISSION_CONTROL, 1, 1,handleCrossfade,NULL);
+ addCommand(COMMAND_URL_HANDLERS,PERMISSION_READ, 0, 0,handleUrlHandlers,NULL);
sortList(commandList);
}