1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84
|
#ifndef __INFO_H__
#define __INFO_H__
/************************************************************************/
/*
* Header: INFO
* Purpose: to define the interface to the INFO module
* Language/Compiler/O/S: GCC 2.7.2
* Author: Wade Hampton
* Date: 12/22/97
* Revision History:
* [from RCS]
*
* $Log: info.h,v $
* Revision 1.4 1998/07/15 13:53:36 wadeh
* prior to Lin's changes
*
* Revision 1.3 1998/01/06 21:00:33 wadeh
* Added DoCr, changes to fix cdeject crash.
*
* Revision 1.2 1997/12/23 22:52:51 wadeh
* 2.1 beta 1 release
*
* Revision 1.1 1997/12/23 21:39:39 wadeh
* Initial revision
*
*
* Notes:
* 1)
*----------------------------------------------------------------------*/
/* TYPES- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
/* INCLUDE FILES- - - - - - - - - - - - - - - - - - - - - - - - - - - - */
/* CONSTANTS- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
/* commands to the do_info command */
#define I_TRACK 0x01
#define I_AUDIOSTATUS 0x02
#define I_DISP_REL 0x03
#define I_DISP_ABS 0x04
#define I_DISP_ALL 0x05
/* commands to the do_dir command */
#define P_QUICK 0x01
#define P_LONG 0x02
#define P_TEMPL 0x03
#define P_RAW 0x04
/* LOCAL DATA - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
/* EXTERNAL PROCEDURES- - - - - - - - - - - - - - - - - - - - - - - - - */
/* EXTERNAL DATA- - - - - - - - - - - - - - - - - - - - - - - - - - - - */
/* PROTOTYPES - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
/* CHECK_DISK: Check disc for mounted, no disc, or data */
cdhw_t *check_disc (
char *progname, /* name of progarm */
int cdfile, /* file descriptor of CD-ROM */
int docr, /* F/F, if T, do a CR at end */
int *pI, /* if T, audio disc is ready */
char *cddevice /* device for CDROM */
);
/* DO_INFO: Display info about CD-ROM to stdout */
void do_info(
char *progname, /* name of progarm */
int cdfile, /* file descriptor of CD-ROM */
int info, /* INFO command, I_* above */
char *cddevice, /* device for CDROM */
int docr /* F/F, if T, do a CR at end */
);
/* DO_DIR: Display info on the CD-ROM (reads optional database) */
void do_dir (
char *progname, /* name of progarm */
int cdfile, /* file descriptor of CD-ROM */
int p_format, /* command, P_* above */
int usedb, /* T/F, if T, try to read the database (text)*/
char *cddevice, /* device for CDROM */
int docr /* F/F, if T, do a CR at end */
);
/*
* Copyright (C) 1997, 1998 Wade Hampton
*/
/************************************************************************/
#endif
|