/*************************************************************************** * __________ __ ___. * Open \______ \ ____ ____ | | _\_ |__ _______ ___ * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ * \/ \/ \/ \/ \/ * $Id: main_menu.c,v 1.55 2002/08/31 23:07:11 adiamas Exp $ * * Copyright (C) 2002 Bj%/1iso8859-15rn Stenberg * * 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 __DB_H__ #define __DB_H__ #include #define MAX_DB_BUFF 512 extern int dbtest(void); struct db{ int buff_index; char buff[MAX_DB_BUFF]; int file_index; int handle_db; }; struct dbentry { char *full_path; char *title; char *artist; char *album; //Buffer char buff[MAX_PATH+300]; }; extern void load_db(int, struct db *); extern int sel_dirdb(struct db *,char *); extern void fill_entry( struct dbentry *entry, struct db *db); #endif //__DB_H__