efl

Форк
0
/
subsurface-protocol.c 
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

30
extern const struct wl_interface wl_subsurface_interface;
31
extern const struct wl_interface wl_surface_interface;
32
extern const struct wl_interface wl_surface_interface;
33
extern const struct wl_interface wl_surface_interface;
34
extern const struct wl_interface wl_surface_interface;
35

36
static const struct wl_interface *types[] = {
37
        NULL,
38
        NULL,
39
        &wl_subsurface_interface,
40
        &wl_surface_interface,
41
        &wl_surface_interface,
42
        &wl_surface_interface,
43
        &wl_surface_interface,
44
};
45

46
static const struct wl_message wl_subcompositor_requests[] = {
47
        { "destroy", "", types + 0 },
48
        { "get_subsurface", "noo", types + 2 },
49
};
50

51
WL_EXPORT const struct wl_interface wl_subcompositor_interface = {
52
        "wl_subcompositor", 1,
53
        2, wl_subcompositor_requests,
54
        0, NULL,
55
};
56

57
static 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

66
WL_EXPORT const struct wl_interface wl_subsurface_interface = {
67
        "wl_subsurface", 1,
68
        6, wl_subsurface_requests,
69
        0, NULL,
70
};
71

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.