[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v3 2/9] qmp: constify qmp_is_oob()
From: |
Thomas Huth |
Subject: |
Re: [Qemu-devel] [PATCH v3 2/9] qmp: constify qmp_is_oob() |
Date: |
Mon, 27 Aug 2018 09:37:03 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 |
On 2018-08-25 15:57, Marc-André Lureau wrote:
> Signed-off-by: Marc-André Lureau <address@hidden>
> Reviewed-by: Markus Armbruster <address@hidden>
> ---
> include/qapi/qmp/dispatch.h | 2 +-
> qapi/qmp-dispatch.c | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/include/qapi/qmp/dispatch.h b/include/qapi/qmp/dispatch.h
> index 4e2e749faf..68a528a9aa 100644
> --- a/include/qapi/qmp/dispatch.h
> +++ b/include/qapi/qmp/dispatch.h
> @@ -50,7 +50,7 @@ bool qmp_has_success_response(const QmpCommand *cmd);
> QDict *qmp_error_response(Error *err);
> QDict *qmp_dispatch(QmpCommandList *cmds, QObject *request,
> bool allow_oob);
> -bool qmp_is_oob(QDict *dict);
> +bool qmp_is_oob(const QDict *dict);
>
> typedef void (*qmp_cmd_callback_fn)(QmpCommand *cmd, void *opaque);
>
> diff --git a/qapi/qmp-dispatch.c b/qapi/qmp-dispatch.c
> index d8da1a62de..1d922e04f7 100644
> --- a/qapi/qmp-dispatch.c
> +++ b/qapi/qmp-dispatch.c
> @@ -155,7 +155,7 @@ QDict *qmp_error_response(Error *err)
> /*
> * Does @qdict look like a command to be run out-of-band?
> */
> -bool qmp_is_oob(QDict *dict)
> +bool qmp_is_oob(const QDict *dict)
> {
> return qdict_haskey(dict, "exec-oob")
> && !qdict_haskey(dict, "execute");
>
Reviewed-by: Thomas Huth <address@hidden>
- [Qemu-devel] [PATCH v3 0/9] monitor: various code simplification and fixes, Marc-André Lureau, 2018/08/25
- [Qemu-devel] [PATCH v3 1/9] monitor: consitify qmp_send_response() QDict argument, Marc-André Lureau, 2018/08/25
- [Qemu-devel] [PATCH v3 2/9] qmp: constify qmp_is_oob(), Marc-André Lureau, 2018/08/25
- Re: [Qemu-devel] [PATCH v3 2/9] qmp: constify qmp_is_oob(),
Thomas Huth <=
- [Qemu-devel] [PATCH v3 3/9] Revert "qmp: isolate responses into io thread", Marc-André Lureau, 2018/08/25
- [Qemu-devel] [PATCH v3 4/9] monitor: no need to save need_resume, Marc-André Lureau, 2018/08/25
- Re: [Qemu-devel] [PATCH v3 4/9] monitor: no need to save need_resume, Peter Xu, 2018/08/27
- Re: [Qemu-devel] [PATCH v3 4/9] monitor: no need to save need_resume, Markus Armbruster, 2018/08/28
- Re: [Qemu-devel] [PATCH v3 4/9] monitor: no need to save need_resume, Peter Xu, 2018/08/28
- Re: [Qemu-devel] [PATCH v3 4/9] monitor: no need to save need_resume, Markus Armbruster, 2018/08/29
- Re: [Qemu-devel] [PATCH v3 4/9] monitor: no need to save need_resume, Peter Xu, 2018/08/29
- Re: [Qemu-devel] [PATCH v3 4/9] monitor: no need to save need_resume, Markus Armbruster, 2018/08/29
- Re: [Qemu-devel] [PATCH v3 4/9] monitor: no need to save need_resume, Marc-André Lureau, 2018/08/29
- Re: [Qemu-devel] [PATCH v3 4/9] monitor: no need to save need_resume, Peter Xu, 2018/08/29