1 /** \file vsidui.c
2 * \brief Headless VSID UI
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
33 #include "ui.h"
34 #include "vicii.h"
35 #include "hvsc.h"
36 #include "vsidui.h"
37
38
vsid_ui_close(void)39 void vsid_ui_close(void)
40 {
41 /* printf("%s\n", __func__); */
42
43 hvsc_exit();
44 }
45
46
47 /** \brief Display tune author in the UI
48 *
49 * \param[in] author author name
50 */
vsid_ui_display_author(const char * author)51 void vsid_ui_display_author(const char *author)
52 {
53 /* printf("%s\n", __func__); */
54 }
55
56
57 /** \brief Display tune copyright info in the UI
58 *
59 * \param[in] copright copyright info
60 */
vsid_ui_display_copyright(const char * copyright)61 void vsid_ui_display_copyright(const char *copyright)
62 {
63 /* printf("%s\n", __func__); */
64 }
65
66
67 /** \brief Set IRQ type for the UI
68 *
69 * \param[in] irq IRQ type
70 */
vsid_ui_display_irqtype(const char * irq)71 void vsid_ui_display_irqtype(const char *irq)
72 {
73 /* printf("%s\n", __func__); */
74 }
75
76
77 /** \brief Display tune name in the UI
78 *
79 * \param[in] name tune name
80 */
vsid_ui_display_name(const char * name)81 void vsid_ui_display_name(const char *name)
82 {
83 /* printf("%s\n", __func__); */
84 }
85
86
87 /** \brief Set number of tunes for the UI
88 *
89 * \param[in] count number of tunes
90 */
vsid_ui_display_nr_of_tunes(int count)91 void vsid_ui_display_nr_of_tunes(int count)
92 {
93 /* printf("%s\n", __func__); */
94 }
95
96
97 /** \brief Set SID model for the UI
98 *
99 * \param[in] model SID model
100 */
vsid_ui_display_sid_model(int model)101 void vsid_ui_display_sid_model(int model)
102 {
103 /* printf("%s\n", __func__); */
104 }
105
106
107 /** \brief Set sync factor for the UI
108 *
109 * \param[in] sync sync factor
110 */
vsid_ui_display_sync(int sync)111 void vsid_ui_display_sync(int sync)
112 {
113 /* printf("%s\n", __func__); */
114 }
115
116
117 /** \brief Set run time of tune in the UI
118 *
119 * \param[in] sec seconds of play time
120 */
vsid_ui_display_time(unsigned int dsec)121 void vsid_ui_display_time(unsigned int dsec)
122 {
123 /* printf("%s\n", __func__); */
124 }
125
126
127 /** \brief Set current tune number in the UI
128 *
129 * \param[in] nr tune number
130 */
vsid_ui_display_tune_nr(int nr)131 void vsid_ui_display_tune_nr(int nr)
132 {
133 /* printf("%s\n", __func__); */
134 }
135
136
137 /** \brief Set driver info text for the UI
138 *
139 * \param[in] driver_info_text text with driver info (duh)
140 */
vsid_ui_setdrv(char * driver_info_text)141 void vsid_ui_setdrv(char *driver_info_text)
142 {
143 /* printf("%s\n", __func__); */
144 }
145
146
147 /** \brief Set default tune number in the UI
148 *
149 * \param[in] nr tune number
150 */
vsid_ui_set_default_tune(int nr)151 void vsid_ui_set_default_tune(int nr)
152 {
153 /* printf("%s\n", __func__); */
154 }
155
156
157 /** \brief Set driver address
158 *
159 * \param[in] addr driver address
160 */
vsid_ui_set_driver_addr(uint16_t addr)161 void vsid_ui_set_driver_addr(uint16_t addr)
162 {
163 /* printf("%s\n", __func__); */
164 }
165
166
167 /** \brief Set load address
168 *
169 * \param[in] addr load address
170 */
vsid_ui_set_load_addr(uint16_t addr)171 void vsid_ui_set_load_addr(uint16_t addr)
172 {
173 /* printf("%s\n", __func__); */
174 }
175
176
177 /** \brief Set init routine address
178 *
179 * \param[in] addr init routine address
180 */
vsid_ui_set_init_addr(uint16_t addr)181 void vsid_ui_set_init_addr(uint16_t addr)
182 {
183 /* printf("%s\n", __func__); */
184 }
185
186
187 /** \brief Set play routine address
188 *
189 * \param[in] addr play routine address
190 */
vsid_ui_set_play_addr(uint16_t addr)191 void vsid_ui_set_play_addr(uint16_t addr)
192 {
193 /* printf("%s\n", __func__); */
194 }
195
196
197 /** \brief Set size of SID on actual machine
198 *
199 * \param[in] size size of SID
200 */
vsid_ui_set_data_size(uint16_t size)201 void vsid_ui_set_data_size(uint16_t size)
202 {
203 /* printf("%s\n", __func__); */
204 }
205
206
207 #if 0
208 /** \brief Identify the canvas used to create a window
209 *
210 * \return window index on success, -1 on failure
211 */
212 static int identify_canvas(video_canvas_t *canvas)
213 {
214 /* printf("%s\n", __func__); */
215
216 if (canvas != vicii_get_canvas()) {
217 return -1;
218 }
219 return PRIMARY_WINDOW;
220 }
221 #endif
222
223
224 /** \brief Initialize the VSID UI
225 *
226 * \return 0 on success, -1 on failure
227 */
vsid_ui_init(void)228 int vsid_ui_init(void)
229 {
230 /* printf("%s\n", __func__); */
231
232 return 0;
233 }
234