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