Small clarity change
This commit is contained in:
60
src/cdinfo.c
60
src/cdinfo.c
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
$Id: cdinfo.c,v 1.1 2003/03/24 19:01:10 rocky Exp $
|
||||
$Id: cdinfo.c,v 1.2 2003/03/24 21:01:40 rocky Exp $
|
||||
|
||||
Copyright (C) 2003 Rocky Bernstein <rocky@panix.com>
|
||||
Copyright (C) 1996,1997,1998 Gerd Knorr <kraxel@bytesex.org>
|
||||
@@ -130,19 +130,14 @@ and
|
||||
#define ROCKRIDGE 2048
|
||||
#define JOLIET 4096
|
||||
|
||||
/* Some interesting sector numbers. */
|
||||
#define ISO_SUPERBLOCK_SECTOR 16
|
||||
#define UFS_SUPERBLOCK_SECTOR 4
|
||||
#define BOOT_SECTOR 17
|
||||
#define VCD_INFO_SECTOR 150
|
||||
char buffer[6][CDDA_SECTOR_SIZE]; /* for CD-Data */
|
||||
|
||||
/* Some interesting sector numbers stored in the above buffer. */
|
||||
#define ISO_SUPERBLOCK_SECTOR 16 /* buffer[0] */
|
||||
#define UFS_SUPERBLOCK_SECTOR 4 /* buffer[2] */
|
||||
#define BOOT_SECTOR 17 /* buffer[3] */
|
||||
#define VCD_INFO_SECTOR 150 /* buffer[4] */
|
||||
|
||||
#if 0
|
||||
#define STRONG "\033[1m"
|
||||
#define NORMAL "\033[0m"
|
||||
#else
|
||||
#define STRONG "__________________________________\n"
|
||||
#define NORMAL ""
|
||||
#endif
|
||||
|
||||
typedef struct signature
|
||||
{
|
||||
@@ -152,22 +147,9 @@ typedef struct signature
|
||||
const char *description;
|
||||
} signature_t;
|
||||
|
||||
#define IS_ISOFS 0
|
||||
#define IS_CD_I 1
|
||||
#define IS_CDTV 2
|
||||
#define IS_CD_RTOS 3
|
||||
#define IS_HS 4
|
||||
#define IS_BRIDGE 5
|
||||
#define IS_XA 6
|
||||
#define IS_PHOTO_CD 7
|
||||
#define IS_EXT2 8
|
||||
#define IS_UFS 9
|
||||
#define IS_BOOTABLE 10
|
||||
#define IS_VIDEO_CD 11
|
||||
|
||||
static signature_t sigs[] =
|
||||
{
|
||||
/* Buff off look for description */
|
||||
/*buffer[x] off look for description */
|
||||
{0, 1, "CD001", "ISO 9660"},
|
||||
{0, 1, "CD-I", "CD-I"},
|
||||
{0, 8, "CDTV", "CDTV"},
|
||||
@@ -183,6 +165,28 @@ static signature_t sigs[] =
|
||||
{ 0 }
|
||||
};
|
||||
|
||||
|
||||
#if 0
|
||||
#define STRONG "\033[1m"
|
||||
#define NORMAL "\033[0m"
|
||||
#else
|
||||
#define STRONG "__________________________________\n"
|
||||
#define NORMAL ""
|
||||
#endif
|
||||
|
||||
#define IS_ISOFS 0
|
||||
#define IS_CD_I 1
|
||||
#define IS_CDTV 2
|
||||
#define IS_CD_RTOS 3
|
||||
#define IS_HS 4
|
||||
#define IS_BRIDGE 5
|
||||
#define IS_XA 6
|
||||
#define IS_PHOTO_CD 7
|
||||
#define IS_EXT2 8
|
||||
#define IS_UFS 9
|
||||
#define IS_BOOTABLE 10
|
||||
#define IS_VIDEO_CD 11
|
||||
|
||||
int rc; /* return code */
|
||||
int i,j; /* index */
|
||||
int isofs_size = 0; /* size of session */
|
||||
@@ -191,8 +195,6 @@ int ms_offset; /* multisession offset found by track-walking */
|
||||
int data_start; /* start of data area */
|
||||
int joliet_level = 0;
|
||||
|
||||
char buffer[6][CDDA_SECTOR_SIZE]; /* for CD-Data */
|
||||
|
||||
CdIo *img;
|
||||
track_t num_tracks;
|
||||
track_t first_track_num;
|
||||
|
||||
Reference in New Issue
Block a user