Fix compile

This commit is contained in:
Jasmine Iwanek
2022-07-23 00:00:03 -04:00
parent e415a551f7
commit 43239dfa9e

View File

@@ -52,6 +52,7 @@
#define CONFIG_HEX20 8 #define CONFIG_HEX20 8
#define CONFIG_MAC 9 #define CONFIG_MAC 9
#define CONFIG_MIDI_IN 10 #define CONFIG_MIDI_IN 10
#define CONFIG_BIOS 11
enum { enum {
@@ -77,6 +78,14 @@ typedef struct {
int value; int value;
} device_config_selection_t; } device_config_selection_t;
typedef struct {
const char *name;
const char *internal_name;
int bios_type;
int files_no;
const char **files;
} device_config_bios_t;
typedef struct { typedef struct {
int16_t min; int16_t min;
int16_t max; int16_t max;
@@ -92,6 +101,7 @@ typedef struct {
const char *file_filter; const char *file_filter;
const device_config_spinner_t spinner; const device_config_spinner_t spinner;
const device_config_selection_t selection[16]; const device_config_selection_t selection[16];
const device_config_bios_t *bios;
} device_config_t; } device_config_t;
typedef struct _device_ { typedef struct _device_ {
@@ -161,6 +171,7 @@ extern void device_set_config_hex16(const char *s, int val);
extern void device_set_config_hex20(const char *s, int val); extern void device_set_config_hex20(const char *s, int val);
extern void device_set_config_mac(const char *s, int val); extern void device_set_config_mac(const char *s, int val);
extern const char *device_get_config_string(const char *name); extern const char *device_get_config_string(const char *name);
#define device_get_config_bios device_get_config_string
extern char * device_get_internal_name(const device_t *d); extern char * device_get_internal_name(const device_t *d);