On Fri, 2017-02-24 at 14:09 +0300, Basin Ilya wrote: > Hi. > What are the constructs from apr_hooks.h for?
If you want to write software that lets separate modules intervene at specified points, the hook provides a mechanism. I'd suggest a look at how Apache HTTPD's modules use them (*cough* the book aims to ease that learning curve) for inspiration. > Is it possible to hook file operations with them? Like open, read, seek and > list dir contents. You could do that. It might be relevant if you were looking to abstract elements of the filesystem. Though the hooks would just be one small element of such an architecture. -- Nick Kew