summaryrefslogtreecommitdiff
path: root/apps/tagcache.h
AgeCommit message (Collapse)Author
2008-06-28Updated our source code header to explicitly mention that we are GPL v2 orDaniel Stenberg
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-05-03Renamed build_tagcache to tagcache_build to make it consistent with the ↵Bertrik Sikken
function naming of the other functions in tagcache.c git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17331 a1c6a512-1295-4272-9138-f99709370657
2008-05-03Made source files #include the header file that they implement to make sure ↵Bertrik Sikken
they are in sync. Made some local functions static. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17312 a1c6a512-1295-4272-9138-f99709370657
2008-03-25Tiny fix of spelling in comment.Steve Bavin
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16800 a1c6a512-1295-4272-9138-f99709370657
2008-02-17Fixed red, forgot to commit header changes.Miika Pekkarinen
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16332 a1c6a512-1295-4272-9138-f99709370657
2007-12-18Preserve song statistics when moving files or altering metadata. Conditions ↵Miika Pekkarinen
required to apply: song length must not change AND either filenames (with path) must match or two of the following tags matches: artist, album, title. IMPORTANT: Currently dircache enabled and DB loaded to RAM is required for reliable operation of this feature. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15955 a1c6a512-1295-4272-9138-f99709370657
2007-12-16Added file modify time field to the DB. Now metadata changes should be ↵Miika Pekkarinen
detected with database autoupdate enabled. Runtime statistics are not yet preserved. Preserving statistics over moving of files and altering metadata is going to be implemented next. IMPORTANT: Export database before upgrading. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15946 a1c6a512-1295-4272-9138-f99709370657
2007-10-30some improvements to FS#8008 - see tracker entry for detailsRobert Kukla
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15371 a1c6a512-1295-4272-9138-f99709370657
2007-10-29rework my previous commit (FS#8008) to be able to work for any of the ↵Jonathan Gordon
strings in the id3 info struct, new ones need to be added to tagtree.c and tagnavi.config *currently available tags are* #title# #artist# #album# #genre# #composer# #albumartist# and #directory# git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15358 a1c6a512-1295-4272-9138-f99709370657
2007-10-29Accept FS#8008 - allows the current artist or album to be used in databse ↵Jonathan Gordon
searches (use the #artist# or #album# keywords in tagnavi.config) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15354 a1c6a512-1295-4272-9138-f99709370657
2007-10-21Fixed debug menu crashing. Show last file processed by tagcache engine in ↵Miika Pekkarinen
debug menu. Enabled autoupdating of deleted files for flash storage devices. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15244 a1c6a512-1295-4272-9138-f99709370657
2007-08-08Add support for grouping tags. From FS#7362.Dan Everton
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14242 a1c6a512-1295-4272-9138-f99709370657
2007-08-03Add support for parsing the disc number tag from metadata and use of it in ↵Dan Everton
the database. Patch originally from FS#4961 with some minor tweaks by me. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14154 a1c6a512-1295-4272-9138-f99709370657
2007-07-21Queue song statistical data to the tagcache system and update entirely in ↵Miika Pekkarinen
background. Fixes ratings disappearing or not saving in the DB at all. Fixes also UI delay when stopping playback and new statistics are committed to DB. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13955 a1c6a512-1295-4272-9138-f99709370657
2007-04-12Now track total playtime should be accessible as well by using Pm and Ps ↵Miika Pekkarinen
virtual tags. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13133 a1c6a512-1295-4272-9138-f99709370657
2007-04-12Added virtual tags in database to break track length to minutes and seconds.Miika Pekkarinen
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13132 a1c6a512-1295-4272-9138-f99709370657
2007-03-26Rating support for database and WPS (based on FS# 6301). A value between 0 ↵Robert Kukla
and 10 can be assigned to the currently playing track using the WPS context menu. This value is displayed in the WPS using the %rr tag (replacing autoscore) and can be used as "rating" in tagnavi.config (examples provided). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12922 a1c6a512-1295-4272-9138-f99709370657
2007-03-08Really don't try to initialise while the database status is unknownSteve Bavin
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12684 a1c6a512-1295-4272-9138-f99709370657
2007-03-07Lead user through database initialisationSteve Bavin
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12678 a1c6a512-1295-4272-9138-f99709370657
2007-03-01Introducing the root menu!Jonathan Gordon
Blind users: get a new voice file as there are lots of lang changes and new strings. FS#6630 or RootMenu on the wiki for more info. complaints to /dev/null :) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12528 a1c6a512-1295-4272-9138-f99709370657
2007-02-25Cleaned up code a bit, fixed possible bug during committing numeric indices ↵Miika Pekkarinen
and made code more fault tolerant. Added a new numeric tag making it possible to list recently added tracks. Export your DB. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12482 a1c6a512-1295-4272-9138-f99709370657
2007-02-15Shave a few bytes off the binary size, especially on hwcodec targetsLinus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12323 a1c6a512-1295-4272-9138-f99709370657
2007-02-13Make database endianess independent.Miika Pekkarinen
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12297 a1c6a512-1295-4272-9138-f99709370657
2007-02-10FS#6638 - Album artist and comment patch for WPS and tagcache. ExportMiika Pekkarinen
your database before updating because initialization is needed. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12255 a1c6a512-1295-4272-9138-f99709370657
2006-11-25Tag cache renamed to the less cryptic "Database" throughout the UI and ↵Jonas Häggqvist
manual. No functional changes. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11588 a1c6a512-1295-4272-9138-f99709370657
2006-11-19Check if file has already been removed from DB when manually invokingMiika Pekkarinen
reverse scan. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11556 a1c6a512-1295-4272-9138-f99709370657
2006-11-10Support building tagcache db natively on PC using the core of theMiika Pekkarinen
Rockbox tagcache database engine. Only host endian support at the moment and no command line parameters. Mainly for developers for debugging at the moment. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11497 a1c6a512-1295-4272-9138-f99709370657
2006-10-25Don't fail with very long lines.Miika Pekkarinen
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11342 a1c6a512-1295-4272-9138-f99709370657
2006-10-25ifdef all the tagcache code, allows rombox to be compiled again, Thanks ↵Jonathan Gordon
Austin Appel git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11338 a1c6a512-1295-4272-9138-f99709370657
2006-10-24Allow all tag type in formatting string. Included example withMiika Pekkarinen
tagnavi.config. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11324 a1c6a512-1295-4272-9138-f99709370657
2006-10-15(1) New syntax to support conditional formatting.Miika Pekkarinen
(2) Reduced tagnavi memory consumption. (3) There was a bug that splash screen counter was counting down when inserting tracks next. But in fact that might be preferred, so always count down after successful tagcache query. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11223 a1c6a512-1295-4272-9138-f99709370657
2006-10-10FS#6155: "oneof" oeprator limited to a list of 3 or less values.Miika Pekkarinen
Increased clause string length to 128. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11166 a1c6a512-1295-4272-9138-f99709370657
2006-10-09FS#6137: add "oneof" operator to tagnavi.conf syntax.Miika Pekkarinen
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11157 a1c6a512-1295-4272-9138-f99709370657
2006-10-04Fixed find_index returning incorrect entry unless entries are found.Miika Pekkarinen
Commit all numeric tags at once and set a flag if tracknumber has been guessed. Cleaned up temporary file creation. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11122 a1c6a512-1295-4272-9138-f99709370657
2006-09-23Properly shutdown audio playback early and flush system, including notMiika Pekkarinen
hanging tagcache. Fixed also tagcache line buffer running out when importing a changelog with very long lines. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11030 a1c6a512-1295-4272-9138-f99709370657
2006-08-30Fixed tagcache returning incorrect entries.Miika Pekkarinen
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10810 a1c6a512-1295-4272-9138-f99709370657
2006-08-25Tagcache: Don't show duplicate entries and automatically inheritMiika Pekkarinen
clauses for correct search results. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10746 a1c6a512-1295-4272-9138-f99709370657
2006-08-13FS#5805 NOT operator for tagnavi.config by Jochen Kemnade.Miika Pekkarinen
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10558 a1c6a512-1295-4272-9138-f99709370657
2006-08-09Unload tagcache from ram when entering USB mode.Miika Pekkarinen
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10496 a1c6a512-1295-4272-9138-f99709370657
2006-08-05Initial support and use for EEPROM memory on H120 & H140 players whenMiika Pekkarinen
Rockbox firmware has been flashed over original firmware (not yet possible to do). Dircache & tagcache serialization for fast bootup without the need to scan disk when Rockbox is in flash. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10464 a1c6a512-1295-4272-9138-f99709370657
2006-08-02Tagcache: Fixed runtime stats not being gathered when tagcache is keptMiika Pekkarinen
on disk. Initial attempt to make tagcache thread safe. Replaced a few direct buffer allocations with buffer_alloc from tagcache and dircache where possible. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10415 a1c6a512-1295-4272-9138-f99709370657
2006-07-22Removed the 10000 files static commmit-time limit from tagcache.Miika Pekkarinen
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10278 a1c6a512-1295-4272-9138-f99709370657
2006-07-20Support importing runtimedb data from ascii files.Miika Pekkarinen
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10260 a1c6a512-1295-4272-9138-f99709370657
2006-07-16Initial changelog support (only export, no import yet) and addedMiika Pekkarinen
an option to search by filename. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10219 a1c6a512-1295-4272-9138-f99709370657
2006-07-15Initial runtimedb support for tagcache. Only for developers,Miika Pekkarinen
statistical data will be lost in future until changelogs has been implemented. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10217 a1c6a512-1295-4272-9138-f99709370657
2006-07-10Tagcache update: Support removal of entries and no longer the need forMiika Pekkarinen
dircache to load tagcache in ram (however, dircache with tagcache is still strongly recommended). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10192 a1c6a512-1295-4272-9138-f99709370657
2006-04-23Much faster optimized version of tagcache commit. Added a few items toMiika Pekkarinen
the debug menu (still buggy) and fixed a problem with partial tagcache updates. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9775 a1c6a512-1295-4272-9138-f99709370657
2006-04-18Performance optimizations for tagcache commit. Still more left to be done.Miika Pekkarinen
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9721 a1c6a512-1295-4272-9138-f99709370657
2006-04-12Show progress while committing tagcache.Miika Pekkarinen
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9637 a1c6a512-1295-4272-9138-f99709370657
2006-04-10Major improvement in playlist creation speed with tagcache. Fixed alsoMiika Pekkarinen
the sorting bug. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9592 a1c6a512-1295-4272-9138-f99709370657