diff options
author | Kirill Primak <vyivel@posteo.net> | 2021-08-11 13:35:20 +0300 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2021-08-11 18:12:57 +0200 |
commit | 111d4eafd795e603f652b426d2cb3dae1d8692dc (patch) | |
tree | b022f3a94da8d7adc4a885755324c42ae5be6daf /include/wlr/util | |
parent | debd6c5f0b3dd864ae02cd3aa77123851c47d380 (diff) |
util/addon: find both by owner and impl
This allows to have multiple addons of different types with the same
owner.
Diffstat (limited to 'include/wlr/util')
-rw-r--r-- | include/wlr/util/addon.h | 4 |
1 files changed, 2 insertions, 2 deletions
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 |