]> git.sesse.net Git - vlc/blobdiff - include/vlc_config_cat.h
input: Use mtime_t for pts_delay.
[vlc] / include / vlc_config_cat.h
index 670125f7ee129671766a82f753bf1c467a1bc739..fc1ecb81d25f9384132cd77c69adb96c2e01cfc1 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
 
 #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 )