]> git.sesse.net Git - vlc/blob - include/os_specific.h
* ./src/interface/main.c: we no longer segfault if argc == 0.
[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.2 2002/04/24 00:36:24 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 #ifdef SYS_BEOS
26 #   include "beos_specific.h"
27 #endif
28 #ifdef SYS_DARWIN
29 #   include "darwin_specific.h"
30 #endif
31 #ifdef WIN32
32 #   include "win32_specific.h"
33 #endif
34
35 #ifdef __cplusplus
36 extern "C" {
37 #endif
38
39 /*****************************************************************************
40  * main_sys_t: system specific descriptor
41  ****************************************************************************/
42 struct main_sys_s;
43
44 #ifndef __PLUGIN__
45 extern struct main_sys_s *p_main_sys;
46 #else
47 #   define p_main_sys (p_symbols->p_main_sys)
48 #endif
49
50
51 /*****************************************************************************
52  * Prototypes
53  *****************************************************************************/
54 void system_Init ( int *pi_argc, char *ppsz_argv[], char *ppsz_env[] );
55 void system_Configure  ( void );
56 void system_End  ( void );
57
58 #ifdef __cplusplus
59 }
60 #endif