xref: /aosp_15_r20/external/mesa3d/src/x11/loader_x11.h (revision 6104692788411f58d303aa86923a9ff6ecaded22)
1*61046927SAndroid Build Coastguard Worker /*
2*61046927SAndroid Build Coastguard Worker  * Copyright © 2013 Keith Packard
3*61046927SAndroid Build Coastguard Worker  * Copyright © 2015 Boyan Ding
4*61046927SAndroid Build Coastguard Worker  *
5*61046927SAndroid Build Coastguard Worker  * Permission to use, copy, modify, distribute, and sell this software and its
6*61046927SAndroid Build Coastguard Worker  * documentation for any purpose is hereby granted without fee, provided that
7*61046927SAndroid Build Coastguard Worker  * the above copyright notice appear in all copies and that both that copyright
8*61046927SAndroid Build Coastguard Worker  * notice and this permission notice appear in supporting documentation, and
9*61046927SAndroid Build Coastguard Worker  * that the name of the copyright holders not be used in advertising or
10*61046927SAndroid Build Coastguard Worker  * publicity pertaining to distribution of the software without specific,
11*61046927SAndroid Build Coastguard Worker  * written prior permission.  The copyright holders make no representations
12*61046927SAndroid Build Coastguard Worker  * about the suitability of this software for any purpose.  It is provided "as
13*61046927SAndroid Build Coastguard Worker  * is" without express or implied warranty.
14*61046927SAndroid Build Coastguard Worker  *
15*61046927SAndroid Build Coastguard Worker  * THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
16*61046927SAndroid Build Coastguard Worker  * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
17*61046927SAndroid Build Coastguard Worker  * EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
18*61046927SAndroid Build Coastguard Worker  * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
19*61046927SAndroid Build Coastguard Worker  * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
20*61046927SAndroid Build Coastguard Worker  * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
21*61046927SAndroid Build Coastguard Worker  * OF THIS SOFTWARE.
22*61046927SAndroid Build Coastguard Worker  */
23*61046927SAndroid Build Coastguard Worker 
24*61046927SAndroid Build Coastguard Worker #ifndef LOADER_X11_H
25*61046927SAndroid Build Coastguard Worker #define LOADER_X11_H
26*61046927SAndroid Build Coastguard Worker 
27*61046927SAndroid Build Coastguard Worker #include <xcb/xcb.h>
28*61046927SAndroid Build Coastguard Worker #include <inttypes.h>
29*61046927SAndroid Build Coastguard Worker int x11_dri3_open(xcb_connection_t *conn, xcb_window_t root, uint32_t provider);
30*61046927SAndroid Build Coastguard Worker bool x11_dri3_check_multibuffer(xcb_connection_t *c, bool *err, bool *explicit_modifiers);
31*61046927SAndroid Build Coastguard Worker 
32*61046927SAndroid Build Coastguard Worker #endif
33