[mpd] Formatting of channel and sticker handler list

This commit is contained in:
chme 2017-12-27 09:33:06 +01:00
parent 8ad6f75815
commit 141c4e926b
1 changed files with 15 additions and 24 deletions

View File

@ -3448,14 +3448,16 @@ struct mpd_sticker_command {
int need_args; int need_args;
}; };
static struct mpd_sticker_command mpd_sticker_handlers[] = { static struct mpd_sticker_command mpd_sticker_handlers[] =
{ "get", mpd_sticker_get, 5 }, {
{ "set", mpd_sticker_set, 6 }, /* sticker command | handler function | minimum argument count */
{ "delete", mpd_sticker_delete, 5 }, { "get", mpd_sticker_get, 5 },
{ "list", mpd_sticker_list, 4 }, { "set", mpd_sticker_set, 6 },
{ "find", mpd_sticker_find, 5 }, { "delete", mpd_sticker_delete, 5 },
{ NULL, NULL, 0 }, { "list", mpd_sticker_list, 4 },
}; { "find", mpd_sticker_find, 5 },
{ NULL, NULL, 0 },
};
/* /*
* Command handler function for 'sticker' * Command handler function for 'sticker'
@ -4042,22 +4044,11 @@ struct mpd_channel
static struct mpd_channel mpd_channels[] = static struct mpd_channel mpd_channels[] =
{ {
{ /* channel | handler function */
.channel = "outputvolume", { "outputvolume", channel_outputvolume },
.handler = channel_outputvolume { "pairing", channel_pairing },
}, { "verification", channel_verification },
{ { NULL, NULL },
.channel = "pairing",
.handler = channel_pairing
},
{
.channel = "verification",
.handler = channel_verification
},
{
.channel = NULL,
.handler = NULL
},
}; };
/* /*