httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Graham Leggett <minf...@sharp.fm>
Subject Re: mod_include: include_ctx_t doesn't contain request_rec
Date Sun, 19 Sep 2010 13:27:22 GMT
On 18 Sep 2010, at 8:38 PM, Nick Kew wrote:

>> Another API observation, this time with mod_include.
>>
>> The generic include_ctx_t structure that is handed to include  
>> operations doesn't include request_rec. While mod_include itself  
>> has a private structure that keeps track of request_rec, this isn't  
>> available to external modules.
>
> I've stumbled on that one before, and cursed my way to a workaround.
> IIRC an accessor function for ctx->intern->r did the job.

The following patch moves the definition of request_rec to the generic  
mod_include ctx structure, so that it's available to any include  
provider.

Regards,
Graham
--

Mime
View raw message