]> git.proxmox.com Git - mirror_qemu.git/commit - qobject/qlist.c
Add operations to qlist to allow it to be used as a stack
authorAnthony Liguori <aliguori@us.ibm.com>
Wed, 11 Nov 2009 16:48:51 +0000 (10:48 -0600)
committerAnthony Liguori <aliguori@us.ibm.com>
Tue, 17 Nov 2009 14:49:38 +0000 (08:49 -0600)
commit033815fe14e9e6254f1483113a6dd6d5b130ef58
treeff265c330560540c6ce6b3386b5ac21989ef08f5
parentc99ca93142391a2461afbe07926fa50f1c8f4d9a
Add operations to qlist to allow it to be used as a stack

This makes lists no longer invariant. It's a very useful bit of functionality
though.

To deal with the fact that lists are no longer invariant, introduce a deep
copy mechanism for lists.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
qlist.c
qlist.h