diff options
author | Pierre Ossman <ossman@cendio.se> | 2016-02-05 10:26:56 +0100 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2019-07-01 11:18:27 +0200 |
commit | 0ff2655456097926a1720545830b1e34f072371f (patch) | |
tree | a9d542792cfb2532e1630919d16ef5832b7fb82c /common/rfb/SMsgWriter.h | |
parent | 5fbbe10b6c180ae8c0545695db6ad308cb5caea7 (diff) | |
download | tigervnc-0ff2655456097926a1720545830b1e34f072371f.tar.gz tigervnc-0ff2655456097926a1720545830b1e34f072371f.zip |
Support extended clipboard transfers
Implements support in both client and server for the extended
clipboard format first seen in UltraVNC. Currently only implements
text handling, but that is still an improvement as it extends the
clipboard from ISO 8859-1 to full Unicode.
Diffstat (limited to 'common/rfb/SMsgWriter.h')
-rw-r--r-- | common/rfb/SMsgWriter.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/common/rfb/SMsgWriter.h b/common/rfb/SMsgWriter.h index 8cf2ae77..2cea44d1 100644 --- a/common/rfb/SMsgWriter.h +++ b/common/rfb/SMsgWriter.h @@ -1,5 +1,5 @@ /* Copyright (C) 2002-2005 RealVNC Ltd. All Rights Reserved. - * Copyright 2009-2014 Pierre Ossman for Cendio AB + * Copyright 2009-2019 Pierre Ossman for Cendio AB * * This is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -54,10 +54,18 @@ namespace rfb { const rdr::U16 green[], const rdr::U16 blue[]); - // writeBell() and writeServerCutText() do the obvious thing. + // writeBell() does the obvious thing. void writeBell(); + void writeServerCutText(const char* str); + void writeClipboardCaps(rdr::U32 caps, const rdr::U32* lengths); + void writeClipboardRequest(rdr::U32 flags); + void writeClipboardPeek(rdr::U32 flags); + void writeClipboardNotify(rdr::U32 flags); + void writeClipboardProvide(rdr::U32 flags, const size_t* lengths, + const rdr::U8* const* data); + // writeFence() sends a new fence request or response to the client. void writeFence(rdr::U32 flags, unsigned len, const char data[]); |