diff options
author | Michael Roth <mdroth@linux.vnet.ibm.com> | 2012-08-15 13:45:42 -0500 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2012-08-16 13:41:15 -0500 |
commit | a86a4c2f7b7f0b72816ea1c219d8140699b6665b (patch) | |
tree | 8fcb1828a7cc1c76d6074031383db4cb8947833f /qlist.h | |
parent | 5a4d701acde890a5ca134236424ece45545f70c7 (diff) |
qlist: add qlist_size()
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'qlist.h')
-rw-r--r-- | qlist.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -49,6 +49,7 @@ void qlist_iter(const QList *qlist, QObject *qlist_pop(QList *qlist); QObject *qlist_peek(QList *qlist); int qlist_empty(const QList *qlist); +size_t qlist_size(const QList *qlist); QList *qobject_to_qlist(const QObject *obj); static inline const QListEntry *qlist_first(const QList *qlist) |