00001 /***************************************************************************** 00002 * beos.cpp : BeOS plugin for vlc 00003 ***************************************************************************** 00004 * Copyright (C) 2000, 2001 the VideoLAN team 00005 * $Id: BeOS.cpp 11664 2005-07-09 06:17:09Z courmisch $ 00006 * 00007 * Authors: Jean-Marc Dressler <[email protected]> 00008 * Samuel Hocevar <[email protected]> 00009 * Stephan AÃmus <[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> 00031 00032 #include <vlc/vlc.h> 00033 00034 /***************************************************************************** 00035 * External prototypes 00036 *****************************************************************************/ 00037 int E_(OpenIntf) ( vlc_object_t * ); 00038 void E_(CloseIntf) ( vlc_object_t * ); 00039 00040 int E_(OpenAudio) ( vlc_object_t * ); 00041 void E_(CloseAudio) ( vlc_object_t * ); 00042 00043 int E_(OpenVideo) ( vlc_object_t * ); 00044 void E_(CloseVideo) ( vlc_object_t * ); 00045 00046 /***************************************************************************** 00047 * Module descriptor 00048 *****************************************************************************/ 00049 vlc_module_begin(); 00050 set_category( CAT_INTERFACE ); 00051 set_subcategory( SUBCAT_INTERFACE_GENERAL ); 00052 add_bool( "beos-dvdmenus", 0, NULL, _("Use DVD Menus"), "", VLC_TRUE ); 00053 set_shortname( "BeOS" ); 00054 set_description( _("BeOS standard API interface") ); 00055 set_capability( "interface", 100 ); 00056 set_callbacks( E_(OpenIntf), E_(CloseIntf) ); 00057 00058 add_submodule(); 00059 set_capability( "video output", 100 ); 00060 set_callbacks( E_(OpenVideo), E_(CloseVideo) ); 00061 add_submodule(); 00062 set_capability( "audio output", 100 ); 00063 set_callbacks( E_(OpenAudio), E_(CloseAudio) ); 00064 vlc_module_end();