Bertrik Sikken
50ac7ca774
Fix warnings
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30759 a1c6a512-1295-4272-9138-f99709370657
2011-10-15 20:51:12 +00:00
Bertrik Sikken
fe67a87885
plugins: another round of making local functions static
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30758 a1c6a512-1295-4272-9138-f99709370657
2011-10-15 20:38:08 +00:00
Teruaki Kawashima
01313d5039
* Rename backlight_force_on to backlight_ignore_timeout to make it clear what the function does.
...
* Add backlight_force_on() which forces to turn on backlight even when the setting is set to Off. use this in lamp.
No functional change except lamp.
See aslo FS#9883.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29128 a1c6a512-1295-4272-9138-f99709370657
2011-01-24 12:29:16 +00:00
Thomas Martitz
cae4ae2c71
Second try: Introduce plugin_crt0.c that every plugin links.
...
It handles exit() properly, calling the handler also when the plugin returns
normally (also make 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 rb->default_event_handler_ex() 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@27873 a1c6a512-1295-4272-9138-f99709370657
2010-08-24 14:30:46 +00:00
Thomas Martitz
93cb949372
Revert "Introduce plugin_crt0.c that every plugin links."
...
Too much errors and no time to fix them now.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27863 a1c6a512-1295-4272-9138-f99709370657
2010-08-23 17:12:26 +00:00
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
Rafaël Carré
bdb5974c0e
Revert r21912 : "Storage API : remove undeeded target-specific functions"
...
After a discussion mixed on mailing list and irc, it was agreed that
more abstraction for plugins is better (so developers don't have to add
a check to HAVE_DISK_STORAGE when writing disk-specific code)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21923 a1c6a512-1295-4272-9138-f99709370657
2009-07-17 16:34:34 +00:00
Rafaël Carré
8eba69f91b
Storage API : remove undeeded target-specific functions
...
storage_sleep, storage_spin, storage_spindown are only defined if #defiend (HAVE_DISK_STORAGE), not for MMC/ATA/SD
remove already unneeded nand_disk_is_active, nand_soft_reset
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21912 a1c6a512-1295-4272-9138-f99709370657
2009-07-17 00:09:14 +00:00
Jens Arnold
fa59ed6ae7
Fix plugins for the changed pitch scale from r21781
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21794 a1c6a512-1295-4272-9138-f99709370657
2009-07-11 23:11:56 +00:00
Rafaël Carré
89ccd5c145
Remove int_prio argument from timer_register, and move the only use for it into alpine_cdc plugin, since this plugin is only built on SH7034
...
Also remove it from TIMER_START()
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21558 a1c6a512-1295-4272-9138-f99709370657
2009-06-29 14:29:46 +00:00
Andrew Mahone
04b7cefd63
fix mem* wrappers in UI on cygwin, by not building certain plugins on sim, rather than building empty ones
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19856 a1c6a512-1295-4272-9138-f99709370657
2009-01-25 18:27:17 +00:00
Andrew Mahone
23d9812273
loader-initialized global plugin API:
...
struct plugin_api *rb is declared in PLUGIN_HEADER, and pointed to by
__header.api
the loader uses this pointer to initialize rb before calling entry_point
entry_point is no longer passed a pointer to the plugin API
all plugins, and pluginlib functions, are modified to refer to the
global rb
pluginlib functions which only served to copy the API pointer are
removed
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19776 a1c6a512-1295-4272-9138-f99709370657
2009-01-16 10:34:40 +00:00
Björn Stenberg
c6b3d38a15
New makefile solution: A single invocation of 'make' to build the entire tree. Fully controlled dependencies give faster and more correct recompiles.
...
Many #include lines adjusted to conform to the new standards.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19146 a1c6a512-1295-4272-9138-f99709370657
2008-11-20 11:27:31 +00:00
Jens Arnold
bd08aeed53
Video plugin: Fix OSD for font_height != 8. Don't fiddle with the framebuffer directly, but use the standard lcd drawing functions and lcd_update_rect() (in the ISR as required). OSD now displays for 1 second (0.5 seconds for buffer debug).
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19052 a1c6a512-1295-4272-9138-f99709370657
2008-11-09 14:08:20 +00:00
Frank Gevaerts
2f8a0081c6
Apply FS#9500. This adds a storage_*() abstraction to replace ata_*(). To do that, it also introduces sd_*, nand_*, and mmc_*.
...
This should be a good first step to allow multi-driver targets, like the Elio (ATA/SD), or the D2 (NAND/SD).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18960 a1c6a512-1295-4272-9138-f99709370657
2008-11-01 16:14:28 +00:00
Frank Gevaerts
46573019a5
add HAVE_DISK_STORAGE, and use that instead of HAVE_FLASH_STORAGE when checking for an actual disk (i.e. related to spindown, skipping,...)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18735 a1c6a512-1295-4272-9138-f99709370657
2008-10-07 19:37:33 +00:00
Daniel Stenberg
2acc0ac542
Updated our source code header to explicitly mention that we are GPL v2 or
...
later. We still need to hunt down snippets used that are not. 1324 modified
files...
http://www.rockbox.org/mail/archive/rockbox-dev-archive-2008-06/0060.shtml
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17847 a1c6a512-1295-4272-9138-f99709370657
2008-06-28 18:10:04 +00:00
Steve Bavin
6526577818
Plugin parameters should be const.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17492 a1c6a512-1295-4272-9138-f99709370657
2008-05-13 09:57:56 +00:00
Jens Arnold
ac9b92716a
Allow to select the core for running the user timer on portalplayer targets. * Incompatible plugin API change -> sorted API.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16965 a1c6a512-1295-4272-9138-f99709370657
2008-04-04 19:38:46 +00:00
Jens Arnold
68a21689ae
Consistent naming scheme the various blit functions. * Removed lcd_blit_mono() for colour targets. Plugin API became incompatible, so sort, clean up & bump. * Implemented lcd_blit_mono() for M3.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16775 a1c6a512-1295-4272-9138-f99709370657
2008-03-24 00:35:53 +00:00
Peter D'Hoye
767c0ec589
Pass plugin api pointer to funtion directly, fixes crashes when doing incremental builds. Fix incorrect backlight changes in rockblox introduced recently.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14373 a1c6a512-1295-4272-9138-f99709370657
2007-08-16 23:01:18 +00:00
Peter D'Hoye
cb53e3cef4
Bring mpegplayer backlight fix to the other plugins, this also fixes some wrongly ifdef'd backlight calls.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14352 a1c6a512-1295-4272-9138-f99709370657
2007-08-15 12:42:09 +00:00
Nils Wallménius
0bfa3e76ce
Disable 'Disk spindown' and 'Anti skip buffer' settings and some related stuff for flash storage targets as they make no sense
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14110 a1c6a512-1295-4272-9138-f99709370657
2007-08-01 08:50:44 +00:00
Nils Wallménius
c7f9ca4067
Accept FS#7264 'Build with -Os switch for coldfire targets'.
...
Introduces MEM_FUNCTION_WRAPPERS(api) macro which adds wrappers
functions to a plugin to make plugins link correctly when gcc
calls mem* functions directly.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13625 a1c6a512-1295-4272-9138-f99709370657
2007-06-13 15:35:07 +00:00
Michael Sevakis
8676dc25f5
Missed a couple. Hopefully fix all warnings.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13234 a1c6a512-1295-4272-9138-f99709370657
2007-04-21 19:07:15 +00:00
Jens Arnold
79c8a8cbbe
Let GCC check arguments of some more printf-style functions, also for plugins and codecs.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12815 a1c6a512-1295-4272-9138-f99709370657
2007-03-17 09:02:53 +00:00
Jens Arnold
4d6374c923
Get rid of the 'center' parameter for splashes. There were only 2 of almost 500 splashes which were not centered.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12807 a1c6a512-1295-4272-9138-f99709370657
2007-03-16 21:56:08 +00:00
Jonathan Gordon
d5df5f63fd
please, oh please give me a green build so I can goto bed
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11554 a1c6a512-1295-4272-9138-f99709370657
2006-11-19 14:39:02 +00:00
Jonathan Gordon
6288523cfe
* Move checkbox to plugin api (core never uses it)
...
* replace the last of the scrollbar() calls with gui_scrollbar_draw()
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11552 a1c6a512-1295-4272-9138-f99709370657
2006-11-19 14:11:42 +00:00
Daniel Stenberg
220fafdd72
Code Police raid. Mostly changed // comments and indented to Rockbox style.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8894 a1c6a512-1295-4272-9138-f99709370657
2006-03-03 08:14:44 +00:00
Jens Arnold
3187a59f74
Ooops. INT_MAX is now visible to plugins, so don't redefine it.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8889 a1c6a512-1295-4272-9138-f99709370657
2006-03-03 01:32:19 +00:00
Jens Arnold
a36b1d4083
New plugin loader. Solves the crashes introduced with the .bss changes while keeping the small binary size. The model & api version check is now part of the plugin loader. Codecs are not yet adapted, but the old method still works for them. Simulator plugins are not (yet) version-checked. API version numbering restarted, as this is an all-new system. Uses the target ID from configure, so don't change that too often.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8349 a1c6a512-1295-4272-9138-f99709370657
2006-01-15 18:20:18 +00:00
Jens Arnold
c80e0c19e1
Fixed several plugins for dB volume.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8258 a1c6a512-1295-4272-9138-f99709370657
2005-12-17 21:13:30 +00:00
Jens Arnold
e44372ef18
Moved implementation of user timer to the firmware layer, implemented it for iriver, and made it shareable based on priorities. On iriver, the user timer is shared between the backlight fading and other use, so if a plugin registers the timer, the backlight will resort to simple on/off switching until the plugin releases the timer again. Sorted and bumped the plugin api.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7242 a1c6a512-1295-4272-9138-f99709370657
2005-07-26 20:01:11 +00:00
Jens Arnold
7595244845
Fix for bug #904026 : Reset pitch to ensure synchronous playback.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6459 a1c6a512-1295-4272-9138-f99709370657
2005-05-12 19:53:11 +00:00
Linus Nielsen Feltzing
d34865a530
mp3buf renamed to audiobuf
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6252 a1c6a512-1295-4272-9138-f99709370657
2005-04-05 11:33:58 +00:00
Linus Nielsen Feltzing
674eaca5ef
Moved the mpeg_sound_xxx() functions to sound.c and renamed them to sound_xxx()
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6240 a1c6a512-1295-4272-9138-f99709370657
2005-04-01 13:41:03 +00:00
Jens Arnold
4666f7e0d9
Bugfix: Ordinary ending of playback didn't close the file (File handle leak, cleared resume position was not saved).
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5565 a1c6a512-1295-4272-9138-f99709370657
2005-01-16 00:10:57 +00:00
Jens Arnold
cc8cff2ec0
Plugin rework 1: (most) Compile-time keyboard configuration, for Ondio adaption. (all) Now using the default event handler, standard placement is now in switch() default case. (snow) Made USB aware. (video) Added contrast setting to Ondio version.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5291 a1c6a512-1295-4272-9138-f99709370657
2004-10-16 00:07:43 +00:00
Jens Arnold
2a0d541a38
BUG FIX: Corrected the speed kludge for Ondio video playback. The previous solution changed the frame time directly in the file header structure, causing the changed value to be saved together with resume position, therefore destroying sync for any further playback.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5271 a1c6a512-1295-4272-9138-f99709370657
2004-10-13 23:59:15 +00:00
Jens Arnold
9db31cf886
grayscale.rock, jpeg.rock and video.rock now use default_event_handler_ex(). Adapted and enabled them for Ondio.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5264 a1c6a512-1295-4272-9138-f99709370657
2004-10-12 22:49:51 +00:00
Jens Arnold
6b559b1f97
scrollbar() parameters were swapped
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4859 a1c6a512-1295-4272-9138-f99709370657
2004-07-09 07:04:45 +00:00
Linus Nielsen Feltzing
2441061764
Removed progressbar() and slidebar()
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4854 a1c6a512-1295-4272-9138-f99709370657
2004-07-08 13:14:44 +00:00
Jörg Hohensohn
480c2fa215
removed a bit of obsolete stuff
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4697 a1c6a512-1295-4272-9138-f99709370657
2004-05-23 15:41:28 +00:00
Jörg Hohensohn
12deda14d5
adaptive spinup control
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4599 a1c6a512-1295-4272-9138-f99709370657
2004-05-09 18:18:05 +00:00
Jörg Hohensohn
33b4629b66
LCD contrast setting on F2/F3
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4567 a1c6a512-1295-4272-9138-f99709370657
2004-04-30 21:38:24 +00:00
Jörg Hohensohn
a2d9dbdcb9
didn't I say no more hardware banging?
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4566 a1c6a512-1295-4272-9138-f99709370657
2004-04-30 21:16:35 +00:00
Jörg Hohensohn
664959aed4
uses the new timer registration of the plugin API, no hardware banging any more
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4564 a1c6a512-1295-4272-9138-f99709370657
2004-04-30 20:49:00 +00:00
Jörg Hohensohn
24e2bb3438
loops have not been OK, were showing one frame more than available
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4351 a1c6a512-1295-4272-9138-f99709370657
2004-03-08 20:14:04 +00:00
Jörg Hohensohn
bfba273153
my underrun checks have not been precisely correct
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4348 a1c6a512-1295-4272-9138-f99709370657
2004-03-08 08:29:11 +00:00