X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=plugins%2Fmotion%2Fmotionmmxext.c;h=93333a75b605944fae7c42be3dda0ecaa6e562f0;hb=583c6553f6761421260d86bbc21b5b3169c04319;hp=583b7aa8c30a2c846a84e0baa68a822af268056f;hpb=3bb7a5371e29b608e29851b9f1366a12a3505afe;p=vlc diff --git a/plugins/motion/motionmmxext.c b/plugins/motion/motionmmxext.c index 583b7aa8c3..93333a75b6 100644 --- a/plugins/motion/motionmmxext.c +++ b/plugins/motion/motionmmxext.c @@ -21,6 +21,7 @@ *****************************************************************************/ #define MODULE_NAME motionmmxext +#include "modules_inner.h" /***************************************************************************** * Preamble @@ -38,12 +39,11 @@ #include "video.h" #include "modules.h" -#include "modules_inner.h" /***************************************************************************** * Local and extern prototypes. *****************************************************************************/ -extern void motion_getfunctions( function_list_t * p_function_list ); +void motion_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 EXT motion compensation 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 ) @@ -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 );