]> git.sesse.net Git - vlc/blob - include/interface.h
a0e847b7e3b715de0f1b02175825f189b3fcf1f5
[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
30 {
31     boolean_t           b_die;                                  /* `die' flag */
32
33     /* Threads control */
34     input_thread_t *    pp_input[INPUT_MAX_THREADS];         /* input threads */
35     vout_thread_t *     pp_vout[VOUT_MAX_THREADS];            /* vout threads */
36     aout_thread_t *     p_aout;                                /* aout thread */
37
38     int                 i_input;                      /* default input thread */
39     int                 i_vout;                      /* default output thread */
40
41     /* Specific interfaces */     
42     xconsole_t          xconsole;                              /* X11 console */
43 } intf_thread_t;
44
45 /******************************************************************************
46  * Prototypes
47  ******************************************************************************/
48 int intf_Run( intf_thread_t * p_intf );