| 1 | /* Generated by wayland-scanner 1.16.0 */ |
| 2 | |
| 3 | #ifndef WL_WEBKITGTK_CLIENT_PROTOCOL_H |
| 4 | #define WL_WEBKITGTK_CLIENT_PROTOCOL_H |
| 5 | |
| 6 | #include <stdint.h> |
| 7 | #include <stddef.h> |
| 8 | #include "wayland-client.h" |
| 9 | |
| 10 | #ifdef __cplusplus |
| 11 | extern "C" { |
| 12 | #endif |
| 13 | |
| 14 | /** |
| 15 | * @page page_wl_webkitgtk The wl_webkitgtk protocol |
| 16 | * @section page_ifaces_wl_webkitgtk Interfaces |
| 17 | * - @subpage page_iface_wl_webkitgtk - |
| 18 | * @section page_copyright_wl_webkitgtk Copyright |
| 19 | * <pre> |
| 20 | * |
| 21 | * Copyright © 2014 Igalia S.L. |
| 22 | * |
| 23 | * Permission to use, copy, modify, distribute, and sell this |
| 24 | * software and its documentation for any purpose is hereby granted |
| 25 | * without fee, provided that the above copyright notice appear in |
| 26 | * all copies and that both that copyright notice and this permission |
| 27 | * notice appear in supporting documentation, and that the name of |
| 28 | * the copyright holders not be used in advertising or publicity |
| 29 | * pertaining to distribution of the software without specific, |
| 30 | * written prior permission. The copyright holders make no |
| 31 | * representations about the suitability of this software for any |
| 32 | * purpose. It is provided "as is" without express or implied |
| 33 | * warranty. |
| 34 | * |
| 35 | * THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS |
| 36 | * SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND |
| 37 | * FITNESS, IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY |
| 38 | * SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES |
| 39 | * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN |
| 40 | * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, |
| 41 | * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF |
| 42 | * THIS SOFTWARE. |
| 43 | * </pre> |
| 44 | */ |
| 45 | struct wl_surface; |
| 46 | struct wl_webkitgtk; |
| 47 | |
| 48 | /** |
| 49 | * @page page_iface_wl_webkitgtk wl_webkitgtk |
| 50 | * @section page_iface_wl_webkitgtk_api API |
| 51 | * See @ref iface_wl_webkitgtk. |
| 52 | */ |
| 53 | /** |
| 54 | * @defgroup iface_wl_webkitgtk The wl_webkitgtk interface |
| 55 | */ |
| 56 | extern const struct wl_interface wl_webkitgtk_interface; |
| 57 | |
| 58 | #define WL_WEBKITGTK_BIND_SURFACE_TO_PAGE 0 |
| 59 | |
| 60 | |
| 61 | /** |
| 62 | * @ingroup iface_wl_webkitgtk |
| 63 | */ |
| 64 | #define WL_WEBKITGTK_BIND_SURFACE_TO_PAGE_SINCE_VERSION 1 |
| 65 | |
| 66 | /** @ingroup iface_wl_webkitgtk */ |
| 67 | static inline void |
| 68 | wl_webkitgtk_set_user_data(struct wl_webkitgtk *wl_webkitgtk, void *user_data) |
| 69 | { |
| 70 | wl_proxy_set_user_data((struct wl_proxy *) wl_webkitgtk, user_data); |
| 71 | } |
| 72 | |
| 73 | /** @ingroup iface_wl_webkitgtk */ |
| 74 | static inline void * |
| 75 | wl_webkitgtk_get_user_data(struct wl_webkitgtk *wl_webkitgtk) |
| 76 | { |
| 77 | return wl_proxy_get_user_data((struct wl_proxy *) wl_webkitgtk); |
| 78 | } |
| 79 | |
| 80 | static inline uint32_t |
| 81 | wl_webkitgtk_get_version(struct wl_webkitgtk *wl_webkitgtk) |
| 82 | { |
| 83 | return wl_proxy_get_version((struct wl_proxy *) wl_webkitgtk); |
| 84 | } |
| 85 | |
| 86 | /** @ingroup iface_wl_webkitgtk */ |
| 87 | static inline void |
| 88 | wl_webkitgtk_destroy(struct wl_webkitgtk *wl_webkitgtk) |
| 89 | { |
| 90 | wl_proxy_destroy((struct wl_proxy *) wl_webkitgtk); |
| 91 | } |
| 92 | |
| 93 | /** |
| 94 | * @ingroup iface_wl_webkitgtk |
| 95 | */ |
| 96 | static inline void |
| 97 | wl_webkitgtk_bind_surface_to_page(struct wl_webkitgtk *wl_webkitgtk, struct wl_surface *surface, uint32_t page_id) |
| 98 | { |
| 99 | wl_proxy_marshal((struct wl_proxy *) wl_webkitgtk, |
| 100 | WL_WEBKITGTK_BIND_SURFACE_TO_PAGE, surface, page_id); |
| 101 | } |
| 102 | |
| 103 | #ifdef __cplusplus |
| 104 | } |
| 105 | #endif |
| 106 | |
| 107 | #endif |
| 108 | |