History | View | Annotate | Download (2.1 kB)
QDict: Rename 'err_value'
A missing key is not an error.
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
QDict: Small terminology change
Let's call a 'hash' only what is returned by our hash function,anything else is a 'bucket'.
This helps avoiding confusion with regard to how we traverseour table.
QDict: Introduce functions to retrieve QDictEntry values
Next commit will introduce a new QDict iteration API whichreturns QDictEntry entries, but we don't want users to directlyaccess its members since QDictEntry should be private to QDict.
In the near future this kind of data type will be turned into a...
QDict: Introduce new iteration API
It's composed of functions qdict_first() and qdict_next(), plusfunctions to access QDictEntry values.
This API was suggested by Markus Armbruster <armbru@redhat.com> andit offers full control over the iteration process....
QDict: Introduce qdict_get_try_bool()
Fix qtypes' licenses
- Change from GPL to LGPL- Add license text when missing- Minor cosmetic changes to make all headers look the same
QDict: New qdict_get_double()
Helper function just like qdict_get_int(), just for QFloat/double.
Signed-off-by: Markus Armbruster <armbru@redhat.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
QDict: Introduce qdict_get_qdict()
A helper to retrieve a QDict from a QDict.
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
QDict: Introduce qdict_get_qlist()
A helper function to get a QList from a QDict.
QDict: Introduce qdict_get_qbool()
This is a helper function that does type checking before retrievinga QBool from the dictionary.
QDict: Introduce qdict_iter()
This adds iterator support to QDict, it will be used by the(to be introduced) QError module.
Fix sys-queue.h conflict for good
Problem: Our file sys-queue.h is a copy of the BSD file, but there aresome additions and it's not entirely compatible. Because of that, there havebeen conflicts with system headers on BSD systems. Some hacks have beenintroduced in the commits 15cc9235840a22c289edbe064a9b3c19c5f49896,...
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.
The following functions are available:
- qdict_new() Create a new QDict- qdict_put() Add a new 'key:object' pair...