xref: /OK3568_Linux_fs/external/xserver/composite/compositeext.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /*
2*4882a593Smuzhiyun  * Copyright © 2009 NVIDIA Corporation
3*4882a593Smuzhiyun  *
4*4882a593Smuzhiyun  * Permission is hereby granted, free of charge, to any person obtaining a
5*4882a593Smuzhiyun  * copy of this software and associated documentation files (the "Software"), to
6*4882a593Smuzhiyun  * deal in the Software without restriction, including without limitation the
7*4882a593Smuzhiyun  * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
8*4882a593Smuzhiyun  * sell copies of the Software, and to permit persons to whom the Software is
9*4882a593Smuzhiyun  * furnished to do so, subject to the following conditions:
10*4882a593Smuzhiyun  *
11*4882a593Smuzhiyun  * The above copyright notice and this permission notice (including the next
12*4882a593Smuzhiyun  * paragraph) shall be included in all copies or substantial portions of the
13*4882a593Smuzhiyun  * Software.
14*4882a593Smuzhiyun  *
15*4882a593Smuzhiyun  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16*4882a593Smuzhiyun  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17*4882a593Smuzhiyun  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
18*4882a593Smuzhiyun  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19*4882a593Smuzhiyun  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20*4882a593Smuzhiyun  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21*4882a593Smuzhiyun  * SOFTWARE.
22*4882a593Smuzhiyun  */
23*4882a593Smuzhiyun 
24*4882a593Smuzhiyun #ifdef HAVE_DIX_CONFIG_H
25*4882a593Smuzhiyun #include <dix-config.h>
26*4882a593Smuzhiyun #endif
27*4882a593Smuzhiyun 
28*4882a593Smuzhiyun #ifndef _COMPOSITEEXT_H_
29*4882a593Smuzhiyun #define _COMPOSITEEXT_H_
30*4882a593Smuzhiyun 
31*4882a593Smuzhiyun #include "misc.h"
32*4882a593Smuzhiyun #include "scrnintstr.h"
33*4882a593Smuzhiyun 
34*4882a593Smuzhiyun extern _X_EXPORT Bool CompositeRegisterAlternateVisuals(ScreenPtr pScreen,
35*4882a593Smuzhiyun                                                         VisualID * vids,
36*4882a593Smuzhiyun                                                         int nVisuals);
37*4882a593Smuzhiyun 
38*4882a593Smuzhiyun extern _X_EXPORT Bool CompositeRegisterImplicitRedirectionException(ScreenPtr pScreen,
39*4882a593Smuzhiyun                                                                     VisualID parentVisual,
40*4882a593Smuzhiyun                                                                     VisualID winVisual);
41*4882a593Smuzhiyun 
42*4882a593Smuzhiyun 
43*4882a593Smuzhiyun extern _X_EXPORT Bool compIsAlternateVisual(ScreenPtr pScreen, XID visual);
44*4882a593Smuzhiyun extern _X_EXPORT RESTYPE CompositeClientWindowType;
45*4882a593Smuzhiyun 
46*4882a593Smuzhiyun #endif                          /* _COMPOSITEEXT_H_ */
47