2 * Copyright © 2012 Collabora, Ltd.
4 * Permission to use, copy, modify, distribute, and sell this
5 * software and its documentation for any purpose is hereby granted
6 * without fee, provided that the above copyright notice appear in
7 * all copies and that both that copyright notice and this permission
8 * notice appear in supporting documentation, and that the name of
9 * the copyright holders not be used in advertising or publicity
10 * pertaining to distribution of the software without specific,
11 * written prior permission. The copyright holders make no
12 * representations about the suitability of this software for any
13 * purpose. It is provided "as is" without express or implied
16 * THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS
17 * SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
18 * FITNESS, IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY
19 * SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
20 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
21 * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
22 * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
28 #include "wayland-util.h"
30 extern const struct wl_interface android_wlegl_handle_interface
;
31 extern const struct wl_interface wl_buffer_interface
;
32 extern const struct wl_interface android_wlegl_handle_interface
;
34 static const struct wl_interface
*types
[] = {
36 &android_wlegl_handle_interface
,
45 &android_wlegl_handle_interface
,
48 static const struct wl_message android_wlegl_requests
[] = {
49 { "create_handle", "nia", types
+ 1 },
50 { "create_buffer", "niiiiio", types
+ 4 },
53 WL_EXPORT
const struct wl_interface android_wlegl_interface
= {
55 2, android_wlegl_requests
,
59 static const struct wl_message android_wlegl_handle_requests
[] = {
60 { "add_fd", "h", types
+ 0 },
61 { "destroy", "", types
+ 0 },
64 WL_EXPORT
const struct wl_interface android_wlegl_handle_interface
= {
65 "android_wlegl_handle", 1,
66 2, android_wlegl_handle_requests
,