summaryrefslogtreecommitdiff
path: root/apps/plugins/searchengine/dbinterface.c
diff options
context:
space:
mode:
authorMichiel Van Der Kolk <not.valid@email.address>2005-05-11 00:12:33 +0000
committerMichiel Van Der Kolk <not.valid@email.address>2005-05-11 00:12:33 +0000
commitf34e4ff6a42a003bcfc063896f390dcb94052cde (patch)
tree2678613f7014d9a7d86987e3dab02fdb2c211ad3 /apps/plugins/searchengine/dbinterface.c
parentf5eae08361c4b1c9d7c846c7b4b54fabf7467e31 (diff)
downloadrockbox-f34e4ff6a42a003bcfc063896f390dcb94052cde.tar.gz
rockbox-f34e4ff6a42a003bcfc063896f390dcb94052cde.zip
Autorating should work now. at least. it would. but there is no runtime data to work with (yet)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6455 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/searchengine/dbinterface.c')
-rw-r--r--apps/plugins/searchengine/dbinterface.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/plugins/searchengine/dbinterface.c b/apps/plugins/searchengine/dbinterface.c
index 7cded01642..fe3ff2dd45 100644
--- a/apps/plugins/searchengine/dbinterface.c
+++ b/apps/plugins/searchengine/dbinterface.c
@@ -33,7 +33,7 @@
33#define FILERECORD2OFFSET(_x_) (rb->tagdbheader->filestart + _x_ * FILEENTRY_SIZE) 33#define FILERECORD2OFFSET(_x_) (rb->tagdbheader->filestart + _x_ * FILEENTRY_SIZE)
34 34
35struct entry *currententry; 35struct entry *currententry;
36 36struct dbglobals dbglobal;
37static struct entry *entryarray; 37static struct entry *entryarray;
38 38
39int database_init() { 39int database_init() {
@@ -51,6 +51,9 @@ int database_init() {
51 return -1; 51 return -1;
52 } 52 }
53 } 53 }
54 dbglobal.playcountmin=0;
55 dbglobal.playcountmax=0;
56 dbglobal.gotplaycountlimits=0;
54 return 0; 57 return 0;
55} 58}
56 59
@@ -84,6 +87,7 @@ void loadentry(int filerecord) {
84 entryarray[filerecord].loadedfiledata=1; 87 entryarray[filerecord].loadedfiledata=1;
85 } 88 }
86 currententry=&entryarray[filerecord]; 89 currententry=&entryarray[filerecord];
90 dbglobal.currententryindex=filerecord;
87} 91}
88 92
89void loadsongdata() { 93void loadsongdata() {