Debian Codegraph @

wayland/qtwayland-dev/5.11.3/QtWaylandClient/private/wayland-hardware-integration-client-protocol.h

raw symbols SCIP
1 /* Generated by wayland-scanner 1.16.0 */
2
3 #ifndef HARDWARE_INTEGRATION_CLIENT_PROTOCOL_H
4 #define HARDWARE_INTEGRATION_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_hardware_integration The hardware_integration protocol
16 * @section page_ifaces_hardware_integration Interfaces
17 * - @subpage page_iface_qt_hardware_integration - compostors communicates supported buffer sharing extensions
18 * @section page_copyright_hardware_integration Copyright
19 * <pre>
20 *
21 * Copyright (C) 2015 The Qt Company Ltd.
22 * Contact: http://www.qt.io/licensing/
23 *
24 * This file is part of the plugins of the Qt Toolkit.
25 *
26 * $QT_BEGIN_LICENSE:BSD$
27 * You may use this file under the terms of the BSD license as follows:
28 *
29 * "Redistribution and use in source and binary forms, with or without
30 * modification, are permitted provided that the following conditions are
31 * met:
32 * * Redistributions of source code must retain the above copyright
33 * notice, this list of conditions and the following disclaimer.
34 * * Redistributions in binary form must reproduce the above copyright
35 * notice, this list of conditions and the following disclaimer in
36 * the documentation and/or other materials provided with the
37 * distribution.
38 * * Neither the name of The Qt Company Ltd nor the names of its
39 * contributors may be used to endorse or promote products derived
40 * from this software without specific prior written permission.
41 *
42 *
43 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
44 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
45 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
46 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
47 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
48 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
49 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
50 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
51 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
52 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
53 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
54 *
55 * $QT_END_LICENSE$
56 * </pre>
57 */
58 struct qt_hardware_integration;
59
60 /**
61 * @page page_iface_qt_hardware_integration qt_hardware_integration
62 * @section page_iface_qt_hardware_integration_desc Description
63 *
64 * Using this protocol the compositor can signal to clients which buffer sharing extensions
65 * the client should use
66 * @section page_iface_qt_hardware_integration_api API
67 * See @ref iface_qt_hardware_integration.
68 */
69 /**
70 * @defgroup iface_qt_hardware_integration The qt_hardware_integration interface
71 *
72 * Using this protocol the compositor can signal to clients which buffer sharing extensions
73 * the client should use
74 */
75 extern const struct wl_interface qt_hardware_integration_interface;
76
77 /**
78 * @ingroup iface_qt_hardware_integration
79 * @struct qt_hardware_integration_listener
80 */
81 struct qt_hardware_integration_listener {
82 /**
83 */
84 void (*client_backend)(void *data,
85 struct qt_hardware_integration *qt_hardware_integration,
86 const char *name);
87 /**
88 */
89 void (*server_backend)(void *data,
90 struct qt_hardware_integration *qt_hardware_integration,
91 const char *name);
92 };
93
94 /**
95 * @ingroup iface_qt_hardware_integration
96 */
97 static inline int
98 qt_hardware_integration_add_listener(struct qt_hardware_integration *qt_hardware_integration,
99 const struct qt_hardware_integration_listener *listener, void *data)
100 {
101 return wl_proxy_add_listener((struct wl_proxy *) qt_hardware_integration,
102 (void (**)(void)) listener, data);
103 }
104
105 /**
106 * @ingroup iface_qt_hardware_integration
107 */
108 #define QT_HARDWARE_INTEGRATION_CLIENT_BACKEND_SINCE_VERSION 1
109 /**
110 * @ingroup iface_qt_hardware_integration
111 */
112 #define QT_HARDWARE_INTEGRATION_SERVER_BACKEND_SINCE_VERSION 1
113
114
115 /** @ingroup iface_qt_hardware_integration */
116 static inline void
117 qt_hardware_integration_set_user_data(struct qt_hardware_integration *qt_hardware_integration, void *user_data)
118 {
119 wl_proxy_set_user_data((struct wl_proxy *) qt_hardware_integration, user_data);
120 }
121
122 /** @ingroup iface_qt_hardware_integration */
123 static inline void *
124 qt_hardware_integration_get_user_data(struct qt_hardware_integration *qt_hardware_integration)
125 {
126 return wl_proxy_get_user_data((struct wl_proxy *) qt_hardware_integration);
127 }
128
129 static inline uint32_t
130 qt_hardware_integration_get_version(struct qt_hardware_integration *qt_hardware_integration)
131 {
132 return wl_proxy_get_version((struct wl_proxy *) qt_hardware_integration);
133 }
134
135 /** @ingroup iface_qt_hardware_integration */
136 static inline void
137 qt_hardware_integration_destroy(struct qt_hardware_integration *qt_hardware_integration)
138 {
139 wl_proxy_destroy((struct wl_proxy *) qt_hardware_integration);
140 }
141
142 #ifdef __cplusplus
143 }
144 #endif
145
146 #endif