From 104f762e5d3dcd659415632f442e745cef5a3bf2 Mon Sep 17 00:00:00 2001 From: Nicola Ruggero Date: Tue, 26 Oct 2010 13:08:28 +0200 Subject: Added bell (pcspeaker) support --- vnc/vnc.c | 15 +++++++++++++++ vnc/vnc.h | 1 + 2 files changed, 16 insertions(+) (limited to 'vnc') diff --git a/vnc/vnc.c b/vnc/vnc.c index da5d2dcd..2b3ab530 100644 --- a/vnc/vnc.c +++ b/vnc/vnc.c @@ -748,6 +748,17 @@ lib_palette_update(struct vnc* v) return error; } +/******************************************************************************/ +int DEFAULT_CC +lib_bell_trigger(struct vnc* v) +{ + struct stream* s; + int error; + + error = v->server_bell_trigger(v); + return error; +} + /******************************************************************************/ int DEFAULT_CC lib_mod_signal(struct vnc* v) @@ -766,6 +777,10 @@ lib_mod_signal(struct vnc* v) else if (type == 1) /* palette */ { error = lib_palette_update(v); + } + else if (type == 2) /* bell */ + { + error = lib_bell_trigger(v); } else if (type == 3) /* clipboard */ { diff --git a/vnc/vnc.h b/vnc/vnc.h index fcb0646b..f5b2f984 100644 --- a/vnc/vnc.h +++ b/vnc/vnc.h @@ -50,6 +50,7 @@ struct vnc /* server functions */ int (*server_begin_update)(struct vnc* v); int (*server_end_update)(struct vnc* v); + int (*server_bell_trigger)(struct vnc* v); int (*server_fill_rect)(struct vnc* v, int x, int y, int cx, int cy); int (*server_screen_blt)(struct vnc* v, int x, int y, int cx, int cy, int srcx, int srcy); -- cgit v1.2.1