aboutsummaryrefslogtreecommitdiff
path: root/readline.h
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2010-06-04 14:08:07 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2010-06-14 15:46:28 -0500
commitfd42deeb4cb42f90084046e3ebdb4383953195e3 (patch)
tree671123e5db9674ce1950cd972c42b39da1408c71 /readline.h
parent4cf3e6f3d85492f20a773dd6c9068ab89ba24a18 (diff)
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>
Diffstat (limited to 'readline.h')
0 files changed, 0 insertions, 0 deletions