summaryrefslogtreecommitdiff
path: root/vnc.h
diff options
context:
space:
mode:
authorAmit Shah <amit.shah@redhat.com>2010-02-05 16:34:05 +0530
committerAnthony Liguori <aliguori@us.ibm.com>2010-02-10 12:45:05 -0600
commit41b4bef65f1e2b2f313cae0f88a1c76a9cb3f222 (patch)
treee0ecca5f659764105e696f4869361ea2f6a3ac7d /vnc.h
parenta2eebe88fdb95d04917a4d1b794fda5319b15879 (diff)
downloadqemu-41b4bef65f1e2b2f313cae0f88a1c76a9cb3f222.zip
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.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/vnc.h b/vnc.h
index 1210824b18..92caf2f230 100644
--- a/vnc.h
+++ b/vnc.h
@@ -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;
};