1485f0483Smrg/*
2485f0483SmrgCopyright 1996, 1998  The Open Group
3485f0483Smrg
4485f0483SmrgPermission to use, copy, modify, distribute, and sell this software and its
5485f0483Smrgdocumentation for any purpose is hereby granted without fee, provided that
6485f0483Smrgthe above copyright notice appear in all copies and that both that
7485f0483Smrgcopyright notice and this permission notice appear in supporting
8485f0483Smrgdocumentation.
9485f0483Smrg
10485f0483SmrgThe above copyright notice and this permission notice shall be included
11485f0483Smrgin all copies or substantial portions of the Software.
12485f0483Smrg
13485f0483SmrgTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
14485f0483SmrgOR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
15485f0483SmrgMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
16485f0483SmrgIN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
17485f0483SmrgOTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
18485f0483SmrgARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
19485f0483SmrgOTHER DEALINGS IN THE SOFTWARE.
20485f0483Smrg
21485f0483SmrgExcept as contained in this notice, the name of The Open Group shall
22485f0483Smrgnot be used in advertising or otherwise to promote the sale, use or
23485f0483Smrgother dealings in this Software without prior written authorization
24485f0483Smrgfrom The Open Group.
25485f0483Smrg*/
26485f0483Smrg
27485f0483Smrg#ifndef _XAG_H_
28485f0483Smrg#define _XAG_H_
29485f0483Smrg
30485f0483Smrg#include <X11/extensions/ag.h>
31485f0483Smrg#include <X11/Xfuncproto.h>
32485f0483Smrg
33485f0483Smrg#include <stdarg.h>
34485f0483Smrg
35485f0483Smrg_XFUNCPROTOBEGIN
36485f0483Smrg
37485f0483Smrgtypedef XID XAppGroup;
38485f0483Smrg
39485f0483SmrgBool XagQueryVersion(
40485f0483Smrg    Display*			/* dpy */,
41485f0483Smrg    int*			/* major_version */,
42485f0483Smrg    int*			/* minor_version */
43485f0483Smrg);
44485f0483Smrg
45485f0483SmrgStatus XagCreateEmbeddedApplicationGroup(
46485f0483Smrg    Display*			/* dpy */,
47485f0483Smrg    VisualID			/* root_visual */,
48485f0483Smrg    Colormap			/* default_colormap */,
49485f0483Smrg    unsigned long		/* black_pixel */,
50485f0483Smrg    unsigned long		/* white_pixel */,
51485f0483Smrg    XAppGroup*			/* app_group_return */
52485f0483Smrg);
53485f0483Smrg
54485f0483SmrgStatus XagCreateNonembeddedApplicationGroup(
55485f0483Smrg    Display*			/* dpy */,
56485f0483Smrg    XAppGroup*			/* app_group_return */
57485f0483Smrg);
58485f0483Smrg
59485f0483SmrgStatus XagDestroyApplicationGroup(
60485f0483Smrg    Display*			/* dpy */,
61485f0483Smrg    XAppGroup			/* app_group */
62485f0483Smrg);
63485f0483Smrg
64485f0483SmrgStatus XagGetApplicationGroupAttributes(
65485f0483Smrg    Display*			/* dpy */,
66485f0483Smrg    XAppGroup			/* app_group */,
67485f0483Smrg    ...
68485f0483Smrg);
69485f0483Smrg
70485f0483SmrgStatus XagQueryApplicationGroup(
71485f0483Smrg    Display*			/* dpy */,
72485f0483Smrg    XID				/* resource_base */,
73485f0483Smrg    XAppGroup*			/* app_group_ret */
74485f0483Smrg);
75485f0483Smrg
76485f0483SmrgStatus XagCreateAssociation(
77485f0483Smrg    Display*			/* dpy */,
78485f0483Smrg    Window*			/* window_ret */,
79485f0483Smrg    void*			/* system_window */
80485f0483Smrg);
81485f0483Smrg
82485f0483SmrgStatus XagDestroyAssociation(
83485f0483Smrg    Display*			/* dpy */,
84485f0483Smrg    Window			/* window */
85485f0483Smrg);
86485f0483Smrg
87485f0483Smrg_XFUNCPROTOEND
88485f0483Smrg
89485f0483Smrg#endif /* _XAG_H_ */
90485f0483Smrg
91