1 | /* $Xorg: Xcup.h,v 1.4 2001/02/09 02:03:24 xorgcvs Exp $ */
|
---|
2 | /*
|
---|
3 |
|
---|
4 | Copyright 1987, 1988, 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 |
|
---|
28 | #ifndef _XCUP_H_
|
---|
29 | #define _XCUP_H_
|
---|
30 |
|
---|
31 | #include <X11/Xfuncproto.h>
|
---|
32 |
|
---|
33 | #define X_XcupQueryVersion 0
|
---|
34 | #define X_XcupGetReservedColormapEntries 1
|
---|
35 | #define X_XcupStoreColors 2
|
---|
36 |
|
---|
37 | #define XcupNumberErrors 0
|
---|
38 |
|
---|
39 | #ifndef _XCUP_SERVER_
|
---|
40 |
|
---|
41 | _XFUNCPROTOBEGIN
|
---|
42 |
|
---|
43 | Bool XcupQueryVersion(
|
---|
44 | #if NeedFunctionPrototypes
|
---|
45 | Display* /* dpy */,
|
---|
46 | int* /* major_version */,
|
---|
47 | int* /* minor_version */
|
---|
48 | #endif
|
---|
49 | );
|
---|
50 |
|
---|
51 | Status XcupGetReservedColormapEntries(
|
---|
52 | #if NeedFunctionPrototypes
|
---|
53 | Display* /* dpy */,
|
---|
54 | int /* screen */,
|
---|
55 | XColor** /* colors_out */,
|
---|
56 | int* /* ncolors */
|
---|
57 | #endif
|
---|
58 | );
|
---|
59 |
|
---|
60 | Status XcupStoreColors(
|
---|
61 | #if NeedFunctionPrototypes
|
---|
62 | Display* /* dpy */,
|
---|
63 | Colormap /* colormap */,
|
---|
64 | XColor* /* colors */,
|
---|
65 | int /* ncolors */
|
---|
66 | #endif
|
---|
67 | );
|
---|
68 |
|
---|
69 | _XFUNCPROTOEND
|
---|
70 |
|
---|
71 | #endif /* _XCUP_SERVER_ */
|
---|
72 |
|
---|
73 | #endif /* _XCUP_H_ */
|
---|
74 |
|
---|