]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Add APIs to allow management of callbacks purely with virDomainEventState
authorDaniel P. Berrange <berrange@redhat.com>
Tue, 13 Dec 2011 23:38:54 +0000 (23:38 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Mon, 19 Dec 2011 11:08:10 +0000 (11:08 +0000)
commit4f5326c31576219d5931ae9785dfec990704476c
tree07dcce63ae1196747403c655ca6bcfe7db2be1be
parentd09f6ba5feb655925175dc80122ca2a1e14db2b9
Add APIs to allow management of callbacks purely with virDomainEventState

While virDomainEventState has APIs for managing removal of callbacks,
while locked, adding callbacks in the first place requires direct
access to the virDomainEventCallbackList structure. This is not
threadsafe since it is bypassing the virDomainEventState locks

* src/conf/domain_event.c, src/conf/domain_event.h,
  src/libvirt_private.syms: Add APIs for managing callbacks
  via virDomainEventState.
src/conf/domain_event.c
src/conf/domain_event.h
src/libvirt_private.syms