summaryrefslogtreecommitdiff
path: root/apps/misc.h (follow)
Commit message (Collapse)AuthorAge
* Fix FS#11526 - %Vf(<hex>) was acceptable on grey remotes with colour mainJonathan Gordon2010-08-10
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27768 a1c6a512-1295-4272-9138-f99709370657
* Rockbox as an application: add get_user_file_path().Thomas Martitz2010-08-01
| | | | | | | | | | | For RaaA it evaluates user paths at runtime. For everything but codecs/plugins it will give the path under $HOME/.config/rockbox.org if write access is needed or if the file/folder in question exists there (otherwise it gives /usr/local/share/rockbox). This allows for installing themes under $HOME as well as having config.cfg and other important files there while installing the application (and default themes) under /usr/local. On the DAPs it's a no-op, returing /.rockbox directly. Not converted to use get_user_file_path() are plugins themselves, because RaaA doesn't build plugins yet. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27656 a1c6a512-1295-4272-9138-f99709370657
* FS#11470 - new skin code, finally svn uses the new parser from the theme ↵Jonathan Gordon2010-07-29
| | | | | | editor. This means that a skin that passes the editor WILL pass svn and checkwps (unless the target runs out of skin buffer or something. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27613 a1c6a512-1295-4272-9138-f99709370657
* Add HAVE_HOTSWAP_STORAGE_AS_MAIN to detect changed binary after re-inserting ↵Thomas Martitz2009-11-25
| | | | | | the storage on targets that run rockbox from hotswappable storage. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23752 a1c6a512-1295-4272-9138-f99709370657
* FS#10704 - Make a configuration option to disable USB HID Tomer Shalev2009-10-23
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23322 a1c6a512-1295-4272-9138-f99709370657
* Code cleanup in dsp.c and misc.c, some commentsJeffrey Goode2009-10-22
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23314 a1c6a512-1295-4272-9138-f99709370657
* Const correctness for output_dyn_value and unify some identical constantsNils Wallménius2009-10-17
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23227 a1c6a512-1295-4272-9138-f99709370657
* Convert a number of places in core and plugins to use the BIT_N() macro ↵Jens Arnold2009-06-07
| | | | | | instead of 1<<n. Speeds up things on SH1, and also reduces core binsize. Most notable speedups: 1 bit lcd driver: drawpixel +20%, drawline + 27%, hline +5%; jpeg viewer: +8% for 1/8 scaling. Other targets are unaffected. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21205 a1c6a512-1295-4272-9138-f99709370657
* replace USB_IPODSTYLE by USB_HANDLED_BY_OF as that's what it actually means. ↵Frank Gevaerts2009-02-21
| | | | | | Fix various configs to use it correctly. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20078 a1c6a512-1295-4272-9138-f99709370657
* Move screendump from apps to firmware, solving two nasty firmware-to-apps ↵Jens Arnold2009-02-10
| | | | | | calls. This required to move the filename creation functions as well. * Fix bug in the BMP header of Clip screendumps. * Add remote screendump for targets with an LCD remote. * Simplify some ifdefs and rename a macro in the sim. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19967 a1c6a512-1295-4272-9138-f99709370657
* Put the display colours for monochrome and greyscale targets into the target ↵Jens Arnold2009-02-09
| | | | | | config files, and use them both for the simulator UI and screendumps. The Clip now shows the split display properly in screendumps and simulator. A side effect is that screendumps of ordinary monochrome targets are now 4-bit BMP files (saves an alternate code path, and might be more compatible with some gfx programs). * Simplify the simulation of split display, and also simplify greylib simulation. The simulator now always calculates 129 shades (2*128 for a Clip sim), and just uses 2 (or 4) of those for native display simulation. * Centralised the simulator LCD dimension definition. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19950 a1c6a512-1295-4272-9138-f99709370657
* Small code reuse improvementNils Wallménius2009-02-08
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19943 a1c6a512-1295-4272-9138-f99709370657
* Fix yellowMaurus Cuelenaere2009-01-29
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19881 a1c6a512-1295-4272-9138-f99709370657
* Get checkwps compiling again: Move the definitions of BOM and BOM_SIZE to ↵Dave Chapman2008-08-28
| | | | | | misc.c (they are not used outside misc.c, so don't need to be in the .h), plus always include misc.h in misc.c (not needed to fix checkwps, but good practice), and add unistd.h when __PCTOOL_ is defined. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18358 a1c6a512-1295-4272-9138-f99709370657
* Unify opening of utf-8 files (FS#6203). This also adds ignoring the BOM in ↵Dominik Riebeling2008-08-02
| | | | | | several places it has been missing (as FS#6071). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18185 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
* fix red and pointer screwupJonathan Gordon2008-06-07
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17701 a1c6a512-1295-4272-9138-f99709370657
* oops, missed to failed hunks in the patchJonathan Gordon2008-06-07
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17699 a1c6a512-1295-4272-9138-f99709370657
* Accept FS#9075 and rename valid_vals to set_valsJonathan Gordon2008-06-07
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17698 a1c6a512-1295-4272-9138-f99709370657
* make %V a little simpler. only the x and y values have to be specified now ↵Jonathan Gordon2008-06-05
| | | | | | | | | | | | | | | (i.e %V|0|0|||||| ) default values are as follows: width - lcd width - the x value height - lcd height - y value font - user font fg colour - the themes fg colour on 16bit targets, black on greyscale targets bg colour - the themes bg colour on 16bit targets, white on greyscale targets git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17690 a1c6a512-1295-4272-9138-f99709370657
* Introduce a small helper function that asks the user if the dynamic playlist ↵Nils Wallménius2008-05-01
| | | | | | should be erased to increase code re-use git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17295 a1c6a512-1295-4272-9138-f99709370657
* Add a general-purpose parse_list function to parse a string containing a ↵Dave Chapman2008-03-21
| | | | | | delimited list of items and adapt the parse_image_load() function in the WPS parser to use it. This function will also be used to parse the upcoming WPS %V viewport tag, but I'm committing it separately as these changes are unrelated to the viewport implementation itself. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16728 a1c6a512-1295-4272-9138-f99709370657
* Prevent possible buffer overflow when locating album art.Magnus Holmgren2008-02-06
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16231 a1c6a512-1295-4272-9138-f99709370657
* Accept FS#8469 by Bryan Childs with a few adjustments: Remove duplicate ↵Nicolas Pennequin2008-01-18
| | | | | | strip_extension() function from albumart.c. The other one is moved from tree.c to misc.c. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16103 a1c6a512-1295-4272-9138-f99709370657
* consolidate the 3 file_exists() functions into one; use the version that ↵Robert Kukla2007-11-21
| | | | | | explicitly uses dircache; give dir_exists() the same treatment for consistency git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15742 a1c6a512-1295-4272-9138-f99709370657
* Use the strrsplt function in one more placeNils Wallménius2007-11-18
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15662 a1c6a512-1295-4272-9138-f99709370657
* Fix some places for USB_NONE. Still some more complex cases left though.Jens Arnold2007-08-01
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14122 a1c6a512-1295-4272-9138-f99709370657
* Prevent initial spinup when starting first file when in a stopped state on ↵Michael Sevakis2007-06-22
| | | | | | non-RTC targets. Fix some states that are dangerous on SWCODEC and could result in data loss. Had to make plugin API incopatible since specified numbered filename creation is enabled now on all non-RTC targets with recording; increase version and sort the items that looked like they had a place to go. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13683 a1c6a512-1295-4272-9138-f99709370657
* Give color targets the ability to display each LCD line a different color ↵Brandon Low2007-06-17
| | | | | | and use this newfangled ability to provide themable colored file types. See the comments on read_color_theme_file and the sample.colors file provided for how to use this. .colors files go in themes directory for now. This separate line color function should be trivial to add to menus and wpss. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13656 a1c6a512-1295-4272-9138-f99709370657
* Move the setvol wrapper function to misc.c and use it in more places instead ↵Nils Wallménius2007-05-30
| | | | | | of doing the same checks everywhere git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13524 a1c6a512-1295-4272-9138-f99709370657
* Stop/shutdown logic rework in browsers and menus. Recorder V1: Double-Off ↵Jens Arnold2007-04-09
| | | | | | shutdown is now possible from menus and sub-browsers as well. Player, other targets which are always powered during charging: Attempted shutdown from menu with charger plugged now displays the charging splash. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13079 a1c6a512-1295-4272-9138-f99709370657
* Don't check for bootfile changes on devices that use OF for USB (and thus ↵Peter D'Hoye2007-03-30
| | | | | | reboot) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12974 a1c6a512-1295-4272-9138-f99709370657
* Check if a new version got installed after usb disconnect and ask if user ↵Peter D'Hoye2007-03-30
| | | | | | wants to reboot. Causes disk spinup before showing the usb logo. Also fixes do_menu() not returning to root_menu after usb disconnect. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12972 a1c6a512-1295-4272-9138-f99709370657
* Set CONFIG_RTC to 0 for non-RTC targets, and check with #if to profit from ↵Jens Arnold2007-03-16
| | | | | | -Wundef. No code change. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12811 a1c6a512-1295-4272-9138-f99709370657
* A few more bookmark code tweaks. Also improves how the bookmark selection ↵Magnus Holmgren2007-02-17
| | | | | | screen is displayed on Archos players. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12350 a1c6a512-1295-4272-9138-f99709370657
* Make the updated %rg tag match playback behaviour (fall back to track gain ↵Magnus Holmgren2006-11-15
| | | | | | if album gain requested but not available). Share the mode decision logic with playback code and simplify the %rg tag handling. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11532 a1c6a512-1295-4272-9138-f99709370657
* Big Patch adds primarily: Samplerate and format selection to recording for ↵Michael Sevakis2006-11-06
| | | | | | SWCODEC. Supprort for samplerates changing in playback (just goes with the recording part inseparably). Samplerates to all encoders. Encoders can be configured individually on a menu specific to the encoder in the recording menu. File creation is delayed until flush time to reduce spinups when splitting. Misc: statusbar icons for numbers are individual digits to display any number. Audio buffer was rearranged to maximize memory available to recording and properly reinitialized when trashed. ColdFire PCM stuff moved to target tree to avoid a complicated mess when adding samplerate switching. Some needed API changes and to neaten up growing gap between hardware and software codecs. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11452 a1c6a512-1295-4272-9138-f99709370657
* Implement fast_readline as a function and use it for tagtree also.Miika Pekkarinen2006-10-21
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11301 a1c6a512-1295-4272-9138-f99709370657
* Replace references to HAVE_RTC with CONFIG_RTC and remove the HAVE_RTC ↵Dave Chapman2005-12-04
| | | | | | defines from config-*.h git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8147 a1c6a512-1295-4272-9138-f99709370657
* Core: A graphics framework can now register a hook function to extend the ↵Jens Arnold2005-10-01
| | | | | | core screendump routine. * Grayscale library: (1) Changed the screendump routine into a hook, and implemented it for H1x0. (2) The planar pixel setting routines now use one register less. Fixes build problem with developer builds (frame pointers enabled) on coldfire. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7574 a1c6a512-1295-4272-9138-f99709370657
* Patch #1272052 by Henrik Backe - Move credits to a pluginLinus Nielsen Feltzing2005-09-02
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7450 a1c6a512-1295-4272-9138-f99709370657
* Added universal functions for creation of numbered filenames and date+time ↵Jens Arnold2005-09-02
| | | | | | filenames (units with RTC only). Some size optimisations within code using these new functions. Everything should behave as before, except config saving will always find the highest file number + 1 even if the sequence is non-contiguous. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7449 a1c6a512-1295-4272-9138-f99709370657
* The shutdown message is now displayed before saving the database, giving ↵Linus Nielsen Feltzing2005-08-18
| | | | | | better user feedback when whutting off the player git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7351 a1c6a512-1295-4272-9138-f99709370657
* Moved the car adapter mode handling to apps/, now every thread gets ↵Linus Nielsen Feltzing2005-04-06
| | | | | | SYS_CHARGER_CONNECTED and SYS_CHARGER_DISCONNECTED events git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6255 a1c6a512-1295-4272-9138-f99709370657
* oops again, incomplete long policyJean-Philippe Bernardy2005-02-07
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5843 a1c6a512-1295-4272-9138-f99709370657
* New function for formatting large-range values for output, both printed and ↵Jens Arnold2005-01-31
| | | | | | voiced. This replaces num2max5(). It is currently used for the total/free space display in the info menu, for the recorded number of bytes (recorders) and the MMC debug info (Ondios). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5721 a1c6a512-1295-4272-9138-f99709370657
* Extended default_event_handler() that calls a callback function prior to ↵Jens Arnold2004-10-12
| | | | | | actually handling the event. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5263 a1c6a512-1295-4272-9138-f99709370657
* Cosmetic changesLinus Nielsen Feltzing2004-07-26
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4954 a1c6a512-1295-4272-9138-f99709370657
* First step in revamping the USB event handling, paving the way for the ↵Linus Nielsen Feltzing2004-07-26
| | | | | | upcoming SYS_POWER_OFF event git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4951 a1c6a512-1295-4272-9138-f99709370657
* New feature: clean shutdown if you press OFF twice in the file browser, or ↵Linus Nielsen Feltzing2004-07-24
| | | | | | | | | select "Shut off" in the main menu. Players only have the menu option, due to lack of keys. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4940 a1c6a512-1295-4272-9138-f99709370657