On Mon, Apr 27, 2020 at 11:52 AM Jeffrey Walton <[email protected]> wrote:
>
> Hi Everyone,
>
> 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.

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

Reply via email to