Backed out changeset 0a133d5fd155 (bug 1864534) for causing screenshot related failur...
[gecko.git] / widget / gtk / mozwayland / mozwayland.c
blobeb17d3227e657ada822d9fb99393d2c273fac9f4
1 /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim:expandtab:shiftwidth=4:tabstop=4:
3 */
4 /* This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
8 #include <stdlib.h>
9 #include "mozilla/Types.h"
10 #include <gtk/gtk.h>
11 #include <gtk/gtkx.h>
12 #include <gdk/gdkwayland.h>
14 union wl_argument;
16 /* Those structures are just placeholders and will be replaced by
17 * real symbols from libwayland during run-time linking. We need to make
18 * them explicitly visible.
20 #pragma GCC visibility push(default)
21 const struct wl_interface wl_buffer_interface;
22 const struct wl_interface wl_callback_interface;
23 const struct wl_interface wl_data_device_interface;
24 const struct wl_interface wl_data_device_manager_interface;
25 const struct wl_interface wl_keyboard_interface;
26 const struct wl_interface wl_pointer_interface;
27 const struct wl_interface wl_region_interface;
28 const struct wl_interface wl_registry_interface;
29 const struct wl_interface wl_shm_interface;
30 const struct wl_interface wl_shm_pool_interface;
31 const struct wl_interface wl_seat_interface;
32 const struct wl_interface wl_surface_interface;
33 const struct wl_interface wl_subsurface_interface;
34 const struct wl_interface wl_compositor_interface;
35 const struct wl_interface wl_subcompositor_interface;
36 const struct wl_interface wl_output_interface;
37 #pragma GCC visibility pop
39 MOZ_EXPORT void wl_event_queue_destroy(struct wl_event_queue* queue) {}
41 MOZ_EXPORT void wl_proxy_marshal(struct wl_proxy* p, uint32_t opcode, ...) {}
43 MOZ_EXPORT void wl_proxy_marshal_array(struct wl_proxy* p, uint32_t opcode,
44 union wl_argument* args) {}
46 MOZ_EXPORT struct wl_proxy* wl_proxy_create(
47 struct wl_proxy* factory, const struct wl_interface* interface) {
48 return NULL;
51 MOZ_EXPORT void* wl_proxy_create_wrapper(void* proxy) { return NULL; }
53 MOZ_EXPORT void wl_proxy_wrapper_destroy(void* proxy_wrapper) {}
55 MOZ_EXPORT struct wl_proxy* wl_proxy_marshal_constructor(
56 struct wl_proxy* proxy, uint32_t opcode,
57 const struct wl_interface* interface, ...) {
58 return NULL;
61 MOZ_EXPORT struct wl_proxy* wl_proxy_marshal_constructor_versioned(
62 struct wl_proxy* proxy, uint32_t opcode,
63 const struct wl_interface* interface, uint32_t version, ...) {
64 return NULL;
67 MOZ_EXPORT struct wl_proxy* wl_proxy_marshal_array_constructor(
68 struct wl_proxy* proxy, uint32_t opcode, union wl_argument* args,
69 const struct wl_interface* interface) {
70 return NULL;
73 MOZ_EXPORT struct wl_proxy* wl_proxy_marshal_array_constructor_versioned(
74 struct wl_proxy* proxy, uint32_t opcode, union wl_argument* args,
75 const struct wl_interface* interface, uint32_t version) {
76 return NULL;
79 MOZ_EXPORT void wl_proxy_destroy(struct wl_proxy* proxy) {}
81 MOZ_EXPORT int wl_proxy_add_listener(struct wl_proxy* proxy,
82 void (**implementation)(void),
83 void* data) {
84 return -1;
87 MOZ_EXPORT const void* wl_proxy_get_listener(struct wl_proxy* proxy) {
88 return NULL;
91 typedef int (*wl_dispatcher_func_t)(const void*, void*, uint32_t,
92 const struct wl_message*,
93 union wl_argument*);
95 MOZ_EXPORT int wl_proxy_add_dispatcher(struct wl_proxy* proxy,
96 wl_dispatcher_func_t dispatcher_func,
97 const void* dispatcher_data,
98 void* data) {
99 return -1;
102 MOZ_EXPORT void wl_proxy_set_user_data(struct wl_proxy* proxy,
103 void* user_data) {}
105 MOZ_EXPORT void* wl_proxy_get_user_data(struct wl_proxy* proxy) { return NULL; }
107 MOZ_EXPORT uint32_t wl_proxy_get_version(struct wl_proxy* proxy) { return -1; }
109 MOZ_EXPORT uint32_t wl_proxy_get_id(struct wl_proxy* proxy) { return -1; }
111 MOZ_EXPORT const char* wl_proxy_get_class(struct wl_proxy* proxy) {
112 return NULL;
115 MOZ_EXPORT void wl_proxy_set_queue(struct wl_proxy* proxy,
116 struct wl_event_queue* queue) {}
118 MOZ_EXPORT struct wl_display* wl_display_connect(const char* name) {
119 return NULL;
122 MOZ_EXPORT struct wl_display* wl_display_connect_to_fd(int fd) { return NULL; }
124 MOZ_EXPORT void wl_display_disconnect(struct wl_display* display) {}
126 MOZ_EXPORT int wl_display_get_fd(struct wl_display* display) { return -1; }
128 MOZ_EXPORT int wl_display_dispatch(struct wl_display* display) { return -1; }
130 MOZ_EXPORT int wl_display_dispatch_queue(struct wl_display* display,
131 struct wl_event_queue* queue) {
132 return -1;
135 MOZ_EXPORT int wl_display_dispatch_queue_pending(struct wl_display* display,
136 struct wl_event_queue* queue) {
137 return -1;
140 MOZ_EXPORT int wl_display_dispatch_pending(struct wl_display* display) {
141 return -1;
144 MOZ_EXPORT int wl_display_get_error(struct wl_display* display) { return -1; }
146 MOZ_EXPORT uint32_t wl_display_get_protocol_error(
147 struct wl_display* display, const struct wl_interface** interface,
148 uint32_t* id) {
149 return -1;
152 MOZ_EXPORT int wl_display_flush(struct wl_display* display) { return -1; }
154 MOZ_EXPORT int wl_display_roundtrip_queue(struct wl_display* display,
155 struct wl_event_queue* queue) {
156 return -1;
159 MOZ_EXPORT int wl_display_roundtrip(struct wl_display* display) { return -1; }
161 MOZ_EXPORT struct wl_event_queue* wl_display_create_queue(
162 struct wl_display* display) {
163 return NULL;
166 MOZ_EXPORT int wl_display_prepare_read_queue(struct wl_display* display,
167 struct wl_event_queue* queue) {
168 return -1;
171 MOZ_EXPORT int wl_display_prepare_read(struct wl_display* display) {
172 return -1;
175 MOZ_EXPORT void wl_display_cancel_read(struct wl_display* display) {}
177 MOZ_EXPORT int wl_display_read_events(struct wl_display* display) { return -1; }
179 MOZ_EXPORT void wl_log_set_handler_client(wl_log_func_t handler) {}
181 MOZ_EXPORT struct wl_egl_window* wl_egl_window_create(
182 struct wl_surface* surface, int width, int height) {
183 return NULL;
186 MOZ_EXPORT void wl_egl_window_destroy(struct wl_egl_window* egl_window) {}
188 MOZ_EXPORT void wl_egl_window_resize(struct wl_egl_window* egl_window,
189 int width, int height, int dx, int dy) {}
191 MOZ_EXPORT void wl_egl_window_get_attached_size(
192 struct wl_egl_window* egl_window, int* width, int* height) {}
194 MOZ_EXPORT void wl_list_init(struct wl_list* list) {}
196 MOZ_EXPORT void wl_list_insert(struct wl_list* list, struct wl_list* elm) {}
198 MOZ_EXPORT void wl_list_remove(struct wl_list* elm) {}
200 MOZ_EXPORT int wl_list_length(const struct wl_list* list) { return -1; }
202 MOZ_EXPORT int wl_list_empty(const struct wl_list* list) { return -1; }
204 MOZ_EXPORT void wl_list_insert_list(struct wl_list* list,
205 struct wl_list* other) {}
207 MOZ_EXPORT struct wl_proxy* wl_proxy_marshal_flags(
208 struct wl_proxy* proxy, uint32_t opcode,
209 const struct wl_interface* interface, uint32_t version, uint32_t flags,
210 ...) {
211 return NULL;
214 MOZ_EXPORT struct wl_compositor* gdk_wayland_display_get_wl_compositor(
215 GdkDisplay* display) {
216 return NULL;
218 MOZ_EXPORT struct wl_surface* gdk_wayland_window_get_wl_surface(
219 GdkWindow* window) {
220 return NULL;
223 MOZ_EXPORT struct wl_pointer* gdk_wayland_device_get_wl_pointer(
224 GdkDevice* device) {
225 return NULL;
227 MOZ_EXPORT struct wl_display* gdk_wayland_display_get_wl_display(
228 GdkDisplay* display) {
229 return NULL;