httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Laurie <...@algroup.co.uk>
Subject Re: Typesafe generic hooks - done!
Date Mon, 01 Jan 2001 18:25:58 GMT
rbb@covalent.net wrote:
> 
> > Here we go. Rather than show the implementation, which is the usual
> > nasty mess of macros, I'll show you how its used. Here are two modules,
> > a hook exporter, and a hook importer. If the hook exporter is not
> > present, then the hook importer's hook is not called. If it is, then it
> > is. The hook importer's hook _is_ typesafe. And, err, that's it. So,
> > without further ado, here's mod_generic_hook_export.h:
> 
> This looks good, but I have one question.
> 
> > module generic_hook_export_module =
> >     {
> >     STANDARD20_MODULE_STUFF,
> >     NULL,
> >     NULL,
> >     NULL,
> >     NULL,
> >     NULL,
> >     NULL,
> >     ExportRegisterHooks
> >     };
> 
> I assume ExportRegisterHooks is really just register_hooks, named for
> clarity, correct?

WTF? Its a pointer to a function that registers hooks. I can call it
what I want.

> > Tested. Works. Shall I commit it?
> 
> If you can commit, go for it.  I can't currently ssh into apache.org.

I'll do it when I can, of course. :-)

>  If
> you don't mind, once you have committed this stuff, I would like to modify
> mod_cache to use it.  I want to do it to make sure I understand how this
> all works.  Once I'm done, I'm hoping you will make sure I get it
> right.  :-)

Sure!

> > BTW, I was wondering if I should start an "examples" module directory,
> > instead of them living in "experimental" as they currently do.
> 
> +1.

Cool. I'll do it.

Cheers,

Ben.

--
http://www.apache-ssl.org/ben.html

"There is no limit to what a man can do or how far he can go if he
doesn't mind who gets the credit." - Robert Woodruff

Mime
View raw message