libei/test
Peter Hutterer 62ae6f5edf ei: make ei_disconnect() public
Previously the only way to disconnect from the EIS implementation was
to call ei_unref() and release all resources. This makes it more
difficult for shared cleanup code - clients already have code in place
to deal with DEVICE_REMOVED, SEAT_REMOVED, etc. but that code has to
be triggered manually before ei_unref() is called.

OTOH where the server disconnects us, libei already unwound the state
so we would artificially generate these removed events, allowing the
client to clean up.

Make life easier for client by allowing them to ei_disconnect() and
get the benefits of our state unwinding. ei_disconnect() was already
used internally to disconnect on any error so this merely makes this
function public.

Closes #67

Part-of: <https://gitlab.freedesktop.org/libinput/libei/-/merge_requests/311>
2024-12-05 02:44:56 +00:00
..
templates test: drop a bunch of unused imports 2023-02-15 08:20:01 +10:00
buildtest.c Purge libreis from the repo 2023-02-09 11:48:28 +10:00
buildtest.cc test: make the c++ build test mirror the c build test 2024-12-02 00:23:14 +00:00
conftest.py test: run pytest with xdist where available 2023-03-03 11:27:01 +10:00
eierpecken.c test: improve debugging for failed event type comparisons 2024-11-27 02:13:53 +00:00
eierpecken.h test: print the line no for peck_ei(s)_assert_no_events 2024-11-27 02:13:53 +00:00
eiproto.py.tmpl test: fix string encoding in the python test bindings 2024-12-03 13:18:54 +10:00
meson.build meson.build: allow disabling libei and libeis 2024-12-02 00:23:14 +00:00
test-ei-device.c test: add tests for multiple regions 2024-08-07 10:51:12 +10:00
test-ei-seat.c test: switch to use ei_seat_bind_capabilities() 2023-05-10 12:21:40 +10:00
test-ei.c ei: make ei_disconnect() public 2024-12-05 02:44:56 +00:00
test-eis.c test: make bug logs fatal by default 2023-11-09 10:15:38 +10:00
test-main.c Remove empty trailing newlines from all files 2023-03-13 08:52:08 +10:00
test_oeffis.py oeffis: OEFFIS_DEVICE_ALL_DEVICES should translate to "all" 2023-12-14 00:58:18 +00:00
test_protocol.py Drop black, switch to ruff format 2024-10-17 16:18:51 +10:00
test_scanner.py ei-scanner: expose version_arg and version_arg_for 2023-05-26 16:56:13 +10:00
unit-tests.c Add SPDX identifiers to all source files 2022-03-03 00:27:36 +00:00