blob: 68ca68ba1fa40f199e49786e7cc270b836ba5a0f [file] [log] [blame]
Pekka Paalanen32ca7912016-03-15 17:21:00 +02001/*
2 * Copyright (C) 2014 DENSO CORPORATION
3 *
4 * Permission is hereby granted, free of charge, to any person obtaining
5 * a copy of this software and associated documentation files (the
6 * "Software"), to deal in the Software without restriction, including
7 * without limitation the rights to use, copy, modify, merge, publish,
8 * distribute, sublicense, and/or sell copies of the Software, and to
9 * permit persons to whom the Software is furnished to do so, subject to
10 * the following conditions:
11 *
12 * The above copyright notice and this permission notice (including the
13 * next paragraph) shall be included in all copies or substantial
14 * portions of the Software.
15 *
16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
20 * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
21 * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
22 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23 * SOFTWARE.
24 */
25
26#ifndef IVI_LAYOUT_SHELL_H
27#define IVI_LAYOUT_SHELL_H
28
29#include <stdint.h>
30
31/*
32 * This is the interface that ivi-layout exposes to ivi-shell.
33 * It is private to ivi-shell.so plugin.
34 */
35
36struct wl_listener;
37struct weston_compositor;
38struct weston_view;
39struct weston_surface;
40struct ivi_layout_surface;
41
Pekka Paalanen32ca7912016-03-15 17:21:00 +020042void
43ivi_layout_surface_configure(struct ivi_layout_surface *ivisurf,
44 int32_t width, int32_t height);
45
46struct ivi_layout_surface*
47ivi_layout_surface_create(struct weston_surface *wl_surface,
48 uint32_t id_surface);
49
50void
51ivi_layout_init_with_compositor(struct weston_compositor *ec);
52
53void
Pekka Paalanen32ca7912016-03-15 17:21:00 +020054ivi_layout_surface_destroy(struct ivi_layout_surface *ivisurf);
55
56int
57load_controller_modules(struct weston_compositor *compositor, const char *modules,
58 int *argc, char *argv[]);
59
60#endif /* IVI_LAYOUT_SHELL_H */