diff options
Diffstat (limited to 'common/rfb/SMsgHandler.cxx')
-rw-r--r-- | common/rfb/SMsgHandler.cxx | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/common/rfb/SMsgHandler.cxx b/common/rfb/SMsgHandler.cxx index 4f008039..4ecfc2b2 100644 --- a/common/rfb/SMsgHandler.cxx +++ b/common/rfb/SMsgHandler.cxx @@ -27,6 +27,7 @@ #include <rfb/ScreenSet.h> #include <rfb/clipboardTypes.h> #include <rfb/encodings.h> +#include <rfb/util.h> using namespace rfb; @@ -49,7 +50,7 @@ void SMsgHandler::setPixelFormat(const PixelFormat& pf) client.setPF(pf); } -void SMsgHandler::setEncodings(int nEncodings, const rdr::S32* encodings) +void SMsgHandler::setEncodings(int nEncodings, const int32_t* encodings) { bool firstFence, firstContinuousUpdates, firstLEDState, firstQEMUKeyEvent; @@ -73,7 +74,7 @@ void SMsgHandler::setEncodings(int nEncodings, const rdr::S32* encodings) supportsQEMUKeyEvent(); } -void SMsgHandler::handleClipboardCaps(rdr::U32 flags, const rdr::U32* lengths) +void SMsgHandler::handleClipboardCaps(uint32_t flags, const uint32_t* lengths) { int i; @@ -106,11 +107,8 @@ void SMsgHandler::handleClipboardCaps(rdr::U32 flags, const rdr::U32* lengths) if (lengths[i] == 0) vlog.debug(" %s (only notify)", type); else { - char bytes[1024]; - - iecPrefix(lengths[i], "B", bytes, sizeof(bytes)); vlog.debug(" %s (automatically send up to %s)", - type, bytes); + type, iecPrefix(lengths[i], "B").c_str()); } } } @@ -118,7 +116,7 @@ void SMsgHandler::handleClipboardCaps(rdr::U32 flags, const rdr::U32* lengths) client.setClipboardCaps(flags, lengths); } -void SMsgHandler::handleClipboardRequest(rdr::U32 /*flags*/) +void SMsgHandler::handleClipboardRequest(uint32_t /*flags*/) { } @@ -126,13 +124,13 @@ void SMsgHandler::handleClipboardPeek() { } -void SMsgHandler::handleClipboardNotify(rdr::U32 /*flags*/) +void SMsgHandler::handleClipboardNotify(uint32_t /*flags*/) { } -void SMsgHandler::handleClipboardProvide(rdr::U32 /*flags*/, +void SMsgHandler::handleClipboardProvide(uint32_t /*flags*/, const size_t* /*lengths*/, - const rdr::U8* const* /*data*/) + const uint8_t* const* /*data*/) { } |