The arg count check can be removed from the command handler, and the
pointless help text of the commit has been removed because it said
more or less the same as the summary text.
[/description]
[subcommand next]
purpose = load the next file of the playlist
+
+[subcommand prev]
+ purpose = load the previous file of the playlist
return 0;
}
-static int com_prev(struct play_task *pt, int argc, __a_unused char **argv)
-
+static int com_prev(struct play_task *pt,
+ __a_unused struct lls_parse_result *lpr)
{
int ret;
- if (argc != 1)
- return -E_PLAY_SYNTAX;
ret = previous_valid_file(pt);
if (ret < 0)
return ret;
pt->start_chunk = 0;
return 0;
}
+EXPORT_PLAY_CMD_HANDLER(prev);
static int com_next(struct play_task *pt,
__a_unused struct lls_parse_result *lpr)
SF: play.c
SN: list of commands
---
-N: prev
-D: Load previous file.
-U: prev
-H: Closes the current file and loads the previous file of the playlist.
----
N: bg
D: Enter input mode.
U: bg