diff options
author | Pierre Ossman <ossman@cendio.se> | 2009-03-23 16:57:07 +0000 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2009-03-23 16:57:07 +0000 |
commit | 04e62db8bbf4f6fc4c262a228dd609f612a4c435 (patch) | |
tree | 0a87cc035ffac705de50b529864c7cedd3d53f81 /common/rfb/SMsgWriter.h | |
parent | eb3cecb856ac878c4d3f37902a2b5453b1ee16a5 (diff) | |
download | tigervnc-04e62db8bbf4f6fc4c262a228dd609f612a4c435.tar.gz tigervnc-04e62db8bbf4f6fc4c262a228dd609f612a4c435.zip |
Implement server side support for SetDesktopSize.
It has some warts, but should be feature complete. Most of the magic happens
in the desktop class though.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3713 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'common/rfb/SMsgWriter.h')
-rw-r--r-- | common/rfb/SMsgWriter.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/common/rfb/SMsgWriter.h b/common/rfb/SMsgWriter.h index 3c6da95a..5df72704 100644 --- a/common/rfb/SMsgWriter.h +++ b/common/rfb/SMsgWriter.h @@ -27,6 +27,7 @@ #include <rfb/screenTypes.h> #include <rfb/Encoder.h> #include <rfb/PixelBuffer.h> +#include <rfb/ScreenSet.h> namespace rdr { class OutStream; } @@ -75,8 +76,13 @@ namespace rfb { // writeSetDesktopSize() on a V3 writer won't actually write immediately, // but will write the relevant pseudo-rectangle as part of the next update. virtual bool writeSetDesktopSize()=0; - // Same thing for the extended version - virtual bool writeExtendedDesktopSize(rdr::U16 error = resultUnsolicited)=0; + // Same thing for the extended version. The first version queues up a + // generic update of the current server state, but the second queues a + // specific message. + virtual bool writeExtendedDesktopSize()=0; + virtual bool writeExtendedDesktopSize(rdr::U16 reason, rdr::U16 result, + int fb_width, int fb_height, + const ScreenSet& layout)=0; virtual bool writeSetDesktopName()=0; |