Re: What is n in a hook function?

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

 




> On 27 Apr 2020, at 16:52, 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))

That declares a hook to enable modules to insert a function.
The r and the n are arguments to the function do_something.

Best way to get a feel for it is to look at examples in the core
server and standard modules, and match the declarations to
AP_IMPLEMENT_HOOK_* and ap_hook_*.
Hooks are pretty central to everything.

-- 
Nick Kew

---------------------------------------------------------------------
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