diff options
Diffstat (limited to 'qapi/qmp-registry.c')
-rw-r--r-- | qapi/qmp-registry.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/qapi/qmp-registry.c b/qapi/qmp-registry.c index 5e26710d89..3e4498a3f6 100644 --- a/qapi/qmp-registry.c +++ b/qapi/qmp-registry.c @@ -76,6 +76,11 @@ const char *qmp_command_name(const QmpCommand *cmd) return cmd->name; } +bool qmp_has_success_response(const QmpCommand *cmd) +{ + return !(cmd->options & QCO_NO_SUCCESS_RESP); +} + void qmp_for_each_command(qmp_cmd_callback_fn fn, void *opaque) { QmpCommand *cmd; |