]> git.sesse.net Git - vlc/blob - modules/gui/minimal_macosx/macosx.c
7281de8855e6717123fca598ccd7cab116e5fff4
[vlc] / modules / gui / minimal_macosx / macosx.c
1 /*****************************************************************************
2  * macosx.m: minimal Mac OS X module for vlc
3  *****************************************************************************
4  * Copyright (C) 2001-2007 the VideoLAN team
5  * $Id$
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., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, 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_(OpenVideoGL)  ( vlc_object_t * );
42 void E_(CloseVideoGL) ( vlc_object_t * );
43
44 /*****************************************************************************
45  * Module descriptor
46  *****************************************************************************/
47
48 vlc_module_begin();
49     /* Minimal interface. see intf.m */
50     set_shortname( _( "minimal_macosx" ));
51     set_description( _("Minimal Mac OS X interface") );
52     set_capability( "interface", 50 );
53     set_callbacks( E_(OpenIntf), E_(CloseIntf) );
54     set_category( CAT_INTERFACE );
55     set_subcategory( SUBCAT_INTERFACE_MAIN );
56
57     add_submodule();
58         /* Will be loaded even without interface module. see voutgl.m */
59         set_description( _("Minimal Mac OS X OpenGL video output (opens a borderless window)") );
60         set_capability( "opengl provider", 50 );
61         set_category( CAT_VIDEO);
62         set_subcategory( SUBCAT_VIDEO_VOUT );
63         set_callbacks( E_(OpenVideoGL), E_(CloseVideoGL) );
64 vlc_module_end();
65