Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(36)

Side by Side Diff: third_party/wayland-protocols/protocol/linux-dmabuf-protocol.c

Issue 1746633002: third_party: Add linux_dmabuf_protocol target to wayland-protocols. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
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
30 extern const struct wl_interface zwp_linux_buffer_params_v1_interface;
31 extern const struct wl_interface wl_buffer_interface;
32
33 static 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
44 static const struct wl_message zwp_linux_dmabuf_v1_requests[] = {
45 { "destroy", "", types + 0 },
46 { "create_params", "n", types + 6 },
47 };
48
49 static const struct wl_message zwp_linux_dmabuf_v1_events[] = {
50 { "format", "u", types + 0 },
51 };
52
53 WL_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
59 static 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
65 static const struct wl_message zwp_linux_buffer_params_v1_events[] = {
66 { "created", "n", types + 7 },
67 { "failed", "", types + 0 },
68 };
69
70 WL_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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698