On Fri, Dec 01, 2000 at 08:44:14AM -0800, [EMAIL PROTECTED] wrote: > > > Why don't we add something like apr_get_config_string() which returns > > a string like the "httpd -V" output (but of course only builds the APR > > part)? > > How many +1s can I give this? this would be incredibly useful.
+1 here, too. > > include/apr_general.h: > > > > apr_status_t apr_get_config_string(char **cfg, apr_pool_t *cont); > > > > misc/unix/cfg.c: > > > > put the function here; any other functions dealing with config tests > > could go here too +1 > This should work the same way apr_initialize works, so that it calls into > the APR sub-libraries with a function like "apr_report_lock" or > "apr_report_threads". This would make it very extensible, and as we build > APR with or without different components, we would just pick up the right > information. I think that is overkill for now. All of these flags are available in apr_private.h. If it starts to get unwieldy or something, then we can split. But let's start simple, make it harder when that is needed. Cheers, -g -- Greg Stein, http://www.lyra.org/
