diff options
| author | Gal Hammer | 2018-01-14 11:06:54 +0100 |
|---|---|---|
| committer | Michael S. Tsirkin | 2018-01-18 20:52:37 +0100 |
| commit | f87d72f5c5bff0837d409a56bd34f439a90119ca (patch) | |
| tree | a82bcc163baf18a766707e5eb7affcae77fa9b36 /include | |
| parent | contrib/vhost-user-blk: introduce a vhost-user-blk sample application (diff) | |
| download | qemu-f87d72f5c5bff0837d409a56bd34f439a90119ca.tar.gz qemu-f87d72f5c5bff0837d409a56bd34f439a90119ca.tar.xz qemu-f87d72f5c5bff0837d409a56bd34f439a90119ca.zip | |
qemu: add a cleanup callback function to EventNotifier
Adding a cleanup callback function to the EventNotifier struct
which allows users to execute event_notifier_cleanup in a
different context.
Signed-off-by: Gal Hammer <ghammer@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/qemu/event_notifier.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/qemu/event_notifier.h b/include/qemu/event_notifier.h index 599c99f1a5..b30a45474f 100644 --- a/include/qemu/event_notifier.h +++ b/include/qemu/event_notifier.h @@ -26,6 +26,7 @@ struct EventNotifier { int rfd; int wfd; #endif + void (*cleanup)(EventNotifier *); }; typedef void EventNotifierHandler(EventNotifier *); |
