diff options
author | Nils Wallménius <nils@rockbox.org> | 2006-12-11 20:21:36 +0000 |
---|---|---|
committer | Nils Wallménius <nils@rockbox.org> | 2006-12-11 20:21:36 +0000 |
commit | ed15e2994d66ce917abfe3ca9996e26b5f5b0e42 (patch) | |
tree | 33041bb92c3544277e9c5e8b8e1646d8ce046a13 /apps/database.h | |
parent | e22649929f693ce9257043885a7bb3d7ad6fd06c (diff) | |
download | rockbox-ed15e2994d66ce917abfe3ca9996e26b5f5b0e42.tar.gz rockbox-ed15e2994d66ce917abfe3ca9996e26b5f5b0e42.zip |
1) Delete unused files from old database and old gui files 2) Remove unneccesary includes of the old database header 3) Delete the deprecated databox plugin
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11715 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/database.h')
-rw-r--r-- | apps/database.h | 89 |
1 files changed, 0 insertions, 89 deletions
diff --git a/apps/database.h b/apps/database.h deleted file mode 100644 index 3c9bef516c..0000000000 --- a/apps/database.h +++ /dev/null | |||
@@ -1,89 +0,0 @@ | |||
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 | * All files in this archive are subject to the GNU General Public License. | ||
13 | * See the file COPYING in the source tree root for full license agreement. | ||
14 | * | ||
15 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
16 | * KIND, either express or implied. | ||
17 | * | ||
18 | ****************************************************************************/ | ||
19 | #ifndef DATABASE_H | ||
20 | #define DATABASE_H | ||
21 | |||
22 | #ifdef ROCKBOX_LITTLE_ENDIAN | ||
23 | #define BE32(_x_) (((_x_ & 0xff000000) >> 24) | \ | ||
24 | ((_x_ & 0x00ff0000) >> 8) | \ | ||
25 | ((_x_ & 0x0000ff00) << 8) | \ | ||
26 | ((_x_ & 0x000000ff) << 24)) | ||
27 | #define BE16(_x_) ( ((_x_&0xFF00) >> 8)|((_x_&0xFF)<<8)) | ||
28 | #else | ||
29 | #define BE32(_x_) _x_ | ||
30 | #define BE16(_x_) _x_ | ||
31 | #endif | ||
32 | |||
33 | #define SONGENTRY_SIZE (tagdbheader.songlen+12+tagdbheader.genrelen+12) | ||
34 | #define FILEENTRY_SIZE (tagdbheader.filelen+12) | ||
35 | #define ALBUMENTRY_SIZE (tagdbheader.albumlen+4+tagdbheader.songarraylen*4) | ||
36 | #define ARTISTENTRY_SIZE (tagdbheader.artistlen+tagdbheader.albumarraylen*4) | ||
37 | |||
38 | #define FILERECORD2OFFSET(_x_) (tagdbheader.filestart + _x_ * FILEENTRY_SIZE) | ||
39 | |||
40 | extern int tagdb_initialized; | ||
41 | |||
42 | struct tagdb_header { | ||
43 | int version; | ||
44 | int artiststart; | ||
45 | int albumstart; | ||
46 | int songstart; | ||
47 | int filestart; | ||
48 | int artistcount; | ||
49 | int albumcount; | ||
50 | int songcount; | ||
51 | int filecount; | ||
52 | int artistlen; | ||
53 | int albumlen; | ||
54 | int songlen; | ||
55 | int genrelen; | ||
56 | int filelen; | ||
57 | int songarraylen; | ||
58 | int albumarraylen; | ||
59 | int rundbdirty; | ||
60 | }; | ||
61 | |||
62 | extern struct tagdb_header tagdbheader; | ||
63 | extern int tagdb_fd; | ||
64 | |||
65 | int tagdb_init(void); | ||
66 | void tagdb_shutdown(void); | ||
67 | |||
68 | #define TAGDB_VERSION 3 | ||
69 | |||
70 | extern int rundb_fd, rundb_initialized; | ||
71 | extern struct rundb_header rundbheader; | ||
72 | |||
73 | struct rundb_header { | ||
74 | int version; | ||
75 | int entrycount; | ||
76 | }; | ||
77 | |||
78 | |||
79 | extern struct rundb_header rundbheader; | ||
80 | |||
81 | #define RUNDB_VERSION 1 | ||
82 | |||
83 | void tagdb_shutdown(void); | ||
84 | void addrundbentry(struct mp3entry *id); | ||
85 | void loadruntimeinfo(struct mp3entry *id); | ||
86 | void writeruntimeinfo(struct mp3entry *id); | ||
87 | int rundb_init(void); | ||
88 | void rundb_shutdown(void); | ||
89 | #endif | ||