Main Page | Modules | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

x11.c

00001 /*****************************************************************************
00002  * x11.c : X11 plugin for vlc
00003  *****************************************************************************
00004  * Copyright (C) 1998-2001 the VideoLAN team
00005  * $Id: x11.c 11664 2005-07-09 06:17:09Z courmisch $
00006  *
00007  * Authors: Vincent Seguin <[email protected]>
00008  *          Samuel Hocevar <[email protected]>
00009  *          David Kennedy <[email protected]>
00010  *
00011  * This program is free software; you can redistribute it and/or modify
00012  * it under the terms of the GNU General Public License as published by
00013  * the Free Software Foundation; either version 2 of the License, or
00014  * (at your option) any later version.
00015  *
00016  * This program is distributed in the hope that it will be useful,
00017  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00018  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00019  * GNU General Public License for more details.
00020  *
00021  * You should have received a copy of the GNU General Public License
00022  * along with this program; if not, write to the Free Software
00023  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
00024  *****************************************************************************/
00025 
00026 /*****************************************************************************
00027  * Preamble
00028  *****************************************************************************/
00029 #include <stdlib.h>                                      /* malloc(), free() */
00030 #include <string.h>                                            /* strerror() */
00031 
00032 #include <vlc/vlc.h>
00033 
00034 /*****************************************************************************
00035  * Exported prototypes
00036  *****************************************************************************/
00037 extern int  E_(Activate)   ( vlc_object_t * );
00038 extern void E_(Deactivate) ( vlc_object_t * );
00039 
00040 /*****************************************************************************
00041  * Module descriptor
00042  *****************************************************************************/
00043 #define ALT_FS_TEXT N_("Alternate fullscreen method")
00044 #define ALT_FS_LONGTEXT N_( \
00045     "There are two ways to make a fullscreen window, unfortunately each one " \
00046     "has its drawbacks.\n" \
00047     "1) Let the window manager handle your fullscreen window (default), but " \
00048     "things like taskbars will likely show on top of the video.\n" \
00049     "2) Completely bypass the window manager, but then nothing will be able " \
00050     "to show on top of the video.")
00051 
00052 #define DISPLAY_TEXT N_("X11 display name")
00053 #define DISPLAY_LONGTEXT N_( \
00054     "Specify the X11 hardware display you want to use. By default VLC will " \
00055     "use the value of the DISPLAY environment variable.")
00056 
00057 #define SHM_TEXT N_("Use shared memory")
00058 #define SHM_LONGTEXT N_( \
00059     "Use shared memory to communicate between VLC and the X server.")
00060 
00061 #define SCREEN_TEXT N_("choose the screen to be used for fullscreen mode.")
00062 #define SCREEN_LONGTEXT N_( \
00063     "Choose the screen you want to use in fullscreen mode. For instance " \
00064     "set it to 0 for first screen, 1 for the second.")
00065 
00066 vlc_module_begin();
00067     set_shortname( "X11" );
00068     set_category( CAT_VIDEO );
00069     set_subcategory( SUBCAT_VIDEO_VOUT );
00070     add_string( "x11-display", NULL, NULL, DISPLAY_TEXT, DISPLAY_LONGTEXT, VLC_TRUE );
00071     add_bool( "x11-altfullscreen", 0, NULL, ALT_FS_TEXT, ALT_FS_LONGTEXT, VLC_TRUE );
00072 #ifdef HAVE_SYS_SHM_H
00073     add_bool( "x11-shm", 1, NULL, SHM_TEXT, SHM_LONGTEXT, VLC_TRUE );
00074 #endif
00075 #ifdef HAVE_XINERAMA
00076     add_integer ( "x11-xineramascreen", 0, NULL, SCREEN_TEXT, SCREEN_LONGTEXT, VLC_TRUE );
00077 #endif
00078     set_description( _("X11 video output") );
00079     set_capability( "video output", 70 );
00080     set_callbacks( E_(Activate), E_(Deactivate) );
00081 vlc_module_end();
00082 

Generated on Tue Dec 20 10:14:26 2005 for vlc-0.8.4a by  doxygen 1.4.2