]> git.sesse.net Git - vlc/blob - include/vlc_os_specific.h
A bit of vlc/libvlc cleanup:
[vlc] / include / vlc_os_specific.h
1 /*****************************************************************************
2  * os_specific.h: OS specific features
3  *****************************************************************************
4  * Copyright (C) 2001 the VideoLAN team
5  * $Id$
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., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
23  *****************************************************************************/
24
25 #if !defined( __LIBVLC__ )
26   #error You are not libvlc or one of its plugins. You cannot include this file
27 #endif
28
29 #ifndef _NEED_OS_SPECIFIC_H
30 #   define _NEED_OS_SPECIFIC_H 1
31 #endif
32
33 #if defined( SYS_BEOS )
34 /* Nothing at the moment, create beos_specific.h when needed */
35 #elif defined( __APPLE__ )
36 /* Nothing at the moment, create darwin_specific.h when needed */
37 #elif defined( WIN32 ) || defined( UNDER_CE )
38 /* Nothing at the moment, create win32_specific.h when needed */
39 #else
40 #   undef _NEED_OS_SPECIFIC_H
41 #endif
42
43 #   ifdef __cplusplus
44 extern "C" {
45 #   endif
46
47 /*****************************************************************************
48  * Prototypes
49  *****************************************************************************/
50 #ifdef _NEED_OS_SPECIFIC_H
51     void system_Init       ( libvlc_int_t *, int *, char *[] );
52     void system_Configure  ( libvlc_int_t *, int *, char *[] );
53     void system_End        ( libvlc_int_t * );
54 #else
55 #   define system_Init( a, b, c ) {}
56 #   define system_Configure( a, b, c ) {}
57 #   define system_End( a ) {}
58 #endif
59
60 #   ifdef __cplusplus
61 }
62 #   endif