summaryrefslogtreecommitdiff
path: root/apps/misc.c (follow)
Commit message (Collapse)AuthorAge
* set mode argument for open() where O_CREAT flag is/can be set.Teruaki Kawashima2010-11-07
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28527 a1c6a512-1295-4272-9138-f99709370657
* Add support multimedia keys/buttons to the core, and adapt Rockbox on ↵Thomas Martitz2010-10-31
| | | | | | android for it (multimedia buttons are found on wired headsets and the lock screen in cyanogenmod). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28421 a1c6a512-1295-4272-9138-f99709370657
* Fix FS#11676 - audio_status() returns AUDIO_STATUS_PLAY|AUDIO_STATUS_PAUSE ↵Thomas Martitz2010-10-17
| | | | | | if paused so only resume if AUDIO_STATUS_PLAY is the only bit. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28301 a1c6a512-1295-4272-9138-f99709370657
* Oops #ifdef -> #ifNils Wallménius2010-10-17
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28296 a1c6a512-1295-4272-9138-f99709370657
* Accept FS#11606 by Michael Gentry, making ACTION_TREE_STOP stop radio too.Nils Wallménius2010-10-17
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28295 a1c6a512-1295-4272-9138-f99709370657
* Add a "early_usb" argument to gui_usb_screen_run(), and don't do skin ↵Frank Gevaerts2010-10-10
| | | | | | unloading/reloading in gui_usb_screen_run() in the early usb case. Fixes the crash part of FS#11589 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28229 a1c6a512-1295-4272-9138-f99709370657
* Ged rid of uisimulator/common/io.c for android builds.Thomas Martitz2010-09-01
| | | | | | | | | | | Use host's functions for file i/o directly (open(), close() ,etc.), not the sim_* variants. Some dir functions need to be wrapped still because we need to cache the parents dir's path (host's dirent doesn't let us know). For the same reason (incompatibility) with host's dirent) detach some members from Rockbox' dirent struct and put it into an extra one, the values can be retrieved via the new dir_get_info(). Get rid of the sim_ prefix for sleep as well and change the signature to unix sleep(). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27968 a1c6a512-1295-4272-9138-f99709370657
* output_dyn_value() : don't use strlen() to check string emptinessRafaël Carré2010-08-28
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27933 a1c6a512-1295-4272-9138-f99709370657
* try againJonathan Gordon2010-08-10
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27770 a1c6a512-1295-4272-9138-f99709370657
* fid red/yellow... does database really need to compile all of misc.c?Jonathan Gordon2010-08-10
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27769 a1c6a512-1295-4272-9138-f99709370657
* 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
* Android port: handle incoming calls.Thomas Martitz2010-08-07
| | | | | | Stop explicitely if a call comes in, and resume playback (if it was playing before the call) upon hang up. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27746 a1c6a512-1295-4272-9138-f99709370657
* make grey targets reject viewport colours if theyare more than one letter ↵Jonathan Gordon2010-08-02
| | | | | | (i.e %Vb(333333) ) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27664 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
* Rockbox as an application: Replace many occurences of #ifdef SIMULATOR with ↵Thomas Martitz2010-06-21
| | | | | | | | | | | #if (CONFIG_PLATFORM & PLATFORM_HOSTED) (or equivalently). The simulator defines PLATFORM_HOSTED, as RaaA will do (RaaA will not define SIMULATOR). The new define is to (de-)select code to compile on hosted platforms generally. Should be no functional change to targets or the simulator. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27019 a1c6a512-1295-4272-9138-f99709370657
* simplify parse_list. don't search for terminating separator or parenthesis ↵Teruaki Kawashima2010-06-09
| | | | | | | | when '-' is set. this change disallows something like %V(0,0,-foo,-,-). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26721 a1c6a512-1295-4272-9138-f99709370657
* fix - not being accepted for viewport font.Jonathan Gordon2010-06-08
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26699 a1c6a512-1295-4272-9138-f99709370657
* Changeover to the new skin format. SkinBreakingChange in the wiki has the ↵Jonathan Gordon2010-06-07
| | | | | | | | | | | | | | runown of the changes. Major changes are paramerterised tags now use %tag(param,param), colours are removed from the %V() tag, %Vi gets a required (but can be -) label as its first param). utils/skinupdater/ has a program to update individual skins, and a perl script to update a whole zip. Themesite will be unusable for the time being (you should be able to upload new themes once it updates checkwps though). I obviously havnt tested every updated wps in this change so let me know if one doesnt load git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26641 a1c6a512-1295-4272-9138-f99709370657
* Generate C file / header for svn version stringRafaël Carré2010-05-27
| | | | | | | | | | | | | | | | | | | | | | | | It's now easier to force rebuild of files depending on the svn revision version.c/version.h are generated once with new tools/genversion.sh Changes in the VCS are still not auto detected, so you'll have to remove builddir/version.* if you want to change the string in your binaries APPSVERSION is now called RBVERSION and is defined in the generated header instead of being defined by the Makefiles appsversion is now called rbversion (the plugin api number didn't change since old modules are still binary compatible) Change some bootloaders to use knwon-at-buildtime RBVERSION instead of "%s" + rbversion You'll need to run make clean to regenerate dependencies after the removal of apps/version.h To build binaries with a different version string, hand-edit tools/version.sh or tools/genversion.sh (which calls the former) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26320 a1c6a512-1295-4272-9138-f99709370657
* Since the sdl to target tree move, the main thread cannot be removed anymore,Thomas Martitz2010-05-26
| | | | | | | | | since it's now the default thread which is implicitely created by starting the sim. This caused a segfault that r26283 tried to fix. Revert r26283 and protect the main thread from being removed. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26315 a1c6a512-1295-4272-9138-f99709370657
* Revert r26055 since it breaks certain Archos targets.Michael Sevakis2010-05-15
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26067 a1c6a512-1295-4272-9138-f99709370657
* If HAVE_POWEROFF_WHILE_CHARGING is not defined and the charging ↵Michael Sevakis2010-05-15
| | | | | | configuration specifies CHARGING_MONITOR or greater, allow poweroff while plugged but not actually charging the battery. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26055 a1c6a512-1295-4272-9138-f99709370657
* Move c/h files implementing/defining standard library stuff into a new libc ↵Thomas Martitz2010-05-06
| | | | | | | | directory, also standard'ify some parts of the code base (almost entirely #include fixes). This is to a) to cleanup firmware/common and firmware/include a bit, but also b) for Rockbox as an application which should use the host system's c library and headers, separating makes it easy to exclude our files from the build. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25850 a1c6a512-1295-4272-9138-f99709370657
* Update a comment to reflect the previous commit.Thomas Martitz2010-05-03
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25794 a1c6a512-1295-4272-9138-f99709370657
* Move read_line() further down so that it can be used in checkwps and remove ↵Thomas Martitz2010-05-03
| | | | | | checkwps' copy if it. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25793 a1c6a512-1295-4272-9138-f99709370657
* Fix "bookmark on stop: ask" when idle poweroff triggers.Torne Wuff2010-03-28
| | | | | | | Previously, the prompt would come up during poweroff, and then if the user did not respond, the shutdown timeout would be hit and a hard poweroff would happen, which is bad. Now it just assumes you don't want a bookmark. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25376 a1c6a512-1295-4272-9138-f99709370657
* Fix System/Running Time to reset the running time whenever a charger or USB ↵Michael Giacomelli2010-02-27
| | | | | | cable is inserted, not just when the cable is inserted in the running time screen. Should now make the running time actually be the amount of time rockbox has run since the battery was last charged, which is as far as I can tell the original idea behind the runtime menu. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24954 a1c6a512-1295-4272-9138-f99709370657
* Print correctly the rockbox logo for Clipv2/Clip+, not only Clipv1Rafaël Carré2010-02-22
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24852 a1c6a512-1295-4272-9138-f99709370657
* Return NULL istead of 0 in function which returns a pointerTomer Shalev2009-12-27
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24119 a1c6a512-1295-4272-9138-f99709370657
* make sure plugin reset backlight setting before exit. do code polish.Teruaki Kawashima2009-12-18
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24076 a1c6a512-1295-4272-9138-f99709370657
* Add a simple sanity check before checking for changed binary.Thomas Martitz2009-11-25
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23753 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
* mpeg.h/c cleanupJeffrey Goode2009-11-16
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23652 a1c6a512-1295-4272-9138-f99709370657
* Revert r23599 and r23600 and fix the early usb problem at the root. The the ↵Thomas Martitz2009-11-10
| | | | | | | | viewportmanager and custom statusbar was initialized too late. Now, call it earlier and remove parts of it that caused the need to call it later. Removing that is OK since it's done again on settings loading. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23603 a1c6a512-1295-4272-9138-f99709370657
* hopefully fix "early usb"Jonathan Gordon2009-11-10
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23599 a1c6a512-1295-4272-9138-f99709370657
* Fix FS#10745 - %mv not working in sbs...Jonathan Gordon2009-11-01
| | | | | | | This fix is as good as we can do, but not perfect. Because the sbs is only updated when a button is pressed it will stay in the "volume changing" state probalby longer than expected.. which isnt terrible, but useful to remember. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23455 a1c6a512-1295-4272-9138-f99709370657
* Allow the x and y pixel values of viewports to be a negative number..Jonathan Gordon2009-10-28
| | | | | | | %V|-50|0|-|..... will position that viewport 50 pixels from the right of the display at the top. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23378 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
* Fix red: Too aggressive exclusion of includesTomer Shalev2009-10-19
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23274 a1c6a512-1295-4272-9138-f99709370657
* Extract usb_screen logic out of screens.c into apps/gui/usb_screen.cTomer Shalev2009-10-19
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23273 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
* Clean up duplicate #includesBertrik Sikken2009-09-27
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22845 a1c6a512-1295-4272-9138-f99709370657
* Remove some unused #includesBertrik Sikken2009-08-06
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22183 a1c6a512-1295-4272-9138-f99709370657
* part two of the grand overall wps/skinning engine cleanup work:Jonathan Gordon2009-08-03
| | | | | | | | | | | | * rename wps_engine to skin_engine as that was agreed on * rename music_screen back to wps * clean up the skin display/update functions a bit * make skin_data_load setup the hardcoded default if a skin cant be loaded for whatever reason instead of doing it when it is first displayed ignore any gui_wps or wps_ or gwps_ nameing in skin_engine/ ... these will be renamed as this work gets finished git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22135 a1c6a512-1295-4272-9138-f99709370657
* Start of some apps/ and wps cleanup work... Move everything related to the ↵Jonathan Gordon2009-07-27
| | | | | | | | | actual drawing of the wps into apps/gui/wps_engine, things related to the actual screen are in apps/gui/music_screen.c (names are temporary unless noone comes up with anything better) No real code changes. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22062 a1c6a512-1295-4272-9138-f99709370657
* FS#10080Nils Wallménius2009-07-14
| | | | | | | | | | * Move strncpy() from core to the pluginlib * Introduce strlcpy() and use that instead in most places (use memcpy in a few) in core and some plugins * Drop strncpy() from the codec api as no codec used it * Bump codec and plugin api versions git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21863 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
* Fix shutdown splash. It is meant to be shown on an empty screen.Jens Arnold2009-05-30
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21138 a1c6a512-1295-4272-9138-f99709370657