X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=plugins%2Fidct%2Fidctmmx.c;h=be625d3d4f9ed8df02bf7be3a29a9e8a6761fff6;hb=583c6553f6761421260d86bbc21b5b3169c04319;hp=5606819d89f8a2388a0e5b741d57d3fb5e6b474f;hpb=3bb7a5371e29b608e29851b9f1366a12a3505afe;p=vlc diff --git a/plugins/idct/idctmmx.c b/plugins/idct/idctmmx.c index 5606819d89..be625d3d4f 100644 --- a/plugins/idct/idctmmx.c +++ b/plugins/idct/idctmmx.c @@ -2,7 +2,7 @@ * idctmmx.c : MMX IDCT module ***************************************************************************** * Copyright (C) 1999, 2000 VideoLAN - * $Id: idctmmx.c,v 1.7 2001/01/18 05:13:22 sam Exp $ + * $Id: idctmmx.c,v 1.8 2001/02/20 07:49:13 sam Exp $ * * Authors: Aaron Holtzman * Michel Lespinasse @@ -77,7 +77,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 IDCT module"; @@ -97,7 +97,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 ) @@ -119,7 +119,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 );