pvd_t -> iso9660_pvd_t
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
$Id: iso9660.h,v 1.3 2003/08/31 01:32:05 rocky Exp $
|
$Id: iso9660.h,v 1.4 2003/08/31 01:40:00 rocky Exp $
|
||||||
|
|
||||||
Copyright (C) 2000 Herbert Valerio Riedel <hvr@gnu.org>
|
Copyright (C) 2000 Herbert Valerio Riedel <hvr@gnu.org>
|
||||||
Copyright (C) 2003 Rocky Bernstein <rocky@panix.com>
|
Copyright (C) 2003 Rocky Bernstein <rocky@panix.com>
|
||||||
@@ -55,7 +55,7 @@ enum strncpy_pad_check {
|
|||||||
/* Opaque types ... */
|
/* Opaque types ... */
|
||||||
|
|
||||||
/* Defined fully in iso9660_private.h */
|
/* Defined fully in iso9660_private.h */
|
||||||
typedef struct iso_primary_descriptor pvd_t;
|
typedef struct iso_primary_descriptor iso9660_pvd_t;
|
||||||
typedef struct iso_directory_record iso_directory_record_t;
|
typedef struct iso_directory_record iso_directory_record_t;
|
||||||
|
|
||||||
char *
|
char *
|
||||||
@@ -138,22 +138,22 @@ iso9660_get_dir_extent(const iso_directory_record_t *idr);#
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
uint8_t
|
uint8_t
|
||||||
iso9660_get_pvd_type(const pvd_t *pvd);
|
iso9660_get_pvd_type(const iso9660_pvd_t *pvd);
|
||||||
|
|
||||||
const char *
|
const char *
|
||||||
iso9660_get_pvd_id(const pvd_t *pvd);
|
iso9660_get_pvd_id(const iso9660_pvd_t *pvd);
|
||||||
|
|
||||||
int
|
int
|
||||||
iso9660_get_pvd_space_size(const pvd_t *pvd);
|
iso9660_get_pvd_space_size(const iso9660_pvd_t *pvd);
|
||||||
|
|
||||||
int
|
int
|
||||||
iso9660_get_pvd_block_size(const pvd_t *pvd) ;
|
iso9660_get_pvd_block_size(const iso9660_pvd_t *pvd) ;
|
||||||
|
|
||||||
int
|
int
|
||||||
iso9660_get_pvd_version(const pvd_t *pvd) ;
|
iso9660_get_pvd_version(const iso9660_pvd_t *pvd) ;
|
||||||
|
|
||||||
lsn_t
|
lsn_t
|
||||||
iso9660_get_root_lsn(const pvd_t *pvd);
|
iso9660_get_root_lsn(const iso9660_pvd_t *pvd);
|
||||||
|
|
||||||
|
|
||||||
#endif /* __CDIO_ISO9660_H__ */
|
#endif /* __CDIO_ISO9660_H__ */
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
$Id: iso9660.c,v 1.3 2003/08/31 01:32:05 rocky Exp $
|
$Id: iso9660.c,v 1.4 2003/08/31 01:40:00 rocky Exp $
|
||||||
|
|
||||||
Copyright (C) 2000 Herbert Valerio Riedel <hvr@gnu.org>
|
Copyright (C) 2000 Herbert Valerio Riedel <hvr@gnu.org>
|
||||||
Copyright (C) 2003 Rocky Bernstein <rocky@panix.com>
|
Copyright (C) 2003 Rocky Bernstein <rocky@panix.com>
|
||||||
@@ -37,7 +37,7 @@
|
|||||||
#include "cdio_assert.h"
|
#include "cdio_assert.h"
|
||||||
#include "bytesex.h"
|
#include "bytesex.h"
|
||||||
|
|
||||||
static const char _rcsid[] = "$Id: iso9660.c,v 1.3 2003/08/31 01:32:05 rocky Exp $";
|
static const char _rcsid[] = "$Id: iso9660.c,v 1.4 2003/08/31 01:40:00 rocky Exp $";
|
||||||
|
|
||||||
/* some parameters... */
|
/* some parameters... */
|
||||||
#define SYSTEM_ID "CD-RTOS CD-BRIDGE"
|
#define SYSTEM_ID "CD-RTOS CD-BRIDGE"
|
||||||
@@ -202,9 +202,9 @@ iso9660_set_pvd(void *pd,
|
|||||||
uint32_t path_table_m_extent,
|
uint32_t path_table_m_extent,
|
||||||
uint32_t path_table_size)
|
uint32_t path_table_size)
|
||||||
{
|
{
|
||||||
pvd_t ipd;
|
iso9660_pvd_t ipd;
|
||||||
|
|
||||||
cdio_assert (sizeof(pvd_t) == ISO_BLOCKSIZE);
|
cdio_assert (sizeof(iso9660_pvd_t) == ISO_BLOCKSIZE);
|
||||||
|
|
||||||
cdio_assert (pd != NULL);
|
cdio_assert (pd != NULL);
|
||||||
cdio_assert (volume_id != NULL);
|
cdio_assert (volume_id != NULL);
|
||||||
@@ -672,42 +672,42 @@ iso9660_get_dir_size(const iso_directory_record_t *idr)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
uint8_t
|
uint8_t
|
||||||
iso9660_get_pvd_type(const pvd_t *pvd)
|
iso9660_get_pvd_type(const iso9660_pvd_t *pvd)
|
||||||
{
|
{
|
||||||
if (NULL == pvd) return 255;
|
if (NULL == pvd) return 255;
|
||||||
return(pvd->type);
|
return(pvd->type);
|
||||||
}
|
}
|
||||||
|
|
||||||
const char *
|
const char *
|
||||||
iso9660_get_pvd_id(const pvd_t *pvd)
|
iso9660_get_pvd_id(const iso9660_pvd_t *pvd)
|
||||||
{
|
{
|
||||||
if (NULL == pvd) return "ERR";
|
if (NULL == pvd) return "ERR";
|
||||||
return(pvd->id);
|
return(pvd->id);
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
iso9660_get_pvd_space_size(const pvd_t *pvd)
|
iso9660_get_pvd_space_size(const iso9660_pvd_t *pvd)
|
||||||
{
|
{
|
||||||
if (NULL == pvd) return 0;
|
if (NULL == pvd) return 0;
|
||||||
return from_733(pvd->volume_space_size);
|
return from_733(pvd->volume_space_size);
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
iso9660_get_pvd_block_size(const pvd_t *pvd)
|
iso9660_get_pvd_block_size(const iso9660_pvd_t *pvd)
|
||||||
{
|
{
|
||||||
if (NULL == pvd) return 0;
|
if (NULL == pvd) return 0;
|
||||||
return from_723(pvd->logical_block_size);
|
return from_723(pvd->logical_block_size);
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
iso9660_get_pvd_version(const pvd_t *pvd)
|
iso9660_get_pvd_version(const iso9660_pvd_t *pvd)
|
||||||
{
|
{
|
||||||
if (NULL == pvd) return 0;
|
if (NULL == pvd) return 0;
|
||||||
return pvd->version;
|
return pvd->version;
|
||||||
}
|
}
|
||||||
|
|
||||||
lsn_t
|
lsn_t
|
||||||
iso9660_get_root_lsn(const pvd_t *pvd)
|
iso9660_get_root_lsn(const iso9660_pvd_t *pvd)
|
||||||
{
|
{
|
||||||
if (NULL == pvd)
|
if (NULL == pvd)
|
||||||
return CDIO_INVALID_LSN;
|
return CDIO_INVALID_LSN;
|
||||||
|
|||||||
Reference in New Issue
Block a user