1 /* 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 36 struct wl_listener; 37 struct weston_compositor; 38 struct weston_view; 39 struct weston_surface; 40 struct ivi_layout_surface; 41 42 void 43 ivi_layout_desktop_surface_configure(struct ivi_layout_surface *ivisurf, 44 int32_t width, int32_t height); 45 46 struct ivi_layout_surface* 47 ivi_layout_desktop_surface_create(struct weston_surface *wl_surface); 48 49 void 50 ivi_layout_surface_configure(struct ivi_layout_surface *ivisurf, 51 int32_t width, int32_t height); 52 53 struct ivi_layout_surface* 54 ivi_layout_surface_create(struct weston_surface *wl_surface, 55 uint32_t id_surface); 56 57 void 58 ivi_layout_init_with_compositor(struct weston_compositor *ec); 59 60 void 61 ivi_layout_surface_destroy(struct ivi_layout_surface *ivisurf); 62 63 int 64 load_controller_modules(struct weston_compositor *compositor, const char *modules, 65 int *argc, char *argv[]); 66 67 #endif /* IVI_LAYOUT_SHELL_H */ 68