diff options
author | Amit Shah <amit.shah@redhat.com> | 2010-02-05 16:34:05 +0530 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2010-02-10 12:45:05 -0600 |
commit | 41b4bef65f1e2b2f313cae0f88a1c76a9cb3f222 (patch) | |
tree | e0ecca5f659764105e696f4869361ea2f6a3ac7d /vnc.h | |
parent | a2eebe88fdb95d04917a4d1b794fda5319b15879 (diff) |
vnc: Migrate to using QTAILQ instead of custom implementation
Just a 1-1 conversion for now.
Signed-off-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'vnc.h')
-rw-r--r-- | vnc.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -28,6 +28,7 @@ #define __QEMU_VNC_H #include "qemu-common.h" +#include "qemu-queue.h" #include "console.h" #include "monitor.h" #include "audio/audio.h" @@ -92,11 +93,11 @@ struct VncSurface struct VncDisplay { + QTAILQ_HEAD(, VncState) clients; QEMUTimer *timer; int timer_interval; int lsock; DisplayState *ds; - VncState *clients; kbd_layout_t *kbd_layout; struct VncSurface guest; /* guest visible surface (aka ds->surface) */ @@ -165,7 +166,7 @@ struct VncState Buffer zlib_tmp; z_stream zlib_stream[4]; - VncState *next; + QTAILQ_ENTRY(VncState) next; }; |