Mir
graphics_module.h
Go to the documentation of this file.
1 /*
2  * Copyright © 2017 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 2 or 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: Kevin DuBois <kevin.dubois@canonical.com>
17  */
18 
19 #ifndef MIR_CLIENT_EXTENSIONS_GRAPHICS_MODULE_H_
20 #define MIR_CLIENT_EXTENSIONS_GRAPHICS_MODULE_H_
21 
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
37 typedef void (*MirConnectionGetGraphicsModule)
38  (MirConnection *connection, MirModuleProperties *properties);
39 
41 {
44 
45 static inline MirExtensionGraphicsModuleV1 const* mir_extension_graphics_module_v1(
46  MirConnection* connection)
47 {
49  connection, "mir_extension_graphics_module", 1);
50 }
51 
52 #ifdef __cplusplus
53 }
54 #endif
55 #endif /* MIR_CLIENT_EXTENSIONS_GRAPHICS_MODULE_H_ */
Definition: graphics_module.h:40
Retrieved information about a loadable module.
Definition: client_types.h:253
struct MirConnection MirConnection
Definition: client_types.h:41
MirConnectionGetGraphicsModule graphics_module
Definition: graphics_module.h:42
void const * mir_connection_request_extension(MirConnection *connection, char const *interface, int version)
Request a Mir extension.
void(* MirConnectionGetGraphicsModule)(MirConnection *connection, MirModuleProperties *properties)
Query graphics platform module.
Definition: graphics_module.h:38
struct MirExtensionGraphicsModuleV1 MirExtensionGraphicsModuleV1

Copyright © 2012-2019 Canonical Ltd.
Generated on Fri Dec 6 02:25:22 UTC 2019
This documentation is licensed under the GPL version 2 or 3.