D7net Mini Sh3LL v1
Current File : //usr/share/systemd/../doc/libefiboot1/../libaprutil1-dev/html/apr__hooks_8h_source.html |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Apache Portable Runtime Utility Library: apr_hooks.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">Apache Portable Runtime Utility Library
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">apr_hooks.h</div> </div>
</div><!--header-->
<div class="contents">
<a href="apr__hooks_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/* Licensed to the Apache Software Foundation (ASF) under one or more</span></div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> * contributor license agreements. See the NOTICE file distributed with</span></div>
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> * this work for additional information regarding copyright ownership.</span></div>
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> * The ASF licenses this file to You under the Apache License, Version 2.0</span></div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> * (the "License"); you may not use this file except in compliance with</span></div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> * the License. You may obtain a copy of the License at</span></div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> *</span></div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> * http://www.apache.org/licenses/LICENSE-2.0</span></div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"> *</span></div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> * Unless required by applicable law or agreed to in writing, software</span></div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> * distributed under the License is distributed on an "AS IS" BASIS,</span></div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment"> * See the License for the specific language governing permissions and</span></div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment"> * limitations under the License.</span></div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>  </div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="preprocessor">#ifndef APR_HOOKS_H</span></div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor">#define APR_HOOKS_H</span></div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>  </div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#include "apu.h"</span></div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="comment">/* For apr_array_header_t */</span></div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#include "apr_tables.h"</span></div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>  </div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="preprocessor">#ifdef __cplusplus</span></div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="keyword">extern</span> <span class="stringliteral">"C"</span> {</div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  </div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span> <span class="preprocessor">#ifdef APR_HOOK_PROBES_ENABLED</span></div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span> <span class="preprocessor">#define APR_HOOK_INT_DCL_UD void *ud = NULL</span></div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span> <span class="preprocessor">#else</span></div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  </div>
<div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="group__apr__hook__probes.html#ga258d03fb4cf228fcb9d2fa094625ffaf"> 58</a></span> <span class="preprocessor">#define APR_HOOK_INT_DCL_UD</span></div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  </div>
<div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="group__apr__hook__probes.html#ga320422eebccc41f9329e34e11939e302"> 69</a></span> <span class="preprocessor">#define APR_HOOK_PROBE_ENTRY(ud,ns,name,args)</span></div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  </div>
<div class="line"><a name="l00081"></a><span class="lineno"><a class="line" href="group__apr__hook__probes.html#gab3017efe0bb66b97b6b7931245211692"> 81</a></span> <span class="preprocessor">#define APR_HOOK_PROBE_RETURN(ud,ns,name,rv,args)</span></div>
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  </div>
<div class="line"><a name="l00094"></a><span class="lineno"><a class="line" href="group__apr__hook__probes.html#ga030df3d86fe087857b32388e01ad3928"> 94</a></span> <span class="preprocessor">#define APR_HOOK_PROBE_INVOKE(ud,ns,name,src,args)</span></div>
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  </div>
<div class="line"><a name="l00108"></a><span class="lineno"><a class="line" href="group__apr__hook__probes.html#ga5793578cb2da7815b20b9a87c281ed7c"> 108</a></span> <span class="preprocessor">#define APR_HOOK_PROBE_COMPLETE(ud,ns,name,src,rv,args)</span></div>
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span> <span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  </div>
<div class="line"><a name="l00114"></a><span class="lineno"><a class="line" href="group___a_p_r___util___hook.html#ga832a6d3b73a43b3f7c58c5702ddccce9"> 114</a></span> <span class="preprocessor">#define APR_IMPLEMENT_HOOK_GET_PROTO(ns,link,name) \</span></div>
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span> <span class="preprocessor">link##_DECLARE(apr_array_header_t *) ns##_hook_get_##name(void)</span></div>
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  </div>
<div class="line"><a name="l00118"></a><span class="lineno"><a class="line" href="group___a_p_r___util___hook.html#ga69298243d3c4ffb4627fd3d04b522f44"> 118</a></span> <span class="preprocessor">#define APR_DECLARE_EXTERNAL_HOOK(ns,link,ret,name,args) \</span></div>
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span> <span class="preprocessor">typedef ret ns##_HOOK_##name##_t args; \</span></div>
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span> <span class="preprocessor">link##_DECLARE(void) ns##_hook_##name(ns##_HOOK_##name##_t *pf, \</span></div>
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span> <span class="preprocessor"> const char * const *aszPre, \</span></div>
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span> <span class="preprocessor"> const char * const *aszSucc, int nOrder); \</span></div>
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span> <span class="preprocessor">link##_DECLARE(ret) ns##_run_##name args; \</span></div>
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span> <span class="preprocessor">APR_IMPLEMENT_HOOK_GET_PROTO(ns,link,name); \</span></div>
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span> <span class="preprocessor">typedef struct ns##_LINK_##name##_t \</span></div>
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span> <span class="preprocessor"> { \</span></div>
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span> <span class="preprocessor"> ns##_HOOK_##name##_t *pFunc; \</span></div>
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span> <span class="preprocessor"> const char *szName; \</span></div>
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span> <span class="preprocessor"> const char * const *aszPredecessors; \</span></div>
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span> <span class="preprocessor"> const char * const *aszSuccessors; \</span></div>
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span> <span class="preprocessor"> int nOrder; \</span></div>
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span> <span class="preprocessor"> } ns##_LINK_##name##_t;</span></div>
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  </div>
<div class="line"><a name="l00135"></a><span class="lineno"><a class="line" href="group___a_p_r___util___hook.html#gaa936f5a0d1164d301aa157de6023fae5"> 135</a></span> <span class="preprocessor">#define APR_HOOK_STRUCT(members) \</span></div>
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span> <span class="preprocessor">static struct { members } _hooks;</span></div>
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  </div>
<div class="line"><a name="l00139"></a><span class="lineno"><a class="line" href="group___a_p_r___util___hook.html#ga5699f73166bae88b6f6ac0bf7618b0f6"> 139</a></span> <span class="preprocessor">#define APR_HOOK_LINK(name) \</span></div>
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span> <span class="preprocessor"> apr_array_header_t *link_##name;</span></div>
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  </div>
<div class="line"><a name="l00143"></a><span class="lineno"><a class="line" href="group___a_p_r___util___hook.html#ga2500abadaa54b3a9d6ec25ff33a6b0cc"> 143</a></span> <span class="preprocessor">#define APR_IMPLEMENT_EXTERNAL_HOOK_BASE(ns,link,name) \</span></div>
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span> <span class="preprocessor">link##_DECLARE(void) ns##_hook_##name(ns##_HOOK_##name##_t *pf,const char * const *aszPre, \</span></div>
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span> <span class="preprocessor"> const char * const *aszSucc,int nOrder) \</span></div>
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span> <span class="preprocessor"> { \</span></div>
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span> <span class="preprocessor"> ns##_LINK_##name##_t *pHook; \</span></div>
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span> <span class="preprocessor"> if(!_hooks.link_##name) \</span></div>
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span> <span class="preprocessor"> { \</span></div>
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span> <span class="preprocessor"> _hooks.link_##name=apr_array_make(apr_hook_global_pool,1,sizeof(ns##_LINK_##name##_t)); \</span></div>
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span> <span class="preprocessor"> apr_hook_sort_register(#name,&_hooks.link_##name); \</span></div>
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span> <span class="preprocessor"> } \</span></div>
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span> <span class="preprocessor"> pHook=apr_array_push(_hooks.link_##name); \</span></div>
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span> <span class="preprocessor"> pHook->pFunc=pf; \</span></div>
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span> <span class="preprocessor"> pHook->aszPredecessors=aszPre; \</span></div>
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span> <span class="preprocessor"> pHook->aszSuccessors=aszSucc; \</span></div>
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span> <span class="preprocessor"> pHook->nOrder=nOrder; \</span></div>
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span> <span class="preprocessor"> pHook->szName=apr_hook_debug_current; \</span></div>
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span> <span class="preprocessor"> if(apr_hook_debug_enabled) \</span></div>
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span> <span class="preprocessor"> apr_hook_debug_show(#name,aszPre,aszSucc); \</span></div>
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span> <span class="preprocessor"> } \</span></div>
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span> <span class="preprocessor"> APR_IMPLEMENT_HOOK_GET_PROTO(ns,link,name) \</span></div>
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span> <span class="preprocessor"> { \</span></div>
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span> <span class="preprocessor"> return _hooks.link_##name; \</span></div>
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span> <span class="preprocessor"> }</span></div>
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>  </div>
<div class="line"><a name="l00179"></a><span class="lineno"><a class="line" href="group___a_p_r___util___hook.html#ga2d11a43b6431ec568cc1647da4a2079c"> 179</a></span> <span class="preprocessor">#define APR_IMPLEMENT_EXTERNAL_HOOK_VOID(ns,link,name,args_decl,args_use) \</span></div>
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span> <span class="preprocessor">APR_IMPLEMENT_EXTERNAL_HOOK_BASE(ns,link,name) \</span></div>
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span> <span class="preprocessor">link##_DECLARE(void) ns##_run_##name args_decl \</span></div>
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span> <span class="preprocessor"> { \</span></div>
<div class="line"><a name="l00183"></a><span class="lineno"> 183</span> <span class="preprocessor"> ns##_LINK_##name##_t *pHook; \</span></div>
<div class="line"><a name="l00184"></a><span class="lineno"> 184</span> <span class="preprocessor"> int n; \</span></div>
<div class="line"><a name="l00185"></a><span class="lineno"> 185</span> <span class="preprocessor"> APR_HOOK_INT_DCL_UD; \</span></div>
<div class="line"><a name="l00186"></a><span class="lineno"> 186</span> <span class="preprocessor">\</span></div>
<div class="line"><a name="l00187"></a><span class="lineno"> 187</span> <span class="preprocessor"> APR_HOOK_PROBE_ENTRY(ud, ns, name, args_use); \</span></div>
<div class="line"><a name="l00188"></a><span class="lineno"> 188</span> <span class="preprocessor">\</span></div>
<div class="line"><a name="l00189"></a><span class="lineno"> 189</span> <span class="preprocessor"> if(_hooks.link_##name) \</span></div>
<div class="line"><a name="l00190"></a><span class="lineno"> 190</span> <span class="preprocessor"> { \</span></div>
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span> <span class="preprocessor"> pHook=(ns##_LINK_##name##_t *)_hooks.link_##name->elts; \</span></div>
<div class="line"><a name="l00192"></a><span class="lineno"> 192</span> <span class="preprocessor"> for(n=0 ; n < _hooks.link_##name->nelts ; ++n) \</span></div>
<div class="line"><a name="l00193"></a><span class="lineno"> 193</span> <span class="preprocessor"> { \</span></div>
<div class="line"><a name="l00194"></a><span class="lineno"> 194</span> <span class="preprocessor"> APR_HOOK_PROBE_INVOKE(ud, ns, name, (char *)pHook[n].szName, args_use); \</span></div>
<div class="line"><a name="l00195"></a><span class="lineno"> 195</span> <span class="preprocessor"> pHook[n].pFunc args_use; \</span></div>
<div class="line"><a name="l00196"></a><span class="lineno"> 196</span> <span class="preprocessor"> APR_HOOK_PROBE_COMPLETE(ud, ns, name, (char *)pHook[n].szName, 0, args_use); \</span></div>
<div class="line"><a name="l00197"></a><span class="lineno"> 197</span> <span class="preprocessor"> } \</span></div>
<div class="line"><a name="l00198"></a><span class="lineno"> 198</span> <span class="preprocessor"> } \</span></div>
<div class="line"><a name="l00199"></a><span class="lineno"> 199</span> <span class="preprocessor">\</span></div>
<div class="line"><a name="l00200"></a><span class="lineno"> 200</span> <span class="preprocessor"> APR_HOOK_PROBE_RETURN(ud, ns, name, 0, args_use); \</span></div>
<div class="line"><a name="l00201"></a><span class="lineno"> 201</span> <span class="preprocessor">\</span></div>
<div class="line"><a name="l00202"></a><span class="lineno"> 202</span> <span class="preprocessor"> }</span></div>
<div class="line"><a name="l00203"></a><span class="lineno"> 203</span>  </div>
<div class="line"><a name="l00204"></a><span class="lineno"> 204</span> <span class="comment">/* FIXME: note that this returns ok when nothing is run. I suspect it should</span></div>
<div class="line"><a name="l00205"></a><span class="lineno"> 205</span> <span class="comment"> really return decline, but that breaks Apache currently - Ben</span></div>
<div class="line"><a name="l00206"></a><span class="lineno"> 206</span> <span class="comment">*/</span></div>
<div class="line"><a name="l00222"></a><span class="lineno"><a class="line" href="group___a_p_r___util___hook.html#gab466280bdabe0cc2ee5880cbb512fa3d"> 222</a></span> <span class="preprocessor">#define APR_IMPLEMENT_EXTERNAL_HOOK_RUN_ALL(ns,link,ret,name,args_decl,args_use,ok,decline) \</span></div>
<div class="line"><a name="l00223"></a><span class="lineno"> 223</span> <span class="preprocessor">APR_IMPLEMENT_EXTERNAL_HOOK_BASE(ns,link,name) \</span></div>
<div class="line"><a name="l00224"></a><span class="lineno"> 224</span> <span class="preprocessor">link##_DECLARE(ret) ns##_run_##name args_decl \</span></div>
<div class="line"><a name="l00225"></a><span class="lineno"> 225</span> <span class="preprocessor"> { \</span></div>
<div class="line"><a name="l00226"></a><span class="lineno"> 226</span> <span class="preprocessor"> ns##_LINK_##name##_t *pHook; \</span></div>
<div class="line"><a name="l00227"></a><span class="lineno"> 227</span> <span class="preprocessor"> int n; \</span></div>
<div class="line"><a name="l00228"></a><span class="lineno"> 228</span> <span class="preprocessor"> ret rv = ok; \</span></div>
<div class="line"><a name="l00229"></a><span class="lineno"> 229</span> <span class="preprocessor"> APR_HOOK_INT_DCL_UD; \</span></div>
<div class="line"><a name="l00230"></a><span class="lineno"> 230</span> <span class="preprocessor">\</span></div>
<div class="line"><a name="l00231"></a><span class="lineno"> 231</span> <span class="preprocessor"> APR_HOOK_PROBE_ENTRY(ud, ns, name, args_use); \</span></div>
<div class="line"><a name="l00232"></a><span class="lineno"> 232</span> <span class="preprocessor">\</span></div>
<div class="line"><a name="l00233"></a><span class="lineno"> 233</span> <span class="preprocessor"> if(_hooks.link_##name) \</span></div>
<div class="line"><a name="l00234"></a><span class="lineno"> 234</span> <span class="preprocessor"> { \</span></div>
<div class="line"><a name="l00235"></a><span class="lineno"> 235</span> <span class="preprocessor"> pHook=(ns##_LINK_##name##_t *)_hooks.link_##name->elts; \</span></div>
<div class="line"><a name="l00236"></a><span class="lineno"> 236</span> <span class="preprocessor"> for(n=0 ; n < _hooks.link_##name->nelts ; ++n) \</span></div>
<div class="line"><a name="l00237"></a><span class="lineno"> 237</span> <span class="preprocessor"> { \</span></div>
<div class="line"><a name="l00238"></a><span class="lineno"> 238</span> <span class="preprocessor"> APR_HOOK_PROBE_INVOKE(ud, ns, name, (char *)pHook[n].szName, args_use); \</span></div>
<div class="line"><a name="l00239"></a><span class="lineno"> 239</span> <span class="preprocessor"> rv=pHook[n].pFunc args_use; \</span></div>
<div class="line"><a name="l00240"></a><span class="lineno"> 240</span> <span class="preprocessor"> APR_HOOK_PROBE_COMPLETE(ud, ns, name, (char *)pHook[n].szName, rv, args_use); \</span></div>
<div class="line"><a name="l00241"></a><span class="lineno"> 241</span> <span class="preprocessor"> if(rv != ok && rv != decline) \</span></div>
<div class="line"><a name="l00242"></a><span class="lineno"> 242</span> <span class="preprocessor"> break; \</span></div>
<div class="line"><a name="l00243"></a><span class="lineno"> 243</span> <span class="preprocessor"> rv = ok; \</span></div>
<div class="line"><a name="l00244"></a><span class="lineno"> 244</span> <span class="preprocessor"> } \</span></div>
<div class="line"><a name="l00245"></a><span class="lineno"> 245</span> <span class="preprocessor"> } \</span></div>
<div class="line"><a name="l00246"></a><span class="lineno"> 246</span> <span class="preprocessor">\</span></div>
<div class="line"><a name="l00247"></a><span class="lineno"> 247</span> <span class="preprocessor"> APR_HOOK_PROBE_RETURN(ud, ns, name, rv, args_use); \</span></div>
<div class="line"><a name="l00248"></a><span class="lineno"> 248</span> <span class="preprocessor">\</span></div>
<div class="line"><a name="l00249"></a><span class="lineno"> 249</span> <span class="preprocessor"> return rv; \</span></div>
<div class="line"><a name="l00250"></a><span class="lineno"> 250</span> <span class="preprocessor"> }</span></div>
<div class="line"><a name="l00251"></a><span class="lineno"> 251</span>  </div>
<div class="line"><a name="l00252"></a><span class="lineno"> 252</span>  </div>
<div class="line"><a name="l00267"></a><span class="lineno"><a class="line" href="group___a_p_r___util___hook.html#ga0420a2aa9ca6b3c1638bdb76025ecc57"> 267</a></span> <span class="preprocessor">#define APR_IMPLEMENT_EXTERNAL_HOOK_RUN_FIRST(ns,link,ret,name,args_decl,args_use,decline) \</span></div>
<div class="line"><a name="l00268"></a><span class="lineno"> 268</span> <span class="preprocessor">APR_IMPLEMENT_EXTERNAL_HOOK_BASE(ns,link,name) \</span></div>
<div class="line"><a name="l00269"></a><span class="lineno"> 269</span> <span class="preprocessor">link##_DECLARE(ret) ns##_run_##name args_decl \</span></div>
<div class="line"><a name="l00270"></a><span class="lineno"> 270</span> <span class="preprocessor"> { \</span></div>
<div class="line"><a name="l00271"></a><span class="lineno"> 271</span> <span class="preprocessor"> ns##_LINK_##name##_t *pHook; \</span></div>
<div class="line"><a name="l00272"></a><span class="lineno"> 272</span> <span class="preprocessor"> int n; \</span></div>
<div class="line"><a name="l00273"></a><span class="lineno"> 273</span> <span class="preprocessor"> ret rv = decline; \</span></div>
<div class="line"><a name="l00274"></a><span class="lineno"> 274</span> <span class="preprocessor"> APR_HOOK_INT_DCL_UD; \</span></div>
<div class="line"><a name="l00275"></a><span class="lineno"> 275</span> <span class="preprocessor">\</span></div>
<div class="line"><a name="l00276"></a><span class="lineno"> 276</span> <span class="preprocessor"> APR_HOOK_PROBE_ENTRY(ud, ns, name, args_use); \</span></div>
<div class="line"><a name="l00277"></a><span class="lineno"> 277</span> <span class="preprocessor">\</span></div>
<div class="line"><a name="l00278"></a><span class="lineno"> 278</span> <span class="preprocessor"> if(_hooks.link_##name) \</span></div>
<div class="line"><a name="l00279"></a><span class="lineno"> 279</span> <span class="preprocessor"> { \</span></div>
<div class="line"><a name="l00280"></a><span class="lineno"> 280</span> <span class="preprocessor"> pHook=(ns##_LINK_##name##_t *)_hooks.link_##name->elts; \</span></div>
<div class="line"><a name="l00281"></a><span class="lineno"> 281</span> <span class="preprocessor"> for(n=0 ; n < _hooks.link_##name->nelts ; ++n) \</span></div>
<div class="line"><a name="l00282"></a><span class="lineno"> 282</span> <span class="preprocessor"> { \</span></div>
<div class="line"><a name="l00283"></a><span class="lineno"> 283</span> <span class="preprocessor"> APR_HOOK_PROBE_INVOKE(ud, ns, name, (char *)pHook[n].szName, args_use); \</span></div>
<div class="line"><a name="l00284"></a><span class="lineno"> 284</span> <span class="preprocessor"> rv=pHook[n].pFunc args_use; \</span></div>
<div class="line"><a name="l00285"></a><span class="lineno"> 285</span> <span class="preprocessor"> APR_HOOK_PROBE_COMPLETE(ud, ns, name, (char *)pHook[n].szName, rv, args_use); \</span></div>
<div class="line"><a name="l00286"></a><span class="lineno"> 286</span> <span class="preprocessor">\</span></div>
<div class="line"><a name="l00287"></a><span class="lineno"> 287</span> <span class="preprocessor"> if(rv != decline) \</span></div>
<div class="line"><a name="l00288"></a><span class="lineno"> 288</span> <span class="preprocessor"> break; \</span></div>
<div class="line"><a name="l00289"></a><span class="lineno"> 289</span> <span class="preprocessor"> } \</span></div>
<div class="line"><a name="l00290"></a><span class="lineno"> 290</span> <span class="preprocessor"> } \</span></div>
<div class="line"><a name="l00291"></a><span class="lineno"> 291</span> <span class="preprocessor">\</span></div>
<div class="line"><a name="l00292"></a><span class="lineno"> 292</span> <span class="preprocessor"> APR_HOOK_PROBE_RETURN(ud, ns, name, rv, args_use); \</span></div>
<div class="line"><a name="l00293"></a><span class="lineno"> 293</span> <span class="preprocessor">\</span></div>
<div class="line"><a name="l00294"></a><span class="lineno"> 294</span> <span class="preprocessor"> return rv; \</span></div>
<div class="line"><a name="l00295"></a><span class="lineno"> 295</span> <span class="preprocessor"> }</span></div>
<div class="line"><a name="l00296"></a><span class="lineno"> 296</span>  </div>
<div class="line"><a name="l00297"></a><span class="lineno"> 297</span>  <span class="comment">/* Hook orderings */</span></div>
<div class="line"><a name="l00299"></a><span class="lineno"><a class="line" href="group___a_p_r___util___hook.html#gab004dcbfff32997deb15040e48f07e92"> 299</a></span> <span class="preprocessor">#define APR_HOOK_REALLY_FIRST (-10)</span></div>
<div class="line"><a name="l00300"></a><span class="lineno"> 300</span>  </div>
<div class="line"><a name="l00301"></a><span class="lineno"><a class="line" href="group___a_p_r___util___hook.html#ga564dea4803813674cb6b742f65a3d2b2"> 301</a></span> <span class="preprocessor">#define APR_HOOK_FIRST 0</span></div>
<div class="line"><a name="l00302"></a><span class="lineno"> 302</span>  </div>
<div class="line"><a name="l00303"></a><span class="lineno"><a class="line" href="group___a_p_r___util___hook.html#gab9a5d50c3478c4d640deccec6b0ce879"> 303</a></span> <span class="preprocessor">#define APR_HOOK_MIDDLE 10</span></div>
<div class="line"><a name="l00304"></a><span class="lineno"> 304</span>  </div>
<div class="line"><a name="l00305"></a><span class="lineno"><a class="line" href="group___a_p_r___util___hook.html#gaa610a95f03d7b4aee922c28b0919f028"> 305</a></span> <span class="preprocessor">#define APR_HOOK_LAST 20</span></div>
<div class="line"><a name="l00306"></a><span class="lineno"> 306</span>  </div>
<div class="line"><a name="l00307"></a><span class="lineno"><a class="line" href="group___a_p_r___util___hook.html#gae3c7d2cf35e8c89828dfff7a85b0ed77"> 307</a></span> <span class="preprocessor">#define APR_HOOK_REALLY_LAST 30</span></div>
<div class="line"><a name="l00308"></a><span class="lineno"> 308</span>  </div>
<div class="line"><a name="l00312"></a><span class="lineno"> 312</span> APU_DECLARE_DATA <span class="keyword">extern</span> apr_pool_t *<a class="code" href="group___a_p_r___util___hook.html#ga8911bb699a5f03ad3c36d579ca0eca23">apr_hook_global_pool</a>;</div>
<div class="line"><a name="l00313"></a><span class="lineno"> 313</span>  </div>
<div class="line"><a name="l00318"></a><span class="lineno"> 318</span> APU_DECLARE_DATA <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="group___a_p_r___util___hook.html#ga59309caeb9b47d921727530494f264be">apr_hook_debug_enabled</a>;</div>
<div class="line"><a name="l00319"></a><span class="lineno"> 319</span>  </div>
<div class="line"><a name="l00323"></a><span class="lineno"> 323</span> APU_DECLARE_DATA <span class="keyword">extern</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="group___a_p_r___util___hook.html#ga37be3c217439ceddbda16054b020a658">apr_hook_debug_current</a>;</div>
<div class="line"><a name="l00324"></a><span class="lineno"> 324</span>  </div>
<div class="line"><a name="l00330"></a><span class="lineno"> 330</span> APU_DECLARE(<span class="keywordtype">void</span>) <a class="code" href="group___a_p_r___util___hook.html#ga04843fe00dc3c08c23130fef3ba1260c">apr_hook_sort_register</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *szHookName, </div>
<div class="line"><a name="l00331"></a><span class="lineno"> 331</span>  apr_array_header_t **aHooks);</div>
<div class="line"><a name="l00335"></a><span class="lineno"> 335</span> APU_DECLARE(<span class="keywordtype">void</span>) <a class="code" href="group___a_p_r___util___hook.html#ga1e0b6cf91dac5417c1b9cbd1b46b8991">apr_hook_sort_all</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00336"></a><span class="lineno"> 336</span>  </div>
<div class="line"><a name="l00344"></a><span class="lineno"> 344</span> APU_DECLARE(<span class="keywordtype">void</span>) <a class="code" href="group___a_p_r___util___hook.html#ga1de31557683f53c2a07f73990962c585">apr_hook_debug_show</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *szName,</div>
<div class="line"><a name="l00345"></a><span class="lineno"> 345</span>  <span class="keyword">const</span> <span class="keywordtype">char</span> * <span class="keyword">const</span> *aszPre,</div>
<div class="line"><a name="l00346"></a><span class="lineno"> 346</span>  <span class="keyword">const</span> <span class="keywordtype">char</span> * <span class="keyword">const</span> *aszSucc);</div>
<div class="line"><a name="l00347"></a><span class="lineno"> 347</span>  </div>
<div class="line"><a name="l00351"></a><span class="lineno"> 351</span> APU_DECLARE(<span class="keywordtype">void</span>) <a class="code" href="group___a_p_r___util___hook.html#ga5d20451da75574c8433feb1bd5b2ce10">apr_hook_deregister_all</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00352"></a><span class="lineno"> 352</span>  </div>
<div class="line"><a name="l00354"></a><span class="lineno"> 354</span> <span class="preprocessor">#ifdef __cplusplus</span></div>
<div class="line"><a name="l00355"></a><span class="lineno"> 355</span> }</div>
<div class="line"><a name="l00356"></a><span class="lineno"> 356</span> <span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00357"></a><span class="lineno"> 357</span>  </div>
<div class="line"><a name="l00358"></a><span class="lineno"> 358</span> <span class="preprocessor">#endif </span><span class="comment">/* APR_HOOKS_H */</span><span class="preprocessor"></span></div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="agroup___a_p_r___util___hook_html_ga04843fe00dc3c08c23130fef3ba1260c"><div class="ttname"><a href="group___a_p_r___util___hook.html#ga04843fe00dc3c08c23130fef3ba1260c">apr_hook_sort_register</a></div><div class="ttdeci">void apr_hook_sort_register(const char *szHookName, apr_array_header_t **aHooks)</div></div>
<div class="ttc" id="agroup___a_p_r___util___hook_html_ga59309caeb9b47d921727530494f264be"><div class="ttname"><a href="group___a_p_r___util___hook.html#ga59309caeb9b47d921727530494f264be">apr_hook_debug_enabled</a></div><div class="ttdeci">int apr_hook_debug_enabled</div></div>
<div class="ttc" id="agroup___a_p_r___util___hook_html_ga1de31557683f53c2a07f73990962c585"><div class="ttname"><a href="group___a_p_r___util___hook.html#ga1de31557683f53c2a07f73990962c585">apr_hook_debug_show</a></div><div class="ttdeci">void apr_hook_debug_show(const char *szName, const char *const *aszPre, const char *const *aszSucc)</div></div>
<div class="ttc" id="agroup___a_p_r___util___hook_html_ga5d20451da75574c8433feb1bd5b2ce10"><div class="ttname"><a href="group___a_p_r___util___hook.html#ga5d20451da75574c8433feb1bd5b2ce10">apr_hook_deregister_all</a></div><div class="ttdeci">void apr_hook_deregister_all(void)</div></div>
<div class="ttc" id="agroup___a_p_r___util___hook_html_ga1e0b6cf91dac5417c1b9cbd1b46b8991"><div class="ttname"><a href="group___a_p_r___util___hook.html#ga1e0b6cf91dac5417c1b9cbd1b46b8991">apr_hook_sort_all</a></div><div class="ttdeci">void apr_hook_sort_all(void)</div></div>
<div class="ttc" id="agroup___a_p_r___util___hook_html_ga37be3c217439ceddbda16054b020a658"><div class="ttname"><a href="group___a_p_r___util___hook.html#ga37be3c217439ceddbda16054b020a658">apr_hook_debug_current</a></div><div class="ttdeci">const char * apr_hook_debug_current</div></div>
<div class="ttc" id="agroup___a_p_r___util___hook_html_ga8911bb699a5f03ad3c36d579ca0eca23"><div class="ttname"><a href="group___a_p_r___util___hook.html#ga8911bb699a5f03ad3c36d579ca0eca23">apr_hook_global_pool</a></div><div class="ttdeci">apr_pool_t * apr_hook_global_pool</div></div>
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
</small></address>
</body>
</html>
AnonSec - 2021 | Recode By D7net