Updated cf_section_sub_find_name2 to be a little smarter, and to
authoraland <aland>
Tue, 24 May 2005 19:04:35 +0000 (19:04 +0000)
committeraland <aland>
Tue, 24 May 2005 19:04:35 +0000 (19:04 +0000)
commitb4308f4126b2213c6ccdfb8e0e21c0ea42befdf3
tree3fa61f19dbbb3b5232f030315a3d552b78f2e6ba
parent2b12b0b2083c68ee934567c518b303c41e693415
Updated cf_section_sub_find_name2 to be a little smarter, and to
better support modules.c & modcall.c, which try to look modules
up by name1 or name2.

New function cf_data_find & cf_data_add, where other code can add
named data to be "associated" with a particular configuration section.

Updated modules.c so that the module_instance_t structure is stored
via cf_data_add(), rather than in a static pointer.  This means
that it now gets automagically free'd when the configuration
section gets freed, which simplifies out lives.

It also means that the whole "reread conf files" may become easier,
as we can now read a new configuration file, do a 'diff' with the
old one, and potentially move the module instance data from the
old to the new, and therefore NOT shutdown & restart all of the
modules on a HUP.
src/include/conffile.h
src/include/modpriv.h
src/main/conffile.c
src/main/modcall.c
src/main/modules.c