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
