]> git.sesse.net Git - vlc/blobdiff - include/vlc_configuration.h
Add facilities to report and enrich error messages.
[vlc] / include / vlc_configuration.h
index ec8ec4a80dbc68322a8337ce72cf10356a7ab0f8..1212aacaf639a6ed2336716e0992aa453812dc40 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
+
 # ifdef __cplusplus
 extern "C" {
 # endif
@@ -229,6 +233,8 @@ VLC_EXPORT( module_t *, config_FindModule,( vlc_object_t *, const char * ) );
 
 VLC_EXPORT( int, config_Duplicate,( module_t *, const module_config_t *, size_t ));
 
+VLC_EXPORT(const char *, config_GetDataDir, ( const vlc_object_t * ));
+
 #define config_GetType(a,b) __config_GetType(VLC_OBJECT(a),b)
 #define config_GetInt(a,b) __config_GetInt(VLC_OBJECT(a),b)
 #define config_PutInt(a,b,c) __config_PutInt(VLC_OBJECT(a),b,c)