httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rian Hunter <r...@mit.edu>
Subject Re: mod_smtpd overhaul
Date Tue, 23 Aug 2005 03:31:37 GMT
On Mon, 2005-08-22 at 23:17, Brian J. France wrote:
> Trying to build build a smtpd module, but having a problem.  I added a 
> line like this:
> 
>    smtpd_hook_connect( smtpd_access_dbi_connect, NULL, NULL, 
> APR_HOOK_MIDDLE );
> 
> in the register_hooks function, but when I load the module I get 
> undefined function _smtpd_hook_connect.
> 
> Is this the right way or is there an example module I could compare 
> with?

Actually no, you should use:

APR_OPTIONAL_HOOK(smtpd, connect, smtpd_access_dbi_connect, NULL, NULL,
APR_HOOK_MIDDLE);

Since it's an optional hook. Thanks.
-rian


Mime
View raw message