X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=include%2Fvlc_config_cat.h;h=fc1ecb81d25f9384132cd77c69adb96c2e01cfc1;hb=fd5612f1467c3e69d815e536aa0fd0872c9a9485;hp=7578d41a5e28dac44f8dc84da5b02748f8deae2a;hpb=cbf60127d77335c034227f8e12ad8577244dcaa0;p=vlc diff --git a/include/vlc_config_cat.h b/include/vlc_config_cat.h index 7578d41a5e..fc1ecb81d2 100644 --- a/include/vlc_config_cat.h +++ b/include/vlc_config_cat.h @@ -1,5 +1,5 @@ /***************************************************************************** - * vlc_help.h: Help strings + * vlc_config_cat.h : Definition of configuration categories ***************************************************************************** * Copyright (C) 2003 the VideoLAN team * $Id$ @@ -22,6 +22,10 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. *****************************************************************************/ +#if !defined( __LIBVLC__ ) + #error You are not libvlc or one of its plugins. You cannot include this file +#endif + #ifndef _VLC_HELP_H #define _VLC_HELP_H 1 @@ -86,10 +90,6 @@ #define VFILTER_HELP N_( \ "Video filters are used to postprocess the video stream." ) -#define VFILTER2_TITLE N_("Filters (v2)" ) -#define VFILTER2_HELP N_( \ - "Video filters are used to postprocess the video stream." ) - #define SUBPIC_TITLE N_( "Subtitles/OSD") #define SUBPIC_HELP N_( "Miscellaneous settings related to On-Screen-Display,"\ " subtitles and \"overlay subpictures\".") @@ -231,9 +231,6 @@ "In this section you can force the behavior of the subtitle demuxer, " \ "for example by setting the subtitles type or file name.") -#define VIDEO_FILTER2_TITLE N_("Video filters settings") -#define VIDEO_FILTER2_HELP " " - /* * A little help for modules with unknown capabilities */ @@ -241,62 +238,13 @@ #define UNKNOWN_TITLE N_("No help available" ) #define UNKNOWN_HELP N_("There is no help available for these modules.") -/***************************************************************************** - * GetCapabilityHelp: Display the help for one capability. - *****************************************************************************/ -static inline char * GetCapabilityHelp( char *psz_capability, int i_type) +/* This function is deprecated and is kept only for compatibility */ +static inline const char * GetCapabilityHelp( char *psz_capability, int i_type) { -/* - if( psz_capability == NULL) return " "; - - if( !strcasecmp(psz_capability,"access_demux") ) - return i_type == 1 ? ACCESS_TITLE : ACCESS_HELP; - if( !strcasecmp(psz_capability,"access2") ) - return i_type == 1 ? ACCESS_TITLE : ACCESS_HELP; - if( !strcasecmp(psz_capability,"audio filter") ) - return i_type == 1 ? AUDIO_FILTER_TITLE : AUDIO_FILTER_HELP; - if( !strcasecmp(psz_capability,"audio filter2") ) - return i_type == 1 ? AUDIO_FILTER2_TITLE : AUDIO_FILTER2_HELP; - if( !strcasecmp(psz_capability,"audio output") ) - return i_type == 1 ? AOUT_TITLE : AOUT_HELP; - if( !strcasecmp(psz_capability,"chroma") ) - return i_type == 1 ? CHROMA_TITLE : CHROMA_HELP; - if( !strcasecmp(psz_capability,"decoder") ) - return i_type == 1 ? DECODER_TITLE : DECODER_HELP; - if( !strcasecmp(psz_capability,"packetizer") ) - return i_type == 1 ? PACKETIZER_TITLE : PACKETIZER_HELP; - if( !strcasecmp(psz_capability,"encoder") ) - return i_type == 1 ? ENCODER_TITLE : ENCODER_HELP; - if( !strcasecmp(psz_capability,"demux2") ) - return i_type == 1 ? DEMUX_TITLE : DEMUX_HELP; - if( !strcasecmp(psz_capability,"interface") ) - return i_type == 1 ? INTERFACE_TITLE : INTERFACE_HELP; - if( !strcasecmp(psz_capability,"dialogs provider") ) - return i_type == 1 ? DIALOGS_TITLE : DIALOGS_HELP; - if( !strcasecmp(psz_capability,"network") ) - return i_type == 1 ? NETWORK_TITLE : NETWORK_HELP; - if( !strcasecmp(psz_capability,"sout access") ) - return i_type == 1 ? SOUT_ACCESS_TITLE : SOUT_ACCESS_HELP; - if( !strcasecmp(psz_capability,"sout mux") ) - return i_type == 1 ? SOUT_MUX_TITLE : SOUT_MUX_HELP; - if( !strcasecmp(psz_capability,"sout stream") ) - return i_type == 1 ? SOUT_STREAM_TITLE : SOUT_STREAM_HELP; - if( !strcasecmp(psz_capability,"subtitle demux") ) - return i_type == 1 ? SUBTITLE_DEMUX_TITLE : SUBTITLE_DEMUX_HELP; - if( !strcasecmp(psz_capability,"text renderer") ) - return i_type == 1 ? TEXT_TITLE : TEXT_HELP; - if( !strcasecmp(psz_capability,"video output") ) - return i_type == 1 ? _VOUT_TITLE : VOUT_HELP; - if( !strcasecmp(psz_capability,"video filter") ) - return i_type == 1 ? VIDEO_FILTER_TITLE : VIDEO_FILTER_HELP; - if( !strcasecmp(psz_capability,"video filter2") ) - return i_type == 1 ? VIDEO_FILTER2_TITLE : VIDEO_FILTER2_HELP; - - */ + (void)psz_capability; (void)i_type; return " "; } - static struct config_category_t categories_array[] = { /* Interface */ @@ -317,7 +265,6 @@ static struct config_category_t categories_array[] = { SUBCAT_VIDEO_GENERAL, VIDEO_GENERAL_TITLE, VIDEO_GENERAL_HELP }, { SUBCAT_VIDEO_VOUT, _VOUT_TITLE, VOUT_HELP }, { SUBCAT_VIDEO_VFILTER, VFILTER_TITLE, VFILTER_HELP }, - { SUBCAT_VIDEO_VFILTER2, VFILTER2_TITLE, VFILTER2_HELP }, { SUBCAT_VIDEO_SUBPIC, SUBPIC_TITLE, SUBPIC_HELP }, { CAT_INPUT, INPUT_TITLE, INPUT_HELP }, @@ -349,29 +296,28 @@ static struct config_category_t categories_array[] = { -1, NULL, NULL } }; - -inline char *config_CategoryNameGet( int i_value ) +static inline const char *config_CategoryNameGet( int i_value ) { int i = 0 ; while( categories_array[i].psz_name != NULL ) { if( categories_array[i].i_id == i_value ) { - return categories_array[i].psz_name; + return _(categories_array[i].psz_name); } i++; } return NULL; } -inline char *config_CategoryHelpGet( int i_value ) +static inline const char *config_CategoryHelpGet( int i_value ) { int i = 0 ; while( categories_array[i].psz_help != NULL ) { if( categories_array[i].i_id == i_value ) { - return categories_array[i].psz_help; + return _(categories_array[i].psz_help); } i++; }