2002-04-03 07:43:57 +08:00
|
|
|
/*****************************************************************************
|
|
|
|
* os_specific.h: OS specific features
|
|
|
|
*****************************************************************************
|
|
|
|
* Copyright (C) 2001 VideoLAN
|
2004-01-26 02:17:08 +08:00
|
|
|
* $Id: os_specific.h,v 1.13 2004/01/25 18:17:08 zorglub Exp $
|
2002-04-03 07:43:57 +08:00
|
|
|
*
|
|
|
|
* Authors: Samuel Hocevar <sam@zoy.org>
|
|
|
|
* Gildas Bazin <gbazin@netcourrier.com>
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
2004-01-26 02:17:08 +08:00
|
|
|
*
|
2002-04-03 07:43:57 +08:00
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
|
|
|
|
*****************************************************************************/
|
|
|
|
|
2002-04-26 05:52:42 +08:00
|
|
|
#ifndef _NEED_OS_SPECIFIC_H
|
|
|
|
# define _NEED_OS_SPECIFIC_H 1
|
2002-04-03 07:43:57 +08:00
|
|
|
#endif
|
2002-04-26 05:52:42 +08:00
|
|
|
|
|
|
|
#if defined( SYS_BEOS )
|
|
|
|
# include "beos_specific.h"
|
|
|
|
#elif defined( SYS_DARWIN )
|
2002-04-03 07:43:57 +08:00
|
|
|
# include "darwin_specific.h"
|
2002-11-11 22:39:12 +08:00
|
|
|
#elif defined( WIN32 ) || defined( UNDER_CE )
|
2002-04-03 07:43:57 +08:00
|
|
|
# include "win32_specific.h"
|
2002-04-26 05:52:42 +08:00
|
|
|
#else
|
|
|
|
# undef _NEED_OS_SPECIFIC_H
|
2002-04-03 07:43:57 +08:00
|
|
|
#endif
|
|
|
|
|
2002-04-26 05:52:42 +08:00
|
|
|
# ifdef __cplusplus
|
2002-04-03 07:43:57 +08:00
|
|
|
extern "C" {
|
2002-04-26 05:52:42 +08:00
|
|
|
# endif
|
2002-04-03 07:43:57 +08:00
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* Prototypes
|
|
|
|
*****************************************************************************/
|
2002-04-26 05:52:42 +08:00
|
|
|
#ifdef _NEED_OS_SPECIFIC_H
|
2002-06-02 22:26:16 +08:00
|
|
|
void system_Init ( vlc_t *, int *, char *[] );
|
2003-09-30 01:36:35 +08:00
|
|
|
void system_Configure ( vlc_t *, int *, char *[] );
|
2002-06-02 22:26:16 +08:00
|
|
|
void system_End ( vlc_t * );
|
2002-04-26 05:52:42 +08:00
|
|
|
#else
|
2002-04-28 17:05:37 +08:00
|
|
|
# define system_Init( a, b, c ) {}
|
2003-09-30 02:20:37 +08:00
|
|
|
# define system_Configure( a, b, c ) {}
|
* ALL: the first libvlc commit.
As for video output 4, this breaks almost everything, but I'll slowly
do what remains to be fixed during the weekend.
Changes in vlc:
===============
* vlc is now a very small program (20 lines) which uses the libvlc API;
it is quite simple for the moment but can be extended in the future.
* interfaces, decoders, video outputs, etc. are now almost the same
objects (yes, I know, this is C++ redone in C) and are structured in
a tree. More about this later, but basically it allows the following
nice features:
- several interfaces
- several playlists with several outputs
- input plugins spawning helper interfaces (will be used for DVD menus)
- anything spawning anything; I swear there are useful uses for this!
* libvlc can be used in other programs; I'm currently writing a Mozilla
plugin for my employer.
Things currently broken:
========================
* most interfaces, most ports
* the playlist handling (almost finished rewriting this though). This means
no file can be played from the GUI, you need to use the commandline. This
also means it segfaults at EOF, when exiting the program, and it sometimes
refuses to open a file when asked to.
2002-06-01 20:32:02 +08:00
|
|
|
# define system_End( a ) {}
|
2002-04-26 05:52:42 +08:00
|
|
|
#endif
|
2002-04-03 07:43:57 +08:00
|
|
|
|
2002-04-26 05:52:42 +08:00
|
|
|
# ifdef __cplusplus
|
2002-04-03 07:43:57 +08:00
|
|
|
}
|
2002-04-26 05:52:42 +08:00
|
|
|
# endif
|