macosx.c 2.75 KB
Newer Older
1
/*****************************************************************************
Pere Orga's avatar
Pere Orga committed
2
 * macosx.c: minimal Mac OS X module for vlc
3
 *****************************************************************************
4
 * Copyright (C) 2001-2012 VLC authors and VideoLAN
5 6 7 8
 * $Id$
 *
 * Authors: Colin Delacroix <colin@zoy.org>
 *          Eugenio Jarosiewicz <ej0@cise.ufl.edu>
9
 *          Pierre d'Herbemont <pdherbemont # videolan.org>
10
 *
11 12 13
 * This program is free software; you can redistribute it and/or modify it
 * under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation; either version 2.1 of the License, or
14
 * (at your option) any later version.
15
 *
16 17
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 19
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Lesser General Public License for more details.
20
 *
21 22 23
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program; if not, write to the Free Software Foundation,
 * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
24 25 26 27 28 29 30 31
 *****************************************************************************/

/*****************************************************************************
 * Preamble
 *****************************************************************************/
#include <stdlib.h>                                      /* malloc(), free() */
#include <string.h>

32 33 34 35
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif

36
#include <vlc_common.h>
37
#include <vlc_plugin.h>
38
#include <vlc_vout_window.h>
39 40 41 42

/*****************************************************************************
 * External prototypes
 *****************************************************************************/
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
43 44
int  OpenIntf     ( vlc_object_t * );
void CloseIntf    ( vlc_object_t * );
45

46 47
int  WindowOpen   ( vout_window_t *, const vout_window_cfg_t * );
void WindowClose  ( vout_window_t * );
48 49 50 51 52

/*****************************************************************************
 * Module descriptor
 *****************************************************************************/

53
vlc_module_begin ()
54
    /* Minimal interface. see intf.m */
55
    set_shortname( "Minimal Macosx" )
56
    add_shortcut( "minimal_macosx", "miosx" )
57 58 59 60 61
    set_description( N_("Minimal Mac OS X interface") )
    set_capability( "interface", 50 )
    set_callbacks( OpenIntf, CloseIntf )
    set_category( CAT_INTERFACE )
    set_subcategory( SUBCAT_INTERFACE_MAIN )
62

63
    add_submodule ()
64 65
    /* Will be loaded even without interface module. see voutgl.m */
        set_description( "Minimal Mac OS X Video Output Provider" )
66
        set_capability( "vout window", 50 )
67
        set_callbacks( WindowOpen, WindowClose )
68
vlc_module_end ()
69