[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 11/13] qmp: add and use q type specifier
From: |
Luiz Capitulino |
Subject: |
[Qemu-devel] [PATCH 11/13] qmp: add and use q type specifier |
Date: |
Tue, 27 Mar 2012 09:20:49 -0300 |
From: Paolo Bonzini <address@hidden>
"O" is being used by the transaction and qom-set commands to mean "any
QObject", but it really means "do not validate the argument list".
Add a new specifier with the correct meaning.
Signed-off-by: Paolo Bonzini <address@hidden>
Reviewed-by: Anthony Liguori <address@hidden>
Signed-off-by: Luiz Capitulino <address@hidden>
---
monitor.c | 3 +++
qmp-commands.hx | 4 ++--
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/monitor.c b/monitor.c
index 2ff1e0b..8946a10 100644
--- a/monitor.c
+++ b/monitor.c
@@ -4157,6 +4157,9 @@ static int check_client_args_type(const QDict
*client_args,
case 'O':
assert(flags & QMP_ACCEPT_UNKNOWNS);
break;
+ case 'q':
+ /* Any QObject can be passed. */
+ break;
case '/':
case '.':
/*
diff --git a/qmp-commands.hx b/qmp-commands.hx
index c626ba8..9447871 100644
--- a/qmp-commands.hx
+++ b/qmp-commands.hx
@@ -708,7 +708,7 @@ EQMP
},
{
.name = "transaction",
- .args_type = "actions:O",
+ .args_type = "actions:q",
.mhandler.cmd_new = qmp_marshal_input_transaction,
},
@@ -2125,7 +2125,7 @@ EQMP
{
.name = "qom-set",
- .args_type = "path:s,property:s,opts:O",
+ .args_type = "path:s,property:s,value:q",
.mhandler.cmd_new = qmp_qom_set,
},
--
1.7.9.2.384.g4a92a
- [Qemu-devel] [PATCH 02/13] qapi: add struct-errors test case to test-qmp-output-visitor, (continued)
- [Qemu-devel] [PATCH 02/13] qapi: add struct-errors test case to test-qmp-output-visitor, Luiz Capitulino, 2012/03/27
- [Qemu-devel] [PATCH 01/13] qapi: fix double free in qmp_output_visitor_cleanup(), Luiz Capitulino, 2012/03/27
- [Qemu-devel] [PATCH 03/13] qapi: add a test case for type errors, Luiz Capitulino, 2012/03/27
- [Qemu-devel] [PATCH 05/13] qapi: fix memory leak on error, Luiz Capitulino, 2012/03/27
- [Qemu-devel] [PATCH 06/13] qapi: shortcut visits on errors, Luiz Capitulino, 2012/03/27
- [Qemu-devel] [PATCH 08/13] qapi: untangle next_list, Luiz Capitulino, 2012/03/27
- [Qemu-devel] [PATCH 04/13] qapi: fail hard on stack imbalance, Luiz Capitulino, 2012/03/27
- [Qemu-devel] [PATCH 07/13] qapi: allow freeing partially-allocated objects, Luiz Capitulino, 2012/03/27
- [Qemu-devel] [PATCH 12/13] qmp: parse commands in strict mode, Luiz Capitulino, 2012/03/27
- [Qemu-devel] [PATCH 09/13] qapi: place outermost object on qiv stack, Luiz Capitulino, 2012/03/27
- [Qemu-devel] [PATCH 11/13] qmp: add and use q type specifier,
Luiz Capitulino <=
- [Qemu-devel] [PATCH 13/13] qmp: document strict parsing, Luiz Capitulino, 2012/03/27
- [Qemu-devel] [PATCH 10/13] qapi: add strict mode to input visitor, Luiz Capitulino, 2012/03/27
- Re: [Qemu-devel] [PULL 00/13]: QMP queue, Anthony Liguori, 2012/03/30