diff options
author | Simon Ser <contact@emersion.fr> | 2021-04-29 00:07:31 +0200 |
---|---|---|
committer | Kenny Levinsen <kl@kl.wtf> | 2021-05-21 22:13:54 +0200 |
commit | 7ec5bf6b10d2a7e1d9cdfdfeed44ac6db8bdcc99 (patch) | |
tree | 4bd0b074f7e87e3b5ef55dd2c79cafb65f2407e7 /include/wlr | |
parent | beae3018cbbbbb566e964de63cf04e405b7d8ba5 (diff) |
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.
Diffstat (limited to 'include/wlr')
-rw-r--r-- | include/wlr/backend/interface.h | 4 |
1 files changed, 4 insertions, 0 deletions
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 |