1
0
Fork 0
forked from len0rd/rockbox

First runtime database support, self repairing, only playcount works for now,

which is still rather crude; playcount gets increased even if the song started playback but was skipped... track rating should be trivial to add, autorating also works since its based on playcount.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6969 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Michiel Van Der Kolk 2005-07-01 17:29:44 +00:00
parent 4ec80704d5
commit c735ed7914
11 changed files with 242 additions and 45 deletions

View file

@ -87,7 +87,7 @@
#endif
/* increase this every time the api struct changes */
#define PLUGIN_API_VERSION 42
#define PLUGIN_API_VERSION 44
/* update this to latest version if a change to the api struct breaks
backwards compatibility (and please take the opportunity to sort in any
@ -399,6 +399,9 @@ struct plugin_api {
#ifdef ROCKBOX_HAS_LOGF
void (*logf)(const char *fmt, ...);
#endif
struct rundb_header *rundbheader;
int *rundb_fd;
int *rundb_initialized;
int (*strncmp)(const char *, const char *, size_t);
};