mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2026-04-03 07:15:42 -04:00
Merge branch 'main' into 'main'
connection: allow NULL implementation and listener in wl_closure_invoke See merge request wayland/wayland!537
This commit is contained in:
commit
4ba668d941
1 changed files with 5 additions and 2 deletions
|
|
@ -1232,13 +1232,16 @@ wl_closure_invoke(struct wl_closure *closure, uint32_t flags,
|
|||
|
||||
implementation = target->implementation;
|
||||
if (!implementation) {
|
||||
wl_abort("Implementation of resource %d of %s is NULL\n",
|
||||
wl_log("Implementation of resource %d of %s is NULL\n",
|
||||
target->id, target->interface->name);
|
||||
|
||||
return wl_closure_clear_fds(closure);
|
||||
}
|
||||
|
||||
if (!implementation[opcode]) {
|
||||
wl_abort("listener function for opcode %u of %s is NULL\n",
|
||||
wl_log("listener function for opcode %u of %s is NULL\n",
|
||||
opcode, target->interface->name);
|
||||
return wl_closure_clear_fds(closure);
|
||||
}
|
||||
ffi_call(&cif, implementation[opcode], NULL, ffi_args);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue