summaryrefslogtreecommitdiffstats
path: root/apps/plugins/searchengine
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
parent3ba5a0b24a72b8b694be5ae2ef224aef18136dd1 (diff)
downloadrockbox-cc6f37b8d8aeaeeacdac0babdae1abeee846d0d1.tar.gz
rockbox-cc6f37b8d8aeaeeacdac0babdae1abeee846d0d1.zip
"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')
-rw-r--r--apps/plugins/searchengine/dbinterface.c8
-rw-r--r--apps/plugins/searchengine/dbinterface.h4
2 files changed, 6 insertions, 6 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()) {
diff --git a/apps/plugins/searchengine/dbinterface.h b/apps/plugins/searchengine/dbinterface.h
index e762297d8f..f4560a805a 100644
--- a/apps/plugins/searchengine/dbinterface.h
+++ b/apps/plugins/searchengine/dbinterface.h
@@ -23,7 +23,7 @@ struct dbglobals {
int currententryindex;
};
-struct entry {
+struct dbentry {
int loadedfiledata,
loadedsongdata,
loadedrundbdata,
@@ -50,7 +50,7 @@ struct entry {
short samplerate;
};
-extern struct entry *currententry;
+extern struct dbentry *currententry;
extern struct dbglobals dbglobal;
int database_init(void);