mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-15 06:59:43 -05:00
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:
parent
debd6c5f0b
commit
111d4eafd7
3 changed files with 11 additions and 13 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue