[PATCH 08/12] Domain Events - lxc driver Minor changes to LXC driver structure to prevent compile errors lxc_driver.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/lxc_driver.c b/src/lxc_driver.c index c598d1d..d1e4418 100644 --- a/src/lxc_driver.c +++ b/src/lxc_driver.c @@ -583,7 +583,7 @@ static int lxcVmTerminate(virConnectPtr conn, } static void lxcMonitorEvent(int fd, - int events ATTRIBUTE_UNUSED, + virEventHandleType events ATTRIBUTE_UNUSED, void *data) { lxc_driver_t *driver = data; @@ -811,7 +811,7 @@ static int lxcVmStart(virConnectPtr conn, vm->state = VIR_DOMAIN_RUNNING; if (virEventAddHandle(vm->monitor, - POLLERR | POLLHUP, + VIR_EVENT_HANDLE_ERROR | VIR_EVENT_HANDLE_HANGUP, lxcMonitorEvent, driver) < 0) { lxcVmTerminate(conn, driver, vm, 0); @@ -1278,6 +1278,8 @@ static virDriver lxcDriver = { NULL, /* domainMemoryPeek */ NULL, /* nodeGetCellsFreeMemory */ NULL, /* getFreeMemory */ + NULL, /* domainEventRegister */ + NULL, /* domainEventDeregister */ }; static virStateDriver lxcStateDriver = {
-- Libvir-list mailing list Libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list