Mir
platform_operation.h
Go to the documentation of this file.
1 /*
2  * Copyright © 2015 Canonical Ltd.
3  *
4  * This program is free software: you can redistribute it and/or modify it
5  * under the terms of the GNU Lesser General Public License version 3,
6  * as 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  * Authored by: Alexandros Frantzis <alexandros.frantzis@canonical.com>
17  */
18 
19 #ifndef MIR_TOOLKIT_MESA_PLATFORM_OPERATION_H_
20 #define MIR_TOOLKIT_MESA_PLATFORM_OPERATION_H_
21 
22 #ifdef __cplusplus
23 
27 extern "C"
28 {
29 #endif
30 
31 /*
32  * Supported platform operations for the Mesa driver
33  */
34 
36 {
38  auth_fd = 2,
40 };
41 
42 /*
43  * MesaPlatformOperation::auth_magic related structures
44  */
45 
47 {
48  unsigned int magic;
49 };
50 
52 {
53  int status; /* 0 on success, a positive error number on failure */
54 };
55 
56 /*
57  * MesaPlatformOperation::set_gbm_device related structures
58  */
59 
60 struct gbm_device;
61 
63 {
64  struct gbm_device* device;
65 };
66 
68 {
69  int status; /* 0 on success, a positive error number on failure */
70 };
71 
72 #ifdef __cplusplus
73 }
75 #endif
76 
77 #endif
int status
Definition: platform_operation.h:69
Definition: platform_operation.h:51
int status
Definition: platform_operation.h:53
unsigned int magic
Definition: platform_operation.h:48
Definition: platform_operation.h:38
Definition: platform_operation.h:46
Definition: platform_operation.h:67
Definition: platform_operation.h:62
struct gbm_device * device
Definition: platform_operation.h:64
MirMesaPlatformOperation
Definition: platform_operation.h:35
Definition: platform_operation.h:39
Definition: platform_operation.h:37

Copyright © 2012-2016 Canonical Ltd.
Generated on Mon Jun 5 13:49:26 UTC 2017