]> git.sesse.net Git - vlc/blob - modules/video_output/sdl/sdl.c
* Fixed miscellaneous bugs.
[vlc] / modules / video_output / sdl / sdl.c
1 /*****************************************************************************
2  * sdl.c : SDL plugin for vlc
3  *****************************************************************************
4  * Copyright (C) 2000, 2001 VideoLAN
5  * $Id: sdl.c,v 1.1 2002/08/04 17:23:44 sam Exp $
6  *
7  * Authors: Samuel Hocevar <sam@zoy.org>
8  *          Pierre Baillet <oct@zoy.org>
9  *          Arnaud de Bossoreille de Ribou <bozo@via.ecp.fr>
10  *      
11  * This program is free software; you can redistribute it and/or modify
12  * it under the terms of the GNU General Public License as published by
13  * the Free Software Foundation; either version 2 of the License, or
14  * (at your option) any later version.
15  * 
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19  * GNU General Public License for more details.
20  *
21  * You should have received a copy of the GNU General Public License
22  * along with this program; if not, write to the Free Software
23  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
24  *****************************************************************************/
25
26 /*****************************************************************************
27  * Preamble
28  *****************************************************************************/
29 #include <stdlib.h>                                      /* malloc(), free() */
30 #include <string.h>
31
32 #include <vlc/vlc.h>
33
34 /*****************************************************************************
35  * External prototypes
36  *****************************************************************************/
37 int  E_(OpenVideo)    ( vlc_object_t * );
38 void E_(CloseVideo)   ( vlc_object_t * );
39
40 int  E_(OpenAudio)    ( vlc_object_t * );
41 void E_(CloseAudio)   ( vlc_object_t * );
42
43 /*****************************************************************************
44  * Module descriptor
45  *****************************************************************************/
46 vlc_module_begin();
47     set_description( _("Simple DirectMedia Layer module") );
48     add_submodule();
49         set_capability( "video output", 40 );
50         set_callbacks( E_(OpenVideo), E_(CloseVideo) );
51     add_submodule();
52         set_capability( "audio output", 40 );
53         set_callbacks( E_(OpenAudio), E_(CloseAudio) );
54 vlc_module_end();
55