Statistics
| Branch: | Revision:

root / qdict.h @ a74cdab4

History | View | Annotate | Download (2.1 kB)

# Date Author Comment
83aba69e 07/01/2010 08:27 pm Luiz Capitulino

QDict: Rename 'err_value'

A missing key is not an error.

Signed-off-by: Luiz Capitulino <>

c8bc3cd7 07/01/2010 08:27 pm Luiz Capitulino

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 traverse
our table.

Signed-off-by: Luiz Capitulino <>

0d078b2a 07/01/2010 08:27 pm Luiz Capitulino

QDict: Introduce functions to retrieve QDictEntry values

Next commit will introduce a new QDict iteration API which
returns QDictEntry entries, but we don't want users to directly
access its members since QDictEntry should be private to QDict.

In the near future this kind of data type will be turned into a...

f2b07f35 07/01/2010 08:27 pm Luiz Capitulino

QDict: Introduce new iteration API

It's composed of functions qdict_first() and qdict_next(), plus
functions to access QDictEntry values.

This API was suggested by Markus Armbruster <> and
it offers full control over the iteration process....

35006ac8 07/01/2010 08:27 pm Luiz Capitulino

QDict: Introduce qdict_get_try_bool()

Signed-off-by: Luiz Capitulino <>

41836a9f 05/19/2010 06:45 pm Luiz Capitulino

Fix qtypes' licenses

- Change from GPL to LGPL
- Add license text when missing
- Minor cosmetic changes to make all headers look the same

Signed-off-by: Luiz Capitulino <>

acc3b033 02/03/2010 08:36 pm Markus Armbruster

QDict: New qdict_get_double()

Helper function just like qdict_get_int(), just for QFloat/double.

Signed-off-by: Markus Armbruster <>
Signed-off-by: Anthony Liguori <>

df10ce6a 01/26/2010 11:42 pm Luiz Capitulino

QDict: Introduce qdict_get_qdict()

A helper to retrieve a QDict from a QDict.

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,...

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...