From: Stephen D. <sd...@us...> - 2005-12-11 11:19:58
|
Update of /cvsroot/naviserver/naviserver/include In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31847/include Modified Files: ns.h Log Message: * include/ns.h: * nsd/nsd.h: * nsd/filter.c: * nsd/tclrequest.c: * nsd/proc.c: * nsd/tclcmds.c: * tests/ns_register_filter.test: Add switch -first to ns_register_filter command, allowing filters to be registered at the head of the queue. Add new command ns_shortcut_filter which registers a C filter callback which simply returns NS_FILTER_BREAK, preventing any other filters of the same type from running. For further explanation, see: http://sf.net/tracker/index.php?func=detail&aid=1012103&group_id=3152&atid=353152 Index: ns.h =================================================================== RCS file: /cvsroot/naviserver/naviserver/include/ns.h,v retrieving revision 1.63 retrieving revision 1.64 diff -C2 -d -r1.63 -r1.64 *** ns.h 11 Dec 2005 04:44:04 -0000 1.63 --- ns.h 11 Dec 2005 11:19:50 -0000 1.64 *************** *** 105,108 **** --- 105,109 ---- #define NS_FILTER_TRACE 0x04 /* Runs after Ns_OpProc completes successfully */ #define NS_FILTER_VOID_TRACE 0x08 /* Run ns_register_trace procs after previous traces */ + #define NS_FILTER_FIRST 0x10 /* Register filter at head of queue. */ /* |