[asterisk-dev] usecount implementation in the new loader ?

Luigi Rizzo rizzo at icir.org
Tue Oct 31 08:14:38 MST 2006


as far as i can tell the new loader has a different method
for tracking users of a module, via calls like

        u = ast_module_user_add(chan);
	...
	ast_module_user_remove(u);

or, for things that just want a reference

	ast_module_ref(mod);
	...
	ast_module_unref(mod);

however there are a few important modules (mostly channel drivers)
that do not use it, and instead have some (useless in many cases)
relics of old code, e.g.

	chan_agent
	chan_alsa
	chan_features
	chan_gtalk
	chan_iax2
	chan_jingle
	chan_oss
	chan_phone
	chan_skinny
	chan_vpb
	chan_zap

Any objection if i start cleaning up this stuff in trunk ?

	cheers
	luigi


More information about the asterisk-dev mailing list