[asterisk-dev] func_module update

Joshua Colp jcolp at digium.com
Mon Apr 17 12:10:00 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
Sorry if I sounded harsh on you, I'm just poking through the bug tracker 
myself right now and getting slightly frustrated with some reports and 
lack of feedback from people. If you get it on there ASAP, we can take 
care of it then. I don't want to see it get lost in the flurry of 
activity. As always for everyone out there, patches are welcome! Thanks 
for your contribution.

-- 
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