Search
lxdream.org :: lxdream/src/gdrom/gdrom.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/gdrom/gdrom.h
changeset 149:d88dd2e9a190
prev143:9446fb6df0c5
next152:d42a4c5cc709
author nkeynes
date Sat May 20 06:24:49 2006 +0000 (15 years ago)
permissions -rw-r--r--
last change Add disc info + spin up (probably seek) commands
file annotate diff log raw
1.1 --- a/src/gdrom/gdrom.h Wed May 03 12:52:38 2006 +0000
1.2 +++ b/src/gdrom/gdrom.h Sat May 20 06:24:49 2006 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: gdrom.h,v 1.4 2006-05-03 12:52:38 nkeynes Exp $
1.6 + * $Id: gdrom.h,v 1.5 2006-05-20 06:24:49 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 @@ -23,6 +23,8 @@
1.11
1.12 #include "dream.h"
1.13
1.14 +typedef uint16_t gdrom_error_t;
1.15 +
1.16 struct gdrom_toc {
1.17 uint32_t track[99];
1.18 uint32_t first, last, leadout;
1.19 @@ -95,9 +97,15 @@
1.20 /**
1.21 * Retrieve the disc table of contents, and write it into the buffer in the
1.22 * format expected by the DC.
1.23 - * @return TRUE on success, FALSE on failure (eg no disc mounted)
1.24 + * @return 0 on success, error code on failure (eg no disc mounted)
1.25 */
1.26 -gboolean gdrom_get_toc( char *buf );
1.27 +gdrom_error_t gdrom_get_toc( char *buf );
1.28 +
1.29 +/**
1.30 + * Retrieve the short (6-byte) disc info, and write it into the buffer.
1.31 + * @return 0 on success, error code on failure.
1.32 + */
1.33 +gdrom_error_t gdrom_get_info( char *buf );
1.34
1.35 /**
1.36 * Shortcut to open and mount an image file
.