mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-01 22:58:38 -04:00
util/addon: avoid calling finish() twice
No functional change.
This commit is contained in:
parent
cde3700386
commit
4ac19e9f9c
2 changed files with 3 additions and 4 deletions
|
|
@ -20,6 +20,7 @@ struct wlr_addon;
|
|||
|
||||
struct wlr_addon_interface {
|
||||
const char *name;
|
||||
// Has to call wlr_addon_finish()
|
||||
void (*destroy)(struct wlr_addon *addon);
|
||||
};
|
||||
|
||||
|
|
@ -34,10 +35,10 @@ void wlr_addon_set_init(struct wlr_addon_set *set);
|
|||
void wlr_addon_set_finish(struct wlr_addon_set *set);
|
||||
|
||||
void wlr_addon_init(struct wlr_addon *addon, struct wlr_addon_set *set,
|
||||
const void *owner, const struct wlr_addon_interface *impl);
|
||||
const void *owner, const struct wlr_addon_interface *impl);
|
||||
void wlr_addon_finish(struct wlr_addon *addon);
|
||||
|
||||
struct wlr_addon *wlr_addon_find(struct wlr_addon_set *set, const void *owner,
|
||||
const struct wlr_addon_interface *impl);
|
||||
const struct wlr_addon_interface *impl);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue