summaryrefslogtreecommitdiff
path: root/apps/plugin.h (follow)
Commit message (Collapse)AuthorAge
...
* loader-initialized global plugin API:Andrew Mahone2009-01-16
| | | | | | | | | | | | | | | | | 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
* remove align_buffer from firmare/general.c, replacing with ALIGN_BUFFER ↵Andrew Mahone2009-01-13
| | | | | | | | | macro, and replace all uses of it (only resize.c in core, and pictureflow and mpegplayer plugins), remove it from plugin_api, and remove wrapper for it from plugin.h git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19758 a1c6a512-1295-4272-9138-f99709370657
* Removed the sim_ prefix from the plugin api.Björn Stenberg2009-01-07
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19704 a1c6a512-1295-4272-9138-f99709370657
* Have the codec thread do callbacks instead of messing with the stack which ↵Michael Sevakis2009-01-05
| | | | | | is much simpler and safer. Remove threads array from plugin API since it now serves no purpose. Up minimum API version and sort. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19684 a1c6a512-1295-4272-9138-f99709370657
* Reorder of user_settings, cleaned out some unused settings grouped settings ↵Nils Wallménius2009-01-03
| | | | | | depending on the same preprocessor defines together a bit more to make it more readable, updated some comments. Plugin api bump and the wps token for 12/24 hour clock setting is now excluded for non rtc targets git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19655 a1c6a512-1295-4272-9138-f99709370657
* woops... fix the header and bump the plugin APIJonathan Gordon2009-01-02
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19636 a1c6a512-1295-4272-9138-f99709370657
* Decouple the statusbar drawing from the rest of the screen drawing. it is ↵Jonathan Gordon2008-12-31
| | | | | | | | | | | | not drawn roughly 4x per second automatically. viewport_Set_defaults() will setup the given viewport with the correct "full screen" dimensions (so start at 0,0 if statusbars are disabled or 0,8 if they are enabled.) All screens should keep the statusbar enabled, but if you really want to ignore the user setting you can disbaled it with viewportmanager_set_statusbar(false). This commit also includes some menu/list viewport cleanups from kugel in FS#9603 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19622 a1c6a512-1295-4272-9138-f99709370657
* Make scaler output truly pluggable, add an 8-bit greyscale output toAndrew Mahone2008-12-26
| | | | | | | pluginlib for use with greylib, and add source for a test scaled bmp viewer using greylib. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19593 a1c6a512-1295-4272-9138-f99709370657
* Latest work on the bmp on-load scaler:Andrew Mahone2008-12-26
| | | | | | | | | | | | | | | | | | | | | | | | | Macros for calculating size needed for bitmap load and scaling, so that these can be compile-time constant when their inputs are. Reduce size of bayer dither by chopping all but first row of dither matrix, and replacing 2D lookup with 1D lookup and small calculation. Move some functions not related to actual bmp file loading out of bmp.c. A smaller brightness() for mono targets, and a higher-quality one for greyscale targets, both replacing the division by 10 with a shift. Port of the linear and area scalers to greyscale targets, this costs some binsize but produces better output even when dithered to 2bpp. Move duplicated row output code from inside vertical scalers to a separate row output function. Move some multiplies out of the line scaler, for a small speedup and code size reduction, as well as a small improvement in accuracy for the upscaling case. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19592 a1c6a512-1295-4272-9138-f99709370657
* Update the API version too.Michael Giacomelli2008-12-25
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19589 a1c6a512-1295-4272-9138-f99709370657
* Use cookies for thread identification instead of pointers directly which ↵Michael Sevakis2008-12-10
| | | | | | gives a buffer against wrongly identifying a thread when the slot is recycled (which has been nagging me for awhile). A slot gets 255 uses before it repeats. Everything gets incompatible so a full update is required. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19377 a1c6a512-1295-4272-9138-f99709370657
* Cleaned up codepage handling, by Yoshihisa Uchida. (FS#9349)Björn Stenberg2008-12-04
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19339 a1c6a512-1295-4272-9138-f99709370657
* Straighten out some powermanagement stuff. Give target complete control over ↵Michael Sevakis2008-12-03
| | | | | | how power inputs are sensed. Clean SIMULATOR stuff out of target files. Get rid of USB charging option on targets that don't support it or don't implement it yet. Menu string remains to avoid language incompatibility but should be removed on next cleanup for targets not using it (notice in english.lang). global_settings becomes incompatible for some builds and so plugin API version is incremented. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19315 a1c6a512-1295-4272-9138-f99709370657
* Apply FS#9500. This adds a storage_*() abstraction to replace ata_*(). To do ↵Frank Gevaerts2008-11-01
| | | | | | | | | 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
* Make lcd_set_enable_hook() conditional on HAVE_LCD_ENABLE and HAVE_LCD_COLORRafaël Carré2008-10-31
| | | | | | | | | | | This prepares for the Clip which will define HAVE_LCD_ENABLE but won't need the hook since the internal LCD framebuffer is updated regardless if the display is on or off. firmware/drivers/lcd-16bit.c has not been modified since HAVE_LCD_COLOR is obviously defined here git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18951 a1c6a512-1295-4272-9138-f99709370657
* Revert r18947, and add a comment why the backlight functions are wanted on ↵Jens Arnold2008-10-31
| | | | | | all targets. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18949 a1c6a512-1295-4272-9138-f99709370657
* Bump plugin API version as needed.Magnus Holmgren2008-10-26
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18890 a1c6a512-1295-4272-9138-f99709370657
* Add a simple plugin (apps/settings_dumper.rock) which dumps the valid values ↵Jonathan Gordon2008-10-26
| | | | | | of all the config settings to /settings_dumper.txt. If you notice any settings its not dumping please let me know. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18882 a1c6a512-1295-4272-9138-f99709370657
* Remove the event object in the kernel since it's rather extraneous at the ↵Michael Sevakis2008-10-23
| | | | | | moment. This makes the codecs and the plugins incompatible, so update fully. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18867 a1c6a512-1295-4272-9138-f99709370657
* Split id3.c/h into metadata.c/h and metadata/mp3.c. Updated all references. ↵Björn Stenberg2008-10-15
| | | | | | Moved mp3data.c/h from firmware to apps. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18814 a1c6a512-1295-4272-9138-f99709370657
* Use the correct #ifdefs for the added kernel objects.Jonathan Gordon2008-09-23
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18575 a1c6a512-1295-4272-9138-f99709370657
* Add player name and rockbox version to the battery_bench outputFrank Gevaerts2008-09-22
| | | | | | | This need appsversion in plugin_api git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18569 a1c6a512-1295-4272-9138-f99709370657
* Threading functions aren't all available on HWCODEC, so don't try to build ↵Michael Giacomelli2008-09-20
| | | | | | them on it. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18560 a1c6a512-1295-4272-9138-f99709370657
* Fix test_codec on multiprocessor codecs (MP3, SPC).Michael Giacomelli2008-09-20
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18558 a1c6a512-1295-4272-9138-f99709370657
* Addendum to r18441: increase the plugin api version number as changing the ↵Peter D'Hoye2008-09-08
| | | | | | screens struct broke compatibility git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18455 a1c6a512-1295-4272-9138-f99709370657
* Commit FS#9308: differentiate between TOUCHPAD & TOUCHSCREENMaurus Cuelenaere2008-08-23
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18338 a1c6a512-1295-4272-9138-f99709370657
* FS#9281 Rename of splash functions.Nils Wallménius2008-08-15
| | | | | | | | | | | | | | | | | | | | * Remove gui_splash() * Rename gui_syncsplash() to splashf() and remove its voice capabilities. * Rename the internal splash() to splash_internal() and introduce an externally visible splash() that handles simple splashing without printf functionality e.g. splash(HZ, ID2P(LANG_FOO)); or splash(HZ, "foo"); if a LANG_* id is passed it will be voiced. * Adjust all places that called gui_syncsplash() to use the correct variant from above. * Export both new functions to plugins and adjust places calling rb->splash() to use the correct variant so that we now have naming consistency between the core and plugins. * Fix one latent bug that would cause my sim to crash with the above changes and correct P2STR and P2ID macros, thanks to pondlife. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18282 a1c6a512-1295-4272-9138-f99709370657
* Apply FS#9155 (Simplified battery bench). This is a simplification/rework of ↵Bertrik Sikken2008-08-14
| | | | | | the current battery bench code. Battery measurements are now done simply once a minute (no more dependency on HDD specific timeouts) and are flushed to disk by using the ata_idle callback instead of polling ata_disk_is_active (this call is removed from the plugin API now) to make the plugin as unobtrusive as possible. This battery bench plugin also works for flash-based targets like sansa e200. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18281 a1c6a512-1295-4272-9138-f99709370657
* plugin.h implements memcpy (etc) through MEM_FUNCTION_WRAPPERS so it should ↵Bertrik Sikken2008-08-12
| | | | | | also include the proper header file for it git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18260 a1c6a512-1295-4272-9138-f99709370657
* Update lcd-as-memframe.S to only rotate YUV data for portrait LCDs (and ↵Rob Purchase2008-07-15
| | | | | | remove the D2's temporary C implementation). Enable MpegPlayer dithering option for D2. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18055 a1c6a512-1295-4272-9138-f99709370657
* Rename and rework the "Study Mode" menu into the "Skip Length" setting. ↵Thom Johansen2008-07-14
| | | | | | Update manual. Bump plugin API thanks to having changed global_settings. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18041 a1c6a512-1295-4272-9138-f99709370657
* Keybox, encrypted password storage. Manual page comming soonNils Wallménius2008-07-07
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17979 a1c6a512-1295-4272-9138-f99709370657
* Implement FS#8947 - Add a stub in the simulator for ata_disk_is_active. This ↵Bertrik Sikken2008-07-03
| | | | | | make it possible to clean up some #ifdef SIMULATOR macros. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17927 a1c6a512-1295-4272-9138-f99709370657
* Updated our source code header to explicitly mention that we are GPL v2 orDaniel Stenberg2008-06-28
| | | | | | | | | 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
* pictureflow update:Jonathan Gordon2008-06-24
| | | | | | | | | fix FS#8347 and FS#8425 - track order is incorrrect also: center the track list in the screen, and show the track number if its available git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17781 a1c6a512-1295-4272-9138-f99709370657
* FS#9051 - remove LCD margins... use viewports if you need them...Jonathan Gordon2008-06-23
| | | | | | | | | | | NOTE to WPS people.... %m has been removed, but (i think) because of the other %m tags it wont fail if you try loading a wps with %m|..|, it will just be ignored. Also note that if the statusbar is enabled the default viewport is 8 pixels shorter than when its not, i.e (0,0) is really (0,8) if the statusbar is shown... I dont think this will be a major issue because almost no WPS show the bar and use bitmaps... text only WPS shouldnt be affected. Please report problem screens in http://forums.rockbox.org/index.php?topic=17358.0 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17763 a1c6a512-1295-4272-9138-f99709370657
* Targets with HAVE_LCD_ENABLE: Provide a means to receive notifications when ↵Michael Sevakis2008-05-28
| | | | | | the lcd is enabled and the image is refreshed so overlayed drawing can also be refreshed. Chiefly mpegplayer needs this so it can redraw the YUV data after the backlight is turned on while paused or when using 'Set Start Time'. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17640 a1c6a512-1295-4272-9138-f99709370657
* Fix FS#9010 warning in checkwps when building on an amd64 machineNils Wallménius2008-05-19
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17582 a1c6a512-1295-4272-9138-f99709370657
* FS#8637 - new UI for disktidy.Jonathan Gordon2008-05-18
| | | | | | | | | | | | | | | | | | | Usage changes: - disktidy.config is loaded with a list of file/directory names (included in the .zip) - disktidy_custom.config is then loaded which is the same list but marks the files/dirs to be deleted. Also used to add custom files - the default config is to not remove any files so the first time you run it you need to go into the "files to clean" option and select the files to remove. they will be then saved for next time. The "Files To Clean" screen: use the usual select option to toggle an item (if it has the cursor icon it will be removed) selecting < ALL > will remove all, < NONE > will deselect all. selecting a < > group will toggle all items in that group to exit that screen use the standard cancel action (usually left arrow) Directories are marked with a trailing / and * can be used at the end of the name (e.g .Trash-*/) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17565 a1c6a512-1295-4272-9138-f99709370657
* woopsiesJonathan Gordon2008-05-15
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17522 a1c6a512-1295-4272-9138-f99709370657
* actually bump the API versionJonathan Gordon2008-05-15
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17521 a1c6a512-1295-4272-9138-f99709370657
* const raid in option_selectJonathan Gordon2008-05-15
| | | | | | | | add table settings and fix int settings with negative step in option_select_next_val bump plugin API and sort newer functions git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17520 a1c6a512-1295-4272-9138-f99709370657
* Plugin parameters should be const.Steve Bavin2008-05-13
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17492 a1c6a512-1295-4272-9138-f99709370657
* Bump the plugin API version when adding stuff....Peter D'Hoye2008-05-08
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17427 a1c6a512-1295-4272-9138-f99709370657
* Lamp plugin: accept the reduced patch of FS #8934 by Alexander PapstPeter D'Hoye2008-05-08
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17425 a1c6a512-1295-4272-9138-f99709370657
* Simple test_touchpad plugin for D2 and m:robe500 (not built by default).Rob Purchase2008-05-05
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17392 a1c6a512-1295-4272-9138-f99709370657
* Convert the whole codebase to UTF-8, except docs/COMMITTERS and ↵Nicolas Pennequin2008-05-05
| | | | | | tools/creative.c, which need checking. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17369 a1c6a512-1295-4272-9138-f99709370657
* Fixed prototype of i2c_write for plugins and for i2c-telechips (fix red/yellow).Bertrik Sikken2008-04-28
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17277 a1c6a512-1295-4272-9138-f99709370657
* Flashlight plugin: support inverted LCD (somebody with a target please ↵Peter D'Hoye2008-04-24
| | | | | | test), replace the ugly floats with a much simpler color set. For now white and red are defined. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17230 a1c6a512-1295-4272-9138-f99709370657
* Accept FS #8285 - "Flashlight" plugin by Vuong Minh Hiep, Thomas Martitz and ↵Peter D'Hoye2008-04-23
| | | | | | Alexander Papst git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17226 a1c6a512-1295-4272-9138-f99709370657