<html> <head> <link rel="stylesheet" type="text/css" href="dox.css" /> <title>libapreq2-2.13: libapreq2: apreq_hook_t Struct Reference</title> </head> <body> <div id="page-header"> <p class="menu"> <a href="http://www.apache.org/">Apache Software Foundation</a> > <a href="http://httpd.apache.org">HTTP Server Project</a> > <a href="http://httpd.apache.org/apreq/">Request Library Subproject</a></p> <p class="apache">Apache HTTP Server Request Library</p> <img alt="" src="feather.gif" /></div> <!-- Generated by Doxygen 1.5.6 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li class="current"><a href="annotated.html"><span>Data Structures</span></a></li> <li><a href="files.html"><span>Files</span></a></li> <li><a href="examples.html"><span>Examples</span></a></li> </ul> </div> <div class="tabs"> <ul> <li><a href="annotated.html"><span>Data Structures</span></a></li> <li><a href="functions.html"><span>Data Fields</span></a></li> </ul> </div> </div> <div class="contents"> <h1>apreq_hook_t Struct Reference</h1><!-- doxytag: class="apreq_hook_t" --><code>#include <<a class="el" href="apreq__parser_8h-source.html">apreq_parser.h</a>></code> <p> <table border="0" cellpadding="0" cellspacing="0"> <tr><td></td></tr> <tr><td colspan="2"><br><h2>Data Fields</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="apreq__parser_8h.html#6841a882a8a33203233506bd6754585a">apreq_hook_function_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="structapreq__hook__t.html#9e61fe14dbacf28528f69de468fb1fc0">hook</a></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structapreq__hook__t.html">apreq_hook_t</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="structapreq__hook__t.html#09efec3f75c52dbeaeedde059c953f7f">next</a></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/1.3/" href="http://apr.apache.org/docs/apr/1.3/group__apr__pools.html#gf137f28edcf9a086cd6bc36c20d7cdfb">apr_pool_t</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="structapreq__hook__t.html#2316f4a8fb1cf0a9d5a46866b3229db1">pool</a></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void * </td><td class="memItemRight" valign="bottom"><a class="el" href="structapreq__hook__t.html#52aeaf774a4d37758b6a3de625913ac5">ctx</a></td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> A hook is called by the parser whenever data arrives in a file upload parameter of the request body. You may associate any number of hooks with a parser instance with <a class="el" href="apreq__parser_8h.html#97972c08b20917465b745c8b8eec95ed">apreq_parser_add_hook()</a>. <hr><h2>Field Documentation</h2> <a class="anchor" name="9e61fe14dbacf28528f69de468fb1fc0"></a><!-- doxytag: member="apreq_hook_t::hook" ref="9e61fe14dbacf28528f69de468fb1fc0" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="apreq__parser_8h.html#6841a882a8a33203233506bd6754585a">apreq_hook_function_t</a> <a class="el" href="structapreq__hook__t.html#9e61fe14dbacf28528f69de468fb1fc0">apreq_hook_t::hook</a> </td> </tr> </table> </div> <div class="memdoc"> <p> the hook function </div> </div><p> <a class="anchor" name="09efec3f75c52dbeaeedde059c953f7f"></a><!-- doxytag: member="apreq_hook_t::next" ref="09efec3f75c52dbeaeedde059c953f7f" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="structapreq__hook__t.html">apreq_hook_t</a>* <a class="el" href="structapreq__hook__t.html#09efec3f75c52dbeaeedde059c953f7f">apreq_hook_t::next</a> </td> </tr> </table> </div> <div class="memdoc"> <p> next item in the linked list </div> </div><p> <a class="anchor" name="2316f4a8fb1cf0a9d5a46866b3229db1"></a><!-- doxytag: member="apreq_hook_t::pool" ref="2316f4a8fb1cf0a9d5a46866b3229db1" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/1.3/" href="http://apr.apache.org/docs/apr/1.3/group__apr__pools.html#gf137f28edcf9a086cd6bc36c20d7cdfb">apr_pool_t</a>* <a class="el" href="structapreq__hook__t.html#2316f4a8fb1cf0a9d5a46866b3229db1">apreq_hook_t::pool</a> </td> </tr> </table> </div> <div class="memdoc"> <p> pool which allocated this hook </div> </div><p> <a class="anchor" name="52aeaf774a4d37758b6a3de625913ac5"></a><!-- doxytag: member="apreq_hook_t::ctx" ref="52aeaf774a4d37758b6a3de625913ac5" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void* <a class="el" href="structapreq__hook__t.html#52aeaf774a4d37758b6a3de625913ac5">apreq_hook_t::ctx</a> </td> </tr> </table> </div> <div class="memdoc"> <p> a user defined pointer passed to the hook function </div> </div><p> <hr>The documentation for this struct was generated from the following file:<ul> <li>include/<a class="el" href="apreq__parser_8h-source.html">apreq_parser.h</a></ul> </div> <div id="footer"> <p class="apache"> Copyright © 2003-2006 <a href="http://www.apache.org">The Apache Software Foundation</a>.<br/> See <a href="apreq_license.html">LICENSE</a>.</p> <p class="menu"> <span style="color:#aaa">page generated by <a href="http://www.doxygen.org/"><code>doxygen</code></a> version 1.5.6 on 25 Nov 2010</span> </p> </div> </body> </html>