Revision 72cf2d4f qdict.h
b/qdict.h | ||
---|---|---|
2 | 2 |
#define QDICT_H |
3 | 3 |
|
4 | 4 |
#include "qobject.h" |
5 |
#include "sys-queue.h"
|
|
5 |
#include "qemu-queue.h"
|
|
6 | 6 |
#include <stdint.h> |
7 | 7 |
|
8 | 8 |
#define QDICT_HASH_SIZE 512 |
... | ... | |
10 | 10 |
typedef struct QDictEntry { |
11 | 11 |
char *key; |
12 | 12 |
QObject *value; |
13 |
LIST_ENTRY(QDictEntry) next; |
|
13 |
QLIST_ENTRY(QDictEntry) next;
|
|
14 | 14 |
} QDictEntry; |
15 | 15 |
|
16 | 16 |
typedef struct QDict { |
17 | 17 |
QObject_HEAD; |
18 | 18 |
size_t size; |
19 |
LIST_HEAD(,QDictEntry) table[QDICT_HASH_SIZE]; |
|
19 |
QLIST_HEAD(,QDictEntry) table[QDICT_HASH_SIZE];
|
|
20 | 20 |
} QDict; |
21 | 21 |
|
22 | 22 |
/* Object API */ |
Also available in: Unified diff