Search
lxdream.org :: lxdream/src/gdrom/gdrom.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/gdrom/gdrom.h
changeset 422:61a0598e07ff
prev342:850502f0e8de
next433:a4f61551d79d
author nkeynes
date Sat Oct 06 09:03:24 2007 +0000 (14 years ago)
permissions -rw-r--r--
last change Fix compilation warnings
file annotate diff log raw
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.3 @@ -1,5 +1,5 @@
1.4 /**
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.7 *
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.10 @@ -83,7 +83,7 @@
1.11 */
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.16
1.17 /**
1.18 * Read the TOC from the disc and write it into the specified buffer.
1.19 @@ -92,7 +92,7 @@
1.20 * @param disc pointer to the disc structure
1.21 * @param buf buffer to receive data (0x198 bytes long)
1.22 */
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.25
1.26 /**
1.27 * Read the information for the specified sector and return it in the
1.28 @@ -101,7 +101,7 @@
1.29 * @param session of interest. If 0, return end of disc information.
1.30 * @param buf buffer to receive data (6 bytes)
1.31 */
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.34
1.35 /**
1.36 * Read the position information (subchannel) for the specified sector
1.37 @@ -111,7 +111,7 @@
1.38 * @param lba sector to get position information for
1.39 * @param buf buffer to receive data (14 bytes)
1.40 */
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.43
1.44 /**
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.48
1.49 /**
1.50 + * Dump image info
1.51 + */
1.52 +void gdrom_image_dump_info( gdrom_disc_t d );
1.53 +
1.54 +/**
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.58 */
1.59 -gdrom_error_t gdrom_get_toc( char *buf );
1.60 +gdrom_error_t gdrom_get_toc( unsigned char *buf );
1.61
1.62 /**
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.65 */
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.68
1.69 gdrom_track_t gdrom_get_track( int track_no );
1.70
1.71 @@ -203,6 +208,6 @@
1.72 gboolean gdrom_is_mounted( void );
1.73
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 );
1.77
1.78 #endif
.