xref: /aosp_15_r20/external/mesa3d/src/glx/glx_error.h (revision 6104692788411f58d303aa86923a9ff6ecaded22)
1*61046927SAndroid Build Coastguard Worker /*
2*61046927SAndroid Build Coastguard Worker  Copyright (c) 2009 Apple Inc.
3*61046927SAndroid Build Coastguard Worker 
4*61046927SAndroid Build Coastguard Worker  Permission is hereby granted, free of charge, to any person
5*61046927SAndroid Build Coastguard Worker  obtaining a copy of this software and associated documentation files
6*61046927SAndroid Build Coastguard Worker  (the "Software"), to deal in the Software without restriction,
7*61046927SAndroid Build Coastguard Worker  including without limitation the rights to use, copy, modify, merge,
8*61046927SAndroid Build Coastguard Worker  publish, distribute, sublicense, and/or sell copies of the Software,
9*61046927SAndroid Build Coastguard Worker  and to permit persons to whom the Software is furnished to do so,
10*61046927SAndroid Build Coastguard Worker  subject to the following conditions:
11*61046927SAndroid Build Coastguard Worker 
12*61046927SAndroid Build Coastguard Worker  The above copyright notice and this permission notice shall be
13*61046927SAndroid Build Coastguard Worker  included in all copies or substantial portions of the Software.
14*61046927SAndroid Build Coastguard Worker 
15*61046927SAndroid Build Coastguard Worker  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16*61046927SAndroid Build Coastguard Worker  EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17*61046927SAndroid Build Coastguard Worker  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18*61046927SAndroid Build Coastguard Worker  NONINFRINGEMENT.  IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT
19*61046927SAndroid Build Coastguard Worker  HOLDER(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
20*61046927SAndroid Build Coastguard Worker  WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21*61046927SAndroid Build Coastguard Worker  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22*61046927SAndroid Build Coastguard Worker  DEALINGS IN THE SOFTWARE.
23*61046927SAndroid Build Coastguard Worker 
24*61046927SAndroid Build Coastguard Worker  Except as contained in this notice, the name(s) of the above
25*61046927SAndroid Build Coastguard Worker  copyright holders shall not be used in advertising or otherwise to
26*61046927SAndroid Build Coastguard Worker  promote the sale, use or other dealings in this Software without
27*61046927SAndroid Build Coastguard Worker  prior written authorization.
28*61046927SAndroid Build Coastguard Worker */
29*61046927SAndroid Build Coastguard Worker 
30*61046927SAndroid Build Coastguard Worker #ifndef GLX_ERROR_H
31*61046927SAndroid Build Coastguard Worker #define GLX_ERROR_H
32*61046927SAndroid Build Coastguard Worker 
33*61046927SAndroid Build Coastguard Worker #include <stdbool.h>
34*61046927SAndroid Build Coastguard Worker #include <stdint.h>
35*61046927SAndroid Build Coastguard Worker #include <X11/Xlib.h>
36*61046927SAndroid Build Coastguard Worker #include <xcb/xcb.h>
37*61046927SAndroid Build Coastguard Worker 
38*61046927SAndroid Build Coastguard Worker #ifdef __cplusplus
39*61046927SAndroid Build Coastguard Worker extern "C" {
40*61046927SAndroid Build Coastguard Worker #endif
41*61046927SAndroid Build Coastguard Worker 
42*61046927SAndroid Build Coastguard Worker void __glXSendError(Display * dpy, int_fast8_t errorCode,
43*61046927SAndroid Build Coastguard Worker           uint_fast32_t resourceID, uint_fast16_t minorCode,
44*61046927SAndroid Build Coastguard Worker           bool coreX11error);
45*61046927SAndroid Build Coastguard Worker 
46*61046927SAndroid Build Coastguard Worker _X_HIDDEN void __glXSendErrorForXcb(Display * dpy,
47*61046927SAndroid Build Coastguard Worker                 const xcb_generic_error_t *err);
48*61046927SAndroid Build Coastguard Worker 
49*61046927SAndroid Build Coastguard Worker #ifdef __cplusplus
50*61046927SAndroid Build Coastguard Worker }
51*61046927SAndroid Build Coastguard Worker #endif
52*61046927SAndroid Build Coastguard Worker 
53*61046927SAndroid Build Coastguard Worker #endif
54