mirror of
https://github.com/mborgerson/xemu.git
synced 2025-12-01 16:10:01 +00:00
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>
This commit is contained in:
committed by
Michael S. Tsirkin
parent
406d2aa2cc
commit
f87d72f5c5
@ -26,6 +26,7 @@ struct EventNotifier {
|
||||
int rfd;
|
||||
int wfd;
|
||||
#endif
|
||||
void (*cleanup)(EventNotifier *);
|
||||
};
|
||||
|
||||
typedef void EventNotifierHandler(EventNotifier *);
|
||||
|
||||
Reference in New Issue
Block a user