]> git.ipfire.org Git - thirdparty/apache/httpd.git/commit
Make mod_include use a hash table to associate directive tags with
authorRyan Bloom <rbb@apache.org>
Thu, 7 Dec 2000 03:32:54 +0000 (03:32 +0000)
committerRyan Bloom <rbb@apache.org>
Thu, 7 Dec 2000 03:32:54 +0000 (03:32 +0000)
commit3a17c4a4170e3a88e1598d093ae3ab582b48a015
tree1961c82fc9a527c7e7066e880c05ad6f3999aebd
parent12c8976463be44a294237037fa707afa53bf7d7d
Make mod_include use a hash table to associate directive tags with
functions.  This allows modules to implement their own SSI tags easily.
The idea is simple enough, a module can insert it's own tag and function
combination into a hash table provided by mod_include.  While mod_include
parses an SSI file, when it encounters a tag in the file, it does a
hash lookup to find the function that implements that tag, and passes
all of the relevant data to the function.  That function is then
responsible for processing the tag and handing the remaining data back
to mod_include for further processing.
Submitted by: Paul J. Reder <rederpj@raleigh.ibm.com>
Reviewed by: Ryan Bloom

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87241 13f79535-47bb-0310-9956-ffa450edef68
CHANGES
modules/filters/mod_include.c
modules/filters/mod_include.h