]> git.ipfire.org Git - thirdparty/bind9.git/commit
improve hook processing macros
authorEvan Hunt <each@isc.org>
Tue, 14 Aug 2018 04:08:08 +0000 (21:08 -0700)
committerEvan Hunt <each@isc.org>
Thu, 6 Dec 2018 18:29:11 +0000 (10:29 -0800)
commit055bf2665cf91aa8cf1592bf2a67a42f1f50f22e
tree4c3ba99d4af604b74907b7437d1dde5b099c79dd
parent81f58e2ea2640bd010ddc8f5e0dca0740455966b
improve hook processing macros

- use a get_hooktab() function to determine the hook table.
- PROCESS_HOOK now jumps to a cleanup tag on failure
- add PROCESS_ALL_HOOKS in query.c, to run all hook functions at
  a specified hook point without stopping. this is to be used for
  intiialization and destruction functions that must run in every
  module.
- 'result' is set in PROCESS_HOOK only when a hook function
  interrupts processing.
- revised terminology: a "callback" is now a "hook action"
- remove unused NS_PROCESS_HOOK and NS_PROCESS_HOOK_VOID macros.
bin/hooks/filter-aaaa.c
lib/ns/include/ns/hooks.h
lib/ns/query.c
lib/ns/tests/nstest.c
lib/ns/tests/nstest.h
lib/ns/tests/query_test.c