mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
qmp: constify QmpCommand and list
Since 0b69f6f72c
"qapi: remove
qmp_unregister_command()", the command list can be declared const.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Damien Hedde <damien.hedde@greensocs.com>
Message-Id: <20200316171824.2319695-1-marcandre.lureau@redhat.com>
[Rebased]
Signed-off-by: Markus Armbruster <armbru@redhat.com>
This commit is contained in:
parent
df4097aeaf
commit
f0ccc00be1
7 changed files with 16 additions and 15 deletions
|
@ -88,14 +88,14 @@ bool qmp_is_oob(const QDict *dict)
|
|||
&& !qdict_haskey(dict, "execute");
|
||||
}
|
||||
|
||||
QDict *qmp_dispatch(QmpCommandList *cmds, QObject *request,
|
||||
QDict *qmp_dispatch(const QmpCommandList *cmds, QObject *request,
|
||||
bool allow_oob)
|
||||
{
|
||||
Error *err = NULL;
|
||||
bool oob;
|
||||
const char *command;
|
||||
QDict *args;
|
||||
QmpCommand *cmd;
|
||||
const QmpCommand *cmd;
|
||||
QDict *dict;
|
||||
QObject *id;
|
||||
QObject *ret = NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue