]> git.sesse.net Git - vlc/blob - modules/gui/macosx/macosx.m
* include/configuration.h: added a new flag to the configuration stucture to
[vlc] / modules / gui / macosx / macosx.m
1 /*****************************************************************************
2  * macosx.m: MacOS X plugin for vlc
3  *****************************************************************************
4  * Copyright (C) 2001-2003 VideoLAN
5  * $Id: macosx.m,v 1.3 2003/02/20 01:52:46 sigmunau Exp $
6  *
7  * Authors: Colin Delacroix <colin@zoy.org>
8  *          Eugenio Jarosiewicz <ej0@cise.ufl.edu>
9  *          Florian G. Pflug <fgp@phlo.org>
10  *          Jon Lech Johansen <jon-vl@nanocrew.net>
11  *
12  * This program is free software; you can redistribute it and/or modify
13  * it under the terms of the GNU General Public License as published by
14  * the Free Software Foundation; either version 2 of the License, or
15  * (at your option) any later version.
16  * 
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20  * GNU General Public License for more details.
21  *
22  * You should have received a copy of the GNU General Public License
23  * along with this program; if not, write to the Free Software
24  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
25  *****************************************************************************/
26
27 /*****************************************************************************
28  * Preamble
29  *****************************************************************************/
30 #include <stdlib.h>                                      /* malloc(), free() */
31 #include <string.h>
32
33 #include <vlc/vlc.h>
34
35 /*****************************************************************************
36  * External prototypes
37  *****************************************************************************/
38 int  E_(OpenIntf)     ( vlc_object_t * );
39 void E_(CloseIntf)    ( vlc_object_t * );
40
41 int  E_(OpenAudio)    ( vlc_object_t * );
42 void E_(CloseAudio)   ( vlc_object_t * );
43
44 int  E_(OpenVideo)    ( vlc_object_t * );
45 void E_(CloseVideo)   ( vlc_object_t * );
46
47 /*****************************************************************************
48  * Module descriptor
49  *****************************************************************************/
50 #define ADEV_TEXT N_("audio device")
51 #define VDEV_TEXT N_("video device")
52
53 vlc_module_begin();
54     set_description( _("MacOS X interface, sound and video module") );
55     add_submodule();
56         set_capability( "interface", 100 );
57         set_callbacks( E_(OpenIntf), E_(CloseIntf) );
58     add_submodule();
59         set_capability( "video output", 100 );
60         set_callbacks( E_(OpenVideo), E_(CloseVideo) );
61         add_category_hint( N_("Video"), NULL, VLC_FALSE );
62         add_integer( "macosx-vdev", 0, NULL, VDEV_TEXT, VDEV_TEXT, VLC_FALSE );
63     add_submodule();
64         set_capability( "audio output", 100 );
65         set_callbacks( E_(OpenAudio), E_(CloseAudio) );
66         add_category_hint( N_("Audio"), NULL, VLC_FALSE );
67         add_integer( "macosx-adev", 0, NULL, ADEV_TEXT, ADEV_TEXT, VLC_FALSE );
68 vlc_module_end();
69