[mpd] Add support for "mpc sendmessage verification [pincode]"

This commit is contained in:
ejurgensen 2017-06-20 21:01:55 +02:00
parent 5e48a68525
commit 299a8f9e4b

View File

@ -3523,6 +3523,12 @@ channel_pairing(const char *message)
remote_pairing_kickoff((char **)&message);
}
static void
channel_verification(const char *message)
{
player_raop_verification_kickoff((char **)&message);
}
struct mpd_channel
{
/* The channel name */
@ -3546,6 +3552,10 @@ static struct mpd_channel mpd_channels[] =
.channel = "pairing",
.handler = channel_pairing
},
{
.channel = "verification",
.handler = channel_verification
},
{
.channel = NULL,
.handler = NULL