summaryrefslogtreecommitdiff
path: root/apps/plugins/searchengine/dbinterface.c
diff options
context:
space:
mode:
authorHristo Kovachev <bger@rockbox.org>2006-02-18 20:51:34 +0000
committerHristo Kovachev <bger@rockbox.org>2006-02-18 20:51:34 +0000
commitcc6f37b8d8aeaeeacdac0babdae1abeee846d0d1 (patch)
tree60b2168c162e8f54866eef6d986e95cdcbe01b4d /apps/plugins/searchengine/dbinterface.c
parent3ba5a0b24a72b8b694be5ae2ef224aef18136dd1 (diff)
"Next/Previous jpeg from within the JPEG viewer" addition by Alexander Spyridakis, modified a bit by me
Also tries to use the plugin buffer instead of the audio buffer on the platforms with more than 130kb plugin buffer size (thus not stopping the music playback). If the free buffer from the plugin buffer is not enough, asks for stopping playback. Needs a little more work, but seems stable as it is. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8728 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/searchengine/dbinterface.c')
-rw-r--r--apps/plugins/searchengine/dbinterface.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/plugins/searchengine/dbinterface.c b/apps/plugins/searchengine/dbinterface.c
index e10510604d..c3f1c7bfef 100644
--- a/apps/plugins/searchengine/dbinterface.c
+++ b/apps/plugins/searchengine/dbinterface.c
@@ -33,18 +33,18 @@
#define FILERECORD2OFFSET(_x_) (rb->tagdbheader->filestart + _x_ * FILEENTRY_SIZE)
-struct entry *currententry;
+struct dbentry *currententry;
struct dbglobals dbglobal;
-static struct entry *entryarray;
+static struct dbentry *entryarray;
int database_init() {
char *p;
unsigned int i;
// allocate room for all entries
- entryarray=(struct entry *)my_malloc(sizeof(struct entry)*rb->tagdbheader->filecount);
+ entryarray=(struct dbentry *)my_malloc(sizeof(struct dbentry)*rb->tagdbheader->filecount);
p=(char *)entryarray;
// zero all entries.
- for(i=0;i<sizeof(struct entry)*rb->tagdbheader->filecount;i++)
+ for(i=0;i<sizeof(struct dbentry)*rb->tagdbheader->filecount;i++)
*(p++)=0;
if(!*rb->tagdb_initialized) {
if(!rb->tagdb_init()) {