]> git.sesse.net Git - vlc/blob - plugins/dummy/dummy.c
a2a8c51d290a52bb6dbdb0d3c8d694f9a020ce2e
[vlc] / plugins / dummy / dummy.c
1 /*****************************************************************************
2  * dummy.c : dummy plugin for vlc
3  *****************************************************************************
4  * Copyright (C) 2000, 2001 VideoLAN
5  * $Id: dummy.c,v 1.23 2002/07/23 20:15:41 sam Exp $
6  *
7  * Authors: Samuel Hocevar <sam@zoy.org>
8  *
9  * This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 2 of the License, or
12  * (at your option) any later version.
13  * 
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, write to the Free Software
21  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
22  *****************************************************************************/
23
24 /*****************************************************************************
25  * Preamble
26  *****************************************************************************/
27 #include <stdlib.h>                                      /* malloc(), free() */
28 #include <string.h>
29
30 #include <vlc/vlc.h>
31
32 /*****************************************************************************
33  * Capabilities defined in the other files.
34  *****************************************************************************/
35 void _M( access_getfunctions ) ( function_list_t * p_function_list );
36 void _M( demux_getfunctions ) ( function_list_t * p_function_list );
37 void _M( aout_getfunctions )  ( function_list_t * p_function_list );
38 void _M( vout_getfunctions )  ( function_list_t * p_function_list );
39 void _M( intf_getfunctions )  ( function_list_t * p_function_list );
40 void _M( dec_getfunctions )   ( function_list_t * p_function_list );
41
42 /*****************************************************************************
43  * Build configuration tree.
44  *****************************************************************************/
45 #define CHROMA_TEXT N_("dummy image chroma format")
46 #define CHROMA_LONGTEXT N_( \
47     "Force the dummy video output to create images using a specific chroma " \
48     "format instead of trying to improve performances by using the most " \
49     "efficient one.")
50
51 MODULE_CONFIG_START
52 ADD_CATEGORY_HINT( N_("Video"), NULL )
53 ADD_STRING ( "dummy-chroma", NULL, NULL, CHROMA_TEXT, CHROMA_LONGTEXT )
54 MODULE_CONFIG_STOP
55
56
57 MODULE_INIT_START
58     SET_DESCRIPTION( _("dummy functions module") )
59     /* Capability score set to 0 because we don't want to be spawned
60      * unless explicitly requested to */
61     ADD_CAPABILITY( INTF, 0 )
62     ADD_CAPABILITY( ACCESS, 0 )
63     ADD_CAPABILITY( DEMUX, 0 )
64     ADD_CAPABILITY( DECODER, 0 )
65     ADD_CAPABILITY( AOUT, 0 )
66     ADD_CAPABILITY( VOUT, 0 )
67     ADD_SHORTCUT( "vlc" )
68 MODULE_INIT_STOP
69
70
71 MODULE_ACTIVATE_START
72     _M( access_getfunctions )( &p_module->p_functions->access );
73     _M( demux_getfunctions )( &p_module->p_functions->demux );
74     _M( aout_getfunctions )( &p_module->p_functions->aout );
75     _M( vout_getfunctions )( &p_module->p_functions->vout );
76     _M( intf_getfunctions )( &p_module->p_functions->intf );
77     _M( dec_getfunctions )( &p_module->p_functions->dec );
78 MODULE_ACTIVATE_STOP
79
80
81 MODULE_DEACTIVATE_START
82 MODULE_DEACTIVATE_STOP
83