macosx.c 2.58 KB
Newer Older
Sam Hocevar's avatar
 
Sam Hocevar committed
1 2 3 4
/*****************************************************************************
 * macosx.c : MacOS X plugin for vlc
 *****************************************************************************
 * Copyright (C) 2001 VideoLAN
Sam Hocevar's avatar
 
Sam Hocevar committed
5
 * $Id: macosx.c,v 1.12 2002/01/21 00:52:07 sam Exp $
Sam Hocevar's avatar
 
Sam Hocevar committed
6
 *
7 8
 * Authors: Colin Delacroix <colin@zoy.org>
 *          Eugenio Jarosiewicz <ej0@cise.ufl.edu>
9
 *	    Florian G. Pflug <fgp@phlo.org>
Sam Hocevar's avatar
 
Sam Hocevar committed
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
 *****************************************************************************/

/*****************************************************************************
 * Preamble
 *****************************************************************************/
#include <stdlib.h>                                      /* malloc(), free() */
30
#include <string.h>
Sam Hocevar's avatar
 
Sam Hocevar committed
31

Sam Hocevar's avatar
 
Sam Hocevar committed
32
#include <videolan/vlc.h>
Sam Hocevar's avatar
 
Sam Hocevar committed
33 34 35 36

/*****************************************************************************
 * Capabilities defined in the other files.
 *****************************************************************************/
37
void _M( aout_getfunctions )( function_list_t * p_function_list );
Sam Hocevar's avatar
 
Sam Hocevar committed
38 39 40 41
void _M( vout_getfunctions )( function_list_t * p_function_list );
void _M( intf_getfunctions )( function_list_t * p_function_list );

/*****************************************************************************
Sam Hocevar's avatar
 
Sam Hocevar committed
42
 * Build configuration tree.
Sam Hocevar's avatar
 
Sam Hocevar committed
43
 *****************************************************************************/
Sam Hocevar's avatar
 
Sam Hocevar committed
44 45
MODULE_CONFIG_START
MODULE_CONFIG_STOP
Sam Hocevar's avatar
 
Sam Hocevar committed
46

Sam Hocevar's avatar
 
Sam Hocevar committed
47
MODULE_INIT_START
Gildas Bazin's avatar
 
Gildas Bazin committed
48 49 50 51 52
    SET_DESCRIPTION( "MacOS X interface, sound and video module" )
    ADD_CAPABILITY( INTF, 100 )
    ADD_CAPABILITY( AOUT, 100 )
    ADD_CAPABILITY( VOUT, 100 )
    ADD_SHORTCUT( "macosx" )
Sam Hocevar's avatar
 
Sam Hocevar committed
53
MODULE_INIT_STOP
Sam Hocevar's avatar
 
Sam Hocevar committed
54

Sam Hocevar's avatar
 
Sam Hocevar committed
55
MODULE_ACTIVATE_START
Sam Hocevar's avatar
 
Sam Hocevar committed
56
    _M( vout_getfunctions )( &p_module->p_functions->vout );
57
    _M( aout_getfunctions )( &p_module->p_functions->aout );
Sam Hocevar's avatar
 
Sam Hocevar committed
58
    _M( intf_getfunctions )( &p_module->p_functions->intf );
Sam Hocevar's avatar
 
Sam Hocevar committed
59
MODULE_ACTIVATE_STOP
Sam Hocevar's avatar
 
Sam Hocevar committed
60

Sam Hocevar's avatar
 
Sam Hocevar committed
61 62
MODULE_DEACTIVATE_START
MODULE_DEACTIVATE_STOP
Sam Hocevar's avatar
 
Sam Hocevar committed
63