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.zip rockbox-ed15e2994d66ce917abfe3ca9996e26b5f5b0e42.tar.gz rockbox-ed15e2994d66ce917abfe3ca9996e26b5f5b0e42.tar.bz2 rockbox-ed15e2994d66ce917abfe3ca9996e26b5f5b0e42.tar.xz | |
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 3c9bef5..0000000 --- a/apps/database.h +++ /dev/null @@ -1,89 +0,0 @@ -/*************************************************************************** - * __________ __ ___. - * Open \______ \ ____ ____ | | _\_ |__ _______ ___ - * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / - * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < - * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ - * \/ \/ \/ \/ \/ - * $Id$ - * - * Copyright (C) 2005 by Michiel van der Kolk - * - * All files in this archive are subject to the GNU General Public License. - * See the file COPYING in the source tree root for full license agreement. - * - * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY - * KIND, either express or implied. - * - ****************************************************************************/ -#ifndef DATABASE_H -#define DATABASE_H - -#ifdef ROCKBOX_LITTLE_ENDIAN -#define BE32(_x_) (((_x_ & 0xff000000) >> 24) | \ - ((_x_ & 0x00ff0000) >> 8) | \ - ((_x_ & 0x0000ff00) << 8) | \ - ((_x_ & 0x000000ff) << 24)) -#define BE16(_x_) ( ((_x_&0xFF00) >> 8)|((_x_&0xFF)<<8)) -#else -#define BE32(_x_) _x_ -#define BE16(_x_) _x_ -#endif - -#define SONGENTRY_SIZE (tagdbheader.songlen+12+tagdbheader.genrelen+12) -#define FILEENTRY_SIZE (tagdbheader.filelen+12) -#define ALBUMENTRY_SIZE (tagdbheader.albumlen+4+tagdbheader.songarraylen*4) -#define ARTISTENTRY_SIZE (tagdbheader.artistlen+tagdbheader.albumarraylen*4) - -#define FILERECORD2OFFSET(_x_) (tagdbheader.filestart + _x_ * FILEENTRY_SIZE) - -extern int tagdb_initialized; - -struct tagdb_header { - int version; - int artiststart; - int albumstart; - int songstart; - int filestart; - int artistcount; - int albumcount; - int songcount; - int filecount; - int artistlen; - int albumlen; - int songlen; - int genrelen; - int filelen; - int songarraylen; - int albumarraylen; - int rundbdirty; -}; - -extern struct tagdb_header tagdbheader; -extern int tagdb_fd; - -int tagdb_init(void); -void tagdb_shutdown(void); - -#define TAGDB_VERSION 3 - -extern int rundb_fd, rundb_initialized; -extern struct rundb_header rundbheader; - -struct rundb_header { - int version; - int entrycount; -}; - - -extern struct rundb_header rundbheader; - -#define RUNDB_VERSION 1 - -void tagdb_shutdown(void); -void addrundbentry(struct mp3entry *id); -void loadruntimeinfo(struct mp3entry *id); -void writeruntimeinfo(struct mp3entry *id); -int rundb_init(void); -void rundb_shutdown(void); -#endif |