]> git.sesse.net Git - vlc/blob - modules/gui/minimal_macosx/macosx.c
Updated and reactivated minimal_macosx gui module, which is
[vlc] / modules / gui / minimal_macosx / macosx.c
1 /*****************************************************************************
2  * macosx.c: 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 #ifdef HAVE_CONFIG_H
34 # include "config.h"
35 #endif
36
37 #include <vlc_common.h>
38 #include <vlc_plugin.h>
39 #include <vlc_vout_window.h>
40
41 /*****************************************************************************
42  * External prototypes
43  *****************************************************************************/
44 int  OpenIntf     ( vlc_object_t * );
45 void CloseIntf    ( vlc_object_t * );
46
47 int  WindowOpen   ( vout_window_t *, const vout_window_cfg_t * );
48 void WindowClose  ( vout_window_t * );
49
50 /*****************************************************************************
51  * Module descriptor
52  *****************************************************************************/
53
54 vlc_module_begin ()
55     /* Minimal interface. see intf.m */
56     set_shortname( "Minimal Macosx" )
57     add_shortcut( "minimal_macosx", "miosx" )
58     set_description( N_("Minimal Mac OS X interface") )
59     set_capability( "interface", 50 )
60     set_callbacks( OpenIntf, CloseIntf )
61     set_category( CAT_INTERFACE )
62     set_subcategory( SUBCAT_INTERFACE_MAIN )
63
64     add_submodule ()
65     /* Will be loaded even without interface module. see voutgl.m */
66         set_description( "Minimal Mac OS X Video Output Provider" )
67         set_capability( "vout window nsobject", 100 )
68         set_callbacks( WindowOpen, WindowClose )
69 vlc_module_end ()
70