diff options
author | Pierre Ossman <ossman@cendio.se> | 2014-09-17 17:11:56 +0200 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2014-09-18 14:08:42 +0200 |
commit | 487008102e35ccbde59c54500700ba2b85f981c2 (patch) | |
tree | 6585b5fddd2d7a9ec272b53cd28aaa083c8e8b55 /common/rfb/SConnection.h | |
parent | 1ec4531ca6b37db1fa9b9cc5d5db289be32d4241 (diff) | |
download | tigervnc-487008102e35ccbde59c54500700ba2b85f981c2.tar.gz tigervnc-487008102e35ccbde59c54500700ba2b85f981c2.zip |
Move preferred encoding tracking into a server object
Having it in ConnParams made the linker pull all the encoder objects
into vncviewer, making it larger than necessary and giving it extra
parameters in its help output that weren't relevant.
Diffstat (limited to 'common/rfb/SConnection.h')
-rw-r--r-- | common/rfb/SConnection.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/common/rfb/SConnection.h b/common/rfb/SConnection.h index b6ff7cd5..7718f4c1 100644 --- a/common/rfb/SConnection.h +++ b/common/rfb/SConnection.h @@ -70,6 +70,11 @@ namespace rfb { void approveConnection(bool accept, const char* reason=0); + // Overridden from SMsgHandler + + virtual void setEncodings(int nEncodings, rdr::S32* encodings); + + // Methods to be overridden in a derived class // versionReceived() indicates that the version number has just been read @@ -173,6 +178,8 @@ namespace rfb { stateEnum state() { return state_; } + rdr::S32 getPreferredEncoding() { return preferredEncoding; } + protected: void setState(stateEnum s) { state_ = s; } void writeFakeColourMap(void); @@ -194,6 +201,7 @@ namespace rfb { SSecurity* ssecurity; stateEnum state_; bool reverseConnection; + rdr::S32 preferredEncoding; }; } #endif |