]> git.sesse.net Git - vlc/blobdiff - plugins/mpeg/ps.c
* Ported Glide and MGA plugins to the new module API. MGA never worked,
[vlc] / plugins / mpeg / ps.c
index 4b83f0759c5995dcd6e538693625ac5f30d4e972..77270f493a45482cafecf8176560f9b591f60435 100644 (file)
@@ -21,6 +21,7 @@
  *****************************************************************************/
 
 #define MODULE_NAME ps
+#include "modules_inner.h"
 
 /*****************************************************************************
  * Preamble
@@ -36,7 +37,6 @@
 #include "mtime.h"
 
 #include "modules.h"
-#include "modules_inner.h"
 
 /*****************************************************************************
  * Build configuration tree.
@@ -49,7 +49,7 @@ MODULE_CONFIG_END
 /*****************************************************************************
  * Capabilities defined in the other files.
  *****************************************************************************/
-extern void input_getfunctions( function_list_t * p_function_list );
+void _M( input_getfunctions )( function_list_t * p_function_list );
 
 /*****************************************************************************
  * InitModule: get the module structure and configuration.
@@ -59,7 +59,7 @@ extern void input_getfunctions( function_list_t * p_function_list );
  * be unloaded later to save memory, and we want to be able to access this
  * data even after the module has been unloaded.
  *****************************************************************************/
-int InitModule( module_t * p_module )
+MODULE_INIT
 {
     p_module->psz_name = MODULE_STRING;
     p_module->psz_longname = "ISO 13818-1 MPEG Program Stream input module";
@@ -79,7 +79,7 @@ int InitModule( module_t * p_module )
  * be set to 0 and calls to NeedModule() be made to increment it. To unload
  * the module, one has to wait until i_usage == 0 and call DeactivateModule().
  *****************************************************************************/
-int ActivateModule( module_t * p_module )
+MODULE_ACTIVATE
 {
     p_module->p_functions = malloc( sizeof( module_functions_t ) );
     if( p_module->p_functions == NULL )
@@ -87,7 +87,7 @@ int ActivateModule( module_t * p_module )
         return( -1 );
     }
 
-    input_getfunctions( &p_module->p_functions->input );
+    _M( input_getfunctions )( &p_module->p_functions->input );
 
     p_module->p_config = p_config;
 
@@ -101,7 +101,7 @@ int ActivateModule( module_t * p_module )
  * returns, i_usage can be set to -1 and the module unloaded. Be careful to
  * lock usage_lock during the whole process.
  *****************************************************************************/
-int DeactivateModule( module_t * p_module )
+MODULE_DEACTIVATE
 {
     free( p_module->p_functions );