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
|
#ifndef __cdrom_h_
#define __cdrom_h_
/* $Id: cdrom.h,v 1.1.1.1 2000/06/23 06:27:55 edwards Exp $ */
#ifndef __FreeBSD__
#include <mntent.h>
#else
#include <sys/param.h>
#include <sys/ucred.h>
#include <sys/mount.h>
#include <sys/file.h>
#include <sys/cdio.h>
#endif /* __FreeBSD__ */
#include <sys/ioctl.h>
#include <signal.h>
#include <fcntl.h>
#ifndef __FreeBSD__
#include <linux/cdrom.h>
#include <linux/errno.h>
#endif
#ifndef MODULE_CDROM
extern void set_cd_device (Window *, char *, int);
BUILT_IN_COMMAND(cd_stop);
BUILT_IN_COMMAND(cd_eject);
BUILT_IN_COMMAND(cd_play);
BUILT_IN_COMMAND(cd_list);
BUILT_IN_COMMAND(cd_volume);
BUILT_IN_COMMAND(cd_pause);
BUILT_IN_COMMAND(cd_help);
#endif
#ifndef __FreeBSD__
struct cdrom_etocentry
{
u_char cdte_track;
u_char cdte_adr :4;
u_char cdte_ctrl :4;
u_char cdte_format;
union cdrom_addr cdte_addr;
u_char cdte_datamode;
int avoid;
int length;
int m_length;
int m_start;
};
#else
struct cdrom_etocentry
{
u_char m_length;
u_char m_start;
int avoid;
};
#define CDROMSTOP CDIOCSTOP
#define CDROMEJECT CDIOCEJECT
#define CDROMREADTOCHDR CDIOREADTOCHEADER
#define CDROMVOLCTRL CDIOCSETVOL
#define CDROMPAUSE CDIOCPAUSE
#define CDROMRESUME CDIOCRESUME
#define CDROMVOLREAD CDIOCGETVOL
#endif /* __FreeBSD__ */
#define HELP_CDEJECT NULL
#define HELP_CDLIST NULL
#define HELP_CDPAUSE NULL
#define HELP_CDPLAY NULL
#define HELP_CDSTOP NULL
#define HELP_CDVOLUME NULL
#endif /* cdrom.h */
|