~ubuntu-branches/ubuntu/karmic/virtualbox-ose/karmic-updates

« back to all changes in this revision

Viewing changes to src/VBox/Additions/x11/x11include/4.2/programs/Xserver/include/extnsionst.h

  • Committer: Bazaar Package Importer
  • Author(s): Felix Geyer
  • Date: 2009-09-14 18:25:07 UTC
  • mfrom: (0.4.1 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090914182507-c98g07mq16hjmn6d
Tags: 3.0.6-dfsg-1ubuntu1
* Merge from debian unstable (LP: #429697), remaining changes:
  - Enable DKMS support on virtualbox host and guest modules (LP: #267097)
    - Drop virtualbox-ose{-guest,}-modules-* package templates
    - Recommend *-source instead of *-modules packages
    - Replace error messages related to missing/mismatched
      kernel module accordingly
  - Autoload kernel module
    - LOAD_VBOXDRV_MODULE=1 in virtualbox-ose.default
  - Disable update action
    - patches/u01-disable-update-action.dpatch
  - Virtualbox should go in Accessories, not in System tools (LP: #288590)
    - virtualbox-ose-qt.files/virtualbox-ose.desktop
  - Add apport hook
    - virtualbox-ose.files/source_virtualbox-ose.py
    - virtualbox-ose.install
  - Add launchpad integration
    - control
    - lpi-bug.xpm
    - patches/u02-lp-integration.dpatch
  - virtualbox, virtualbox-* (names of the upstream proprietary packages)
    conflict with virtualbox-ose (LP: #379878)
* Make debug package depend on normal or guest utils package
* Drop patches/22-pulseaudio-stubs.dpatch (applied upstream)
* Rename Ubuntu specific patches to uXX-*.dpatch
* Fix lintian warnings in maintainer scripts

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Xorg: extnsionst.h,v 1.4 2001/02/09 02:05:15 xorgcvs Exp $ */
2
 
/***********************************************************
3
 
 
4
 
Copyright 1987, 1998  The Open Group
5
 
 
6
 
Permission to use, copy, modify, distribute, and sell this software and its
7
 
documentation for any purpose is hereby granted without fee, provided that
8
 
the above copyright notice appear in all copies and that both that
9
 
copyright notice and this permission notice appear in supporting
10
 
documentation.
11
 
 
12
 
The above copyright notice and this permission notice shall be included in
13
 
all copies or substantial portions of the Software.
14
 
 
15
 
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
 
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
 
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
18
 
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
19
 
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20
 
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21
 
 
22
 
Except as contained in this notice, the name of The Open Group shall not be
23
 
used in advertising or otherwise to promote the sale, use or other dealings
24
 
in this Software without prior written authorization from The Open Group.
25
 
 
26
 
 
27
 
Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
28
 
 
29
 
                        All Rights Reserved
30
 
 
31
 
Permission to use, copy, modify, and distribute this software and its 
32
 
documentation for any purpose and without fee is hereby granted, 
33
 
provided that the above copyright notice appear in all copies and that
34
 
both that copyright notice and this permission notice appear in 
35
 
supporting documentation, and that the name of Digital not be
36
 
used in advertising or publicity pertaining to distribution of the
37
 
software without specific, written prior permission.  
38
 
 
39
 
DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
40
 
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
41
 
DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
42
 
ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
43
 
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
44
 
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
45
 
SOFTWARE.
46
 
 
47
 
******************************************************************/
48
 
/* $XFree86: xc/programs/Xserver/include/extnsionst.h,v 3.7 2001/12/14 19:59:54 dawes Exp $ */
49
 
 
50
 
#ifndef EXTENSIONSTRUCT_H
51
 
#define EXTENSIONSTRUCT_H 
52
 
 
53
 
#include "misc.h"
54
 
#include "screenint.h"
55
 
#include "extension.h"
56
 
#include "gc.h"
57
 
 
58
 
typedef struct _ExtensionEntry {
59
 
    int index;
60
 
    void (* CloseDown)( /* called at server shutdown */
61
 
#if NeedNestedPrototypes
62
 
        struct _ExtensionEntry * /* extension */
63
 
#endif
64
 
);
65
 
    char *name;               /* extension name */
66
 
    int base;                 /* base request number */
67
 
    int eventBase;            
68
 
    int eventLast;
69
 
    int errorBase;
70
 
    int errorLast;
71
 
    int num_aliases;
72
 
    char **aliases;
73
 
    pointer extPrivate;
74
 
    unsigned short (* MinorOpcode)(     /* called for errors */
75
 
#if NeedNestedPrototypes
76
 
        ClientPtr /* client */
77
 
#endif
78
 
);
79
 
#ifdef XCSECURITY
80
 
    Bool secure;                /* extension visible to untrusted clients? */
81
 
#endif
82
 
} ExtensionEntry;
83
 
 
84
 
/* 
85
 
 * The arguments may be different for extension event swapping functions.
86
 
 * Deal with this by casting when initializing the event's EventSwapVector[]
87
 
 * entries.
88
 
 */
89
 
typedef void (*EventSwapPtr) (
90
 
#if NeedFunctionPrototypes
91
 
        xEvent *,
92
 
        xEvent *
93
 
#endif
94
 
);
95
 
 
96
 
extern EventSwapPtr EventSwapVector[128];
97
 
 
98
 
extern void NotImplemented (    /* FIXME: this may move to another file... */
99
 
#if NeedFunctionPrototypes
100
 
        xEvent *,
101
 
        xEvent *
102
 
#endif
103
 
);
104
 
 
105
 
typedef void (* ExtensionLookupProc)(   /*args indeterminate*/
106
 
#ifdef  EXTENSION_PROC_ARGS
107
 
        EXTENSION_PROC_ARGS
108
 
#else
109
 
        void
110
 
#endif
111
 
);
112
 
 
113
 
typedef struct _ProcEntry {
114
 
    char *name;
115
 
    ExtensionLookupProc proc;
116
 
} ProcEntryRec, *ProcEntryPtr;
117
 
 
118
 
typedef struct _ScreenProcEntry {
119
 
    int num;
120
 
    ProcEntryPtr procList;
121
 
} ScreenProcEntry;
122
 
 
123
 
#define    SetGCVector(pGC, VectorElement, NewRoutineAddress, Atom)    \
124
 
    pGC->VectorElement = NewRoutineAddress;
125
 
 
126
 
#define    GetGCValue(pGC, GCElement)    (pGC->GCElement)
127
 
 
128
 
 
129
 
extern ExtensionEntry *AddExtension(
130
 
#if NeedFunctionPrototypes
131
 
    char* /*name*/,
132
 
    int /*NumEvents*/,
133
 
    int /*NumErrors*/,
134
 
    int (* /*MainProc*/)(
135
 
#if NeedNestedPrototypes
136
 
        ClientPtr /*client*/
137
 
#endif
138
 
),
139
 
    int (* /*SwappedMainProc*/)(
140
 
#if NeedNestedPrototypes
141
 
        ClientPtr /*client*/
142
 
#endif
143
 
),
144
 
    void (* /*CloseDownProc*/)(
145
 
#if NeedNestedPrototypes
146
 
        ExtensionEntry * /*extension*/
147
 
#endif
148
 
),
149
 
    unsigned short (* /*MinorOpcodeProc*/)(
150
 
#if NeedNestedPrototypes
151
 
        ClientPtr /*client*/
152
 
#endif
153
 
        )
154
 
#endif /* NeedFunctionPrototypes */
155
 
);
156
 
 
157
 
extern Bool AddExtensionAlias(
158
 
#if NeedFunctionPrototypes
159
 
    char* /*alias*/,
160
 
    ExtensionEntry * /*extension*/
161
 
#endif
162
 
);
163
 
 
164
 
extern ExtensionEntry *CheckExtension(const char *extname);
165
 
 
166
 
extern ExtensionLookupProc LookupProc(
167
 
#if NeedFunctionPrototypes
168
 
    char* /*name*/,
169
 
    GCPtr /*pGC*/
170
 
#endif
171
 
);
172
 
 
173
 
extern Bool RegisterProc(
174
 
#if NeedFunctionPrototypes
175
 
    char* /*name*/,
176
 
    GCPtr /*pGC*/,
177
 
    ExtensionLookupProc /*proc*/
178
 
#endif
179
 
);
180
 
 
181
 
extern Bool RegisterScreenProc(
182
 
#if NeedFunctionPrototypes
183
 
    char* /*name*/,
184
 
    ScreenPtr /*pScreen*/,
185
 
    ExtensionLookupProc /*proc*/
186
 
#endif
187
 
);
188
 
 
189
 
extern void DeclareExtensionSecurity(
190
 
#if NeedFunctionPrototypes
191
 
    char * /*extname*/,
192
 
    Bool /*secure*/
193
 
#endif
194
 
);
195
 
 
196
 
#endif /* EXTENSIONSTRUCT_H */
197