Revision 54d83804

b/qlist.h
16 16
#include "qobject.h"
17 17
#include "qemu-queue.h"
18 18
#include "qemu-common.h"
19
#include "qemu-queue.h"
19 20

  
20 21
typedef struct QListEntry {
21 22
    QObject *value;
......
50 51
int qlist_empty(const QList *qlist);
51 52
QList *qobject_to_qlist(const QObject *obj);
52 53

  
54
static inline const QListEntry *qlist_first(const QList *qlist)
55
{
56
    return QTAILQ_FIRST(&qlist->head);
57
}
58

  
59
static inline const QListEntry *qlist_next(const QListEntry *entry)
60
{
61
    return QTAILQ_NEXT(entry, next);
62
}
63

  
53 64
#endif /* QLIST_H */

Also available in: Unified diff