qemu/include/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
..
qmp qemu-ga: Add interface to traverse the qmp command list by QmpCommand 2013-10-10 14:52:37 -05:00
dealloc-visitor.h qapi: move include files to include/qobject/ 2012-12-19 08:31:31 +01:00
error.h error: Add error_set_win32 and error_setg_win32 2013-09-09 14:17:57 -05:00
opts-visitor.h OptsVisitor: don't try to flatten overlong integer ranges 2013-08-20 11:52:00 -04:00
qmp-input-visitor.h qapi: move include files to include/qobject/ 2012-12-19 08:31:31 +01:00
qmp-output-visitor.h qapi: move include files to include/qobject/ 2012-12-19 08:31:31 +01:00
string-input-visitor.h qapi: move include files to include/qobject/ 2012-12-19 08:31:31 +01:00
string-output-visitor.h qapi: move include files to include/qobject/ 2012-12-19 08:31:31 +01:00
visitor-impl.h qapi: Anonymous unions 2013-07-26 21:10:11 +02:00
visitor.h qapi: Anonymous unions 2013-07-26 21:10:11 +02:00