aboutsummaryrefslogtreecommitdiffstats
path: root/common/rfb/Configuration.h
diff options
context:
space:
mode:
authorPeter Åstrand (astrand) <astrand@cendio.se>2017-10-18 08:54:05 +0200
committerPeter Åstrand (astrand) <astrand@cendio.se>2017-11-08 10:40:14 +0100
commit0a0e582597be681488b91eb818c8a1963d13adbf (patch)
tree071bcb7d9ba88bbabdc1be623115299eaaa39bc1 /common/rfb/Configuration.h
parent90afb1c20cb5a73a86868b57692201b1a18e9c0e (diff)
downloadtigervnc-0a0e582597be681488b91eb818c8a1963d13adbf.tar.gz
tigervnc-0a0e582597be681488b91eb818c8a1963d13adbf.zip
x0vncserver does not support SetDesktopSize; remove -AcceptSetDesktopSize
Add a Configuration::removeParam to support such cases.
Diffstat (limited to 'common/rfb/Configuration.h')
-rw-r--r--common/rfb/Configuration.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/common/rfb/Configuration.h b/common/rfb/Configuration.h
index d319915a..6197317b 100644
--- a/common/rfb/Configuration.h
+++ b/common/rfb/Configuration.h
@@ -80,6 +80,9 @@ namespace rfb {
// - List the parameters of this Configuration group
void list(int width=79, int nameWidth=10);
+ // - Remove a parameter from this Configuration group
+ bool remove(const char* param);
+
// - readFromFile
// Read configuration parameters from the specified file.
void readFromFile(const char* filename);
@@ -116,6 +119,9 @@ namespace rfb {
static void listParams(int width=79, int nameWidth=10) {
global()->list(width, nameWidth);
}
+ static bool removeParam(const char* param) {
+ return global()->remove(param);
+ }
private:
friend class VoidParameter;