pluginlib: Support calling a function at exit time to clean up open files
commitcd19e7eb66fe9828b6c9c38506c9d9a8c0980a53
authortorne <torne@a1c6a512-1295-4272-9138-f99709370657>
Tue, 5 Jan 2010 22:17:32 +0000 (5 22:17 +0000)
committertorne <torne@a1c6a512-1295-4272-9138-f99709370657>
Tue, 5 Jan 2010 22:17:32 +0000 (5 22:17 +0000)
tree33d603a6a0898ad3b66f10fb5fcc3d1e749f2ded
parent873bfa9f7badf5510730b5be0433fff3396643b0
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