pluginlib: Support calling a function at exit time to clean up open files
commit9e1616183230aa37093cfd805ceb9ff3ebea5984
authorTorne Wuff <torne@wolfpuppy.org.uk>
Tue, 5 Jan 2010 22:17:32 +0000 (5 22:17 +0000)
committerTorne Wuff <torne@wolfpuppy.org.uk>
Tue, 5 Jan 2010 22:17:32 +0000 (5 22:17 +0000)
tree33d603a6a0898ad3b66f10fb5fcc3d1e749f2ded
parent44fa025d8f252b468f25d598976c780262e46cb2
pluginlib: Support calling a function at exit time to clean up open files
or other similar work. This is not quite the same as atexit() on POSIX as
the function is *not* called if the plugin exits by returning from
plugin_start; only if exit() is called. No code overhead if it's not used.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24189 a1c6a512-1295-4272-9138-f99709370657
apps/plugins/lib/pluginlib_exit.h