mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
monitor: remove mhandler.cmd_new
This is no longer necessary now that we aren't using middle mode anymore. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Message-Id: <20160912091913.15831-12-marcandre.lureau@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
This commit is contained in:
parent
9e812b6adc
commit
2b9e35760a
4 changed files with 170 additions and 173 deletions
13
monitor.c
13
monitor.c
|
@ -130,13 +130,10 @@ typedef struct mon_cmd_t {
|
|||
const char *args_type;
|
||||
const char *params;
|
||||
const char *help;
|
||||
union {
|
||||
void (*cmd)(Monitor *mon, const QDict *qdict);
|
||||
void (*cmd_new)(QDict *params, QObject **ret_data, Error **errp);
|
||||
} mhandler;
|
||||
/* @sub_table is a list of 2nd level of commands. If it do not exist,
|
||||
* mhandler should be used. If it exist, sub_table[?].mhandler should be
|
||||
* used, and mhandler of 1st level plays the role of help function.
|
||||
void (*cmd)(Monitor *mon, const QDict *qdict);
|
||||
/* @sub_table is a list of 2nd level of commands. If it does not exist,
|
||||
* cmd should be used. If it exists, sub_table[?].cmd should be
|
||||
* used, and cmd of 1st level plays the role of help function.
|
||||
*/
|
||||
struct mon_cmd_t *sub_table;
|
||||
void (*command_completion)(ReadLineState *rs, int nb_args, const char *str);
|
||||
|
@ -3005,7 +3002,7 @@ static void handle_hmp_command(Monitor *mon, const char *cmdline)
|
|||
return;
|
||||
}
|
||||
|
||||
cmd->mhandler.cmd(mon, qdict);
|
||||
cmd->cmd(mon, qdict);
|
||||
QDECREF(qdict);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue