mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-19 06:47:02 -04:00
Merge branch 'wlr_mirror_v1' into 'master'
wlr_mirror: adds mirroring of variable source on a single destination output See merge request wlroots/wlroots!3421
This commit is contained in:
commit
abbe353ae8
7 changed files with 1170 additions and 0 deletions
13
util/addon.c
13
util/addon.c
|
|
@ -52,3 +52,16 @@ struct wlr_addon *wlr_addon_find(struct wlr_addon_set *set, const void *owner,
|
|||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void wlr_addon_find_all(struct wl_array *all, struct wlr_addon_set *set,
|
||||
const struct wlr_addon_interface *impl) {
|
||||
wl_array_init(all);
|
||||
struct wlr_addon *addon;
|
||||
wl_list_for_each(addon, &set->addons, link) {
|
||||
if (addon->impl == impl) {
|
||||
struct wlr_addon **addon_ptr = wl_array_add(all, sizeof(addon_ptr));
|
||||
*addon_ptr = addon;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue