1/*
2Copyright 1996, 1998  The Open Group
3
4Permission to use, copy, modify, distribute, and sell this software and its
5documentation for any purpose is hereby granted without fee, provided that
6the above copyright notice appear in all copies and that both that
7copyright notice and this permission notice appear in supporting
8documentation.
9
10The above copyright notice and this permission notice shall be included
11in all copies or substantial portions of the Software.
12
13THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
14OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
15MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
16IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
17OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
18ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
19OTHER DEALINGS IN THE SOFTWARE.
20
21Except as contained in this notice, the name of The Open Group shall
22not be used in advertising or otherwise to promote the sale, use or
23other dealings in this Software without prior written authorization
24from The Open Group.
25*/
26
27#ifndef _XAG_H_
28#define _XAG_H_
29
30#include <X11/extensions/ag.h>
31#include <X11/Xfuncproto.h>
32
33#include <stdarg.h>
34
35_XFUNCPROTOBEGIN
36
37typedef XID XAppGroup;
38
39Bool XagQueryVersion(
40    Display*			/* dpy */,
41    int*			/* major_version */,
42    int*			/* minor_version */
43);
44
45Status XagCreateEmbeddedApplicationGroup(
46    Display*			/* dpy */,
47    VisualID			/* root_visual */,
48    Colormap			/* default_colormap */,
49    unsigned long		/* black_pixel */,
50    unsigned long		/* white_pixel */,
51    XAppGroup*			/* app_group_return */
52);
53
54Status XagCreateNonembeddedApplicationGroup(
55    Display*			/* dpy */,
56    XAppGroup*			/* app_group_return */
57);
58
59Status XagDestroyApplicationGroup(
60    Display*			/* dpy */,
61    XAppGroup			/* app_group */
62);
63
64Status XagGetApplicationGroupAttributes(
65    Display*			/* dpy */,
66    XAppGroup			/* app_group */,
67    ...
68);
69
70Status XagQueryApplicationGroup(
71    Display*			/* dpy */,
72    XID				/* resource_base */,
73    XAppGroup*			/* app_group_ret */
74);
75
76Status XagCreateAssociation(
77    Display*			/* dpy */,
78    Window*			/* window_ret */,
79    void*			/* system_window */
80);
81
82Status XagDestroyAssociation(
83    Display*			/* dpy */,
84    Window			/* window */
85);
86
87_XFUNCPROTOEND
88
89#endif /* _XAG_H_ */
90
91