summaryrefslogtreecommitdiff
path: root/src/lib/ecore_wl2/linux-dmabuf-unstable-v1-protocol.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/ecore_wl2/linux-dmabuf-unstable-v1-protocol.c')
-rw-r--r--src/lib/ecore_wl2/linux-dmabuf-unstable-v1-protocol.c75
1 files changed, 75 insertions, 0 deletions
diff --git a/src/lib/ecore_wl2/linux-dmabuf-unstable-v1-protocol.c b/src/lib/ecore_wl2/linux-dmabuf-unstable-v1-protocol.c
new file mode 100644
index 0000000..a4c929a
--- /dev/null
+++ b/src/lib/ecore_wl2/linux-dmabuf-unstable-v1-protocol.c
@@ -0,0 +1,75 @@
1/*
2 * Copyright © 2014, 2015 Collabora, Ltd.
3 *
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
14 * warranty.
15 *
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
23 * THIS SOFTWARE.
24 */
25
26#include <stdlib.h>
27#include <stdint.h>
28#include "wayland-util.h"
29
30extern const struct wl_interface wl_buffer_interface;
31extern const struct wl_interface zwp_linux_buffer_params_v1_interface;
32
33static const struct wl_interface *types[] = {
34 NULL,
35 NULL,
36 NULL,
37 NULL,
38 NULL,
39 NULL,
40 &zwp_linux_buffer_params_v1_interface,
41 &wl_buffer_interface,
42};
43
44static const struct wl_message zwp_linux_dmabuf_v1_requests[] = {
45 { "destroy", "", types + 0 },
46 { "create_params", "n", types + 6 },
47};
48
49static const struct wl_message zwp_linux_dmabuf_v1_events[] = {
50 { "format", "u", types + 0 },
51};
52
53WL_EXPORT const struct wl_interface zwp_linux_dmabuf_v1_interface = {
54 "zwp_linux_dmabuf_v1", 1,
55 2, zwp_linux_dmabuf_v1_requests,
56 1, zwp_linux_dmabuf_v1_events,
57};
58
59static const struct wl_message zwp_linux_buffer_params_v1_requests[] = {
60 { "destroy", "", types + 0 },
61 { "add", "huuuuu", types + 0 },
62 { "create", "iiuu", types + 0 },
63};
64
65static const struct wl_message zwp_linux_buffer_params_v1_events[] = {
66 { "created", "n", types + 7 },
67 { "failed", "", types + 0 },
68};
69
70WL_EXPORT const struct wl_interface zwp_linux_buffer_params_v1_interface = {
71 "zwp_linux_buffer_params_v1", 1,
72 3, zwp_linux_buffer_params_v1_requests,
73 2, zwp_linux_buffer_params_v1_events,
74};
75