qemu-e2k/qapi
Mark Wu 8dc4d915dd qemu-ga: Add interface to traverse the qmp command list by QmpCommand
In the original code, qmp_get_command_list is used to construct
a list of all commands' name. To get the information of all qga
commands, it traverses the name list and search the command info
with its name.  So it can cause O(n^2) in the number of commands.

This patch adds an interface to traverse the qmp command list by
QmpCommand to replace qmp_get_command_list. It can decrease the
complexity from O(n^2) to O(n).

Signed-off-by: Mark Wu <wudxw@linux.vnet.ibm.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
*fix up commit subject
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
2013-10-10 14:52:37 -05:00
..
Makefile.objs build: move base QAPI files to libqemuutil.a 2013-01-12 18:42:51 +01:00
opts-visitor.c OptsVisitor: don't try to flatten overlong integer ranges 2013-08-20 11:52:00 -04:00
qapi-dealloc-visitor.c misc: move include files to include/qemu/ 2012-12-19 08:32:39 +01:00
qapi-visit-core.c qapi: make visit_type_size fallback to type_int 2013-07-29 19:33:33 -05:00
qmp-dispatch.c qapi: move include files to include/qobject/ 2012-12-19 08:31:31 +01:00
qmp-input-visitor.c qapi: Anonymous unions 2013-07-26 21:10:11 +02:00
qmp-output-visitor.c misc: move include files to include/qemu/ 2012-12-19 08:32:39 +01:00
qmp-registry.c qemu-ga: Add interface to traverse the qmp command list by QmpCommand 2013-10-10 14:52:37 -05:00
string-input-visitor.c qapi: move include files to include/qobject/ 2012-12-19 08:31:31 +01:00
string-output-visitor.c qapi: move include files to include/qobject/ 2012-12-19 08:31:31 +01:00