• Evan Hunt's avatar
    set up hooks.c to enable setting hook points and loading modules · 70cc3f80
    Evan Hunt authored
    - move hooks.h to public include directory
    - ns_hooktable_init() initializes a hook table. if NULL is passed in, it
      initializes the global hook table
    - ns_hooktable_save() saves a pointer to the current global hook table.
    - ns_hooktable_reset() replaces the global hook table with different
    - ns_hook_add() adds hooks at specified hook points in a hook table (or
      the global hook table if the specified table is NULL)
    - load and unload functions support dlopen() of hook modules (this is
      adapted from dyndb and not yet functional)
    - began adding new hook points to query.c
copyrights 171 KB