FS#8961 - Anti-Aliased Fonts.
[kugel-rb.git] / apps / plugins / searchengine / dbinterface.h
blobe165aeff79ad7bcdb66af4b13df64b278d3f4d95
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Copyright (C) 2005 by Michiel van der Kolk
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
20 ****************************************************************************/
21 struct dbglobals {
22 int playcountmin;
23 int playcountmax;
24 int gotplaycountlimits;
25 int currententryindex;
28 struct dbentry {
29 int loadedfiledata,
30 loadedsongdata,
31 loadedrundbdata,
32 loadedalbumname,
33 loadedartistname;
34 char *filename;
35 long hash,rundbhash;
36 long songentry,rundbfe;
37 long rundbentry;
38 short year;
39 short bitrate;
40 short rating;
41 long playcount;
42 long lastplayed;
43 short voladj;
44 char *title;
45 char *genre;
46 long artistoffset;
47 long albumoffset;
48 char *artistname;
49 char *albumname;
50 long playtime;
51 short track;
52 short samplerate;
55 extern struct dbentry *currententry;
56 extern struct dbglobals dbglobal;
58 int database_init(void);
59 void loadentry(int filerecord);
60 void loadsongdata(void);
61 void loadrundbdata(void);
62 void loadartistname(void);
63 void loadalbumname(void);
64 char *getfilename(int entry);