httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mikhail T." <>
Subject Re: Can a module find out, whether another module is present?
Date Tue, 05 Feb 2013 22:47:48 GMT
On 05.02.2013 17:30, Mikhail T. wrote:
> On 05.02.2013 17:20, Jeff Trawick wrote:
>> module *modp;
>> for (modp = ap_top_module; modp; modp = modp->next) {
>>    foo(modp->name);
>> }
> Cool! I thought of relying on the fact, that server_rec's module_config is a 
> an array of module-pointers, but the above seems more reliable. Thank you!
BTW, is modp->module_index a reliable indication of order in which modules are 
processed? In other words, of module1's index is smaller than that of module2, 
does that mean, module1's hooks will be invoked prior to module2's? Or must one 
process the link-list to establish order?


View raw message