1.1 --- a/src/gdrom/gdrom.h Wed Jan 31 10:58:42 2007 +0000
1.2 +++ b/src/gdrom/gdrom.h Sat Oct 06 09:03:24 2007 +0000
1.5 - * $Id: gdrom.h,v 1.10 2007-01-31 10:58:42 nkeynes Exp $
1.6 + * $Id: gdrom.h,v 1.11 2007-10-06 08:58:00 nkeynes Exp $
1.8 * This file defines the structures and functions used by the GD-Rom
1.9 * disc driver. (ie, the modules that supply a CD image to be used by the
1.12 gdrom_error_t (*read_sector)( struct gdrom_disc *disc,
1.13 uint32_t lba, int mode,
1.14 - char *buf, uint32_t *length );
1.15 + unsigned char *buf, uint32_t *length );
1.18 * Read the TOC from the disc and write it into the specified buffer.
1.20 * @param disc pointer to the disc structure
1.21 * @param buf buffer to receive data (0x198 bytes long)
1.23 - gdrom_error_t (*read_toc)(struct gdrom_disc *disc, char *buf);
1.24 + gdrom_error_t (*read_toc)(struct gdrom_disc *disc, unsigned char *buf);
1.27 * Read the information for the specified sector and return it in the
1.29 * @param session of interest. If 0, return end of disc information.
1.30 * @param buf buffer to receive data (6 bytes)
1.32 - gdrom_error_t (*read_session)(struct gdrom_disc *disc, int session, char *buf);
1.33 + gdrom_error_t (*read_session)(struct gdrom_disc *disc, int session, unsigned char *buf);
1.36 * Read the position information (subchannel) for the specified sector
1.38 * @param lba sector to get position information for
1.39 * @param buf buffer to receive data (14 bytes)
1.41 - gdrom_error_t (*read_position)(struct gdrom_disc *disc, uint32_t lba, char *buf);
1.42 + gdrom_error_t (*read_position)(struct gdrom_disc *disc, uint32_t lba, unsigned char *buf);
1.45 * Return the current disc status, expressed as a combination of the
1.46 @@ -175,17 +175,22 @@
1.47 gdrom_disc_t gdrom_image_open( const gchar *filename );
1.52 +void gdrom_image_dump_info( gdrom_disc_t d );
1.55 * Retrieve the disc table of contents, and write it into the buffer in the
1.56 * format expected by the DC.
1.57 * @return 0 on success, error code on failure (eg no disc mounted)
1.59 -gdrom_error_t gdrom_get_toc( char *buf );
1.60 +gdrom_error_t gdrom_get_toc( unsigned char *buf );
1.63 * Retrieve the short (6-byte) session info, and write it into the buffer.
1.64 * @return 0 on success, error code on failure.
1.66 -gdrom_error_t gdrom_get_info( char *buf, int session );
1.67 +gdrom_error_t gdrom_get_info( unsigned char *buf, int session );
1.69 gdrom_track_t gdrom_get_track( int track_no );
1.72 gboolean gdrom_is_mounted( void );
1.74 uint32_t gdrom_read_sectors( uint32_t sector, uint32_t sector_count,
1.75 - int mode, char *buf, uint32_t *length );
1.76 + int mode, unsigned char *buf, uint32_t *length );