qmp: constify qmp_is_oob()
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Message-Id: <20180829134043.31706-3-marcandre.lureau@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
This commit is contained in:
parent
6cd112e266
commit
2aa788f5cb
@ -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);
|
||||
|
||||
|
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user