Statistics
| Branch: | Revision:

root / qdict.c @ 49a945a3

History | View | Annotate | Download (8 kB)

# Date Author Comment
29ec3156 12/18/2009 07:26 pm Luiz Capitulino

QDict: Fix size update

Key replacement should not update the dictionary's size.

This commit also adds a test for the bug.

Signed-off-by: Luiz Capitulino <>
Signed-off-by: Anthony Liguori <>

f2e17508 12/12/2009 03:59 pm Luiz Capitulino

QDict: Introduce qdict_get_qlist()

A helper function to get a QList from a QDict.

Signed-off-by: Luiz Capitulino <>
Signed-off-by: Anthony Liguori <>

cd4dde36 12/12/2009 03:59 pm Luiz Capitulino

QDict: Introduce qdict_get_qbool()

This is a helper function that does type checking before retrieving
a QBool from the dictionary.

Signed-off-by: Luiz Capitulino <>
Signed-off-by: Anthony Liguori <>

21f800d3 11/17/2009 04:49 pm Luiz Capitulino

QDict: Introduce qdict_iter()

This adds iterator support to QDict, it will be used by the
(to be introduced) QError module.

Signed-off-by: Luiz Capitulino <>
Signed-off-by: Anthony Liguori <>

72cf2d4f 09/12/2009 10:36 am Blue Swirl

Fix sys-queue.h conflict for good

Problem: Our file sys-queue.h is a copy of the BSD file, but there are
some additions and it's not entirely compatible. Because of that, there have
been conflicts with system headers on BSD systems. Some hacks have been
introduced in the commits 15cc9235840a22c289edbe064a9b3c19c5f49896,...

aa43d9cc 09/04/2009 08:43 pm Blue Swirl

Shuffle lines to avoid gcc 3 warning about redundant redeclaration

Signed-off-by: Blue Swirl <>

fb08dde0 09/04/2009 05:37 pm Luiz Capitulino

Introduce QDict

QDict is a high-level dictionary data type that can be used to store a
collection of QObjects. A unique key is associated with only one
QObject.

The following functions are available:

- qdict_new() Create a new QDict
- qdict_put() Add a new 'key:object' pair...