Re: What is n in a hook function?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Apr 27, 2020 at 11:52 AM Jeffrey Walton <noloader@xxxxxxxxx> 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: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux