On Fri, 2005-01-07 at 14:37, Robert Story wrote:
> On Fri, 07 Jan 2005 12:52:00 +0000 Dave wrote:
> DS> Secondly, I've tweaked the stash-cache handler to automatically
> DS> inject the new stash-to-next handler into the chain if it
> DS> detects that this is needed.  This involved manipulating the
> DS> 'next' and 'prev' links directly, which feels:
> DS>    a) ugly, and
> DS>    b) potentially unsafe
> DS> Can you suggest a better way?
> 
> Maybe netsnmp_inject_handler_before() ?

I wondered about that.
The main reason I didn't use that API is that it seemed a bit
inefficient to search the handler chain when I already knew
where I wanted the new handler to go!
   Maybe we need a new routine "netsnmp_inject_handler_here"
(or "netsnmp_inject_handler_after") which takes a handler
pointer, rather than a name?


  There's still the question of whether it's safe to meddle
with the handler chain while it's "active".   Wes?

Dave



-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to