filename | src/gui.h |
changeset | 561:533f6b478071 |
prev | 545:fdcdcd8b9fd1 |
next | 678:35eb00945316 |
author | nkeynes |
date | Fri Feb 08 00:06:56 2008 +0000 (16 years ago) |
permissions | -rw-r--r-- |
last change | Fix LDS/STS to FPUL/FPSCR to check the FPU disabled bit. Fixes the linux 2.4.0-test8 kernel boot (this wasn't exactly very well documented in the original manual) |
view | annotate | diff | log | raw |
1 /**
2 * $Id$
3 *
4 * Public GUI declarations (used from elsewhere in the system)
5 *
6 * Copyright (c) 2005 Nathan Keynes.
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 */
19 #ifndef __lxdream_gui_H
20 #define __lxdream_gui_H
22 #include <glib/gtypes.h>
24 /**
25 * GUI-provided method to scan the command line for standard arguments,
26 * invoked prior to regular command line processing. The command line
27 * is modified to remove any arguments handled by the UI.
28 * @return TRUE on success, FALSE on failure.
29 */
30 gboolean gui_parse_cmdline( int *argc, char **argv[] );
32 /**
33 * Initialize the GUI system and create any windows needed. This method
34 * should also register the GUI module with the module manager (if the
35 * GUI has one).
36 *
37 * @param debug TRUE if the system should start in debugging mode.
38 */
39 gboolean gui_init( gboolean debug );
41 /**
42 * Enter the GUI main loop. If this method ever returns, the system will
43 * exit normally.
44 */
45 void gui_main_loop(void);
47 gboolean gui_error_dialog( const char *fmt, ... );
49 typedef enum { IO_IDE, IO_NETWORK } io_activity_type;
51 /**
52 * Notify the GUI of state changes (eg binary was loaded and PC changed)
53 */
54 void gui_update_state();
56 /**
57 * Notify the GUI of I/O activity.
58 * @param activity the type of IO activity being reported.
59 * @param active TRUE if the I/O device is becoming active, FALSE if inactive.
60 */
61 void gui_update_io_activity( io_activity_type activity, gboolean active );
63 /**
64 * Open a gdrom filename via the menu. FIXME: Should be generic
65 */
66 gboolean gdrom_menu_open_file( const char *filename );
68 #endif /* __lxdream_gui_H */
.