]> git.proxmox.com Git - qemu.git/commit - sysemu.h
Add exit notifiers.
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 4 Jun 2010 12:08:07 +0000 (14:08 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 14 Jun 2010 20:46:28 +0000 (15:46 -0500)
commitfd42deeb4cb42f90084046e3ebdb4383953195e3
tree671123e5db9674ce1950cd972c42b39da1408c71
parent4cf3e6f3d85492f20a773dd6c9068ab89ba24a18
Add exit notifiers.

Hook up any cleanup work which needs to be done here.  Advantages over
using atexit(3):

  (1) You get passed in a pointer to the notifier.  If you embed that
      into your state struct you can use container_of() to get get your
      state info.
  (2) You can unregister, say when un-plugging a device.

[ v2: move code out of #ifndef _WIN32 ]

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
sysemu.h
vl.c