2 * $Id: gdrom.h,v 1.1 2006-03-22 14:29:02 nkeynes Exp $
4 * This file defines the structures and functions used by the GD-Rom
5 * disc driver. (ie, the modules that supply a CD image to be used by the
8 * Copyright (c) 2005 Nathan Keynes.
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
22 #define dream_gdrom_H 1
26 typedef struct gdrom_toc {
28 uint32_t first, last, leadout;
32 typedef struct gdrom_disc {
34 gboolean (*read_toc)( gdrom_toc_t toc );
36 gboolean (*read_data_sectors)( uint32_t lba, uint32_t sector_count,
40 void gdrom_mount( gdrom_disc_t disc );
42 void gdrom_unmount( void );
.