mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-24 13:13:17 -05:00
[mpd] Add listfiles command
For now listfiles simply returns the same result as lsinfo (no support for listing files not part of the library)
This commit is contained in:
parent
937d1e3f5f
commit
5bd94df4a6
14
src/mpd.c
14
src/mpd.c
@ -3093,6 +3093,18 @@ mpd_command_lsinfo(struct evbuffer *evbuf, int argc, char **argv, char **errmsg,
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Command handler function for 'listfiles'
|
||||||
|
*
|
||||||
|
* This command should list all files including files that are not part of the library. We do not support this
|
||||||
|
* and only report files in the library.
|
||||||
|
*/
|
||||||
|
static int
|
||||||
|
mpd_command_listfiles(struct evbuffer *evbuf, int argc, char **argv, char **errmsg, struct mpd_client_ctx *ctx)
|
||||||
|
{
|
||||||
|
return mpd_command_lsinfo(evbuf, argc, argv, errmsg, ctx);
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Command handler function for 'search'
|
* Command handler function for 'search'
|
||||||
* Lists any song that matches the given list of arguments. Arguments are pairs of TYPE and WHAT, where
|
* Lists any song that matches the given list of arguments. Arguments are pairs of TYPE and WHAT, where
|
||||||
@ -4118,7 +4130,7 @@ static struct mpd_command mpd_handlers[] =
|
|||||||
{ "list", mpd_command_list, -1 },
|
{ "list", mpd_command_list, -1 },
|
||||||
{ "listall", mpd_command_listall, -1 },
|
{ "listall", mpd_command_listall, -1 },
|
||||||
{ "listallinfo", mpd_command_listallinfo, -1 },
|
{ "listallinfo", mpd_command_listallinfo, -1 },
|
||||||
// { "listfiles", mpd_command_listfiles, -1 },
|
{ "listfiles", mpd_command_listfiles, -1 },
|
||||||
{ "lsinfo", mpd_command_lsinfo, -1 },
|
{ "lsinfo", mpd_command_lsinfo, -1 },
|
||||||
// { "readcomments", mpd_command_readcomments, -1 },
|
// { "readcomments", mpd_command_readcomments, -1 },
|
||||||
{ "search", mpd_command_search, -1 },
|
{ "search", mpd_command_search, -1 },
|
||||||
|
Loading…
x
Reference in New Issue
Block a user