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: NMarc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
Showing
include/qemu/filemonitor.h
0 → 100644
tests/test-util-filemonitor.c
0 → 100644
util/filemonitor-inotify.c
0 → 100644
util/filemonitor-stub.c
0 → 100644
想要评论请 注册 或 登录