History | View | Annotate | Download (2.7 kB)
Introduce QError
QError is a high-level data type which represents an exceptionin QEMU, it stores the following error information:
- class Error class name (eg. "ServiceUnavailable")- description A detailed error description, which can contain...
Add a QBool type
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Properly escape QDECREF macro arguments
QDECREF does not properly escape the macro arguments which can lead tounexpected syntax errors.
Add a QFloat datatype
Introduce QList
QList is a high-level data type that can be used to store QObjectsin a singly-linked list.
The following functions are available:
- qlist_new() Create a new QList- qlist_append() Append a QObject to the list- qlist_iter() Iterate over stored QObjects...
QObject: Accept NULL
It is convenient that QDECREF and QINCREF accept the QObjectparameter to be NULL, so that we don't duplicate 'if' tests inthe callers.
Patchworks-ID: 35332Signed-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.
- 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...
Introduce QObject
This commit introduces the qobject.h header file, it containsbasic QObject definitions and helper macros.
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>