1 /*****************************************************************************
2 * x11.c : X11 plugin for vlc
3 *****************************************************************************
4 * Copyright (C) 1998-2001 VideoLAN
5 * $Id: x11.c,v 1.20 2002/07/02 19:14:59 sam Exp $
7 * Authors: Vincent Seguin <seguin@via.ecp.fr>
8 * Samuel Hocevar <sam@zoy.org>
9 * David Kennedy <dkennedy@tinytoad.com>
11 * This program is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 2 of the License, or
14 * (at your option) any later version.
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
21 * You should have received a copy of the GNU General Public License
22 * along with this program; if not, write to the Free Software
23 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
24 *****************************************************************************/
26 /*****************************************************************************
28 *****************************************************************************/
29 #include <stdlib.h> /* malloc(), free() */
30 #include <string.h> /* strerror() */
36 /*****************************************************************************
37 * Building configuration tree
38 *****************************************************************************/
40 #define ALT_FS_TEXT N_("alternate fullscreen method")
41 #define ALT_FS_LONGTEXT N_( \
42 "There are two ways to make a fullscreen window, unfortunately each one " \
43 "has its drawbacks.\n" \
44 "1) Let the window manager handle your fullscreen window (default). But " \
45 "things like taskbars will likely show on top of the video.\n" \
46 "2) Completly bypass the window manager, but then nothing will be able " \
47 "to show on top of the video.")
49 #define DISPLAY_TEXT N_("X11 display name")
50 #define DISPLAY_LONGTEXT N_( \
51 "Specify the X11 hardware display you want to use. By default vlc will " \
52 "use the value of the DISPLAY environment variable.")
54 #define DRAWABLE_TEXT N_("X11 drawable")
55 #define DRAWABLE_LONGTEXT N_( \
56 "Specify a X11 drawable to use instead of opening a new window. This " \
57 "option is DANGEROUS, use with care.")
59 #define SHM_TEXT N_("use shared memory")
60 #define SHM_LONGTEXT N_( \
61 "Use shared memory to communicate between vlc and the X server.")
64 ADD_CATEGORY_HINT( N_("Miscellaneous"), NULL )
65 ADD_STRING ( "x11-display", NULL, NULL, DISPLAY_TEXT, DISPLAY_LONGTEXT )
66 ADD_BOOL ( "x11-altfullscreen", 0, NULL, ALT_FS_TEXT, ALT_FS_LONGTEXT )
67 ADD_INTEGER ( "x11-drawable", -1, NULL, DRAWABLE_TEXT, DRAWABLE_LONGTEXT )
69 ADD_BOOL ( "x11-shm", 1, NULL, SHM_TEXT, SHM_LONGTEXT )
74 SET_DESCRIPTION( _("X11 module") )
75 ADD_CAPABILITY( VOUT, 50 )
79 _M( vout_getfunctions )( &p_module->p_functions->vout );
82 MODULE_DEACTIVATE_START
83 MODULE_DEACTIVATE_STOP