1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/src/gdrom/gdrom.h Thu Mar 30 11:26:45 2006 +0000
1.5 + * $Id: gdrom.h,v 1.1 2006-03-22 14:29:02 nkeynes Exp $
1.7 + * This file defines the structures and functions used by the GD-Rom
1.8 + * disc driver. (ie, the modules that supply a CD image to be used by the
1.11 + * Copyright (c) 2005 Nathan Keynes.
1.13 + * This program is free software; you can redistribute it and/or modify
1.14 + * it under the terms of the GNU General Public License as published by
1.15 + * the Free Software Foundation; either version 2 of the License, or
1.16 + * (at your option) any later version.
1.18 + * This program is distributed in the hope that it will be useful,
1.19 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
1.20 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.21 + * GNU General Public License for more details.
1.24 +#ifndef dream_gdrom_H
1.25 +#define dream_gdrom_H 1
1.29 +typedef struct gdrom_toc {
1.30 + uint32_t tracks[99];
1.31 + uint32_t first, last, leadout;
1.35 +typedef struct gdrom_disc {
1.37 + gboolean (*read_toc)( gdrom_toc_t toc );
1.39 + gboolean (*read_data_sectors)( uint32_t lba, uint32_t sector_count,
1.43 +void gdrom_mount( gdrom_disc_t disc );
1.45 +void gdrom_unmount( void );