aboutsummaryrefslogtreecommitdiffstats
path: root/vncviewer/vncviewer.h
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2024-09-03 07:31:15 +0200
committerPierre Ossman <ossman@cendio.se>2024-11-06 21:06:27 +0100
commit9e9083cbedc0e98a03a0da370dd49375dc1cdc91 (patch)
tree3b094052cd0d4941e8a554ad3b04ec19c0d3f0c3 /vncviewer/vncviewer.h
parentf25de739ea359c2843a596457bcd22a28175b7a4 (diff)
downloadtigervnc-9e9083cbedc0e98a03a0da370dd49375dc1cdc91.tar.gz
tigervnc-9e9083cbedc0e98a03a0da370dd49375dc1cdc91.zip
Subclass exceptions from std::exception
Make sure our exceptions are part of the standard exception class hierarchy.
Diffstat (limited to 'vncviewer/vncviewer.h')
-rw-r--r--vncviewer/vncviewer.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/vncviewer/vncviewer.h b/vncviewer/vncviewer.h
index f39a5776..57fd845d 100644
--- a/vncviewer/vncviewer.h
+++ b/vncviewer/vncviewer.h
@@ -21,15 +21,11 @@
#define VNCSERVERNAMELEN 256
-namespace rdr {
- struct Exception;
-};
-
void abort_vncviewer(const char *error, ...)
__attribute__((__format__ (__printf__, 1, 2)));
void abort_connection(const char *error, ...)
__attribute__((__format__ (__printf__, 1, 2)));
-void abort_connection_with_unexpected_error(const rdr::Exception &);
+void abort_connection_with_unexpected_error(const std::exception &);
void disconnect();
bool should_disconnect();