mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-27 23:55:57 -05:00
[mpd] Formatting of channel and sticker handler list
This commit is contained in:
parent
8ad6f75815
commit
141c4e926b
39
src/mpd.c
39
src/mpd.c
@ -3448,14 +3448,16 @@ struct mpd_sticker_command {
|
||||
int need_args;
|
||||
};
|
||||
|
||||
static struct mpd_sticker_command mpd_sticker_handlers[] = {
|
||||
{ "get", mpd_sticker_get, 5 },
|
||||
{ "set", mpd_sticker_set, 6 },
|
||||
{ "delete", mpd_sticker_delete, 5 },
|
||||
{ "list", mpd_sticker_list, 4 },
|
||||
{ "find", mpd_sticker_find, 5 },
|
||||
{ NULL, NULL, 0 },
|
||||
};
|
||||
static struct mpd_sticker_command mpd_sticker_handlers[] =
|
||||
{
|
||||
/* sticker command | handler function | minimum argument count */
|
||||
{ "get", mpd_sticker_get, 5 },
|
||||
{ "set", mpd_sticker_set, 6 },
|
||||
{ "delete", mpd_sticker_delete, 5 },
|
||||
{ "list", mpd_sticker_list, 4 },
|
||||
{ "find", mpd_sticker_find, 5 },
|
||||
{ NULL, NULL, 0 },
|
||||
};
|
||||
|
||||
/*
|
||||
* Command handler function for 'sticker'
|
||||
@ -4042,22 +4044,11 @@ struct mpd_channel
|
||||
|
||||
static struct mpd_channel mpd_channels[] =
|
||||
{
|
||||
{
|
||||
.channel = "outputvolume",
|
||||
.handler = channel_outputvolume
|
||||
},
|
||||
{
|
||||
.channel = "pairing",
|
||||
.handler = channel_pairing
|
||||
},
|
||||
{
|
||||
.channel = "verification",
|
||||
.handler = channel_verification
|
||||
},
|
||||
{
|
||||
.channel = NULL,
|
||||
.handler = NULL
|
||||
},
|
||||
/* channel | handler function */
|
||||
{ "outputvolume", channel_outputvolume },
|
||||
{ "pairing", channel_pairing },
|
||||
{ "verification", channel_verification },
|
||||
{ NULL, NULL },
|
||||
};
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user