From cc6f37b8d8aeaeeacdac0babdae1abeee846d0d1 Mon Sep 17 00:00:00 2001 From: Hristo Kovachev Date: Sat, 18 Feb 2006 20:51:34 +0000 Subject: "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 --- apps/plugins/searchengine/dbinterface.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'apps/plugins/searchengine/dbinterface.c') diff --git a/apps/plugins/searchengine/dbinterface.c b/apps/plugins/searchengine/dbinterface.c index e105106..c3f1c7b 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;itagdbheader->filecount;i++) + for(i=0;itagdbheader->filecount;i++) *(p++)=0; if(!*rb->tagdb_initialized) { if(!rb->tagdb_init()) { -- cgit v1.1