Signed-off-by: Michael Roth <mdr...@linux.vnet.ibm.com> --- qlist.h | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/qlist.h b/qlist.h index dbe7b92..13f22eb 100644 --- a/qlist.h +++ b/qlist.h @@ -50,4 +50,14 @@ QObject *qlist_peek(QList *qlist); int qlist_empty(const QList *qlist); QList *qobject_to_qlist(const QObject *obj); +static inline QListEntry *qlist_first(QList *qlist) +{ + return qlist->head.tqh_first; +} + +static inline QListEntry *qlist_next(QListEntry *entry) +{ + return entry->next.tqe_next; +} + #endif /* QLIST_H */ -- 1.7.0.4