blob: dbb5a8d983c66a1079fc001b2909960f6384bc0d [file] [log] [blame]
#include <sys/epoll.h>
#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);