1 /* 2 * UAE - The Un*x Amiga Emulator 3 * 4 * Interface to the GUI 5 * 6 * Copyright 1996 Bernd Schmidt 7 */ 8 9 extern int gui_init (int); 10 extern int gui_update (void); 11 extern void gui_exit (void); 12 extern void gui_romlist_changed (void); 13 extern void gui_led (int, int); 14 extern void gui_handle_events (void); 15 extern void gui_filename (int, const char *); 16 extern void gui_fps (int fps); 17 extern void gui_lock (void); 18 extern void gui_unlock (void); 19 extern void gui_hd_led (int); 20 extern void gui_cd_led (int); 21 extern unsigned int gui_ledstate; 22 extern void gui_display (int shortcut); 23 extern void gui_message (const char *, ...); 24 25 extern unsigned int gui_ledstate; 26 27 extern int no_gui; 28 29 struct gui_info 30 { 31 uae_u8 drive_motor[4]; /* motor on off */ 32 uae_u8 drive_track[4]; /* rw-head track */ 33 uae_u8 drive_writing[4]; /* drive is writing */ 34 uae_u8 drive_disabled[4]; /* drive is disabled */ 35 uae_u8 powerled; /* state of power led */ 36 uae_u8 drive_side; /* floppy side */ 37 uae_u8 hd; /* harddrive */ 38 uae_u8 cd; /* CD */ 39 int fps, idle; 40 char df[4][256]; /* inserted image */ 41 uae_u32 crc32[4]; /* crc32 of image */ 42 }; 43 44 extern struct gui_info gui_data; 45 46 /* Functions to be called when prefs are changed by non-gui code. */ 47 extern void gui_update_gfx (void); 48 49 void notify_user (int msg); 50 int translate_message (int msg, char *out); 51 typedef enum { 52 NUMSG_NEEDEXT2, NUMSG_NOROM, NUMSG_NOROMKEY, 53 NUMSG_KSROMCRCERROR, NUMSG_KSROMREADERROR, NUMSG_NOEXTROM, 54 NUMSG_MODRIP_NOTFOUND, NUMSG_MODRIP_FINISHED, NUMSG_MODRIP_SAVE, 55 NUMSG_KS68EC020, NUMSG_KS68020, NUMSG_ROMNEED, NUMSG_NOZLIB, NUMSG_STATEHD, 56 NUMSG_NOCAPS, NUMSG_OLDCAPS, NUMSG_KICKREP, NUMSG_KICKREPNO 57 } notify_user_msg; 58