Mir
native_display.h
Go to the documentation of this file.
1 /*
2  * Copyright © 2013 Canonical Ltd.
3  *
4  * This program is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU Lesser General Public License version 3 as
6  * published by the Free Software Foundation.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU Lesser General Public License for more details.
12  *
13  * You should have received a copy of the GNU Lesser General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  *
16  */
17 
18 #ifndef MIR_TOOLKIT_MESA_NATIVE_DISPLAY_H
19 #define MIR_TOOLKIT_MESA_NATIVE_DISPLAY_H
20 
22 
23 #define MIR_MESA_TRUE 1
24 #define MIR_MESA_FALSE 0
25 
26 #ifdef __cplusplus
27 
31 extern "C"
32 {
33 #endif
34 
38 
40 {
42  MirPlatformPackage* package);
43  void *context;
44 };
45 
47 {
48  int (*surface_set_swapinterval)(MirMesaEGLNativeSurface* surface, int interval);
49  int (*surface_advance_buffer)(MirMesaEGLNativeSurface* surface,
50  MirBufferPackage* buffer_package);
51  int (*surface_get_parameters)(MirMesaEGLNativeSurface* surface,
52  MirWindowParameters* surface_parameters);
53 };
54 
55 #ifdef __cplusplus
56 } // extern "C"
58 #endif
59 
60 #endif /* MIR_TOOLKIT_MESA_NATIVE_DISPLAY_H */
Definition: client_types.h:226
void * context
Definition: native_display.h:43
int(* display_get_platform)(MirMesaEGLNativeDisplay *display, MirPlatformPackage *package)
Definition: native_display.h:41
Definition: mir_native_buffer.h:31
Definition: native_display.h:39
Definition: native_display.h:46
MirWindowParameters is the structure of minimum required information that you must provide to Mir in ...
Definition: client_types.h:188

Copyright © 2012-2016 Canonical Ltd.
Generated on Mon Jun 5 11:07:25 UTC 2017