]> git.sesse.net Git - vlc/blob - include/interface.h
Changement de l'API de vout (chroma_width)
[vlc] / include / interface.h
1 /******************************************************************************
2  * interface.h: interface access for other threads
3  * (c)1999 VideoLAN
4  ******************************************************************************
5  * This library provides basic functions for threads to interact with user
6  * interface, such as message output.
7  ******************************************************************************
8  * Required headers:
9  *  <sys/uio.h>
10  *  <X11/Xlib.h>
11  *  <X11/extensions/XShm.h>
12  *  "config.h"
13  *  "common.h"
14  *  "mtime.h"
15  *  "vlc_thread.h"
16  *  "input.h"
17  *  "video.h"
18  *  "video_output.h"
19  *  "audio_output.h"
20  *  "xconsole.h"
21  ******************************************************************************/
22
23 /******************************************************************************
24  * intf_thread_t: describe an interface thread
25  ******************************************************************************
26  * This structe describes all interface-specific data of the main (interface)
27  * thread.
28  ******************************************************************************/
29 typedef struct intf_thread_s
30 {
31     boolean_t           b_die;                                  /* `die' flag */
32
33     /* Specific interfaces */     
34     p_intf_console_t    p_console;                                 /* console */
35     p_intf_sys_t        p_sys;                            /* system interface */
36
37     /* Main threads - NULL if not active */
38     p_vout_thread_t     p_vout;
39     p_input_thread_t    p_input;        
40 } intf_thread_t;
41
42 /******************************************************************************
43  * Prototypes
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 );
48
49 int             intf_SelectInput        ( intf_thread_t * p_intf, p_input_cfg_t p_cfg );
50