bind9/lib/ns/tests
Evan Hunt 81f58e2ea2 enable modules to store data in qctx
- added a 'hookdata' array to qctx to store pointers to up to
  16 blobs of data which are allocated by modules as needed.
  each module is assigned an ID number as it's loaded, and this
  is the index into the hook data array. this is to be used for
  holding persistent state between calls to a hook module for a
  specific query.
- instead of using qctx->filter_aaaa, we now use qctx->hookdata.
  (this was the last piece of filter-aaaa specific code outside the
  module.)
- added hook points for qctx initialization and destruction. we get
  a filter-aaaa data pointer from the mempool when initializing and
  store it in the qctx->hookdata table; return to to the mempool
  when destroying the qctx.
- link the view to the qctx so that detaching the client doesn't cause
  hooks to fail
- added a qctx_destroy() function which must be called after qctx_init;
  this calls the QCTX_DESTROY hook and detaches the view
- general cleanup and comments
2018-12-06 10:29:11 -08:00
..
testdata Update license headers to not include years in copyright in all applicable files 2018-02-23 10:12:02 +01:00
Kyuafile convert listenlist_test; remove ATF from lib/ns/tests 2018-11-14 20:17:04 -08:00
listenlist_test.c set up hooks.c to enable setting hook points and loading modules 2018-12-06 10:29:05 -08:00
Makefile.in Move the CMocka include directories from CFLAGS to CINCLUDES where it belongs to not get overriden later by the default CFLAGS rule 2018-11-26 16:16:34 +01:00
notify_test.c set up hooks.c to enable setting hook points and loading modules 2018-12-06 10:29:05 -08:00
nstest.c enable modules to store data in qctx 2018-12-06 10:29:11 -08:00
nstest.h Replace custom isc_boolean_t with C standard bool type 2018-08-08 09:37:30 +02:00
query_test.c add hook statement to configuration parser 2018-12-06 10:29:11 -08:00