Andy's CarPlayer

/***************************************************************************
                          mpg_interface.h  -  description
                             -------------------
    begin                : Tue Feb 3 2004
    copyright            : (C) 2004 by Andy Clews
    email                : andy  clews  blueyonder  co  uk
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   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.                                   *
 *                                                                         *
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *                      Global Defines                                     *
 *                                                                         *
 ***************************************************************************/

 #define SONG_INFO      0
 #define SONG_END       1
 #define SONG_PAUSE     2
 #define SONG_PLAY      3
 #define SONG_STOP      4
 #define SONG_TIME      5
 #define PLAYER_VERSION 6
 #define PLAYER_ERROR   7

 #define STOPPED 0
 #define PLAYING 1
 #define PAUSED  2

 char *text_player_status [4];
 
/***************************************************************************
 *                                                                         *
 *                      Global Variables                                   *
 *                                                                         *
 ***************************************************************************/
  
 int mpg123_pid;
 int mpg123_fdsend;
 int mpg123_fdrecv;
 int play_time;
 int play_time_remaining;
 int lastframepos;

/***************************************************************************
 *                                                                         *
 *                      Function Defines                                   *
 *                                                                         *
 ***************************************************************************/

 void mpg123_child(pid_t pid, int status);
 int mpg123_start(void);
 void mpg123_quit(void);
 void SignalHandler(int sig);
 void SignalHandler1(int sig);
 int mpg123_start(void);
 int mpg123_stop();
 int mpg123_load(char *filename);
 int mpg123_pause(void);
 int mpg123_jump(char *dir);
 int mpg123_big_jump(char *dir);
 int mpg123_position(int framepos);
 int mpg123_read(void);