A modern Music Player Daemon based on Rockbox open source high quality audio player
libadwaita
audio
rust
zig
deno
mpris
rockbox
mpd
1/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
9 *
10 * Copyright (C) 2005 by Michiel van der Kolk
11 *
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.
16 *
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
19 *
20 ****************************************************************************/
21struct dbglobals {
22 int playcountmin;
23 int playcountmax;
24 int gotplaycountlimits;
25 int currententryindex;
26};
27
28struct 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;
53};
54
55extern struct dbentry *currententry;
56extern struct dbglobals dbglobal;
57
58int database_init(void);
59void loadentry(int filerecord);
60void loadsongdata(void);
61void loadrundbdata(void);
62void loadartistname(void);
63void loadalbumname(void);
64char *getfilename(int entry);