monitor: Setup a QDict with arguments to handlers
With this commit monitor_handle_command() will be able to setup aQDict with arguments to command handlers.
However, the current 'args[]' method is still being used, nextchanges will port commands to get their arguments from the dictionary....
monitor: Export QDict header
Command handlers will have to use QDict functions, so exportqdict.h through monitor.h.
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Introduce QInt
QInt is a high-level data type that can be used to represent integers,internally it stores an int64_t value.
The following functions are available:
- qint_from_int() Create a new QInt- qint_get_int() Get the stored integer
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>...
Introduce QString
QString is a high-level data type that can be used to representC strings.
- qstring_from_str() Create a new QString- qstring_get_str() Get a pointer to the stored string
Note that qstring_get_str() is too low-level for a data type like...
Introduce QDict
QDict is a high-level dictionary data type that can be used to store acollection of QObjects. A unique key is associated with only oneQObject.
- qdict_new() Create a new QDict- qdict_put() Add a new 'key:object' pair...
Add wrappers to functions used by the Monitor
Some functions exported to be used by the Monitor as commandhandlers are also called in other places as regular functions.
When those functions got ported to use the Monitor dictionaryto pass argments, the callers will have to setup a dictionary...
monitor: New format for handlers argument types
Current handlers argument types, as defined in qemu-monitor.hx file,are a sequence of chars where each one represents one argument typeof the command handler. The number of chars is also used to know howmany arguments a given handler accepts....
Introduce QObject
This commit introduces the qobject.h header file, it containsbasic QObject definitions and helper macros.
ide: pass down DriveInfo instead of BlockDriverState
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
ide: move cmd+irq from IDEState to IDEBus.
These variables are per bus, not per drive. Lets move them andcleanup things a bit. And fix the cmd migration bug for real.
View all revisions | View revisions
Also available in: Atom