Mir
android_buffer.h
Go to the documentation of this file.
1 /*
2  * Copyright © 2016 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  * Authored by: Kevin DuBois <kevin.dubois@canonical.com>
17  */
18 
19 #ifndef MIR_CLIENT_EXTENSIONS_ANDROID_BUFFER_H_
20 #define MIR_CLIENT_EXTENSIONS_ANDROID_BUFFER_H_
21 
23 #include "mir_toolkit/mir_buffer.h"
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
51  MirConnection* connection,
52  int width, int height,
53  unsigned int hal_pixel_format,
54  unsigned int gralloc_usage_flags,
55  MirBufferCallback available_callback, void* available_context);
56 
58 {
61 
62 static inline MirExtensionAndroidBufferV1 const* mir_extension_android_buffer_v1(
63  MirConnection* connection)
64 {
66  connection, "mir_extension_android_buffer", 1);
67 }
68 
69 #ifdef __cplusplus
70 }
71 #endif
72 #endif /* MIR_CLIENT_EXTENSIONS_ANDROID_BUFFER_H_ */
mir_connection_allocate_buffer_android allocate_buffer_android
Definition: android_buffer.h:59
void(* mir_connection_allocate_buffer_android)(MirConnection *connection, int width, int height, unsigned int hal_pixel_format, unsigned int gralloc_usage_flags, MirBufferCallback available_callback, void *available_context)
Allocate a MirBuffer usable by the android platform.
Definition: android_buffer.h:50
unsigned int height
Definition: mir_image.h:27
unsigned int width
Definition: mir_image.h:26
Definition: android_buffer.h:57
struct MirConnection MirConnection
Definition: client_types.h:41
void(* MirBufferCallback)(MirBuffer *, void *context)
Definition: client_types.h:484
void const * mir_connection_request_extension(MirConnection *connection, char const *interface, int version)
Request a Mir extension.
struct MirExtensionAndroidBufferV1 MirExtensionAndroidBufferV1

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