]> git.sesse.net Git - vlc/blob - include/videolan/vlc.h
* Forgot a file in my last commit.
[vlc] / include / videolan / vlc.h
1 /*****************************************************************************
2  * vlc.h: common definitions
3  * Collection of useful common types and macros definitions
4  *****************************************************************************
5  * Copyright (C) 1998, 1999, 2000 VideoLAN
6  * $Id: vlc.h,v 1.1 2001/12/30 07:09:54 sam Exp $
7  *
8  * Authors: Samuel Hocevar <sam@via.ecp.fr>
9  *          Vincent Seguin <seguin@via.ecp.fr>
10  *          Gildas Bazin <gbazin@netcourrier.com>
11  *
12  * This program is free software; you can redistribute it and/or modify
13  * it under the terms of the GNU General Public License as published by
14  * the Free Software Foundation; either version 2 of the License, or
15  * (at your option) any later version.
16  * 
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20  * GNU General Public License for more details.
21  *
22  * You should have received a copy of the GNU General Public License
23  * along with this program; if not, write to the Free Software
24  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
25  *****************************************************************************/
26
27 /*****************************************************************************
28  * Required system headers
29  *****************************************************************************/
30 #include <string.h>                                            /* strerror() */
31
32 /*****************************************************************************
33  * Required vlc headers
34  *****************************************************************************/
35 #include "defs.h"
36 #include "config.h"
37 #include "int_types.h"
38
39 #if defined( PLUGIN ) || defined( BUILTIN )
40 #   include "modules_inner.h"
41 #endif
42
43 /*****************************************************************************
44  * Basic types definitions
45  *****************************************************************************/
46
47 typedef u8                  byte_t;
48
49 /* Boolean type */
50 #ifdef BOOLEAN_T_IN_SYS_TYPES_H
51 #   include <sys/types.h>
52 #elif defined(BOOLEAN_T_IN_PTHREAD_H)
53 #   include <pthread.h>
54 #elif defined(BOOLEAN_T_IN_CTHREADS_H)
55 #   include <cthreads.h>
56 #else
57 typedef int                 boolean_t;
58 #endif
59 #ifdef SYS_GNU
60 #   define _MACH_I386_BOOLEAN_H_
61 #endif
62
63 /* ptrdiff_t definition */
64 #ifdef HAVE_STDDEF_H
65 #   include <stddef.h>
66 #else
67 #   include <malloc.h>
68 #   ifndef _PTRDIFF_T
69 #       define _PTRDIFF_T
70 /* Not portable in a 64-bit environment. */
71 typedef int                 ptrdiff_t;
72 #   endif
73 #endif
74
75 /* Counter for statistics and profiling */
76 typedef unsigned long       count_t;
77
78 /* DCT elements types */
79 typedef s16                 dctelem_t;
80
81 /* Video buffer types */
82 typedef u8                  yuv_data_t;
83
84 /*****************************************************************************
85  * mtime_t: high precision date or time interval
86  *****************************************************************************
87  * Store an high precision date or time interval. The maximum precision is the
88  * micro-second, and a 64 bits integer is used to avoid any overflow (maximum
89  * time interval is then 292271 years, which should be long enough for any
90  * video). Date are stored as a time interval since a common date.
91  * Note that date and time intervals can be manipulated using regular
92  * arithmetic operators, and that no special functions are required.
93  *****************************************************************************/
94 typedef s64 mtime_t;
95
96 /*****************************************************************************
97  * Classes declaration
98  *****************************************************************************/
99
100 /* Plugins */
101 struct plugin_bank_s;
102 struct plugin_info_s;
103
104 typedef struct plugin_bank_s *          p_plugin_bank_t;
105 typedef struct plugin_info_s *          p_plugin_info_t;
106
107 /* Plugins */
108 struct playlist_s;
109 struct playlist_item_s;
110 struct module_s;
111
112 typedef struct playlist_s *             p_playlist_t;
113 typedef struct playlist_item_s *        p_playlist_item_t;
114
115 /* Interface */
116 struct intf_thread_s;
117 struct intf_sys_s;
118 struct intf_console_s;
119 struct intf_msg_s;
120 struct intf_channel_s;
121
122 typedef struct intf_thread_s *          p_intf_thread_t;
123 typedef struct intf_sys_s *             p_intf_sys_t;
124 typedef struct intf_console_s *         p_intf_console_t;
125 typedef struct intf_msg_s *             p_intf_msg_t;
126 typedef struct intf_channel_s *         p_intf_channel_t;
127
128 /* Input */
129 struct input_thread_s;
130 struct input_channel_s;
131 struct input_cfg_s;
132 struct input_area_s;
133
134 typedef struct input_thread_s *         p_input_thread_t;
135 typedef struct input_channel_s *        p_input_channel_t;
136 typedef struct input_cfg_s *            p_input_cfg_t;
137 typedef struct input_area_s *           p_input_area_t;
138
139 /* Audio */
140 struct aout_thread_s;
141 struct aout_sys_s;
142
143 typedef struct aout_thread_s *          p_aout_thread_t;
144 typedef struct aout_sys_s *             p_aout_sys_t;
145
146 /* Video */
147 struct vout_thread_s;
148 struct vout_font_s;
149 struct vout_sys_s;
150 struct vdec_thread_s;
151 struct vpar_thread_s;
152 struct video_parser_s;
153
154 typedef struct vout_thread_s *          p_vout_thread_t;
155 typedef struct vout_font_s *            p_vout_font_t;
156 typedef struct vout_sys_s *             p_vout_sys_t;
157 typedef struct chroma_sys_s *           p_chroma_sys_t;
158 typedef struct vdec_thread_s *          p_vdec_thread_t;
159 typedef struct vpar_thread_s *          p_vpar_thread_t;
160 typedef struct video_parser_s *         p_video_parser_t;
161
162 /* Decoders */
163 struct decoder_config_s;
164 struct decoder_fifo_s;
165
166 /* Misc */
167 struct macroblock_s;
168 struct data_packet_s;
169 struct imdct_s;
170 struct complex_s;
171 struct dm_par_s;
172 struct picture_s;
173 struct picture_sys_s;
174 struct picture_heap_s;
175 struct es_descriptor_s;
176 struct pgrm_descriptor_s;
177 struct pes_packet_s;
178 struct input_area_s;
179 struct bit_stream_s;
180 struct probedata_s;
181
182 /*****************************************************************************
183  * Macros and inline functions
184  *****************************************************************************/
185 #ifdef NTOHL_IN_SYS_PARAM_H
186 #   include <sys/param.h>
187
188 #elif defined(WIN32)
189 /* Swap bytes in 16 bit value.  */
190 #   define __bswap_constant_16(x) \
191      ((((x) >> 8) & 0xff) | (((x) & 0xff) << 8))
192
193 #   if defined __GNUC__ && __GNUC__ >= 2
194 #       define __bswap_16(x) \
195             (__extension__                                                    \
196              ({ register unsigned short int __v;                              \
197                 if (__builtin_constant_p (x))                                 \
198                   __v = __bswap_constant_16 (x);                              \
199                 else                                                          \
200                   __asm__ __volatile__ ("rorw $8, %w0"                        \
201                                         : "=r" (__v)                          \
202                                         : "0" ((unsigned short int) (x))      \
203                                         : "cc");                              \
204                 __v; }))
205 #   else
206 /* This is better than nothing.  */
207 #       define __bswap_16(x) __bswap_constant_16 (x)
208 #   endif
209
210 /* Swap bytes in 32 bit value.  */
211 #   define __bswap_constant_32(x) \
212         ((((x) & 0xff000000) >> 24) | (((x) & 0x00ff0000) >>  8) |            \
213          (((x) & 0x0000ff00) <<  8) | (((x) & 0x000000ff) << 24))
214
215 #   if defined __GNUC__ && __GNUC__ >= 2
216 /* To swap the bytes in a word the i486 processors and up provide the
217    `bswap' opcode.  On i386 we have to use three instructions.  */
218 #       if !defined __i486__ && !defined __pentium__ && !defined __pentiumpro__
219 #           define __bswap_32(x) \
220                 (__extension__                                                \
221                  ({ register unsigned int __v;                                \
222                     if (__builtin_constant_p (x))                             \
223                       __v = __bswap_constant_32 (x);                          \
224                     else                                                      \
225                       __asm__ __volatile__ ("rorw $8, %w0;"                   \
226                                             "rorl $16, %0;"                   \
227                                             "rorw $8, %w0"                    \
228                                             : "=r" (__v)                      \
229                                             : "0" ((unsigned int) (x))        \
230                                             : "cc");                          \
231                     __v; }))
232 #       else
233 #           define __bswap_32(x) \
234                 (__extension__                                                \
235                  ({ register unsigned int __v;                                \
236                     if (__builtin_constant_p (x))                             \
237                       __v = __bswap_constant_32 (x);                          \
238                     else                                                      \
239                       __asm__ __volatile__ ("bswap %0"                        \
240                                             : "=r" (__v)                      \
241                                             : "0" ((unsigned int) (x)));      \
242                     __v; }))
243 #       endif
244 #   else
245 #       define __bswap_32(x) __bswap_constant_32 (x)
246 #   endif
247
248 #   if defined __GNUC__ && __GNUC__ >= 2
249 /* Swap bytes in 64 bit value.  */
250 #       define __bswap_constant_64(x) \
251             ((((x) & 0xff00000000000000ull) >> 56)                            \
252              | (((x) & 0x00ff000000000000ull) >> 40)                          \
253              | (((x) & 0x0000ff0000000000ull) >> 24)                          \
254              | (((x) & 0x000000ff00000000ull) >> 8)                           \
255              | (((x) & 0x00000000ff000000ull) << 8)                           \
256              | (((x) & 0x0000000000ff0000ull) << 24)                          \
257              | (((x) & 0x000000000000ff00ull) << 40)                          \
258              | (((x) & 0x00000000000000ffull) << 56))
259
260 #       define __bswap_64(x) \
261             (__extension__                                                    \
262              ({ union { __extension__ unsigned long long int __ll;            \
263                         unsigned long int __l[2]; } __w, __r;                 \
264                 if (__builtin_constant_p (x))                                 \
265                   __r.__ll = __bswap_constant_64 (x);                         \
266                 else                                                          \
267                   {                                                           \
268                     __w.__ll = (x);                                           \
269                     __r.__l[0] = __bswap_32 (__w.__l[1]);                     \
270                     __r.__l[1] = __bswap_32 (__w.__l[0]);                     \
271                   }                                                           \
272                 __r.__ll; }))
273 #   endif
274
275 #else /* NTOHL_IN_SYS_PARAM_H || WIN32 */
276 #   include <netinet/in.h>
277
278 #endif /* NTOHL_IN_SYS_PARAM_H || WIN32 */
279
280 /* CEIL: division with round to nearest greater integer */
281 #define CEIL(n, d)  ( ((n) / (d)) + ( ((n) % (d)) ? 1 : 0) )
282
283 /* PAD: PAD(n, d) = CEIL(n ,d) * d */
284 #define PAD(n, d)   ( ((n) % (d)) ? ((((n) / (d)) + 1) * (d)) : (n) )
285
286 /* MAX and MIN: self explanatory */
287 #ifndef MAX
288 #   define MAX(a, b)   ( ((a) > (b)) ? (a) : (b) )
289 #endif
290 #ifndef MIN
291 #   define MIN(a, b)   ( ((a) < (b)) ? (a) : (b) )
292 #endif
293
294 /* MSB (big endian)/LSB (little endian) conversions - network order is always
295  * MSB, and should be used for both network communications and files. Note that
296  * byte orders other than little and big endians are not supported, but only
297  * the VAX seems to have such exotic properties - note that these 'functions'
298  * needs <netinet/in.h> or the local equivalent. */
299 /* FIXME: hton64 should be declared as an extern inline function to avoid
300  * border effects (see byteorder.h) */
301 #if WORDS_BIGENDIAN
302 #   define hton16      htons
303 #   define hton32      htonl
304 #   define hton64(i)   ( i )
305 #   define ntoh16      ntohs
306 #   define ntoh32      ntohl
307 #   define ntoh64(i)   ( i )
308 #else
309 #   define hton16      htons
310 #   define hton32      htonl
311 #   define hton64(i)   ( ((u64)(htonl((i) & 0xffffffff)) << 32) | htonl(((i) >> 32) & 0xffffffff ) )
312 #   define ntoh16      ntohs
313 #   define ntoh32      ntohl
314 #   define ntoh64      hton64
315 #endif
316
317 /* Macros with automatic casts */
318 #define U64_AT(p)   ( ntoh64 ( *( (u64 *)(p) ) ) )
319 #define U32_AT(p)   ( ntoh32 ( *( (u32 *)(p) ) ) )
320 #define U16_AT(p)   ( ntoh16 ( *( (u16 *)(p) ) ) )
321
322 /* Alignment of critical static data structures */
323 #ifdef ATTRIBUTE_ALIGNED_MAX
324 #   define ATTR_ALIGN(align) __attribute__ ((__aligned__ ((ATTRIBUTE_ALIGNED_MAX < align) ? ATTRIBUTE_ALIGNED_MAX : align)))
325 #else
326 #   define ATTR_ALIGN(align)
327 #endif
328
329 /* Alignment of critical dynamic data structure */
330 #ifdef HAVE_MEMALIGN
331     /* Some systems have memalign() but no declaration for it */
332     void * memalign( size_t align, size_t size );
333 #else
334 #   ifdef HAVE_VALLOC
335         /* That's like using a hammer to kill a fly, but eh... */
336 #       include <unistd.h>
337 #       define memalign(align,size) valloc(size)
338 #   else
339         /* Assume malloc alignment is sufficient */
340 #       define memalign(align,size) malloc(size)
341 #   endif    
342 #endif
343
344 #define I64C(x)         x##LL
345
346
347 #if defined( WIN32 )
348 /* The ntoh* and hton* bytes swapping functions are provided by winsock
349  * but for conveniency and speed reasons it is better to implement them
350  * ourselves. ( several plugins use them and it is too much hassle to link
351  * winsock with each of them ;-)
352  */
353 #   undef ntoh32(x)
354 #   undef ntoh16(x)
355 #   undef ntoh64(x)
356 #   undef hton32(x)
357 #   undef hton16(x)
358 #   undef hton64(x)
359
360 #   ifdef WORDS_BIGENDIAN
361 #       define ntoh32(x)       (x)
362 #       define ntoh16(x)       (x)
363 #       define ntoh64(x)       (x)
364 #       define hton32(x)       (x)
365 #       define hton16(x)       (x)
366 #       define hton64(x)       (x)
367 #   else
368 #       define ntoh32(x)     __bswap_32 (x)
369 #       define ntoh16(x)     __bswap_16 (x)
370 #       define ntoh64(x)     __bswap_32 (x)
371 #       define hton32(x)     __bswap_32 (x)
372 #       define hton16(x)     __bswap_16 (x)
373 #       define hton64(x)     __bswap_32 (x)
374 #   endif
375
376 /* win32, cl and icl support */
377 #   if defined( _MSC_VER )
378 #       define __attribute__(x)
379 #       define __inline__      __inline
380 #       define strncasecmp     strnicmp
381 #       define strcasecmp      stricmp
382 #       define S_ISBLK(m)      (0)
383 #       define S_ISCHR(m)      (0)
384 #       define S_ISFIFO(m)     (((m)&_S_IFMT) == _S_IFIFO)
385 #       define S_ISREG(m)      (((m)&_S_IFMT) == _S_IFREG)
386 #       undef I64C(x)
387 #       define I64C(x)         x##i64
388 #   endif
389
390 /* several type definitions */
391 #   if defined( __MINGW32__ )
392 #       if !defined( _OFF_T_ )
393 typedef long long _off_t;
394 typedef _off_t off_t;
395 #           define _OFF_T_
396 #       else
397 #           define off_t long long
398 #       endif
399 #   endif
400
401 #   if defined( _MSC_VER )
402 #       if !defined( _OFF_T_DEFINED )
403 typedef __int64 off_t;
404 #           define _OFF_T_DEFINED
405 #       else
406 #           define off_t __int64
407 #       endif
408 #       define stat _stati64
409 #   endif
410
411 #   ifndef snprintf
412 #       define snprintf _snprintf  /* snprintf not defined in mingw32 (bug?) */
413 #   endif
414
415 #endif
416
417 /*****************************************************************************
418  * CPU capabilities
419  *****************************************************************************/
420 #define CPU_CAPABILITY_NONE    0
421 #define CPU_CAPABILITY_486     1<<0
422 #define CPU_CAPABILITY_586     1<<1
423 #define CPU_CAPABILITY_PPRO    1<<2
424 #define CPU_CAPABILITY_MMX     1<<3
425 #define CPU_CAPABILITY_3DNOW   1<<4
426 #define CPU_CAPABILITY_MMXEXT  1<<5
427 #define CPU_CAPABILITY_SSE     1<<6
428 #define CPU_CAPABILITY_ALTIVEC 1<<16
429 #define CPU_CAPABILITY_FPU     1<<31
430
431 /*****************************************************************************
432  * I18n stuff
433  *****************************************************************************/
434 #if defined( ENABLE_NLS ) && defined ( HAVE_GETTEXT )
435 #   include <libintl.h>
436 #else
437 #   define _(String) (String)
438 #   define N_(String) (String)
439 #   define textdomain(Domain)
440 #   define bindtextdomain(Package, Directory) 1
441 #endif
442
443 /*****************************************************************************
444  * Plug-in stuff
445  *****************************************************************************/
446 typedef struct module_symbols_s
447 {
448     struct main_s* p_main;
449     struct aout_bank_s* p_aout_bank;
450     struct vout_bank_s* p_vout_bank;
451
452     int    ( * main_GetIntVariable ) ( char *, int );
453     char * ( * main_GetPszVariable ) ( char *, char * );
454     void   ( * main_PutIntVariable ) ( char *, int );
455     void   ( * main_PutPszVariable ) ( char *, char * );
456
457     int  ( * intf_ProcessKey ) ( struct intf_thread_s *, int );
458     void ( * intf_AssignKey )  ( struct intf_thread_s *, int, int, int );
459
460     void ( * intf_Msg )        ( char *, ... );
461     void ( * intf_ErrMsg )     ( char *, ... );
462     void ( * intf_StatMsg )    ( char *, ... );
463     void ( * intf_WarnMsg )    ( int, char *, ... );
464     void ( * intf_WarnMsgImm ) ( int, char *, ... );
465 #ifdef TRACE
466     void ( * intf_DbgMsg )     ( char *, char *, int, char *, ... );
467     void ( * intf_DbgMsgImm )  ( char *, char *, int, char *, ... );
468 #endif
469
470     int  ( * intf_PlaylistAdd )     ( struct playlist_s *, int, const char* );
471     int  ( * intf_PlaylistDelete )  ( struct playlist_s *, int );
472     void ( * intf_PlaylistNext )    ( struct playlist_s * );
473     void ( * intf_PlaylistPrev )    ( struct playlist_s * );
474     void ( * intf_PlaylistDestroy ) ( struct playlist_s * );
475     void ( * intf_PlaylistJumpto )  ( struct playlist_s *, int );
476     void ( * intf_UrlDecode )       ( char * );
477
478     void    ( * msleep )         ( mtime_t );
479     mtime_t ( * mdate )          ( void );
480
481     int  ( * network_ChannelCreate )( void );
482     int  ( * network_ChannelJoin )  ( int );
483
484     int  ( * input_SetProgram )     ( struct input_thread_s *,
485                                       struct pgrm_descriptor_s * );
486     void ( * input_SetStatus )      ( struct input_thread_s *, int );
487     void ( * input_Seek )           ( struct input_thread_s *, off_t );
488     void ( * input_DumpStream )     ( struct input_thread_s * );
489     char * ( * input_OffsetToTime ) ( struct input_thread_s *, char *, off_t );
490     int  ( * input_ChangeES )       ( struct input_thread_s *,
491                                       struct es_descriptor_s *, u8 );
492     int  ( * input_ToggleES )       ( struct input_thread_s *,
493                                       struct es_descriptor_s *, boolean_t );
494     int  ( * input_ChangeArea )     ( struct input_thread_s *,
495                                       struct input_area_s * );
496     struct es_descriptor_s * ( * input_FindES ) ( struct input_thread_s *,
497                                                   u16 );
498     struct es_descriptor_s * ( * input_AddES ) ( struct input_thread_s *,
499                                       struct pgrm_descriptor_s *, u16, size_t );
500     void ( * input_DelES )          ( struct input_thread_s *,
501                                       struct es_descriptor_s * );
502     int  ( * input_SelectES )       ( struct input_thread_s *,
503                                       struct es_descriptor_s * );
504     int  ( * input_UnselectES )     ( struct input_thread_s *,
505                                       struct es_descriptor_s * );
506     struct pgrm_descriptor_s* ( * input_AddProgram ) ( struct input_thread_s *,
507                                                        u16, size_t );
508     void ( * input_DelProgram )     ( struct input_thread_s *,
509                                       struct pgrm_descriptor_s * );
510     struct input_area_s * ( * input_AddArea ) ( struct input_thread_s * );
511     void ( * input_DelArea )        ( struct input_thread_s *,
512                                       struct input_area_s * );
513
514     void ( * InitBitstream )        ( struct bit_stream_s *,
515                                       struct decoder_fifo_s *,
516                                       void ( * ) ( struct bit_stream_s *,
517                                                    boolean_t ),
518                                       void * );
519     void ( * DecoderError )         ( struct decoder_fifo_s * p_fifo );
520     int  ( * input_InitStream )     ( struct input_thread_s *, size_t );
521     void ( * input_EndStream )      ( struct input_thread_s * );
522
523     void ( * input_ParsePES )       ( struct input_thread_s *,
524                                       struct es_descriptor_s * );
525     void ( * input_GatherPES )      ( struct input_thread_s *,
526                                       struct data_packet_s *,
527                                       struct es_descriptor_s *,
528                                       boolean_t, boolean_t );
529     void ( * input_DecodePES )      ( struct decoder_fifo_s *,
530                                       struct pes_packet_s * );
531     struct es_descriptor_s * ( * input_ParsePS ) ( struct input_thread_s *,
532                                                    struct data_packet_s * );
533     void ( * input_DemuxPS )        ( struct input_thread_s *,
534                                       struct data_packet_s * );
535     void ( * input_DemuxTS )        ( struct input_thread_s *,
536                                       struct data_packet_s * );
537     void ( * input_DemuxPSI )       ( struct input_thread_s *,
538                                       struct data_packet_s *,
539                                       struct es_descriptor_s *, 
540                                       boolean_t, boolean_t );
541
542     int ( * input_ClockManageControl )   ( struct input_thread_s *,
543                                            struct pgrm_descriptor_s *,
544                                            mtime_t );
545
546     struct aout_fifo_s * ( * aout_CreateFifo ) 
547                                        ( int, int, long, long, long, void * );
548     void ( * aout_DestroyFifo )     ( struct aout_fifo_s * );
549
550     struct vout_thread_s * (* vout_CreateThread) ( int *, int, int, int, int );
551     void  ( * vout_DestroyThread )  ( struct vout_thread_s *, int * );
552
553     struct picture_s * ( * vout_CreatePicture )
554                                     ( struct vout_thread_s *,
555                                       boolean_t, boolean_t, boolean_t ); 
556     void  ( * vout_AllocatePicture )( struct picture_s *, int, int, int );
557     void  ( * vout_DisplayPicture ) ( struct vout_thread_s *, 
558                                       struct picture_s * );
559     void  ( * vout_DestroyPicture ) ( struct vout_thread_s *,
560                                       struct picture_s * );
561     void  ( * vout_LinkPicture )    ( struct vout_thread_s *,
562                                       struct picture_s * );
563     void  ( * vout_UnlinkPicture )  ( struct vout_thread_s *,
564                                       struct picture_s * );
565     void  ( * vout_DatePicture )    ( struct vout_thread_s *, 
566                                       struct picture_s *, mtime_t );
567     void  ( * vout_PlacePicture )   ( struct vout_thread_s *, int, int,
568                                       int *, int *, int *, int * );
569
570     struct subpicture_s * (* vout_CreateSubPicture)
571                                         ( struct vout_thread_s *, int, int );
572     void  ( * vout_DestroySubPicture )  ( struct vout_thread_s *, 
573                                           struct subpicture_s * );
574     void  ( * vout_DisplaySubPicture )  ( struct vout_thread_s *, 
575                                           struct subpicture_s * );
576     
577     u32  ( * UnalignedShowBits )    ( struct bit_stream_s *, unsigned int );
578     void ( * UnalignedRemoveBits )  ( struct bit_stream_s * );
579     u32  ( * UnalignedGetBits )     ( struct bit_stream_s *, unsigned int );
580
581     char * ( * DecodeLanguage ) ( u16 );
582
583     struct module_s * ( * module_Need ) ( int, char *, struct probedata_s * );
584     void ( * module_Unneed )            ( struct module_s * );
585 } module_symbols_t;
586
587 #ifdef PLUGIN
588 extern module_symbols_t* p_symbols;
589 #endif
590
591 /*****************************************************************************
592  * Required vlc headers
593  *****************************************************************************/
594 #ifdef SYS_BEOS
595 #   include "beos_specific.h"
596 #endif
597 #ifdef SYS_DARWIN
598 #   include "darwin_specific.h"
599 #endif
600 #ifdef WIN32
601 #   include "win32_specific.h"
602 #endif
603
604 #include "intf_msg.h"
605 #include "threads.h"
606 #include "mtime.h"
607 #include "modules.h"
608
609 #include "main.h"
610