1
0
Fork 0
forked from len0rd/rockbox
foxbox/apps/plugins/lib
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
..
bmp_smooth_scale.c
buflib.c Move c/h files implementing/defining standard library stuff into a new libc directory, also standard'ify some parts of the code base (almost entirely #include fixes). 2010-05-06 21:04:40 +00:00
buflib.h
checkbox.c
checkbox.h
configfile.c Make creat() posix compliant API-wise. Shouldn't affect the core as it's wrapped via a static inline. 2010-05-06 17:35:04 +00:00
configfile.h plugins/lib: remove out-dated comments about plugin api. 2010-02-25 12:14:36 +00:00
display_text.c some changes to use of display_text. 2010-02-22 07:17:15 +00:00
display_text.h some changes to use of display_text. 2010-02-22 07:17:15 +00:00
feature_wrappers.h
fixedpoint.c
fixedpoint.h FFT Plugin: Revamp the main code to rid it of 64-bit math. Use 32-bit kiss_fft_scalar because 16-bit integers are generally a poor choice for computation on-target. Simplify display code to speed it up. Add logarithmic frequency display (need keymappings, guessed on some). On dual-core, perform FFT on COP. Add some support function to fixedpoint.c. ... and stuff. 2010-06-02 08:34:10 +00:00
gcc-support.c
grey.h
grey_coldfire.S
grey_core.c HD200 - calibrate lcdlinear[] matrix 2010-06-18 11:58:26 +00:00
grey_draw.c
grey_parm.c
grey_scroll.c Pluginlib: make scroll functions clear screen if scrolled by >= screen size (from FS#10330) 2009-10-16 20:15:12 +00:00
grey_sh.S
helper.c
helper.h
highscore.c Make open() posix compliant api-wise. A few calls (those with O_CREAT) need the additional optional mode parameter so add it. Impact for the core is almost zero, as open() is a wrapper macro for the real open function which doesn't take the variable parameter. 2010-05-06 17:35:13 +00:00
highscore.h plugin: implement highscore_show for player and use it in rockblox. 2010-02-22 13:45:24 +00:00
jhash.c
jhash.h Move c/h files implementing/defining standard library stuff into a new libc directory, also standard'ify some parts of the code base (almost entirely #include fixes). 2010-05-06 21:04:40 +00:00
jpeg_mem.h
md5.c
md5.h Set svn:keywords property on .c and .h files that didn't already have it. Correct svn:executable property on some files. 2010-01-03 14:28:09 +00:00
mylcd.h Convert some more stuff to mylcd_ and support pgfx as well. 2010-06-04 13:22:50 +00:00
overlay.c Fix size_t handling in plugin_get_buffer() 2010-05-07 19:27:42 +00:00
overlay.h
picture.c Fix STRIDE macro for multiscreen and add stride support for picture lib. 2009-09-04 00:46:24 +00:00
picture.h Fix STRIDE macro for multiscreen and add stride support for picture lib. 2009-09-04 00:46:24 +00:00
playback_control.c
playback_control.h plugins/lib: remove out-dated comments about plugin api. 2010-02-25 12:14:36 +00:00
playergfx.c
playergfx.h
pluginlib_actions.c Add a mapping for the PLA_EXIT action for Iriver remote and provide it in the manual as well. 2010-06-05 17:29:06 +00:00
pluginlib_actions.h S#10387 - Rework pluginlib actions 2010-05-20 17:41:28 +00:00
pluginlib_albumart.c
pluginlib_bmp.c Make creat() posix compliant API-wise. Shouldn't affect the core as it's wrapped via a static inline. 2010-05-06 17:35:04 +00:00
pluginlib_bmp.h
pluginlib_exit.h Introduce plugin_crt0.c that every plugin links. 2010-08-23 16:56:49 +00:00
pluginlib_jpeg_idct_arm.S
pluginlib_jpeg_load.c
pluginlib_jpeg_mem.c
pluginlib_resize.c
pluginlib_touchscreen.c Remove find_albumart() from the plugin API as it doesn't exist for them. 2009-08-03 15:09:41 +00:00
pluginlib_touchscreen.h Pluginlib: Add support for general buttons. Add menu and quit buttons to Reversi. MRobe 500: Modify touch handler to return the previous data always rather than 0 when there is no touch. 2009-08-02 07:05:30 +00:00
profile_plugin.c
profile_plugin.h
read_image.c FS#10496: remove function read_image_file_offset, it had a bug and is not used anyway. 2009-08-09 22:20:14 +00:00
read_image.h FS#10496: remove function read_image_file_offset, it had a bug and is not used anyway. 2009-08-09 22:20:14 +00:00
rgb_hsv.c
rgb_hsv.h
simple_viewer.c improve displaying of string containing diacritic characters. add some characters to determine the position to break line. 2010-07-12 14:59:16 +00:00
simple_viewer.h add simple text viewer to pluginlib and use this for dict to show description. 2010-06-08 11:07:36 +00:00
SOURCES Introduce plugin_crt0.c that every plugin links. 2010-08-23 16:56:49 +00:00
strncpy.c strncpy.c / assert.h : need to include _ansi.h 2010-07-25 14:53:06 +00:00
wrappers.h
xlcd.h
xlcd_core.c
xlcd_draw.c
xlcd_scroll.c XLCD lib: * Fix bug (improper fill) in pixel-wise left scrolling on 2bpp horizontally packed LCDs. * Faster pixel-wise upward scrolling on 2bpp vertically packed LCD coldfire targets. 2009-11-22 14:48:50 +00:00