[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 19/19] VNC: Convert do_info_vnc() to QObject
From: |
Markus Armbruster |
Subject: |
Re: [Qemu-devel] [PATCH 19/19] VNC: Convert do_info_vnc() to QObject |
Date: |
Thu, 10 Dec 2009 11:34:37 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) |
Luiz Capitulino <address@hidden> writes:
> Return a QDict with server information. Connected clients are returned
> as a QList of QDicts.
>
> The new functions (vnc_qdict_remote_addr(), vnc_qdict_local_addr() and
> put_addr_qdict()) are used to insert 'host' and 'service' information
> in the returned QDict.
>
> This patch is big, but I don't see how to split it.
>
> Signed-off-by: Luiz Capitulino <address@hidden>
> ---
> console.h | 3 +-
> monitor.c | 3 +-
> vnc.c | 191
> +++++++++++++++++++++++++++++++++++++++++++++++++++----------
> 3 files changed, 164 insertions(+), 33 deletions(-)
>
[...]
> diff --git a/vnc.c b/vnc.c
> index 32c4678..f0fea6a 100644
> --- a/vnc.c
> +++ b/vnc.c
[...]
> +/**
> + * do_info_vnc(): Show VNC server information
> + *
> + * Return a QDict with server information. Connected clients are returned
> + * as a QList of QDicts.
> + *
> + * The main QDict contains the following:
> + *
> + * - "status": "disabled" or "enabled"
> + * - "host": server's IP address
> + * - "service": server's port number
> + * - "auth": authentication method (optional)
> + * - "clients": a QList of all connected clients
> + *
> + * Clients are described by a QDict, with the following information:
> + *
> + * - "host": client's IP address
> + * - "service": client's port number
> + * - "x509 dname": TLS dname (optional)
Sure you want dict keys with spaces? I'd prefer "x509-dname".
> + * - "username": SASL username (optional)
> + *
> + * Example:
> + *
> + * { "status": "enabled", "host": "0.0.0.0", "service": "50402", "auth":
> "vnc",
> + * "clients": [ { "host": "127.0.0.1", "service": "50401" } ] }
> + */
> +void do_info_vnc(Monitor *mon, QObject **ret_data)
[...]
- [Qemu-devel] [PATCH 12/19] monitor: Convert do_info_uuid() to QObject, (continued)
- [Qemu-devel] [PATCH 12/19] monitor: Convert do_info_uuid() to QObject, Luiz Capitulino, 2009/12/09
- [Qemu-devel] [PATCH 13/19] monitor: Convert do_info_mice() to QObject, Luiz Capitulino, 2009/12/09
- [Qemu-devel] [PATCH 14/19] migration: Convert do_info_migrate() to QObject, Luiz Capitulino, 2009/12/09
- [Qemu-devel] [PATCH 15/19] block: Convert bdrv_info() to QObject, Luiz Capitulino, 2009/12/09
- [Qemu-devel] [PATCH 16/19] block: Convert bdrv_info_stats() to QObject, Luiz Capitulino, 2009/12/09
- [Qemu-devel] [PATCH 17/19] char: Convert qemu_chr_info() to QObject, Luiz Capitulino, 2009/12/09
- [Qemu-devel] [PATCH 18/19] PCI: Convert pci_device_hot_add() to QObject, Luiz Capitulino, 2009/12/09
- [Qemu-devel] [PATCH 19/19] VNC: Convert do_info_vnc() to QObject, Luiz Capitulino, 2009/12/09
- Re: [Qemu-devel] [FOR 0.12 v3 00/19]: info handlers conversions to QObject, Markus Armbruster, 2009/12/10