···3636 */
3737struct client_gl_swapchain
3838{
3939+ //! Implements @ref xrt_swapchain_gl
3940 struct xrt_swapchain_gl base;
40414142 struct xrt_swapchain_native *xscn;
···4344 //! The texture target of images in this swapchain.
4445 uint32_t tex_target;
45464646- //! The compositor this swapchain was created on. Used when swapchain functions need access to the GL context.
4747+ /*!
4848+ * The compositor this swapchain was created on. Used when swapchain functions need access to the GL context.
4949+ *
5050+ * Not an owning pointer.
5151+ */
4752 struct client_gl_compositor *gl_compositor;
4853};
49545055/*!
5156 * Fetches the OpenGL context that is current on this thread and makes the OpenGL context given in the graphics binding
5252- * current instead. Only one thread at a time can operate on the sections between @ref client_gl_context_begin_func and
5353- * @ref client_gl_context_end_func, therefore client_gl_context_end_func MUST be called to avoid blocking the next
5454- * thread calling @ref client_gl_context_begin_func.
5757+ * current instead. Only one thread at a time can operate on the sections between @ref client_gl_context_begin_func_t
5858+ * and
5959+ * @ref client_gl_context_end_func_t, therefore client_gl_context_end_func_t MUST be called to avoid blocking the next
6060+ * thread calling @ref client_gl_context_begin_func_t.
5561 *
5656- * If the return value is not XRT_SUCCESS, @ref client_gl_context_end_func should not be called.
6262+ * If the return value is not XRT_SUCCESS, @ref client_gl_context_end_func_t should not be called.
5763 */
5858-typedef xrt_result_t (*client_gl_context_begin_func)(struct xrt_compositor *xc);
6464+typedef xrt_result_t (*client_gl_context_begin_func_t)(struct xrt_compositor *xc);
59656066/*!
6161- * Makes the OpenGL context current that was current before @ref client_gl_context_begin_func was called.
6767+ * Makes the OpenGL context current that was current before @ref client_gl_context_begin_func_t was called.
6268 */
6363-typedef void (*client_gl_context_end_func)(struct xrt_compositor *xc);
6969+typedef void (*client_gl_context_end_func_t)(struct xrt_compositor *xc);
64706571/*!
6672 * The type of a swapchain create constructor.
···7581 * - Must populate `destroy`
7682 * - Does not need to save/restore texture binding
7783 */
7878-typedef struct xrt_swapchain *(*client_gl_swapchain_create_func)(struct xrt_compositor *xc,
7979- const struct xrt_swapchain_create_info *info,
8080- struct xrt_swapchain_native *xscn,
8181- struct client_gl_swapchain **out_sc);
8484+typedef struct xrt_swapchain *(*client_gl_swapchain_create_func_t)(struct xrt_compositor *xc,
8585+ const struct xrt_swapchain_create_info *info,
8686+ struct xrt_swapchain_native *xscn,
8787+ struct client_gl_swapchain **out_sc);
82888389/*!
8490 * The type of a fence insertion function.
···8793 *
8894 * The returned graphics sync handle is given to xrt_compositor::layer_commit.
8995 */
9090-typedef xrt_result_t (*client_gl_insert_fence_func)(struct xrt_compositor *xc, xrt_graphics_sync_handle_t *out_handle);
9696+typedef xrt_result_t (*client_gl_insert_fence_func_t)(struct xrt_compositor *xc,
9797+ xrt_graphics_sync_handle_t *out_handle);
91989299/*!
93100 * @class client_gl_compositor
···106113 /*!
107114 * Function pointer for making the OpenGL context current.
108115 */
109109- client_gl_context_begin_func context_begin;
116116+ client_gl_context_begin_func_t context_begin;
110117111118 /*!
112119 * Function pointer for restoring prior OpenGL context.
113120 */
114114- client_gl_context_end_func context_end;
121121+ client_gl_context_end_func_t context_end;
115122116123 /*!
117124 * Function pointer for creating the client swapchain.
118125 */
119119- client_gl_swapchain_create_func create_swapchain;
126126+ client_gl_swapchain_create_func_t create_swapchain;
120127121128 /*!
122129 * Function pointer for inserting fences on
123130 * xrt_compositor::layer_commit.
124131 */
125125- client_gl_insert_fence_func insert_fence;
132132+ client_gl_insert_fence_func_t insert_fence;
126133127134 /*!
128135 * @ref client_gl_xlib_compositor::app_context can only be current on one thread; block other threads while we
···165172bool
166173client_gl_compositor_init(struct client_gl_compositor *c,
167174 struct xrt_compositor_native *xcn,
168168- client_gl_context_begin_func context_begin,
169169- client_gl_context_end_func context_end,
170170- client_gl_swapchain_create_func create_swapchain,
171171- client_gl_insert_fence_func insert_fence);
175175+ client_gl_context_begin_func_t context_begin,
176176+ client_gl_context_end_func_t context_end,
177177+ client_gl_swapchain_create_func_t create_swapchain,
178178+ client_gl_insert_fence_func_t insert_fence);
172179173180/*!
174181 * Free all resources from the client_gl_compositor, does not free the