mirror of
https://gitlab.freedesktop.org/libinput/libei.git
synced 2025-12-31 15:50:11 +01:00
proto: if the target object no longer exists, don't send events/requests
This commit is contained in:
parent
86dced2c40
commit
df99fc923b
1 changed files with 3 additions and 0 deletions
|
|
@ -73,6 +73,9 @@ const struct brei_object *
|
|||
int
|
||||
{{outgoing.fqdn}}({{interface.as_arg}}{%- for arg in outgoing.arguments %}, {{arg.as_arg}}{% endfor %})
|
||||
{
|
||||
if (!{{interface.name}})
|
||||
return -ENOENT;
|
||||
|
||||
const struct brei_object *obj = {{interface.name}}_get_proto_object({{interface.name}});
|
||||
{{target.ctype}} ctx = {{interface.name}}_get_{{target.context}}({{interface.name}});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue