On Thu, 1 Dec 2011 00:22:40 +0100 Magnus wrote: MF> deinit_* is - as far as I understand it - used to specify shutdown routines MF> that are to be run when a dlopened module is unloaded. MF> MF> The dlmod module would never be dynamically unloaded as it would have to load MF> itself first. MF> MF> Thus I wanted to move it into the normal init_/shutdown_ framework. MF> Leaving an extra deinit_dlmod lying around didn't fill any purpose.
The purpose is to maintain backwards compatibility, and avoid issues like the original poster encountered. It's a simple matter of having the old function call the new one, optionally logging a message (once) that the old function has been deprecated in favor of the new one. I though we even had a #define to wrap around old functions to exclude them for those that don't need them, but a grep for COMPAT only turned up the old CMU/UCD defines, and NETSNMP_NO_BACKWARDS_COMPATABILITY, which is only used once. :-( I've missed a few admin meetings lately, but I'd be shocked if Wes has reversed his stance on backwards compatibility... ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
