]> git.sesse.net Git - vlc/blob - include/os_specific.h
30ea2fe19c7240486e35ca68c47c444d24d734c4
[vlc] / include / os_specific.h
1 /*****************************************************************************
2  * os_specific.h: OS specific features
3  *****************************************************************************
4  * Copyright (C) 2001 VideoLAN
5  * $Id: os_specific.h,v 1.3 2002/04/25 21:52:42 sam Exp $
6  *
7  * Authors: Samuel Hocevar <sam@zoy.org>
8  *          Gildas Bazin <gbazin@netcourrier.com>
9  *
10  * This program is free software; you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation; either version 2 of the License, or
13  * (at your option) any later version.
14  * 
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with this program; if not, write to the Free Software
22  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
23  *****************************************************************************/
24
25 #ifndef _NEED_OS_SPECIFIC_H
26 #   define _NEED_OS_SPECIFIC_H 1
27 #endif
28
29 #if defined( SYS_BEOS )
30 #   include "beos_specific.h"
31 #elif defined( SYS_DARWIN )
32 #   include "darwin_specific.h"
33 #elif defined( WIN32 )
34 #   include "win32_specific.h"
35 #else
36 #   undef _NEED_OS_SPECIFIC_H
37 #endif
38
39 #   ifdef __cplusplus
40 extern "C" {
41 #   endif
42
43 /*****************************************************************************
44  * main_sys_t: system specific descriptor
45  ****************************************************************************/
46 struct main_sys_s;
47
48 #ifndef __PLUGIN__
49     extern struct main_sys_s *p_main_sys;
50 #else
51 #   define p_main_sys (p_symbols->p_main_sys)
52 #endif
53
54 /*****************************************************************************
55  * Prototypes
56  *****************************************************************************/
57 #ifdef _NEED_OS_SPECIFIC_H
58     void system_Init ( int *pi_argc, char *ppsz_argv[], char *ppsz_env[] );
59     void system_Configure  ( void );
60     void system_End  ( void );
61 #else
62 #   define system_Init(...) {}
63 #   define system_Configure(...) {}
64 #   define system_End(...) {}
65 #endif
66
67 #   ifdef __cplusplus
68 }
69 #   endif
70