diff options
Diffstat (limited to 'src/command.c')
-rw-r--r-- | src/command.c | 8 |
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); } |