From 76e5b30451d7cf451eba68fd880966378b535102 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 19 Aug 2020 11:08:30 +1000 Subject: [PATCH] libei: change the behavior of the REMOVED message If a client calls ei_device_remove(), it should consider that as the last interaction with this device (short of unref). There is no need for the server to confirm this, no further events must reach the client for this device. Signed-off-by: Peter Hutterer --- src/libei.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/libei.h b/src/libei.h index c8ffb34..c955d29 100644 --- a/src/libei.h +++ b/src/libei.h @@ -416,9 +416,11 @@ void ei_device_add(struct ei_device *device); /** - * Notify the server that the device is no longer required. The server will - * reply with a @ref EI_EVENT_DEVICE_REMOVED event once the device has been - * removed. + * Notify the server that the device should be removed. + * + * The server will **not** send an @ref EI_EVENT_DEVICE_REMOVED event for + * this device, it should be considered removed by the client once this + * function completes. * * This does not release any resources associated with this device, use * ei_device_unref() for any references held by the client.