mirror of
https://gitlab.freedesktop.org/libinput/libei.git
synced 2026-05-01 02:17:59 +02:00
eis: make ei_connection/callback/pingpong required interfaces
v1 of ei_connection requires callback and pingpong, so let's make all three required and disconnect a client that doesn't support those.
This commit is contained in:
parent
a80b19bb2c
commit
86dced2c40
1 changed files with 3 additions and 1 deletions
|
|
@ -88,7 +88,9 @@ client_msg_done(struct eis_connection_setup *setup)
|
|||
struct eis_client *client = eis_connection_setup_get_client(setup);
|
||||
|
||||
/* Required interfaces - immediate disconnection if missing */
|
||||
if (setup->client_versions.ei_connection == 0)
|
||||
if (setup->client_versions.ei_connection == 0 ||
|
||||
setup->client_versions.ei_callback == 0 ||
|
||||
setup->client_versions.ei_pingpong == 0)
|
||||
return -EPROTO;
|
||||
|
||||
eis_client_setup_done(client, setup->name, setup->is_sender, &setup->client_versions);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue