1 /******************************************************************************
2 * interface.h: interface access for other threads
4 ******************************************************************************
5 * This library provides basic functions for threads to interact with user
6 * interface, such as message output.
7 ******************************************************************************
11 * <X11/extensions/XShm.h>
21 ******************************************************************************/
23 /******************************************************************************
24 * intf_thread_t: describe an interface thread
25 ******************************************************************************
26 * This structe describes all interface-specific data of the main (interface)
28 ******************************************************************************/
29 typedef struct intf_thread_s
31 boolean_t b_die; /* `die' flag */
33 /* Specific interfaces */
34 p_intf_console_t p_console; /* console */
35 p_intf_sys_t p_sys; /* system interface */
37 /* Main threads - NULL if not active */
38 p_vout_thread_t p_vout;
39 p_input_thread_t p_input;
42 /******************************************************************************
44 ******************************************************************************/
45 intf_thread_t * intf_Create ( void );
46 void intf_Run ( intf_thread_t * p_intf );
47 void intf_Destroy ( intf_thread_t * p_intf );
49 int intf_SelectInput ( intf_thread_t * p_intf, p_input_cfg_t p_cfg );