You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Jem Berkes <jb...@users.pc9.org> on 2005/07/25 23:53:35 UTC
Exporting functions (hooks?)
For what I'm currently trying to accomplish, I'm not sure if hooks are the
way to go. Also, without examples of this kind of situation I'm somewhat in
the dark so hopefully someone can push me in the right direction.
I'm writing mod_dnsbl_lookup to provide DNS based blocklist lookup
facilities. The module's configuration will identify zones to query. So
that other modules can easily make these queries, I'd like to make a
generic function that allows any other module to do dnsbl lookups and
receive the results in a table (say request_rec's notes).
So I want to export a generic utility function, such as
int dnsbl_lookup_do_query(table* results)
What is the most proper way to do this? Is it appropriate to use
AP_DECLARE_HOOK etc as described at
http://httpd.apache.org/docs/2.0/developer/hooks.html