On Mon, Apr 27, 2020 at 12:01 PM Eric Covener <[email protected]> wrote:
>
> On Mon, Apr 27, 2020 at 11:52 AM Jeffrey Walton <[email protected]> wrote:
> >
> > I'm reading https://httpd.apache.org/docs/2.4/developer/hooks.html. It
> > says to declare a hook function:
> >
> >     AP_DECLARE_HOOK(int, do_something, (request_rec *r, int n))
> >
> > But it does not explain the parameters. I know what request_rec is,
> > but I don't know what n is.
> >
> > What is n in the hook function?
>
> It is just an example 2nd argument that each hook participant will
> receive. In the doc it's a made-up hook with a made-up additional arg.
> Many basic request-processing hooks just take a request_rec for example.

Thanks Eric.

ap_hook_quick_handler uses a function with that particular signature.
Would you happen to know what the int is used for in that case?

(ap_hook_quick_handler is the reason for the question. Also see
https://httpd.apache.org/docs/2.4/developer/modguide.html).

Jeff

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to