1 /** \file blockdev.c
2 * \brief Native GTK3 UI block device stuff
3 *
4 * \author Marco van den Heuvel <blackystardust68@yahoo.com>
5 * \author Bas Wassink <b.wassink@ziggo.nl>
6 */
7
8 /*
9 * This file is part of VICE, the Versatile Commodore Emulator.
10 * See README for copyright notice.
11 *
12 * This program is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation; either version 2 of the License, or
15 * (at your option) any later version.
16 *
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
21 *
22 * You should have received a copy of the GNU General Public License
23 * along with this program; if not, write to the Free Software
24 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
25 * 02111-1307 USA.
26 *
27 */
28
29 #include "vice.h"
30
31 #include <stdio.h>
32 #include <stdint.h>
33
34 #include "debug_gtk3.h"
35 #include "types.h"
36
37 #include "blockdev.h"
38
39
blockdev_close(void)40 int blockdev_close(void)
41 {
42 #ifdef UNIX_COMPILE
43 NOT_IMPLEMENTED();
44 return 0;
45 #else
46 /* windows */
47 return -1;
48 #endif
49 }
50
blockdev_cmdline_options_init(void)51 int blockdev_cmdline_options_init(void)
52 {
53 /* NOP, just like arch/unix */
54 return 0;
55 }
56
blockdev_init(void)57 void blockdev_init(void)
58 {
59 /* NOP, just like arch/unix */
60 }
61
blockdev_open(const char * name,unsigned int * read_only)62 int blockdev_open(const char *name, unsigned int *read_only)
63 {
64 #ifdef UNIX_COMPILE
65 NOT_IMPLEMENTED();
66 return 0;
67 #else
68 return -1;
69 #endif
70 }
71
blockdev_read_sector(uint8_t * buf,unsigned int track,unsigned int sector)72 int blockdev_read_sector(uint8_t *buf, unsigned int track, unsigned int sector)
73 {
74 #ifdef UNIX_COMPILE
75 NOT_IMPLEMENTED();
76 return 0;
77 #else
78 return -1;
79 #endif
80 }
81
blockdev_resources_init(void)82 int blockdev_resources_init(void)
83 {
84 /* NOP, just like arc/unix */
85 return 0;
86 }
87
blockdev_write_sector(const uint8_t * buf,unsigned int track,unsigned int sector)88 int blockdev_write_sector(const uint8_t *buf, unsigned int track, unsigned int sector)
89 {
90 #ifdef UNIX_COMPILE
91 NOT_IMPLEMENTED();
92 return 0;
93 #else
94 return -1;
95 #endif
96 }
97