mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
addon: Allow NULL owner of addon
An owner is not always required or practical. Rather than have the user set a bogus owner in these cases, allow the user to set a NULL owner.
This commit is contained in:
parent
d962918128
commit
bb0fd29252
1 changed files with 1 additions and 1 deletions
|
|
@ -18,7 +18,7 @@ void wlr_addon_set_finish(struct wlr_addon_set *set) {
|
|||
|
||||
void wlr_addon_init(struct wlr_addon *addon, struct wlr_addon_set *set,
|
||||
const void *owner, const struct wlr_addon_interface *impl) {
|
||||
assert(owner && impl);
|
||||
assert(impl);
|
||||
memset(addon, 0, sizeof(*addon));
|
||||
struct wlr_addon *iter;
|
||||
wl_list_for_each(iter, &set->addons, link) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue