Search
lxdream.org :: lxdream/src/gdrom/gdrom.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/gdrom/gdrom.h
changeset 168:203a72138e16
prev152:d42a4c5cc709
next237:6f1a429c9d12
author nkeynes
date Mon Jun 26 10:30:42 2006 +0000 (14 years ago)
permissions -rw-r--r--
last change Implement multi-format CD image support
Fix CDI support up to (more or less) work
file annotate diff log raw
1.1 --- a/src/gdrom/gdrom.h Tue May 23 13:11:45 2006 +0000
1.2 +++ b/src/gdrom/gdrom.h Mon Jun 26 10:30:42 2006 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: gdrom.h,v 1.6 2006-05-23 13:11:45 nkeynes Exp $
1.6 + * $Id: gdrom.h,v 1.7 2006-06-26 10:30:42 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 @@ -84,6 +84,19 @@
1.11 } *gdrom_disc_t;
1.12
1.13 /**
1.14 + *
1.15 + */
1.16 +typedef struct gdrom_image_class {
1.17 + const gchar *name;
1.18 + const gchar *extension;
1.19 + gboolean (*is_valid_file)(FILE *f);
1.20 + gdrom_disc_t (*open_image_file)(const gchar *filename, FILE *f);
1.21 +} *gdrom_image_class_t;
1.22 +
1.23 +extern struct gdrom_image_class nrg_image_class;
1.24 +extern struct gdrom_image_class cdi_image_class;
1.25 +
1.26 +/**
1.27 * Construct a new image file using the default methods.
1.28 */
1.29 gdrom_disc_t gdrom_image_new( FILE *file );
1.30 @@ -92,7 +105,6 @@
1.31 * Open an image file
1.32 */
1.33 gdrom_disc_t gdrom_image_open( const gchar *filename );
1.34 -gdrom_disc_t nrg_image_open( const gchar *filename );
1.35
1.36 /**
1.37 * Retrieve the disc table of contents, and write it into the buffer in the
.