X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=include%2Fvlc_config_cat.h;h=fc1ecb81d25f9384132cd77c69adb96c2e01cfc1;hb=37db19eb68bcd40dd525b65ae147e6cfcd4a58dc;hp=670125f7ee129671766a82f753bf1c467a1bc739;hpb=d3fe7f28797d4dba65ffcdd60bf932e758a48a9e;p=vlc diff --git a/include/vlc_config_cat.h b/include/vlc_config_cat.h index 670125f7ee..fc1ecb81d2 100644 --- a/include/vlc_config_cat.h +++ b/include/vlc_config_cat.h @@ -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 @@ -235,8 +239,9 @@ #define UNKNOWN_HELP N_("There is no help available for these modules.") /* This function is deprecated and is kept only for compatibility */ -static inline char * GetCapabilityHelp( char *psz_capability, int i_type) +static inline const char * GetCapabilityHelp( char *psz_capability, int i_type) { + (void)psz_capability; (void)i_type; return " "; } @@ -291,7 +296,7 @@ static struct config_category_t categories_array[] = { -1, NULL, NULL } }; -static 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 ) @@ -305,7 +310,7 @@ static inline char *config_CategoryNameGet( int i_value ) return NULL; } -static 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 )