]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - play.c
play: Convert com_pause() to lopsub.
[paraslash.git] / play.c
diff --git a/play.c b/play.c
index 6ca97e6bef58a3bb7c71d3af4137507d0eabb202..cab2504d263629f78c2703556d5f23331779cc5e 100644 (file)
--- a/play.c
+++ b/play.c
@@ -881,13 +881,12 @@ static int com_play(struct play_task *pt, struct lls_parse_result *lpr)
 }
 EXPORT_PLAY_CMD_HANDLER(play);
 
-static int com_pause(struct play_task *pt, int argc, __a_unused char **argv)
+static int com_pause(struct play_task *pt,
+               __a_unused struct lls_parse_result *lpr)
 {
        char state;
        long unsigned seconds, ss;
 
-       if (argc != 1)
-               return -E_PLAY_SYNTAX;
        state = get_playback_state(pt);
        pt->playing = false;
        if (state != 'P')
@@ -903,6 +902,7 @@ static int com_pause(struct play_task *pt, int argc, __a_unused char **argv)
        kill_stream(pt);
        return 0;
 }
+EXPORT_PLAY_CMD_HANDLER(pause);
 
 static int com_prev(struct play_task *pt,
        __a_unused struct lls_parse_result *lpr)