Basic infrastructure to support fences.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4798 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/common/rfb/SConnection.h b/common/rfb/SConnection.h
index cdfde43..51ceac0 100644
--- a/common/rfb/SConnection.h
+++ b/common/rfb/SConnection.h
@@ -1,4 +1,5 @@
/* Copyright (C) 2002-2005 RealVNC Ltd. All Rights Reserved.
+ * Copyright 2011 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
@@ -106,6 +107,12 @@
// accepts the server's default pixel format and it uses a colour map.
virtual void setInitialColourMap();
+ // fence() is called when we get a fence request or response. By default
+ // it responds directly to requests (stating it doesn't support any
+ // synchronisation) and drops responses. Override to implement more proper
+ // support.
+ virtual void fence(rdr::U32 flags, unsigned len, const char data[]);
+
// setAccessRights() allows a security package to limit the access rights
// of a VNCSConnectionST to the server. How the access rights are treated
// is up to the derived class.