]> git.sesse.net Git - rdpsrv/blob - Xserver/include/extensions/Xag.h
Import X server from vnc-3.3.7.
[rdpsrv] / Xserver / include / extensions / Xag.h
1 /*
2 Copyright (c) 1996  X Consortium
3
4 Permission is hereby granted, free of charge, to any person obtaining
5 a copy of this software and associated documentation files (the
6 "Software"), to deal in the Software without restriction, including
7 without limitation the rights to use, copy, modify, merge, publish,
8 distribute, sublicense, and sell copies of the Software, and to
9 permit persons to whom the Software is furnished to do so, subject to
10 the following conditions:
11
12 The above copyright notice and this permission notice shall be included
13 in all copies or substantial portions of the Software.
14
15 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
16 OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
18 IN NO EVENT SHALL THE X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR
19 OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
20 ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
21 OTHER DEALINGS IN THE SOFTWARE.
22
23 Except as contained in this notice, the name of the X Consortium shall
24 not be used in advertising or otherwise to promote the sale, use or
25 other dealings in this Software without prior written authorization
26 from the X Consortium.
27 */
28 /* $XConsortium: Xag.h /main/2 1996/11/12 12:18:22 swick $ */
29
30 #ifndef _XAG_H_
31 #define _XAG_H_
32
33 #include <X11/Xfuncproto.h>
34
35 #define X_XagQueryVersion               0
36 #define X_XagCreate                     1
37 #define X_XagDestroy                    2
38 #define X_XagGetAttr                    3
39 #define X_XagQuery                      4
40 #define X_XagCreateAssoc                5
41 #define X_XagDestroyAssoc               6
42
43 #define XagBadAppGroup                  0
44 #define XagNumberErrors                 (XagBadAppGroup + 1)
45
46 #define XagNsingleScreen                0
47 #define XagNdefaultRoot                 1
48 #define XagNrootVisual                  2
49 #define XagNdefaultColormap             3
50 #define XagNblackPixel                  4
51 #define XagNwhitePixel                  5
52 #define XagNappGroupLeader              6
53
54 #ifndef _XAG_SERVER_
55
56 #if NeedVarargsPrototypes
57 #include <stdarg.h>
58 #else
59 #include <varargs.h>
60 #endif
61
62 _XFUNCPROTOBEGIN
63
64 typedef XID XAppGroup;
65
66 Bool XagQueryVersion(
67 #if NeedFunctionPrototypes
68     Display*                    /* dpy */,
69     int*                        /* major_version */,
70     int*                        /* minor_version */
71 #endif
72 );
73
74 Status XagCreateEmbeddedApplicationGroup(
75 #if NeedFunctionPrototypes
76     Display*                    /* dpy */,
77     VisualID                    /* root_visual */,
78     Colormap                    /* default_colormap */,
79     unsigned long               /* black_pixel */,
80     unsigned long               /* white_pixel */,
81     XAppGroup*                  /* app_group_return */
82 #endif
83 );
84
85 Status XagCreateNonembeddedApplicationGroup(
86 #if NeedFunctionPrototypes
87     Display*                    /* dpy */,
88     XAppGroup*                  /* app_group_return */
89 #endif
90 );
91
92 Status XagDestroyApplicationGroup(
93 #if NeedFunctionPrototypes
94     Display*                    /* dpy */,
95     XAppGroup                   /* app_group */
96 #endif
97 );
98
99 Status XagGetApplicationGroupAttributes(
100 #if NeedVarargsPrototypes
101     Display*                    /* dpy */,
102     XAppGroup                   /* app_group */,
103     ...
104 #endif
105 );
106
107 Status XagQueryApplicationGroup(
108 #if NeedFunctionPrototypes
109     Display*                    /* dpy */,
110     XID                         /* resource_base */,
111     XAppGroup*                  /* app_group_ret */
112 #endif
113 );
114
115 Status XagCreateAssociation(
116 #if NeedFunctionPrototypes
117     Display*                    /* dpy */,
118     Window*                     /* window_ret */,
119     void*                       /* system_window */
120 #endif
121 );
122
123 Status XagDestroyAssociation(
124 #if NeedFunctionPrototypes
125     Display*                    /* dpy */,
126     Window                      /* window */
127 #endif
128 );
129
130 _XFUNCPROTOEND
131
132 #endif /* _XAG_SERVER_ */
133
134 #endif /* _XAG_H_ */
135