qemu/include/qapi/qmp
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
..
dispatch.h qemu-ga: Add interface to traverse the qmp command list by QmpCommand 2013-10-10 14:52:37 -05:00
json-lexer.h qapi: move include files to include/qobject/ 2012-12-19 08:31:31 +01:00
json-parser.h qapi: move include files to include/qobject/ 2012-12-19 08:31:31 +01:00
json-streamer.h qapi: move include files to include/qobject/ 2012-12-19 08:31:31 +01:00
qbool.h qapi: move include files to include/qobject/ 2012-12-19 08:31:31 +01:00
qdict.h qdict: Extract qdict_extract_subqdict 2013-09-25 16:21:28 +02:00
qerror.h qerror: drop QERR_OPEN_FILE_FAILED macro 2013-06-17 11:01:14 -04:00
qfloat.h qapi: move include files to include/qobject/ 2012-12-19 08:31:31 +01:00
qint.h qapi: move include files to include/qobject/ 2012-12-19 08:31:31 +01:00
qjson.h misc: move include files to include/qemu/ 2012-12-19 08:32:39 +01:00
qlist.h remove some double-includes 2013-05-18 16:35:12 +04:00
qobject.h qapi: Anonymous unions 2013-07-26 21:10:11 +02:00
qstring.h qstring: add qstring_get_length() 2013-04-05 08:42:29 -04:00
types.h qapi: move include files to include/qobject/ 2012-12-19 08:31:31 +01:00