Decouple decoders from CConnection
diff --git a/common/rfb/TightDecoder.h b/common/rfb/TightDecoder.h
index a44f7d8..028514a 100644
--- a/common/rfb/TightDecoder.h
+++ b/common/rfb/TightDecoder.h
@@ -28,9 +28,10 @@
class TightDecoder : public Decoder {
public:
- TightDecoder(CConnection* conn);
+ TightDecoder();
virtual ~TightDecoder();
- virtual void readRect(const Rect& r, ModifiablePixelBuffer* pb);
+ virtual void readRect(const Rect& r, rdr::InStream* is,
+ const ConnParams& cp, ModifiablePixelBuffer* pb);
private:
rdr::U32 readCompact(rdr::InStream* is);