1999-08-08 14:42:54 +02:00
|
|
|
/******************************************************************************
|
|
|
|
* interface.h: interface access for other threads
|
|
|
|
* (c)1999 VideoLAN
|
|
|
|
******************************************************************************
|
|
|
|
* This library provides basic functions for threads to interact with user
|
|
|
|
* interface, such as message output.
|
|
|
|
******************************************************************************
|
|
|
|
* Required headers:
|
|
|
|
* <sys/uio.h>
|
|
|
|
* <X11/Xlib.h>
|
|
|
|
* <X11/extensions/XShm.h>
|
|
|
|
* "config.h"
|
|
|
|
* "common.h"
|
|
|
|
* "mtime.h"
|
1999-12-08 16:22:59 +01:00
|
|
|
* "vlc_thread.h"
|
1999-08-08 14:42:54 +02:00
|
|
|
* "input.h"
|
|
|
|
* "video.h"
|
|
|
|
* "video_output.h"
|
|
|
|
* "audio_output.h"
|
|
|
|
* "xconsole.h"
|
|
|
|
******************************************************************************/
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* intf_thread_t: describe an interface thread
|
|
|
|
******************************************************************************
|
|
|
|
* This structe describes all interface-specific data of the main (interface)
|
|
|
|
* thread.
|
|
|
|
******************************************************************************/
|
2000-01-11 00:36:06 +01:00
|
|
|
typedef struct intf_thread_s
|
1999-08-08 14:42:54 +02:00
|
|
|
{
|
|
|
|
boolean_t b_die; /* `die' flag */
|
|
|
|
|
|
|
|
/* Specific interfaces */
|
2000-01-11 00:36:06 +01:00
|
|
|
p_intf_console_t p_console; /* console */
|
|
|
|
p_intf_sys_t p_sys; /* system interface */
|
|
|
|
|
|
|
|
/* Main threads - NULL if not active */
|
|
|
|
p_vout_thread_t p_vout;
|
|
|
|
p_input_thread_t p_input;
|
1999-08-08 14:42:54 +02:00
|
|
|
} intf_thread_t;
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* Prototypes
|
|
|
|
******************************************************************************/
|
2000-01-11 00:36:06 +01:00
|
|
|
intf_thread_t * intf_Create ( void );
|
|
|
|
void intf_Run ( intf_thread_t * p_intf );
|
|
|
|
void intf_Destroy ( intf_thread_t * p_intf );
|
|
|
|
|
|
|
|
int intf_SelectInput ( intf_thread_t * p_intf, p_input_cfg_t p_cfg );
|
|
|
|
|