rockbox/apps/plugins/midi
Thomas Martitz abdc5935be Introduce plugin_crt0.c that every plugin links.
It handles exit() properly, calling the handler also when the plugin returns
normally (also it makes exit() more standard compliant while at it).
It also holds PLUGIN_HEADER, so that it doesn't need to be in each plugin anymore.

To work better together with callbacks passed to rb->default_event_handler_ex introduce exit_on_usb() which will call the exit handler before showing the usb screen and exit() after it.
In most cases it was passed a callback which was manually called at all other return points. This can now be done via atexit().

In future plugin_crt0.c could also handle clearing bss, initializing iram and more.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27862 a1c6a512-1295-4272-9138-f99709370657
2010-08-23 16:56:49 +00:00
..
guspat.c Correct checking return value of open in plugins. 2009-12-06 13:52:28 +00:00
guspat.h Updated our source code header to explicitly mention that we are GPL v2 or 2008-06-28 18:10:04 +00:00
midi.make Use a static pattern rule to restrict the dependency on [pluginname].o to single-file plugins. This allows the pattern rule for %.rock (with all dependencies defined elsewhere) to pick up multi-file plugins with no [pluginname].o file, and get rid of the duplication in (doom|midi|reversi).make. 2009-03-04 23:41:58 +00:00
midifile.c Replace remaining printf in midi plugin (fix yellow/red) 2010-07-25 19:47:07 +00:00
midifile.h Updated our source code header to explicitly mention that we are GPL v2 or 2008-06-28 18:10:04 +00:00
midiplay.c Introduce plugin_crt0.c that every plugin links. 2010-08-23 16:56:49 +00:00
midiutil.c Rename printf to prevent naming conflict. Also change comment to conform with Rockbox standards. 2010-07-25 19:35:19 +00:00
midiutil.h Rename printf to prevent naming conflict. Also change comment to conform with Rockbox standards. 2010-07-25 19:35:19 +00:00
sequencer.c Replace remaining printf in midi plugin (fix yellow/red) 2010-07-25 19:47:07 +00:00
sequencer.h Updated our source code header to explicitly mention that we are GPL v2 or 2008-06-28 18:10:04 +00:00
SOURCES Move all of midiplay into its subdir and add a Makefile for it, add header files as necessary. 2007-09-24 15:57:32 +00:00
synth.c Replace remaining printf in midi plugin (fix yellow/red) 2010-07-25 19:47:07 +00:00
synth.h Updated our source code header to explicitly mention that we are GPL v2 or 2008-06-28 18:10:04 +00:00