From 299a8f9e4bbfea6ea0443fc816299a001e21a8b5 Mon Sep 17 00:00:00 2001 From: ejurgensen Date: Tue, 20 Jun 2017 21:01:55 +0200 Subject: [PATCH] [mpd] Add support for "mpc sendmessage verification [pincode]" --- src/mpd.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/mpd.c b/src/mpd.c index c3f4d77b..e9dee23a 100644 --- a/src/mpd.c +++ b/src/mpd.c @@ -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