efl
70 строк · 2.5 Кб
1/*
2* Copyright © 2012-2013 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_subsurface_interface;
31extern const struct wl_interface wl_surface_interface;
32extern const struct wl_interface wl_surface_interface;
33extern const struct wl_interface wl_surface_interface;
34extern const struct wl_interface wl_surface_interface;
35
36static const struct wl_interface *types[] = {
37NULL,
38NULL,
39&wl_subsurface_interface,
40&wl_surface_interface,
41&wl_surface_interface,
42&wl_surface_interface,
43&wl_surface_interface,
44};
45
46static const struct wl_message wl_subcompositor_requests[] = {
47{ "destroy", "", types + 0 },
48{ "get_subsurface", "noo", types + 2 },
49};
50
51WL_EXPORT const struct wl_interface wl_subcompositor_interface = {
52"wl_subcompositor", 1,
532, wl_subcompositor_requests,
540, NULL,
55};
56
57static const struct wl_message wl_subsurface_requests[] = {
58{ "destroy", "", types + 0 },
59{ "set_position", "ii", types + 0 },
60{ "place_above", "o", types + 5 },
61{ "place_below", "o", types + 6 },
62{ "set_sync", "", types + 0 },
63{ "set_desync", "", types + 0 },
64};
65
66WL_EXPORT const struct wl_interface wl_subsurface_interface = {
67"wl_subsurface", 1,
686, wl_subsurface_requests,
690, NULL,
70};
71