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

« back to all changes in this revision

Viewing changes to unix/xc/programs/Xserver/mi/mipointer.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
 * mipointer.h
 
3
 *
 
4
 */
 
5
 
 
6
/* $Xorg: mipointer.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/mipointer.h,v 3.9 2001/12/14 20:00:24 dawes Exp $ */
 
33
 
 
34
#ifndef MIPOINTER_H
 
35
#define MIPOINTER_H
 
36
 
 
37
#include "cursor.h"
 
38
#include "input.h"
 
39
 
 
40
typedef struct _miPointerSpriteFuncRec {
 
41
    Bool        (*RealizeCursor)(
 
42
                    ScreenPtr /* pScr */,
 
43
                    CursorPtr /* pCurs */
 
44
                    );
 
45
    Bool        (*UnrealizeCursor)(
 
46
                    ScreenPtr /* pScr */,
 
47
                    CursorPtr /* pCurs */
 
48
                    );
 
49
    void        (*SetCursor)(
 
50
                    ScreenPtr /* pScr */,
 
51
                    CursorPtr /* pCurs */,
 
52
                    int  /* x */,
 
53
                    int  /* y */
 
54
                    );
 
55
    void        (*MoveCursor)(
 
56
                    ScreenPtr /* pScr */,
 
57
                    int  /* x */,
 
58
                    int  /* y */
 
59
                    );
 
60
} miPointerSpriteFuncRec, *miPointerSpriteFuncPtr;
 
61
 
 
62
typedef struct _miPointerScreenFuncRec {
 
63
    Bool        (*CursorOffScreen)(
 
64
                    ScreenPtr* /* ppScr */,
 
65
                    int*  /* px */,
 
66
                    int*  /* py */
 
67
                    );
 
68
    void        (*CrossScreen)(
 
69
                    ScreenPtr /* pScr */,
 
70
                    int  /* entering */
 
71
                    );
 
72
    void        (*WarpCursor)(
 
73
                    ScreenPtr /* pScr */,
 
74
                    int  /* x */,
 
75
                    int  /* y */
 
76
                    );
 
77
    void        (*EnqueueEvent)(
 
78
                    xEventPtr /* event */
 
79
                    );
 
80
    void        (*NewEventScreen)(
 
81
                    ScreenPtr /* pScr */,
 
82
                    Bool /* fromDIX */
 
83
                    );
 
84
} miPointerScreenFuncRec, *miPointerScreenFuncPtr;
 
85
 
 
86
extern Bool miDCInitialize(
 
87
    ScreenPtr /*pScreen*/,
 
88
    miPointerScreenFuncPtr /*screenFuncs*/
 
89
);
 
90
 
 
91
extern Bool miPointerInitialize(
 
92
    ScreenPtr /*pScreen*/,
 
93
    miPointerSpriteFuncPtr /*spriteFuncs*/,
 
94
    miPointerScreenFuncPtr /*screenFuncs*/,
 
95
    Bool /*waitForUpdate*/
 
96
);
 
97
 
 
98
extern void miPointerWarpCursor(
 
99
    ScreenPtr /*pScreen*/,
 
100
    int /*x*/,
 
101
    int /*y*/
 
102
);
 
103
 
 
104
extern int miPointerGetMotionBufferSize(
 
105
    void
 
106
);
 
107
 
 
108
extern int miPointerGetMotionEvents(
 
109
    DeviceIntPtr /*pPtr*/,
 
110
    xTimecoord * /*coords*/,
 
111
    unsigned long /*start*/,
 
112
    unsigned long /*stop*/,
 
113
    ScreenPtr /*pScreen*/
 
114
);
 
115
 
 
116
extern void miPointerUpdate(
 
117
    void
 
118
);
 
119
 
 
120
extern void miPointerDeltaCursor(
 
121
    int /*dx*/,
 
122
    int /*dy*/,
 
123
    unsigned long /*time*/
 
124
);
 
125
 
 
126
extern void miPointerAbsoluteCursor(
 
127
    int /*x*/,
 
128
    int /*y*/,
 
129
    unsigned long /*time*/
 
130
);
 
131
 
 
132
extern void miPointerPosition(
 
133
    int * /*x*/,
 
134
    int * /*y*/
 
135
);
 
136
 
 
137
#undef miRegisterPointerDevice
 
138
extern void miRegisterPointerDevice(
 
139
    ScreenPtr /*pScreen*/,
 
140
    DevicePtr /*pDevice*/
 
141
);
 
142
 
 
143
extern void miPointerSetNewScreen(
 
144
    int, /*screen_no*/
 
145
        int, /*x*/
 
146
        int /*y*/
 
147
);
 
148
extern ScreenPtr miPointerCurrentScreen(
 
149
    void
 
150
);
 
151
 
 
152
#define miRegisterPointerDevice(pScreen,pDevice) \
 
153
       _miRegisterPointerDevice(pScreen,pDevice)
 
154
 
 
155
extern void _miRegisterPointerDevice(
 
156
    ScreenPtr /*pScreen*/,
 
157
    DeviceIntPtr /*pDevice*/
 
158
);
 
159
 
 
160
extern int miPointerScreenIndex;
 
161
 
 
162
#endif /* MIPOINTER_H */