Marius Vlad | e41c1bf | 2019-07-16 23:11:25 +0300 | [diff] [blame^] | 1 | /* |
| 2 | * Copyright © 2008-2011 Kristian Høgsberg |
| 3 | * Copyright © 2017, 2018 General Electric Company |
| 4 | * Copyright © 2012, 2017-2019 Collabora, Ltd. |
| 5 | * |
| 6 | * Permission is hereby granted, free of charge, to any person obtaining |
| 7 | * a copy of this software and associated documentation files (the |
| 8 | * "Software"), to deal in the Software without restriction, including |
| 9 | * without limitation the rights to use, copy, modify, merge, publish, |
| 10 | * distribute, sublicense, and/or sell copies of the Software, and to |
| 11 | * permit persons to whom the Software is furnished to do so, subject to |
| 12 | * the following conditions: |
| 13 | * |
| 14 | * The above copyright notice and this permission notice (including the |
| 15 | * next paragraph) shall be included in all copies or substantial |
| 16 | * portions of the Software. |
| 17 | * |
| 18 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
| 19 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
| 20 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
| 21 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS |
| 22 | * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN |
| 23 | * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN |
| 24 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
| 25 | * SOFTWARE. |
| 26 | */ |
| 27 | |
| 28 | #ifndef LIBWESTON_BACKEND_INTERNAL_H |
| 29 | #define LIBWESTON_BACKEND_INTERNAL_H |
| 30 | |
| 31 | /* weston_head */ |
| 32 | |
| 33 | void |
| 34 | weston_head_init(struct weston_head *head, const char *name); |
| 35 | |
| 36 | void |
| 37 | weston_head_release(struct weston_head *head); |
| 38 | |
| 39 | void |
| 40 | weston_head_set_connection_status(struct weston_head *head, bool connected); |
| 41 | |
| 42 | void |
| 43 | weston_head_set_internal(struct weston_head *head); |
| 44 | |
| 45 | void |
| 46 | weston_head_set_monitor_strings(struct weston_head *head, |
| 47 | const char *make, |
| 48 | const char *model, |
| 49 | const char *serialno); |
| 50 | void |
| 51 | weston_head_set_non_desktop(struct weston_head *head, bool non_desktop); |
| 52 | |
| 53 | void |
| 54 | weston_head_set_physical_size(struct weston_head *head, |
| 55 | int32_t mm_width, int32_t mm_height); |
| 56 | |
| 57 | void |
| 58 | weston_head_set_subpixel(struct weston_head *head, |
| 59 | enum wl_output_subpixel sp); |
| 60 | |
| 61 | #endif |