]> git.ipfire.org Git - thirdparty/libvirt.git/commit
events: Don't fail on registering events for two different domains
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 27 Jun 2012 10:06:45 +0000 (12:06 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 27 Jun 2012 14:20:41 +0000 (16:20 +0200)
commitcd15303fd123146b0ba53e387d08ef22b707223c
treef5395cd3076012cc40508d62a02a1db2a959de2b
parent421a2009873c82a76775919395dbd077e12c9fdd
events: Don't fail on registering events for two different domains

virConnectDomainEventRegisterAny() takes a domain as an argument.
So it should be possible to register the same event (be it
VIR_DOMAIN_EVENT_ID_LIFECYCLE for example) for two different domains.
That is, we need to take domain into account when searching for
duplicate event being already registered.
src/conf/domain_event.c