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

« back to all changes in this revision

Viewing changes to src/VBox/Additions/x11/x11include/xorg-server-1.5.3/colormap.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
 
/*
2
 
 
3
 
Copyright 1987, 1998  The Open Group
4
 
 
5
 
Permission to use, copy, modify, distribute, and sell this software and its
6
 
documentation for any purpose is hereby granted without fee, provided that
7
 
the above copyright notice appear in all copies and that both that
8
 
copyright notice and this permission notice appear in supporting
9
 
documentation.
10
 
 
11
 
The above copyright notice and this permission notice shall be included in
12
 
all copies or substantial portions of the Software.
13
 
 
14
 
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
 
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
 
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
17
 
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
18
 
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
19
 
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
 
 
21
 
Except as contained in this notice, the name of The Open Group shall not be
22
 
used in advertising or otherwise to promote the sale, use or other dealings
23
 
in this Software without prior written authorization from The Open Group.
24
 
 
25
 
 
26
 
Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
27
 
 
28
 
                        All Rights Reserved
29
 
 
30
 
Permission to use, copy, modify, and distribute this software and its 
31
 
documentation for any purpose and without fee is hereby granted, 
32
 
provided that the above copyright notice appear in all copies and that
33
 
both that copyright notice and this permission notice appear in 
34
 
supporting documentation, and that the name of Digital not be
35
 
used in advertising or publicity pertaining to distribution of the
36
 
software without specific, written prior permission.  
37
 
 
38
 
DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
39
 
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
40
 
DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
41
 
ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
42
 
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
43
 
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
44
 
SOFTWARE.
45
 
 
46
 
*/
47
 
 
48
 
#ifndef CMAP_H
49
 
#define CMAP_H 1
50
 
 
51
 
#include <X11/Xproto.h>
52
 
#include "screenint.h"
53
 
#include "window.h"
54
 
 
55
 
/* these follow X.h's AllocNone and AllocAll */
56
 
#define CM_PSCREEN 2
57
 
#define CM_PWIN    3
58
 
/* Passed internally in colormap.c */
59
 
#define REDMAP 0
60
 
#define GREENMAP 1
61
 
#define BLUEMAP 2
62
 
#define PSEUDOMAP 3
63
 
#define AllocPrivate (-1)
64
 
#define AllocTemporary (-2)
65
 
#define DynamicClass  1
66
 
 
67
 
/* Values for the flags field of a colormap. These should have 1 bit set
68
 
 * and not overlap */
69
 
#define IsDefault 1
70
 
#define AllAllocated 2
71
 
#define BeingCreated 4
72
 
 
73
 
 
74
 
typedef CARD32 Pixel;
75
 
typedef struct _CMEntry *EntryPtr;
76
 
/* moved to screenint.h: typedef struct _ColormapRec *ColormapPtr */
77
 
typedef struct _colorResource *colorResourcePtr;
78
 
 
79
 
extern int CreateColormap(
80
 
    Colormap /*mid*/,
81
 
    ScreenPtr /*pScreen*/,
82
 
    VisualPtr /*pVisual*/,
83
 
    ColormapPtr* /*ppcmap*/,
84
 
    int /*alloc*/,
85
 
    int /*client*/);
86
 
 
87
 
extern int FreeColormap(
88
 
    pointer /*pmap*/,
89
 
    XID /*mid*/);
90
 
 
91
 
extern int TellLostMap(
92
 
    WindowPtr /*pwin*/,
93
 
    pointer /* Colormap *pmid */);
94
 
 
95
 
extern int TellGainedMap(
96
 
    WindowPtr /*pwin*/,
97
 
    pointer /* Colormap *pmid */);
98
 
 
99
 
extern int CopyColormapAndFree(
100
 
    Colormap /*mid*/,
101
 
    ColormapPtr /*pSrc*/,
102
 
    int /*client*/);
103
 
 
104
 
extern int AllocColor(
105
 
    ColormapPtr /*pmap*/,
106
 
    unsigned short* /*pred*/,
107
 
    unsigned short* /*pgreen*/,
108
 
    unsigned short* /*pblue*/,
109
 
    Pixel* /*pPix*/,
110
 
    int /*client*/);
111
 
 
112
 
extern void FakeAllocColor(
113
 
    ColormapPtr /*pmap*/,
114
 
    xColorItem * /*item*/);
115
 
 
116
 
extern void FakeFreeColor(
117
 
    ColormapPtr /*pmap*/,
118
 
    Pixel /*pixel*/);
119
 
 
120
 
typedef int (*ColorCompareProcPtr)(
121
 
    EntryPtr /*pent*/,
122
 
    xrgb * /*prgb*/);
123
 
 
124
 
extern int FindColor(
125
 
    ColormapPtr /*pmap*/,
126
 
    EntryPtr /*pentFirst*/,
127
 
    int /*size*/,
128
 
    xrgb* /*prgb*/,
129
 
    Pixel* /*pPixel*/,
130
 
    int /*channel*/,
131
 
    int /*client*/,
132
 
    ColorCompareProcPtr /*comp*/);
133
 
 
134
 
extern int QueryColors(
135
 
    ColormapPtr /*pmap*/,
136
 
    int /*count*/,
137
 
    Pixel* /*ppixIn*/,
138
 
    xrgb* /*prgbList*/);
139
 
 
140
 
extern int FreeClientPixels(
141
 
    pointer /*pcr*/,
142
 
    XID /*fakeid*/);
143
 
 
144
 
extern int AllocColorCells(
145
 
    int /*client*/,
146
 
    ColormapPtr /*pmap*/,
147
 
    int /*colors*/,
148
 
    int /*planes*/,
149
 
    Bool /*contig*/,
150
 
    Pixel* /*ppix*/,
151
 
    Pixel* /*masks*/);
152
 
 
153
 
extern int AllocColorPlanes(
154
 
    int /*client*/,
155
 
    ColormapPtr /*pmap*/,
156
 
    int /*colors*/,
157
 
    int /*r*/,
158
 
    int /*g*/,
159
 
    int /*b*/,
160
 
    Bool /*contig*/,
161
 
    Pixel* /*pixels*/,
162
 
    Pixel* /*prmask*/,
163
 
    Pixel* /*pgmask*/,
164
 
    Pixel* /*pbmask*/);
165
 
 
166
 
extern int FreeColors(
167
 
    ColormapPtr /*pmap*/,
168
 
    int /*client*/,
169
 
    int /*count*/,
170
 
    Pixel* /*pixels*/,
171
 
    Pixel /*mask*/);
172
 
 
173
 
extern int StoreColors(
174
 
    ColormapPtr /*pmap*/,
175
 
    int /*count*/,
176
 
    xColorItem* /*defs*/);
177
 
 
178
 
extern int IsMapInstalled(
179
 
    Colormap /*map*/,
180
 
    WindowPtr /*pWin*/);
181
 
 
182
 
#endif /* CMAP_H */