util: add helper APIs for dealing with inotify in portable manner
commit90e33dfec651c04d75f20a4e5c20593145c5d90e
authorDaniel P. Berrangé <berrange@redhat.com>
Fri, 8 Jun 2018 16:24:57 +0000 (8 17:24 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Tue, 26 Feb 2019 15:25:58 +0000 (26 15:25 +0000)
tree3ffcd3133c71962591a2eb90926dbce54f957855
parentd88d85f1f0625d57e9f354aa0874c4c8b5d1fb47
util: add helper APIs for dealing with inotify in portable manner

The inotify userspace API for reading events is quite horrible, so it is
useful to wrap it in a more friendly API to avoid duplicating code
across many users in QEMU. Wrapping it also allows introduction of a
platform portability layer, so that we can add impls for non-Linux based
equivalents in future.

Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
MAINTAINERS
Makefile.objs
include/qemu/filemonitor.h [new file with mode: 0644]
tests/Makefile.include
tests/test-util-filemonitor.c [new file with mode: 0644]
util/Makefile.objs
util/filemonitor-inotify.c [new file with mode: 0644]
util/filemonitor-stub.c [new file with mode: 0644]
util/trace-events