1 /* didaktik.h: Routines for handling the Didaktik 40/80 disk interface
2    Copyright (c) 2015 Gergely Szasz
3 
4    This program is free software; you can redistribute it and/or modify
5    it under the terms of the GNU General Public License as published by
6    the Free Software Foundation; either version 2 of the License, or
7    (at your option) any later version.
8 
9    This program is distributed in the hope that it will be useful,
10    but WITHOUT ANY WARRANTY; without even the implied warranty of
11    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12    GNU General Public License for more details.
13 
14    You should have received a copy of the GNU General Public License along
15    with this program; if not, write to the Free Software Foundation, Inc.,
16    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17 
18    Author contact information:
19 
20    szaszg@hu.inter.net
21 
22 */
23 
24 #ifndef FUSE_DIDAKTIK80_H
25 #define FUSE_DIDAKTIK80_H
26 
27 #include <libspectrum.h>
28 
29 #include "fdd.h"
30 
31 typedef enum didaktik80_drive_number {
32   DIDAKTIK80_DRIVE_A = 0,
33   DIDAKTIK80_DRIVE_B,
34   DIDAKTIK80_NUM_DRIVES,
35 } didaktik80_drive_number;
36 
37 extern int didaktik80_available;  /* Is the D80/40 available for use? */
38 extern int didaktik80_active;     /* D80/D40 enabled? */
39 extern int didaktik80_snap;       /* SNAPshot pressed */
40 
41 void didaktik80_register_startup( void );
42 
43 void didaktik80_page( void );
44 void didaktik80_unpage( void );
45 
46 int didaktik80_disk_insert( didaktik80_drive_number which, const char *filename,
47 		       int autoload );
48 fdd_t *didaktik80_get_fdd( didaktik80_drive_number which );
49 
50 int didaktik80_unittest( void );
51 
52 #endif                  /* #ifndef FUSE_DIDAKTIK80_H */
53