1
0
Fork 0
forked from len0rd/rockbox
foxbox/apps/plugins/clock
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
..
clock.c Introduce plugin_crt0.c that every plugin links. 2010-08-23 16:56:49 +00:00
clock.h set svn:keywords property 2009-07-12 15:04:56 +00:00
clock.make Added 'keywords' and 'eol-style' properties. 2008-11-25 19:54:23 +00:00
clock_bitmap_strings.c Clock: Fix rendering. 2009-09-04 04:13:38 +00:00
clock_bitmap_strings.h set svn:keywords property 2009-07-12 15:04:56 +00:00
clock_bitmaps.c Fix STRIDE macro for multiscreen and add stride support for picture lib. 2009-09-04 00:46:24 +00:00
clock_bitmaps.h set svn:keywords property 2009-07-12 15:04:56 +00:00
clock_counter.c
clock_counter.h New makefile solution: A single invocation of 'make' to build the entire tree. Fully controlled dependencies give faster and more correct recompiles. 2008-11-20 11:27:31 +00:00
clock_draw.c set svn:keywords property 2009-07-12 15:04:56 +00:00
clock_draw.h set svn:keywords property 2009-07-12 15:04:56 +00:00
clock_draw_analog.c set svn:keywords property 2009-07-12 15:04:56 +00:00
clock_draw_analog.h set svn:keywords property 2009-07-12 15:04:56 +00:00
clock_draw_binary.c Clock: Fix rendering. 2009-09-04 04:13:38 +00:00
clock_draw_binary.h set svn:keywords property 2009-07-12 15:04:56 +00:00
clock_draw_digital.c Clock: Fix rendering. 2009-09-04 04:13:38 +00:00
clock_draw_digital.h set svn:keywords property 2009-07-12 15:04:56 +00:00
clock_menu.c set svn:keywords property 2009-07-12 15:04:56 +00:00
clock_menu.h
clock_settings.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
clock_settings.h set svn:keywords property 2009-07-12 15:04:56 +00:00
SOURCES