summaryrefslogtreecommitdiff
path: root/vl.h
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2006-04-30 21:28:36 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2006-04-30 21:28:36 +0000
commit24236869fbff210b356b6626e6e9e9eadc8a976c (patch)
treef32404f6a854711decf8dc51a224b08fd5ae939c /vl.h
parenta46e4035e22c81cd3942b936cebe6f6037e17ec2 (diff)
downloadqemu-24236869fbff210b356b6626e6e9e9eadc8a976c.zip
VNC server (Anthony Liguori)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1869 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'vl.h')
-rw-r--r--vl.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/vl.h b/vl.h
index 4ae3d611cf..ddf8892c53 100644
--- a/vl.h
+++ b/vl.h
@@ -82,6 +82,13 @@ static inline char *realpath(const char *path, char *resolved_path)
#define tostring(s) #s
#endif
+#ifndef MIN
+#define MIN(a, b) (((a) < (b)) ? (a) : (b))
+#endif
+#ifndef MAX
+#define MAX(a, b) (((a) > (b)) ? (a) : (b))
+#endif
+
/* vl.c */
uint64_t muldiv64(uint64_t a, uint32_t b, uint32_t c);
@@ -672,9 +679,12 @@ struct DisplayState {
int depth;
int width;
int height;
+ void *opaque;
+
void (*dpy_update)(struct DisplayState *s, int x, int y, int w, int h);
void (*dpy_resize)(struct DisplayState *s, int w, int h);
void (*dpy_refresh)(struct DisplayState *s);
+ void (*dpy_copy)(struct DisplayState *s, int src_x, int src_y, int dst_x, int dst_y, int w, int h);
};
static inline void dpy_update(DisplayState *s, int x, int y, int w, int h)
@@ -703,6 +713,9 @@ void sdl_display_init(DisplayState *ds, int full_screen);
/* cocoa.m */
void cocoa_display_init(DisplayState *ds, int full_screen);
+/* vnc.c */
+void vnc_display_init(DisplayState *ds, int display);
+
/* ide.c */
#define MAX_DISKS 4