diff options
author | Peter Hutterer <peter@cs.unisa.edu.au> | 2008-04-26 17:38:55 +0930 |
---|---|---|
committer | Peter Hutterer <peter@cs.unisa.edu.au> | 2008-04-26 17:47:15 +0930 |
commit | b304b0a65cc57127cdea103f2c5114e4ea79af41 (patch) | |
tree | 54464e7dccf3bc9994af12eeaffb842de416bf52 /Xi/exglobals.h | |
parent | e251c9e75afdc5e32f2bc9801712272358934266 (diff) |
Xi: add versioning support.
Remember the version the client sent to us, so we can adjust our replies
accordingly. This requires the client to use the {major|minor}Version fields
in the GetExtensionVersion request. However, they were padding before, so we
must assume they are garbage if nbytes is non-zero. If nbytes is zero, the
client is probably a new client and we can handle it correctly.
Diffstat (limited to 'Xi/exglobals.h')
-rw-r--r-- | Xi/exglobals.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Xi/exglobals.h b/Xi/exglobals.h index 8cbccf294..4c23d84b4 100644 --- a/Xi/exglobals.h +++ b/Xi/exglobals.h @@ -31,6 +31,7 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. #ifdef HAVE_DIX_CONFIG_H #include <dix-config.h> #endif +#include "privates.h" #ifndef EXGLOBALS_H #define EXGLOBALS_H 1 @@ -75,4 +76,5 @@ extern int DeviceLeaveNotify; extern int RT_INPUTCLIENT; +extern DevPrivateKey XIClientPrivateKey; #endif /* EXGLOBALS_H */ |