QList: Introduce QLIST_FOREACH_ENTRY()
authorLuiz Capitulino <lcapitulino@redhat.com>
Thu, 21 Jan 2010 21:15:38 +0000 (19:15 -0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Tue, 26 Jan 2010 21:42:01 +0000 (15:42 -0600)
commitfff65f81332cc1d99714b43ff5c8624d6487a389
treec4218e1ce964f9ae24e069275155433c02c733a3
parent89f5fe762a5d834f1019df8eff8afcefb873bf7c
QList: Introduce QLIST_FOREACH_ENTRY()

Iterate over QList entries, it's needed to call qlist_entry_obj()
to retrieve the stored QObject.

I'm not sure if it's ok to have this, because it's not as easy as
qlist_iter() and the QListEntry data type is now exposed to the
users, which means we have one more struct to be maintained when
we have libqmp.

Adding anyway, as it's more compact and people are asking for it.

Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
qlist.h