[Spice-devel] [PATCH spice-server] utils: Fill in all possible channel names
Christophe Fergeau
cfergeau at redhat.com
Wed Nov 8 09:31:38 UTC 2017
Hey,
On Wed, Nov 08, 2017 at 08:20:12AM +0000, Frediano Ziglio wrote:
> Missing some names cause some debugging messages to be
> generated and some of our tests to fail.
Something I wanted to check before sending this patch is if
the commit adding human-readable channel did not cause a small
regression when using spice-server to create a channel whose type is
not known. This can happen in somehow valid situations, if
spice-protocol has a new channel type, which code tries to use, when it
hasn't been added to spice-server yet. I'd even add a test case for that
actually.
Christophe
>
> This patch was written by Christophe Fergeau.
>
> Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
> ---
> server/utils.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> Tested with Gitlab, see https://gitlab.com/freddy77/spice/-/jobs/39471945
>
> diff --git a/server/utils.c b/server/utils.c
> index e25b7891..ff1fc2d1 100644
> --- a/server/utils.c
> +++ b/server/utils.c
> @@ -58,8 +58,10 @@ static const char *const channel_names[] = {
> [ SPICE_CHANNEL_CURSOR ] = "cursor",
> [ SPICE_CHANNEL_PLAYBACK ] = "playback",
> [ SPICE_CHANNEL_RECORD ] = "record",
> + [ SPICE_CHANNEL_TUNNEL ] = "tunnel",
> [ SPICE_CHANNEL_SMARTCARD] = "smartcard",
> [ SPICE_CHANNEL_USBREDIR ] = "usbredir",
> + [ SPICE_CHANNEL_PORT ] = "port",
> [ SPICE_CHANNEL_WEBDAV ] = "webdav",
> };
>
> --
> 2.13.6
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20171108/f859d823/attachment.sig>
More information about the Spice-devel
mailing list