1
0
mirror of https://git.code.sf.net/p/fuse-emulator/fuse synced 2026-01-27 01:41:34 +03:00
Files
fuse/peripherals/ide/ide.h
2017-08-09 21:19:04 +01:00

64 lines
2.1 KiB
C

/* ide.h: Generic routines shared between the various IDE devices
Copyright (c) 2005-2017 Philip Kendall
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
Author contact information:
E-mail: Philip Kendall <philip-fuse@shadowmagic.org.uk>
*/
#ifndef FUSE_IDE_H
#define FUSE_IDE_H
#include "ui/ui.h"
/* Insert the images into the master and slave units if appropriate */
int
ide_init( libspectrum_ide_channel *channel,
char *master_setting, ui_menu_item master_menu_item,
char *slave_setting, ui_menu_item slave_menu_item );
int
ide_master_slave_insert(
libspectrum_ide_channel *channel, libspectrum_ide_unit unit,
const char *filename,
char **master_setting, ui_menu_item master_menu_item,
char **slave_setting, ui_menu_item slave_menu_item );
int
ide_insert( const char *filename, libspectrum_ide_channel *chn,
libspectrum_ide_unit unit, char **setting, ui_menu_item item );
int
ide_master_slave_eject(
libspectrum_ide_channel *channel, libspectrum_ide_unit unit,
char **master_setting, ui_menu_item master_menu_item,
char **slave_setting, ui_menu_item slave_menu_item );
int
ide_eject( libspectrum_ide_channel *chn, libspectrum_ide_unit unit,
char **setting, ui_menu_item item );
int
ide_eject_mass_storage(
int (*is_dirty_fn)( void *context ),
libspectrum_error (*commit_fn)( void *context ),
libspectrum_error (*eject_fn)( void *context ),
void *context, const char *message, char **setting, ui_menu_item item );
#endif /* #ifndef FUSE_IDE_H */