~ubuntu-branches/ubuntu/gutsy/vnc4/gutsy

« back to all changes in this revision

Viewing changes to unix/xc/programs/Xserver/mi/mipointrst.h

  • Committer: Bazaar Package Importer
  • Author(s): Ola Lundqvist
  • Date: 2006-05-15 20:35:17 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20060515203517-l4lre1ku942mn26k
Tags: 4.1.1+X4.3.0-10
* Correction of critical security issue. Thanks to Martin Kogler
  <e9925248@student.tuwien.ac.at> that informed me about the issue,
  and provided the patch.
  This flaw was originally found by Steve Wiseman of intelliadmin.com.
* Applied patch from Javier Kohen <jkohen@users.sourceforge.net> that
  inform the user that only 8 first characters of the password will
  actually be used when typing more than 8 characters, closes:
  #355619.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * mipointrst.h
 
3
 *
 
4
 */
 
5
 
 
6
/* $Xorg: mipointrst.h,v 1.4 2001/02/09 02:05:21 xorgcvs Exp $ */
 
7
 
 
8
/*
 
9
 
 
10
Copyright 1989, 1998  The Open Group
 
11
 
 
12
Permission to use, copy, modify, distribute, and sell this software and its
 
13
documentation for any purpose is hereby granted without fee, provided that
 
14
the above copyright notice appear in all copies and that both that
 
15
copyright notice and this permission notice appear in supporting
 
16
documentation.
 
17
 
 
18
The above copyright notice and this permission notice shall be included in
 
19
all copies or substantial portions of the Software.
 
20
 
 
21
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 
22
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 
23
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
 
24
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
 
25
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
 
26
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 
27
 
 
28
Except as contained in this notice, the name of The Open Group shall not be
 
29
used in advertising or otherwise to promote the sale, use or other dealings
 
30
in this Software without prior written authorization from The Open Group.
 
31
*/
 
32
/* $XFree86: xc/programs/Xserver/mi/mipointrst.h,v 1.4 2001/12/14 20:00:25 dawes Exp $ */
 
33
 
 
34
#include "mipointer.h"
 
35
#include "scrnintstr.h"
 
36
 
 
37
#define MOTION_SIZE     256
 
38
 
 
39
typedef struct {
 
40
    xTimecoord      event;
 
41
    ScreenPtr       pScreen;
 
42
} miHistoryRec, *miHistoryPtr;
 
43
 
 
44
typedef struct {
 
45
    ScreenPtr               pScreen;    /* current screen */
 
46
    ScreenPtr               pSpriteScreen;/* screen containing current sprite */
 
47
    CursorPtr               pCursor;    /* current cursor */
 
48
    CursorPtr               pSpriteCursor;/* cursor on screen */
 
49
    BoxRec                  limits;     /* current constraints */
 
50
    Bool                    confined;   /* pointer can't change screens */
 
51
    int                     x, y;       /* hot spot location */
 
52
    int                     devx, devy; /* sprite position */
 
53
    DevicePtr               pPointer;   /* pointer device structure */
 
54
    miHistoryRec            history[MOTION_SIZE];
 
55
    int                     history_start, history_end;
 
56
} miPointerRec, *miPointerPtr;
 
57
 
 
58
typedef struct {
 
59
    miPointerSpriteFuncPtr  spriteFuncs;        /* sprite-specific methods */
 
60
    miPointerScreenFuncPtr  screenFuncs;        /* screen-specific methods */
 
61
    CloseScreenProcPtr      CloseScreen;
 
62
    Bool                    waitForUpdate;      /* don't move cursor in SIGIO */
 
63
    Bool                    showTransparent;    /* show empty cursors */
 
64
} miPointerScreenRec, *miPointerScreenPtr;