Message ID | 20180825135724.8981-3-marcandre.lureau@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | monitor: various code simplification and fixes | expand |
On 2018-08-25 15:57, Marc-André Lureau wrote: > Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> > Reviewed-by: Markus Armbruster <armbru@redhat.com> > --- > 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 <thuth@redhat.com>
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");