Search
lxdream.org :: lxdream/src/gdrom/gdrom.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/gdrom/gdrom.h
changeset 464:8e099fad42a6
prev433:a4f61551d79d
next468:3a49695e081a
author nkeynes
date Sat Oct 27 05:44:54 2007 +0000 (14 years ago)
permissions -rw-r--r--
last change Initial gdrom attachment menu
file annotate diff log raw
1.1 --- a/src/gdrom/gdrom.h Tue Oct 09 08:48:28 2007 +0000
1.2 +++ b/src/gdrom/gdrom.h Sat Oct 27 05:44:54 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: gdrom.h,v 1.12 2007-10-09 08:45:00 nkeynes Exp $
1.6 + * $Id: gdrom.h,v 1.13 2007-10-27 05:44:54 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 @@ -22,6 +22,7 @@
1.11 #define dream_gdrom_H 1
1.12
1.13 #include "dream.h"
1.14 +#include <glib.h>
1.15
1.16 #define MAX_SECTOR_SIZE 2352
1.17
1.18 @@ -137,6 +138,7 @@
1.19 * the disc structure itself.
1.20 */
1.21 void (*close)( struct gdrom_disc *disc );
1.22 + const gchar *name; /* Device name / Image filename */
1.23 } *gdrom_disc_t;
1.24
1.25
1.26 @@ -146,7 +148,6 @@
1.27 int track_count;
1.28 struct gdrom_track track[99];
1.29 gchar mcn[14]; /* Media catalogue number */
1.30 - const gchar *filename; /* Image filename */
1.31 FILE *file; /* Open file stream */
1.32 } *gdrom_image_t;
1.33
1.34 @@ -167,7 +168,7 @@
1.35 /**
1.36 * Construct a new image file using the default methods.
1.37 */
1.38 -gdrom_disc_t gdrom_image_new( FILE *file );
1.39 +gdrom_disc_t gdrom_image_new( const gchar *filename, FILE *f );
1.40
1.41 /**
1.42 * Open an image file
1.43 @@ -208,6 +209,10 @@
1.44
1.45 gboolean gdrom_is_mounted( void );
1.46
1.47 +gdrom_disc_t gdrom_get_current_disc();
1.48 +
1.49 +GList *gdrom_get_native_devices();
1.50 +
1.51 uint32_t gdrom_read_sectors( uint32_t sector, uint32_t sector_count,
1.52 int mode, unsigned char *buf, uint32_t *length );
1.53
.