| * QList data type header. |
| * Copyright (C) 2009 Red Hat Inc. |
| * Luiz Capitulino <lcapitulino@redhat.com> |
| * This work is licensed under the terms of the GNU GPL, version 2. See |
| * the COPYING file in the top-level directory. |
| typedef struct QListEntry { |
| QTAILQ_ENTRY(QListEntry) next; |
| QTAILQ_HEAD(,QListEntry) head; |
| #define qlist_append(qlist, obj) \ |
| qlist_append_obj(qlist, QOBJECT(obj)) |
| QList *qlist_copy(QList *src); |
| void qlist_append_obj(QList *qlist, QObject *obj); |
| void qlist_iter(const QList *qlist, |
| void (*iter)(QObject *obj, void *opaque), void *opaque); |
| QObject *qlist_pop(QList *qlist); |
| QObject *qlist_peek(QList *qlist); |
| int qlist_empty(const QList *qlist); |
| QList *qobject_to_qlist(const QObject *obj); |