Revision 5af7bbae
b/monitor.c | ||
---|---|---|
546 | 546 |
monitor_protocol_emitter(opaque, ret_data); |
547 | 547 |
} |
548 | 548 |
|
549 |
static void qmp_async_cmd_handler(Monitor *mon, const mon_cmd_t *cmd,
|
|
550 |
const QDict *params)
|
|
549 |
static int qmp_async_cmd_handler(Monitor *mon, const mon_cmd_t *cmd,
|
|
550 |
const QDict *params) |
|
551 | 551 |
{ |
552 |
cmd->mhandler.cmd_async(mon, params, qmp_monitor_complete, mon); |
|
552 |
return cmd->mhandler.cmd_async(mon, params, qmp_monitor_complete, mon);
|
|
553 | 553 |
} |
554 | 554 |
|
555 | 555 |
static void qmp_async_info_handler(Monitor *mon, const mon_cmd_t *cmd) |
... | ... | |
4239 | 4239 |
} |
4240 | 4240 |
|
4241 | 4241 |
if (monitor_handler_is_async(cmd)) { |
4242 |
qmp_async_cmd_handler(mon, cmd, args); |
|
4242 |
err = qmp_async_cmd_handler(mon, cmd, args); |
|
4243 |
if (err) { |
|
4244 |
/* emit the error response */ |
|
4245 |
goto err_out; |
|
4246 |
} |
|
4243 | 4247 |
} else { |
4244 | 4248 |
monitor_call_handler(mon, cmd, args); |
4245 | 4249 |
} |
Also available in: Unified diff