/* WorkBone CD Rom Player Software Copyright (C) 1993 Thomas McWilliams 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, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #define CDNULL 0 #define CDPLAY 1 #define CDPAUZ 3 #define CDSTOP 4 #define CDEJECT 5 #define UPCUR "\033[1A" #define REVON "\033[7m" #define REVOF "\033[27m" #define GON "\033(U" "\n" #define GOF "\033(B" #define MTAB " " #define MTAB3 MTAB MTAB MTAB #define ROW0 MTAB3 "\263 \263\n" #define ROW1 MTAB3 "\263 \376\376 || |\020 \263\n" #define ROW2 MTAB3 "\263 |\021 \036\036 \020| \263\n" #define ROW3 MTAB3 "\263 \021\021 .. \020\020 \263\n" #define ROW4 MTAB3 "\263 " REVON " quit " REVOF " " REVON " ? " REVOF " \263\n" #define HLIN1 "\304\304\304\304\304\304\304\304\304\304\304" #define HLIN2 "\304\304\304\304" #define HDR "\264 number pad \303" #define ROWT MTAB3 "\332" HLIN2 HDR HLIN2 "\277\n" #define ROWB MTAB3 "\300" HLIN1 HLIN1 "\331\n" GOF "\n" UPCUR "\r" #ifndef TRUE #define TRUE 1 #define FALSE 0 #endif void play_cd( int start, int pos, int end) ; int eject_cd( void ); int cd_status( void ); void pause_cd( void ); void resume_cd( void); void stop_cd( void ); int CDMounted(void); struct cdinfo *read_toc(void); void play_to_next(); void play_to_prev();