script-dump/udev-device-plug-handler
MasterofJOKers 0c2dd51ac1 udev-device-plug-handler: Support more than bind
There can be cases where we want to support more than "bind" events -
e.g. "remove". Therefore, we rewrite how things work in the spirit of
the STLs `SimpleHTTPRequestHandler`: any "handle_{action}" method of a
`KnownDevice` subclass allows the class to receive events for that
action.

To not use `getattr()` on every `KnownDevice` on every event, we use
`__init_subclass__()` to build a list of `KnownDevice` registered for
each `action`.
2024-02-03 13:55:52 +01:00
..
setup.cfg Add udev-device-plug-handler 2022-09-06 20:47:01 +02:00
setup.py Add udev-device-plug-handler 2022-09-06 20:47:01 +02:00
udev-device-plug-handler udev-device-plug-handler: Support more than bind 2024-02-03 13:55:52 +01:00