From 111d4eafd795e603f652b426d2cb3dae1d8692dc Mon Sep 17 00:00:00 2001 From: Kirill Primak Date: Wed, 11 Aug 2021 13:35:20 +0300 Subject: util/addon: find both by owner and impl This allows to have multiple addons of different types with the same owner. --- include/wlr/util/addon.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/wlr/util/addon.h') diff --git a/include/wlr/util/addon.h b/include/wlr/util/addon.h index 3ad71f54..382252ae 100644 --- a/include/wlr/util/addon.h +++ b/include/wlr/util/addon.h @@ -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 -- cgit v1.2.3