|
| 1 | +/* Generated by wayland-scanner 1.22.0 */ |
| 2 | + |
| 3 | +#ifndef KDE_OUTPUT_ORDER_V1_CLIENT_PROTOCOL_H |
| 4 | +#define KDE_OUTPUT_ORDER_V1_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_kde_output_order_v1 The kde_output_order_v1 protocol |
| 16 | + * @section page_ifaces_kde_output_order_v1 Interfaces |
| 17 | + * - @subpage page_iface_kde_output_order_v1 - announce order of outputs |
| 18 | + * @section page_copyright_kde_output_order_v1 Copyright |
| 19 | + * <pre> |
| 20 | + * |
| 21 | + * SPDX-FileCopyrightText: 2022 Xaver Hugl <[email protected]> |
| 22 | + * |
| 23 | + * SPDX-License-Identifier: MIT-CMU |
| 24 | + * </pre> |
| 25 | + */ |
| 26 | +struct kde_output_order_v1; |
| 27 | + |
| 28 | +#ifndef KDE_OUTPUT_ORDER_V1_INTERFACE |
| 29 | +#define KDE_OUTPUT_ORDER_V1_INTERFACE |
| 30 | +/** |
| 31 | + * @page page_iface_kde_output_order_v1 kde_output_order_v1 |
| 32 | + * @section page_iface_kde_output_order_v1_desc Description |
| 33 | + * |
| 34 | + * Announce the order in which desktop environment components should be placed on outputs. |
| 35 | + * The compositor will send the list of outputs when the global is bound and whenever there is a change. |
| 36 | + * @section page_iface_kde_output_order_v1_api API |
| 37 | + * See @ref iface_kde_output_order_v1. |
| 38 | + */ |
| 39 | +/** |
| 40 | + * @defgroup iface_kde_output_order_v1 The kde_output_order_v1 interface |
| 41 | + * |
| 42 | + * Announce the order in which desktop environment components should be placed on outputs. |
| 43 | + * The compositor will send the list of outputs when the global is bound and whenever there is a change. |
| 44 | + */ |
| 45 | +extern const struct wl_interface kde_output_order_v1_interface; |
| 46 | +#endif |
| 47 | + |
| 48 | +/** |
| 49 | + * @ingroup iface_kde_output_order_v1 |
| 50 | + * @struct kde_output_order_v1_listener |
| 51 | + */ |
| 52 | +struct kde_output_order_v1_listener { |
| 53 | + /** |
| 54 | + * output name |
| 55 | + * |
| 56 | + * Specifies the output identified by their wl_output.name. |
| 57 | + * @param output_name the name of the output |
| 58 | + */ |
| 59 | + void (*output)(void *data, |
| 60 | + struct kde_output_order_v1 *kde_output_order_v1, |
| 61 | + const char *output_name); |
| 62 | + /** |
| 63 | + * done |
| 64 | + * |
| 65 | + * Specifies that the output list is complete. On the next output |
| 66 | + * event, a new list begins. |
| 67 | + */ |
| 68 | + void (*done)(void *data, |
| 69 | + struct kde_output_order_v1 *kde_output_order_v1); |
| 70 | +}; |
| 71 | + |
| 72 | +/** |
| 73 | + * @ingroup iface_kde_output_order_v1 |
| 74 | + */ |
| 75 | +static inline int |
| 76 | +kde_output_order_v1_add_listener(struct kde_output_order_v1 *kde_output_order_v1, |
| 77 | + const struct kde_output_order_v1_listener *listener, void *data) |
| 78 | +{ |
| 79 | + return wl_proxy_add_listener((struct wl_proxy *) kde_output_order_v1, |
| 80 | + (void (**)(void)) listener, data); |
| 81 | +} |
| 82 | + |
| 83 | +#define KDE_OUTPUT_ORDER_V1_DESTROY 0 |
| 84 | + |
| 85 | +/** |
| 86 | + * @ingroup iface_kde_output_order_v1 |
| 87 | + */ |
| 88 | +#define KDE_OUTPUT_ORDER_V1_OUTPUT_SINCE_VERSION 1 |
| 89 | +/** |
| 90 | + * @ingroup iface_kde_output_order_v1 |
| 91 | + */ |
| 92 | +#define KDE_OUTPUT_ORDER_V1_DONE_SINCE_VERSION 1 |
| 93 | + |
| 94 | +/** |
| 95 | + * @ingroup iface_kde_output_order_v1 |
| 96 | + */ |
| 97 | +#define KDE_OUTPUT_ORDER_V1_DESTROY_SINCE_VERSION 1 |
| 98 | + |
| 99 | +/** @ingroup iface_kde_output_order_v1 */ |
| 100 | +static inline void |
| 101 | +kde_output_order_v1_set_user_data(struct kde_output_order_v1 *kde_output_order_v1, void *user_data) |
| 102 | +{ |
| 103 | + wl_proxy_set_user_data((struct wl_proxy *) kde_output_order_v1, user_data); |
| 104 | +} |
| 105 | + |
| 106 | +/** @ingroup iface_kde_output_order_v1 */ |
| 107 | +static inline void * |
| 108 | +kde_output_order_v1_get_user_data(struct kde_output_order_v1 *kde_output_order_v1) |
| 109 | +{ |
| 110 | + return wl_proxy_get_user_data((struct wl_proxy *) kde_output_order_v1); |
| 111 | +} |
| 112 | + |
| 113 | +static inline uint32_t |
| 114 | +kde_output_order_v1_get_version(struct kde_output_order_v1 *kde_output_order_v1) |
| 115 | +{ |
| 116 | + return wl_proxy_get_version((struct wl_proxy *) kde_output_order_v1); |
| 117 | +} |
| 118 | + |
| 119 | +/** |
| 120 | + * @ingroup iface_kde_output_order_v1 |
| 121 | + */ |
| 122 | +static inline void |
| 123 | +kde_output_order_v1_destroy(struct kde_output_order_v1 *kde_output_order_v1) |
| 124 | +{ |
| 125 | + wl_proxy_marshal_flags((struct wl_proxy *) kde_output_order_v1, |
| 126 | + KDE_OUTPUT_ORDER_V1_DESTROY, NULL, wl_proxy_get_version((struct wl_proxy *) kde_output_order_v1), WL_MARSHAL_FLAG_DESTROY); |
| 127 | +} |
| 128 | + |
| 129 | +#ifdef __cplusplus |
| 130 | +} |
| 131 | +#endif |
| 132 | + |
| 133 | +#endif |
0 commit comments