]> git.sesse.net Git - vlc/blob - plugins/beos/beos.cpp
* ALL: new module API. Makes a few things a lot simpler, and we gain
[vlc] / plugins / beos / beos.cpp
1 /*****************************************************************************
2  * beos.cpp : BeOS plugin for vlc
3  *****************************************************************************
4  * Copyright (C) 2000, 2001 VideoLAN
5  * $Id: beos.cpp,v 1.20 2002/07/31 20:56:50 sam Exp $
6  *
7  * Authors: Jean-Marc Dressler <polux@via.ecp.fr>
8  *          Samuel Hocevar <sam@zoy.org>
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 /*****************************************************************************
26  * Preamble
27  *****************************************************************************/
28 #include <stdlib.h>                                      /* malloc(), free() */
29 #include <string.h>
30
31 #include <vlc/vlc.h>
32
33 /*****************************************************************************
34  * External prototypes
35  *****************************************************************************/
36 int  E_(OpenIntf)     ( vlc_object_t * );
37 void E_(CloseIntf)    ( vlc_object_t * );
38
39 int  E_(OpenAudio)    ( vlc_object_t * );
40 void E_(CloseAudio)   ( vlc_object_t * );
41
42 int  E_(OpenVideo)    ( vlc_object_t * );
43 void E_(CloseVideo)   ( vlc_object_t * );
44
45 /*****************************************************************************
46  * Module descriptor
47  *****************************************************************************/
48 vlc_module_begin();
49     set_description( _("BeOS standard API module") );
50     add_submodule();
51         set_capability( "interface", 100 );
52         set_callbacks( E_(OpenIntf), E_(CloseIntf) );
53     add_submodule();                                     
54         set_capability( "video output", 100 );
55         set_callbacks( E_(OpenVideo), E_(CloseVideo) );
56     add_submodule();
57         set_capability( "audio output", 100 );
58         set_callbacks( E_(OpenAudio), E_(CloseAudio) );
59 vlc_module_end();
60