diff options
author | Pierre Ossman <ossman@cendio.se> | 2014-01-29 16:42:48 +0100 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2014-07-07 14:42:08 +0200 |
commit | 4aba19e287b0105bb47777762ce14b3786d91019 (patch) | |
tree | 3ac8984f8b31dfebc3dffde057eb9f23af3d559c /common/rfb/Encoder.h | |
parent | 717c07b9671badeef0c18c91cf17fe9747559787 (diff) | |
download | tigervnc-4aba19e287b0105bb47777762ce14b3786d91019.tar.gz tigervnc-4aba19e287b0105bb47777762ce14b3786d91019.zip |
Avoid reader/writer duplication in every encoder/decoder
Diffstat (limited to 'common/rfb/Encoder.h')
-rw-r--r-- | common/rfb/Encoder.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/common/rfb/Encoder.h b/common/rfb/Encoder.h index 8712c09a..485b850c 100644 --- a/common/rfb/Encoder.h +++ b/common/rfb/Encoder.h @@ -29,6 +29,7 @@ namespace rfb { class Encoder { public: + Encoder(SMsgWriter* writer); virtual ~Encoder(); virtual void setCompressLevel(int level) {}; @@ -43,6 +44,9 @@ namespace rfb { static bool supported(int encoding); static Encoder* createEncoder(int encoding, SMsgWriter* writer); + + protected: + SMsgWriter* writer; }; } |