#include #include "kvm/kvm.h" typedef void (*epoll__event_handler_t)(struct kvm *kvm, struct epoll_event *ev); struct kvm__epoll { int fd; int stop_fd; struct kvm *kvm; const char *name; pthread_t thread; epoll__event_handler_t handle_event; }; int epoll__init(struct kvm *kvm, struct kvm__epoll *epoll, const char *name, epoll__event_handler_t handle_event); int epoll__exit(struct kvm__epoll *epoll);