-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 good day. i trying to make callback function for VIR_DOMAIN_EVENT_ID_LIFECYCLE, i have successfully registering callback, but it never called, i need to know when domain started, stopped or crashed, i have write following code static int domain_event_handler(virConnectPtr conn, virDomainPtr dom, int event, int detail, void * opaque) { switch(event) { } return 0; } ..... int callback = virConnectDomainEventRegisterAny(libvirt_connection, NULL, VIR_DOMAIN_EVENT_ID_LIFECYCLE, VIR_DOMAIN_EVENT_CALLBACK(domain_event_handler), NULL, NULL); if(callback == -1) { std::cout<<"Error: failed to register domain event handle callback\n"; return -1; } ..... but "domain_event_handler" is never called, what is wrong here ? -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.21 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBAgAGBQJSE/XIAAoJEH3ap8veG8EHNO4H/iu8FLlL2fXMrWC6Z75fgoL+ 1LKH504VD/oZ4UUyEMURdywNOp4cHmXQOiCbgN3ardFMjhFQ/hwbDHgBXLuQGsr0 yXyUoX8ft3sEojTJS0ys9J+vkFcqm/eOykCeAKRPHQPAeUivKQpRhx3+6mXDJ3z8 OyTGqD5GFdhgktz/4IbqeOp4PKI55QXVrrsB2414hPykBq6xsRqbtQC9QZ/Df2SP kHGAymEYK+i242xJYZSxTy5BLH+JNa1yzJNE+XoAtaMz2ypRg3ycMipo0io+8VMy KJWRxmq3O/ZKrqGsI++D7ugAkkLCLUbpyC35fXK7GXAEnxk/uTkQInU7F26FdJs= =32hk -----END PGP SIGNATURE----- _______________________________________________ libvirt-users mailing list libvirt-users@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvirt-users