qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2 10/14] ui: Factor out qmp_add_client() parts and move to u


From: Markus Armbruster
Subject: Re: [PATCH v2 10/14] ui: Factor out qmp_add_client() parts and move to ui/ui-qmp-cmds.c
Date: Fri, 02 Dec 2022 16:09:16 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)

Philippe Mathieu-Daudé <philmd@linaro.org> writes:

> On 2/12/22 11:05, Markus Armbruster wrote:
>> Signed-off-by: Markus Armbruster <armbru@redhat.com>
>> ---
>>   include/monitor/qmp-helpers.h | 26 ++++++++++++
>>   monitor/qmp-cmds.c            | 74 ++++++++++++++++-------------------
>>   ui/ui-qmp-cmds.c              | 41 +++++++++++++++++++
>>   3 files changed, 100 insertions(+), 41 deletions(-)
>>   create mode 100644 include/monitor/qmp-helpers.h
>
>
>> @@ -174,54 +172,48 @@ void qmp_add_client(const char *protocol, const char 
>> *fdname,
>>                       bool has_skipauth, bool skipauth, bool has_tls, bool 
>> tls,
>>                       Error **errp)
>>   {
>> +    static struct {
>
> const.

Okay.

>> +        const char *name;
>> +        bool (*add_client)(int fd, bool has_skipauth, bool skipauth,
>> +                           bool has_tls, bool tls, Error **errp);
>> +    } protocol_table[] = {
>> +        { "spice", qmp_add_client_spice },
>> +#ifdef CONFIG_VNC
>> +        { "vnc", qmp_add_client_vnc },
>> +#endif
>> +#ifdef CONFIG_DBUS_DISPLAY
>> +        { "@dbus-display", qmp_add_client_dbus_display },
>> +#endif
>> +    };
>
> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>

Thanks!




reply via email to

[Prev in Thread] Current Thread [Next in Thread]