X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=include%2Fvlc_config_cat.h;h=da5c2c38b956b527d5471c51c8090a597351f63f;hb=6accad54cacc1db8bcc445bdd643e0ed42d8687b;hp=97169e3c25074f04865fc0164b9936cf5f9fae26;hpb=5d8a04ab4e44ed6e71b1984b952574104b68fc41;p=vlc diff --git a/include/vlc_config_cat.h b/include/vlc_config_cat.h index 97169e3c25..da5c2c38b9 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,8 +22,8 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. *****************************************************************************/ -#ifndef _VLC_HELP_H -#define _VLC_HELP_H 1 +#ifndef VLC_HELP_H +#define VLC_HELP_H 1 /* * First, we need help strings for the General Settings and for the @@ -106,9 +106,9 @@ "Common settings you may want to alter are HTTP proxy or " \ "caching settings." ) -#define ACCESS_FILTER_TITLE N_( "Access filters" ) -#define ACCESS_FILTER_HELP N_( \ - "Access filters are special modules that allow advanced operations on " \ +#define STREAM_FILTER_TITLE N_( "Stream filters" ) +#define STREAM_FILTER_HELP N_( \ + "Stream filters are special modules that allow advanced operations on " \ "the input side of VLC. You should not touch anything here unless you " \ "know what you are doing." ) @@ -227,9 +227,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 */ @@ -237,63 +234,8 @@ #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) -{ -/* - 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; - - */ - return " "; -} - - -static struct config_category_t categories_array[] = +/* This function is deprecated and is kept only for compatibility */ +static const struct config_category_t categories_array[] = { /* Interface */ { CAT_INTERFACE, INTF_TITLE, INTF_HELP }, @@ -318,11 +260,11 @@ static struct config_category_t categories_array[] = { CAT_INPUT, INPUT_TITLE, INPUT_HELP }, { SUBCAT_INPUT_GENERAL, ADVANCED_TITLE, ADVANCED_HELP }, { SUBCAT_INPUT_ACCESS, ACCESS_TITLE, ACCESS_HELP }, - { SUBCAT_INPUT_ACCESS_FILTER, ACCESS_FILTER_TITLE, ACCESS_FILTER_HELP }, { SUBCAT_INPUT_DEMUX, DEMUX_TITLE, DEMUX_HELP }, { SUBCAT_INPUT_VCODEC, VDEC_TITLE, VDEC_HELP }, { SUBCAT_INPUT_ACODEC, ADEC_TITLE, ADEC_HELP }, { SUBCAT_INPUT_SCODEC, SDEC_TITLE, SDEC_HELP }, + { SUBCAT_INPUT_STREAM_FILTER, STREAM_FILTER_TITLE, STREAM_FILTER_HELP }, { CAT_SOUT, SOUT_TITLE, SOUT_HELP }, { SUBCAT_SOUT_GENERAL, GENERAL_TITLE, SOUT_GENERAL_HELP }, @@ -344,29 +286,30 @@ static struct config_category_t categories_array[] = { -1, NULL, NULL } }; - -inline char *config_CategoryNameGet( int i_value ) +LIBVLC_USED +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 ) +LIBVLC_USED +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++; }