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 <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2020-08-19 11:08:30 +10:00
parent 451875e287
commit 76e5b30451

View file

@ -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.