X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=plugins%2Fidct%2Fidct.c;h=008e4b3231dda6d8255d71324b866e6d4cf42a0d;hb=583c6553f6761421260d86bbc21b5b3169c04319;hp=6cda95f83b3845ffbeaa5fb1b67e6bc9d86b155d;hpb=647cca0ebb2e897a570018ba80483bb81a7d90c6;p=vlc diff --git a/plugins/idct/idct.c b/plugins/idct/idct.c index 6cda95f83b..008e4b3231 100644 --- a/plugins/idct/idct.c +++ b/plugins/idct/idct.c @@ -2,7 +2,7 @@ * idct.c : IDCT module ***************************************************************************** * Copyright (C) 1999, 2000 VideoLAN - * $Id: idct.c,v 1.6 2001/01/18 05:13:22 sam Exp $ + * $Id: idct.c,v 1.7 2001/02/20 07:49:13 sam Exp $ * * Authors: Gaƫl Hendryckx * @@ -22,6 +22,7 @@ *****************************************************************************/ #define MODULE_NAME idct +#include "modules_inner.h" /***************************************************************************** * Preamble @@ -42,7 +43,6 @@ #include "video_decoder.h" #include "modules.h" -#include "modules_inner.h" #include "idct.h" @@ -70,7 +70,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 = "IDCT module"; @@ -90,7 +90,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 ) @@ -112,7 +112,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 );