From 7ec5bf6b10d2a7e1d9cdfdfeed44ac6db8bdcc99 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Thu, 29 Apr 2021 00:07:31 +0200 Subject: backend: introduce wlr_backend_finish This new functions cleans up the common backend state. While this currently only emits the destroy signal, this will also clean up the renderer and allocator in upcoming patches. --- include/wlr/backend/interface.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/wlr') diff --git a/include/wlr/backend/interface.h b/include/wlr/backend/interface.h index feed8d2d..529f8f87 100644 --- a/include/wlr/backend/interface.h +++ b/include/wlr/backend/interface.h @@ -29,5 +29,9 @@ struct wlr_backend_impl { */ void wlr_backend_init(struct wlr_backend *backend, const struct wlr_backend_impl *impl); +/** + * Emit the destroy event and clean up common backend state. + */ +void wlr_backend_finish(struct wlr_backend *backend); #endif -- cgit v1.2.3