From 4140d9156ba640d4c3f9099b9b0f88c1922c38a5 Mon Sep 17 00:00:00 2001 From: Constantin Kaplinsky Date: Tue, 12 Sep 2006 14:10:14 +0000 Subject: Finished support for TightVNC protocol extensions in the server code. Now "no authentication" case is handled correctly. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@670 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- common/rfb/CapsList.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'common/rfb/CapsList.h') diff --git a/common/rfb/CapsList.h b/common/rfb/CapsList.h index b8fb8e85..a267e933 100644 --- a/common/rfb/CapsList.h +++ b/common/rfb/CapsList.h @@ -48,6 +48,11 @@ namespace rfb { // Current number of capabilities in the list. int getSize() const { return numEnabled(); } + // Does the list include nothing more than one particular capability? + bool includesOnly(rdr::U32 code) { + return (numEnabled() == 1 && getByOrder(0) == code); + } + // Add capability ("standard" vendor). void addStandard(rdr::U32 code, const char *name); // Add capability (TightVNC vendor). -- cgit v1.2.3