]> git.sesse.net Git - vlc/blobdiff - plugins/yuv/yuvmmx.c
* Ported Glide and MGA plugins to the new module API. MGA never worked,
[vlc] / plugins / yuv / yuvmmx.c
index b042e1987ff0c9ee004df533f36b849def2b5d55..c7e328a12b9abc57a70d17eeca0dda0374e71f8c 100644 (file)
@@ -21,6 +21,7 @@
  *****************************************************************************/
 
 #define MODULE_NAME yuvmmx
+#include "modules_inner.h"
 
 /*****************************************************************************
  * Preamble
 #include "video_output.h"
 
 #include "modules.h"
-#include "modules_inner.h"
 
 /*****************************************************************************
  * Local and extern prototypes.
  *****************************************************************************/
-extern void yuv_getfunctions( function_list_t * p_function_list );
+void _M( yuv_getfunctions )( function_list_t * p_function_list );
 
 /*****************************************************************************
  * Build configuration tree.
@@ -61,7 +61,7 @@ MODULE_CONFIG_END
  * 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 = "MMX YUV transformations module";
@@ -81,7 +81,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 )
@@ -89,7 +89,7 @@ int ActivateModule( module_t * p_module )
         return( -1 );
     }
 
-    yuv_getfunctions( &p_module->p_functions->yuv );
+    _M( yuv_getfunctions )( &p_module->p_functions->yuv );
 
     p_module->p_config = p_config;
 
@@ -103,7 +103,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 );