summaryrefslogtreecommitdiffstats
path: root/vnc
diff options
context:
space:
mode:
Diffstat (limited to 'vnc')
-rw-r--r--vnc/vnc.c15
-rw-r--r--vnc/vnc.h1
2 files changed, 16 insertions, 0 deletions
diff --git a/vnc/vnc.c b/vnc/vnc.c
index da5d2dcd..2b3ab530 100644
--- a/vnc/vnc.c
+++ b/vnc/vnc.c
@@ -750,6 +750,17 @@ lib_palette_update(struct vnc* v)
/******************************************************************************/
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)
{
char type;
@@ -767,6 +778,10 @@ lib_mod_signal(struct vnc* v)
{
error = lib_palette_update(v);
}
+ else if (type == 2) /* bell */
+ {
+ error = lib_bell_trigger(v);
+ }
else if (type == 3) /* clipboard */
{
g_writeln("got clip data");
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);