#error You are not libvlc or one of its plugins. You cannot include this file
#endif
-#if 1
+#if 0
/* FIXME: scheduled for privatization */
#define MODULE_SHORTCUT_MAX 50
/* Use only if you know what you're doing... */
#define module_FindName(a,b) __module_FindName(VLC_OBJECT(a),b)
VLC_EXPORT( module_t *, __module_FindName, ( vlc_object_t *, const char * ) );
+VLC_EXPORT( void, module_Put, ( module_t *module ) );
+
/* Return a NULL terminated array with the names of the modules that have a
* certain capability.
return NULL;
}
+
+/*****************************************************************************
+ * module_Put: release a module_t pointer from module_FindName().
+ *****************************************************************************/
+void module_Put ( module_t *module )
+{
+ vlc_object_release ( module );
+}
+
+
/*****************************************************************************
* module_Exists: tell if a module exists.
*****************************************************************************
module_t *p_module = __module_FindName( p_this, psz_name );
if( p_module )
{
- vlc_object_release( p_module );
+ module_Put( p_module );
return VLC_TRUE;
}
else