I'm looking at using the gpiod interface on an embedded Linux device with a C++ framework. The issue is that I haven't come across an example of how to asynchronously monitor inputs using gpiod. Ideally it would be something like gpiomon but not blocking.
I've used asio (specifically asio::async_read) with file descriptors (fd) to accomplish this but it looks incompatible with gpiod (related question).
Further it looks like mixing file descriptors with gpiod is messy as the gpiod lines assign there own fd internally which is not exposed as far as I can see.
Any pointers would be appreciated.
Regards,