1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/src/gui.h Tue Oct 16 12:28:42 2007 +0000
1.5 + * $Id: gui.h,v 1.1 2007-10-10 11:02:04 nkeynes Exp $
1.7 + * Public GUI declarations (used from elsewhere in the system)
1.9 + * Copyright (c) 2005 Nathan Keynes.
1.11 + * This program is free software; you can redistribute it and/or modify
1.12 + * it under the terms of the GNU General Public License as published by
1.13 + * the Free Software Foundation; either version 2 of the License, or
1.14 + * (at your option) any later version.
1.16 + * This program is distributed in the hope that it will be useful,
1.17 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
1.18 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.19 + * GNU General Public License for more details.
1.22 +#ifndef __lxdream_gui_H
1.23 +#define __lxdream_gui_H
1.25 +#include <glib/gtypes.h>
1.28 + * GUI-provided method to scan the command line for standard arguments,
1.29 + * invoked prior to regular command line processing. The command line
1.30 + * is modified to remove any arguments handled by the UI.
1.31 + * @return TRUE on success, FALSE on failure.
1.33 +gboolean gui_parse_cmdline( int *argc, char **argv[] );
1.36 + * Initialize the GUI system and create any windows needed. This method
1.37 + * should also register the GUI module with the module manager (if the
1.40 + * @param debug TRUE if the system should start in debugging mode.
1.42 +gboolean gui_init( gboolean debug );
1.45 + * Enter the GUI main loop. If this method ever returns, the system will
1.48 +void gui_main_loop(void);
1.50 +typedef enum { IO_IDE, IO_NETWORK } io_activity_type;
1.53 + * Notify the GUI of I/O activity.
1.54 + * @param activity the type of IO activity being reported.
1.55 + * @param active TRUE if the I/O device is becoming active, FALSE if inactive.
1.57 +void gui_update_io_activity( io_activity_type activity, gboolean active );
1.59 +#endif /* __lxdream_gui_H */