util/addon: find both by owner and impl

This allows to have multiple addons of different types with the same
owner.
This commit is contained in:
Kirill Primak 2021-08-11 13:35:20 +03:00 committed by Simon Ser
parent debd6c5f0b
commit 111d4eafd7
3 changed files with 11 additions and 13 deletions

View file

@ -37,7 +37,7 @@ void wlr_addon_init(struct wlr_addon *addon, struct wlr_addon_set *set,
const void *owner, const struct wlr_addon_interface *impl);
void wlr_addon_finish(struct wlr_addon *addon);
struct wlr_addon *wlr_addon_find_by_owner(struct wlr_addon_set *set,
const void *owner);
struct wlr_addon *wlr_addon_find(struct wlr_addon_set *set, const void *owner,
const struct wlr_addon_interface *impl);
#endif