Andy's CarPlayer

/***************************************************************************
                          Structures.h  -  description
                             -------------------
    begin                : Thu Jan 27 2005
    copyright            : (C) 2005 by Andy
    email                : 
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/



/**************************************************************************
 *                                                                         *
 *                           Structures                                    *
 *                                                                         *
 ***************************************************************************/

 typedef struct songinfo {
   char filename[255];
   char song[31];
   char artist[31];
   char album[31];
   int  year;
   unsigned char raw_year[5];
   char genre[25];
   char comments[31];
   unsigned char track[1];
   int track_num;
   int list_pos;

 } songinfo;

 /**************************************************************************
 *                                                                         *
 *                           Procedures                                    *
 *                                                                         *
 ***************************************************************************/


int get_id3(char *filename);
int getline(FILE *filename, char buffer[255]);
void update_database(songinfo songs);
int readline(int fd, char *buf, int count);
int trimright(char *str);

int debug_level;