[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v1][ 05/23] qlist: add qlist_first()/qlist_next(
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-devel] [PATCH v1][ 05/23] qlist: add qlist_first()/qlist_next() |
Date: |
Wed, 18 May 2011 09:12:05 +0100 |
On Wed, May 18, 2011 at 1:51 AM, Michael Roth <address@hidden> wrote:
>
> Signed-off-by: Michael Roth <address@hidden>
> ---
> 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;
return QTAILQ_FIRST(&qlist->head);
> +}
> +
> +static inline QListEntry *qlist_next(QListEntry *entry)
> +{
> + return entry->next.tqe_next;
return QTAILQ_NEXT(&entry->next);
- [Qemu-devel] [PATCH v1 00/23] QAPI Infrastructure Round 1, Michael Roth, 2011/05/17
- [Qemu-devel] [PATCH v1][ 02/23] error-propagation: base code for error propagation, Michael Roth, 2011/05/17
- [Qemu-devel] [PATCH v1][ 01/23] Add hard build dependency on glib, Michael Roth, 2011/05/17
- [Qemu-devel] [PATCH v1][ 04/23] qerror: refactor error to make the human message reusable, Michael Roth, 2011/05/17
- [Qemu-devel] [PATCH v1][ 05/23] qlist: add qlist_first()/qlist_next(), Michael Roth, 2011/05/17
- Re: [Qemu-devel] [PATCH v1][ 05/23] qlist: add qlist_first()/qlist_next(),
Stefan Hajnoczi <=
- [Qemu-devel] [PATCH v1][ 03/23] error-propagation: build qemu with with error-propagation bits, Michael Roth, 2011/05/17
- [Qemu-devel] [PATCH v1][ 07/23] qapi: add ordereddict/qapi.py helper libraries, Michael Roth, 2011/05/17
- [Qemu-devel] [PATCH v1][ 06/23] qapi: add module init types for qapi, Michael Roth, 2011/05/17
- [Qemu-devel] [PATCH v1][ 08/23] qapi: add qapi-types.py code generator, Michael Roth, 2011/05/17
- [Qemu-devel] [PATCH v1][ 09/23] qapi: add qapi-visit.py code generator, Michael Roth, 2011/05/17
- [Qemu-devel] [PATCH v1][ 10/23] qapi: add qapi-commands.py code generator, Michael Roth, 2011/05/17
- [Qemu-devel] [PATCH v1][ 11/23] qapi: add qapi-types-core.h, Michael Roth, 2011/05/17
- [Qemu-devel] [PATCH v1][ 12/23] qapi: add qapi-visit-core.h, Michael Roth, 2011/05/17
- [Qemu-devel] [PATCH v1][ 15/23] qapi: add QAPI dealloc visiter, Michael Roth, 2011/05/17