Marius Vlad | a72e371 | 2019-07-10 13:46:39 +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_INTERNAL_H |
| 29 | #define LIBWESTON_INTERNAL_H |
| 30 | |
| 31 | /* |
| 32 | * This is the internal (private) part of libweston. All symbols found here |
| 33 | * are, and should be only (with a few exceptions) used within the internal |
| 34 | * parts of libweston. Notable exception(s) include a few files in tests/ that |
| 35 | * need access to these functions, screen-share file from compositor/ and those |
| 36 | * remoting/. Those will require some further fixing as to avoid including this |
| 37 | * private header. |
| 38 | * |
| 39 | * Eventually, these symbols should reside naturally into their own scope. New |
| 40 | * features should either provide their own (internal) header or use this one. |
| 41 | */ |
| 42 | |
| 43 | |
| 44 | /* weston_buffer */ |
| 45 | |
| 46 | void |
| 47 | weston_buffer_send_server_error(struct weston_buffer *buffer, |
| 48 | const char *msg); |
| 49 | void |
| 50 | weston_buffer_reference(struct weston_buffer_reference *ref, |
| 51 | struct weston_buffer *buffer); |
| 52 | |
| 53 | void |
| 54 | weston_buffer_release_move(struct weston_buffer_release_reference *dest, |
| 55 | struct weston_buffer_release_reference *src); |
| 56 | |
| 57 | void |
| 58 | weston_buffer_release_reference(struct weston_buffer_release_reference *ref, |
| 59 | struct weston_buffer_release *buf_release); |
| 60 | |
Marius Vlad | 56f3a68 | 2019-07-10 14:48:39 +0300 | [diff] [blame^] | 61 | /* weston_bindings */ |
| 62 | void |
| 63 | weston_binding_destroy(struct weston_binding *binding); |
| 64 | |
| 65 | void |
| 66 | weston_binding_list_destroy_all(struct wl_list *list); |
| 67 | |
| 68 | /* weston_compositor */ |
| 69 | |
| 70 | void |
| 71 | touch_calibrator_mode_changed(struct weston_compositor *compositor); |
| 72 | |
| 73 | int |
| 74 | noop_renderer_init(struct weston_compositor *ec); |
| 75 | |
| 76 | void |
| 77 | weston_compositor_add_head(struct weston_compositor *compositor, |
| 78 | struct weston_head *head); |
| 79 | void |
| 80 | weston_compositor_add_pending_output(struct weston_output *output, |
| 81 | struct weston_compositor *compositor); |
| 82 | struct weston_binding * |
| 83 | weston_compositor_add_debug_binding(struct weston_compositor *compositor, |
| 84 | uint32_t key, |
| 85 | weston_key_binding_handler_t binding, |
| 86 | void *data); |
| 87 | bool |
| 88 | weston_compositor_import_dmabuf(struct weston_compositor *compositor, |
| 89 | struct linux_dmabuf_buffer *buffer); |
| 90 | void |
| 91 | weston_compositor_offscreen(struct weston_compositor *compositor); |
| 92 | |
| 93 | char * |
| 94 | weston_compositor_print_scene_graph(struct weston_compositor *ec); |
| 95 | |
| 96 | void |
| 97 | weston_compositor_read_presentation_clock( |
| 98 | const struct weston_compositor *compositor, |
| 99 | struct timespec *ts); |
| 100 | |
| 101 | int |
| 102 | weston_compositor_run_axis_binding(struct weston_compositor *compositor, |
| 103 | struct weston_pointer *pointer, |
| 104 | const struct timespec *time, |
| 105 | struct weston_pointer_axis_event *event); |
| 106 | void |
| 107 | weston_compositor_run_button_binding(struct weston_compositor *compositor, |
| 108 | struct weston_pointer *pointer, |
| 109 | const struct timespec *time, |
| 110 | uint32_t button, |
| 111 | enum wl_pointer_button_state value); |
| 112 | int |
| 113 | weston_compositor_run_debug_binding(struct weston_compositor *compositor, |
| 114 | struct weston_keyboard *keyboard, |
| 115 | const struct timespec *time, |
| 116 | uint32_t key, |
| 117 | enum wl_keyboard_key_state state); |
| 118 | void |
| 119 | weston_compositor_run_key_binding(struct weston_compositor *compositor, |
| 120 | struct weston_keyboard *keyboard, |
| 121 | const struct timespec *time, |
| 122 | uint32_t key, |
| 123 | enum wl_keyboard_key_state state); |
| 124 | void |
| 125 | weston_compositor_run_modifier_binding(struct weston_compositor *compositor, |
| 126 | struct weston_keyboard *keyboard, |
| 127 | enum weston_keyboard_modifier modifier, |
| 128 | enum wl_keyboard_key_state state); |
| 129 | void |
| 130 | weston_compositor_run_touch_binding(struct weston_compositor *compositor, |
| 131 | struct weston_touch *touch, |
| 132 | const struct timespec *time, |
| 133 | int touch_type); |
| 134 | void |
| 135 | weston_compositor_stack_plane(struct weston_compositor *ec, |
| 136 | struct weston_plane *plane, |
| 137 | struct weston_plane *above); |
| 138 | void |
| 139 | weston_compositor_set_touch_mode_normal(struct weston_compositor *compositor); |
| 140 | |
| 141 | void |
| 142 | weston_compositor_set_touch_mode_calib(struct weston_compositor *compositor); |
| 143 | |
| 144 | int |
| 145 | weston_compositor_set_presentation_clock(struct weston_compositor *compositor, |
| 146 | clockid_t clk_id); |
| 147 | int |
| 148 | weston_compositor_set_presentation_clock_software( |
| 149 | struct weston_compositor *compositor); |
| 150 | void |
| 151 | weston_compositor_shutdown(struct weston_compositor *ec); |
| 152 | |
| 153 | void |
| 154 | weston_compositor_xkb_destroy(struct weston_compositor *ec); |
| 155 | |
| 156 | int |
| 157 | weston_input_init(struct weston_compositor *compositor); |
| 158 | |
Marius Vlad | a72e371 | 2019-07-10 13:46:39 +0300 | [diff] [blame] | 159 | #endif |