beos.cpp 3.02 KB
Newer Older
1
2
3
/*****************************************************************************
 * beos.cpp : BeOS plugin for vlc
 *****************************************************************************
Sam Hocevar's avatar
   
Sam Hocevar committed
4
 * Copyright (C) 2000, 2001 VideoLAN
5
 * $Id: beos.cpp,v 1.13 2001/11/30 09:49:48 tcastley Exp $
6
 *
Sam Hocevar's avatar
   
Sam Hocevar committed
7
8
 * Authors: Jean-Marc Dressler <polux@via.ecp.fr>
 *          Samuel Hocevar <sam@zoy.org>
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
 *
 * 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.
 *****************************************************************************/

25
#define MODULE_NAME beos
Sam Hocevar's avatar
   
Sam Hocevar committed
26
#include "modules_inner.h"
27

28
29
30
31
32
33
/*****************************************************************************
 * Preamble
 *****************************************************************************/
#include "defs.h"

#include <stdlib.h>                                      /* malloc(), free() */
34
#include <string.h>
35
36
37
38
39

extern "C"
{
#include "config.h"
#include "common.h"                                     /* boolean_t, byte_t */
40
#include "intf_msg.h"
41
42
43
#include "threads.h"
#include "mtime.h"

44
#include "modules.h"
Sam Hocevar's avatar
   
Sam Hocevar committed
45
#include "modules_export.h"
46
47
48
49

/*****************************************************************************
 * Capabilities defined in the other files.
 *****************************************************************************/
Sam Hocevar's avatar
   
Sam Hocevar committed
50
51
52
void _M( aout_getfunctions )( function_list_t * p_function_list );
void _M( vout_getfunctions )( function_list_t * p_function_list );
void _M( intf_getfunctions )( function_list_t * p_function_list );
53
54

/*****************************************************************************
Sam Hocevar's avatar
   
Sam Hocevar committed
55
 * Build configuration tree.
56
 *****************************************************************************/
Sam Hocevar's avatar
   
Sam Hocevar committed
57
58
59
60
MODULE_CONFIG_START
ADD_WINDOW( "Configuration for BeOS module" )
    ADD_COMMENT( "Ha, ha -- nothing to configure yet" )
MODULE_CONFIG_STOP
61

Sam Hocevar's avatar
   
Sam Hocevar committed
62
MODULE_INIT_START
63
    p_module->i_capabilities = MODULE_CAPABILITY_NULL
Sam Hocevar's avatar
   
Sam Hocevar committed
64
65
66
                                | MODULE_CAPABILITY_AOUT
                                | MODULE_CAPABILITY_VOUT
                                | MODULE_CAPABILITY_INTF;
Sam Hocevar's avatar
   
Sam Hocevar committed
67
68
    p_module->psz_longname = "BeOS standard API module";
MODULE_INIT_STOP
69

Sam Hocevar's avatar
   
Sam Hocevar committed
70
MODULE_ACTIVATE_START
Sam Hocevar's avatar
   
Sam Hocevar committed
71
72
73
    _M( aout_getfunctions )( &p_module->p_functions->aout );
    _M( vout_getfunctions )( &p_module->p_functions->vout );
    _M( intf_getfunctions )( &p_module->p_functions->intf );
Sam Hocevar's avatar
   
Sam Hocevar committed
74
MODULE_ACTIVATE_STOP
75

Sam Hocevar's avatar
   
Sam Hocevar committed
76
77
MODULE_DEACTIVATE_START
MODULE_DEACTIVATE_STOP
78

79
} /* extern "C" */