[asterisk-dev] func_module update

Joshua Colp jcolp at digium.com
Mon Apr 17 11:42:30 MST 2006


Denis Smirnov wrote:
> Update to func_module.c in attached.
> 
> 
> 
> ------------------------------------------------------------------------
> 
> --- ./func_module.c.orig	2006-04-17 22:15:07 +0400
> +++ ./func_module.c	2006-04-17 22:39:52 +0400
> @@ -64,29 +64,25 @@
>  		"Returns \"1\" if module exists in memory, otherwise \"0\".\n",
>  };
>  
> -static char *tdesc = "Checks if Asterisk module is loaded in memory";
>  
> -int unload_module(void)
> +static int unload_module(void *mod)
>  {
>  	return ast_custom_function_unregister(&ifmodule_function);
>  }
>  
> -int load_module(void)
> +static int load_module(void *mod)
>  {
>  	return ast_custom_function_register(&ifmodule_function);
>  }
>  
> -const char *description(void)
> -{
> -	return tdesc;
> -}
> -
> -int usecount(void)
> +static const char *description(void)
>  {
> -	return 0;
> +	return "Checks if Asterisk module is loaded in memory";
>  }
>  
> -const char *key()
> +static const char *key(void)
>  {
>  	return ASTERISK_GPL_KEY;
>  }
> +
> +STD_MOD(MOD_1 | NO_USECOUNT, NULL, NULL, NULL);
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
> 
> asterisk-dev mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-dev
All patches should go on the bug tracker and not be posted here.

-- 
Joshua Colp
Software Developer
Digium
P - 256-428-6066
C - 506-878-0147
jcolp at digium.com



More information about the asterisk-dev mailing list