]> git.sesse.net Git - vlc/blobdiff - include/vlc_config_cat.h
Remove MALLOC_(VOID|ERR). (and use calloc instead of malloc+memset)
[vlc] / include / vlc_config_cat.h
index f1f0289fae503936b17e96f97120e6a7f454ccff..99fac9f46af869906145739a02fc26508bb3bfa6 100644 (file)
  * 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
+#ifndef VLC_HELP_H
+#define VLC_HELP_H 1
 
 /*
  *  First, we need help strings for the General Settings and for the
 #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)
-{
-    return " ";
-}
-
-static struct config_category_t categories_array[] =
+static const struct config_category_t categories_array[] =
 {
     /* Interface */
     { CAT_INTERFACE, INTF_TITLE, INTF_HELP },
@@ -295,6 +286,7 @@ static struct config_category_t categories_array[] =
     { -1, NULL, NULL }
 };
 
+LIBVLC_USED
 static inline const char *config_CategoryNameGet( int i_value )
 {
     int i = 0 ;
@@ -309,6 +301,7 @@ static inline const char *config_CategoryNameGet( int i_value )
     return NULL;
 }
 
+LIBVLC_USED
 static inline const char *config_CategoryHelpGet( int i_value )
 {
     int i = 0 ;