1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146
|
<html>
<head>
<link rel="stylesheet" type="text/css" href="dox.css" />
<title>libapreq2-2.05-dev: libapreq2: include/apreq_param.h Source File</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.4.2 -->
<div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="modules.html">Modules</a> | <a class="qindex" href="annotated.html">Data Structures</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Data Fields</a> | <a class="qindex" href="globals.html">Globals</a> | <a class="qindex" href="pages.html">Related Pages</a></div>
<div class="nav">
<a class="el" href="dir_000000.html">include</a></div>
<h1>apreq_param.h</h1><a href="apreq__param_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment">00001 <span class="comment">/*</span>
00002 <span class="comment">** Copyright 2003-2005 The Apache Software Foundation</span>
00003 <span class="comment">**</span>
00004 <span class="comment">** Licensed under the Apache License, Version 2.0 (the "License");</span>
00005 <span class="comment">** you may not use this file except in compliance with the License.</span>
00006 <span class="comment">** You may obtain a copy of the License at</span>
00007 <span class="comment">**</span>
00008 <span class="comment">** http://www.apache.org/licenses/LICENSE-2.0</span>
00009 <span class="comment">**</span>
00010 <span class="comment">** Unless required by applicable law or agreed to in writing, software</span>
00011 <span class="comment">** distributed under the License is distributed on an "AS IS" BASIS,</span>
00012 <span class="comment">** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span>
00013 <span class="comment">** See the License for the specific language governing permissions and</span>
00014 <span class="comment">** limitations under the License.</span>
00015 <span class="comment">*/</span>
00016
00017 <span class="preprocessor">#ifndef APREQ_PARAM_H</span>
00018 <span class="preprocessor"></span><span class="preprocessor">#define APREQ_PARAM_H</span>
00019 <span class="preprocessor"></span>
00020 <span class="preprocessor">#include "<a class="code" href="apreq_8h.html">apreq.h</a>"</span>
00021 <span class="preprocessor">#include "<a class="codeRef" doxygen="apu.tag:http://apr.apache.org/docs/apr-util/" href="http://apr.apache.org/docs/apr-util/apr__buckets_8h.html">apr_buckets.h</a>"</span>
00022
00023 <span class="preprocessor">#ifdef __cplusplus</span>
00024 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">"C"</span> {
00025 <span class="preprocessor">#endif</span>
00026 <span class="preprocessor"></span>
00027
<a name="l00036"></a><a class="code" href="structapreq__param__t.html">00036</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structapreq__param__t.html">apreq_param_t</a> {
<a name="l00037"></a><a class="code" href="structapreq__param__t.html#o0">00037</a> <a class="codeRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/group__apr__tables.html#ga0">apr_table_t</a> *<a class="code" href="structapreq__param__t.html#o0">info</a>;
<a name="l00038"></a><a class="code" href="structapreq__param__t.html#o1">00038</a> <a class="codeRef" doxygen="apu.tag:http://apr.apache.org/docs/apr-util/" href="http://apr.apache.org/docs/apr-util/structapr__bucket__brigade.html">apr_bucket_brigade</a> *<a class="code" href="structapreq__param__t.html#o1">upload</a>;
<a name="l00039"></a><a class="code" href="structapreq__param__t.html#o2">00039</a> <span class="keywordtype">unsigned</span> <a class="code" href="structapreq__param__t.html#o2">flags</a>;
<a name="l00040"></a><a class="code" href="structapreq__param__t.html#o3">00040</a> <span class="keyword">const</span> <a class="code" href="structapreq__value__t.html">apreq_value_t</a> <a class="code" href="structapreq__param__t.html#o3">v</a>;
00041 } <a class="code" href="structapreq__param__t.html">apreq_param_t</a>;
00042
00043
00045 <span class="keyword">static</span> <a class="codeRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/group__apr__platform.html#ga11">APR_INLINE</a>
<a name="l00046"></a><a class="code" href="apreq__param_8h.html#a1">00046</a> <span class="keywordtype">unsigned</span> <a class="code" href="apreq__param_8h.html#a1">apreq_param_is_tainted</a>(<span class="keyword">const</span> <a class="code" href="structapreq__param__t.html">apreq_param_t</a> *p) {
00047 <span class="keywordflow">return</span> APREQ_FLAGS_GET(p-><a class="code" href="structapreq__param__t.html#o2">flags</a>, APREQ_TAINTED);
00048 }
00049
00051 <span class="keyword">static</span> <a class="codeRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/group__apr__platform.html#ga11">APR_INLINE</a>
<a name="l00052"></a><a class="code" href="apreq__param_8h.html#a2">00052</a> <span class="keywordtype">void</span> <a class="code" href="apreq__param_8h.html#a2">apreq_param_tainted_on</a>(<a class="code" href="structapreq__param__t.html">apreq_param_t</a> *p) {
00053 APREQ_FLAGS_ON(p-><a class="code" href="structapreq__param__t.html#o2">flags</a>, APREQ_TAINTED);
00054 }
00055
00057 <span class="keyword">static</span> <a class="codeRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/group__apr__platform.html#ga11">APR_INLINE</a>
<a name="l00058"></a><a class="code" href="apreq__param_8h.html#a3">00058</a> <span class="keywordtype">void</span> <a class="code" href="apreq__param_8h.html#a3">apreq_param_tainted_off</a>(<a class="code" href="structapreq__param__t.html">apreq_param_t</a> *p) {
00059 APREQ_FLAGS_OFF(p-><a class="code" href="structapreq__param__t.html#o2">flags</a>, APREQ_TAINTED);
00060 }
00061
00063 <span class="keyword">static</span> <a class="codeRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/group__apr__platform.html#ga11">APR_INLINE</a>
<a name="l00064"></a><a class="code" href="apreq__param_8h.html#a4">00064</a> <a class="code" href="apreq_8h.html#a37">apreq_charset_t</a> <a class="code" href="apreq__param_8h.html#a4">apreq_param_charset_set</a>(<a class="code" href="structapreq__param__t.html">apreq_param_t</a> *p, <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> c) {
00065 <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> old = APREQ_FLAGS_GET(p-><a class="code" href="structapreq__param__t.html#o2">flags</a>, APREQ_CHARSET);
00066 APREQ_FLAGS_SET(p-><a class="code" href="structapreq__param__t.html#o2">flags</a>, APREQ_CHARSET, c);
00067 <span class="keywordflow">return</span> old;
00068 }
00069
00071 <span class="keyword">static</span> <a class="codeRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/group__apr__platform.html#ga11">APR_INLINE</a>
<a name="l00072"></a><a class="code" href="apreq__param_8h.html#a5">00072</a> <a class="code" href="apreq_8h.html#a37">apreq_charset_t</a> <a class="code" href="apreq__param_8h.html#a5">apreq_param_charset_get</a>(<a class="code" href="structapreq__param__t.html">apreq_param_t</a> *p) {
00073 <span class="keywordflow">return</span> APREQ_FLAGS_GET(p-><a class="code" href="structapreq__param__t.html#o2">flags</a>, APREQ_CHARSET);
00074 }
00075
00076
00078 <span class="keyword">static</span> <a class="codeRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/group__apr__platform.html#ga11">APR_INLINE</a>
<a name="l00079"></a><a class="code" href="apreq__param_8h.html#a6">00079</a> <a class="code" href="structapreq__param__t.html">apreq_param_t</a> *<a class="code" href="apreq__param_8h.html#a6">apreq_value_to_param</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *val)
00080 {
00081 <span class="keyword">union </span>{ <span class="keyword">const</span> <span class="keywordtype">char</span> *in; <span class="keywordtype">char</span> *out; } deconst;
00082
00083 deconst.in = val;
00084 <span class="keywordflow">return</span> apreq_attr_to_type(<a class="code" href="structapreq__param__t.html">apreq_param_t</a>, v,
00085 apreq_attr_to_type(<a class="code" href="structapreq__value__t.html">apreq_value_t</a>, data, deconst.out));
00086 }
00087
00088
00089
00091 APREQ_DECLARE(<a class="code" href="structapreq__param__t.html">apreq_param_t</a> *) <a class="code" href="apreq__param_8h.html#a7">apreq_param_make</a>(<a class="codeRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/group__apr__pools.html#ga0">apr_pool_t</a> *p,
00092 const <span class="keywordtype">char</span> *name,
00093 const <a class="codeRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/group__apr__platform.html#ga7">apr_size_t</a> nlen,
00094 const <span class="keywordtype">char</span> *val,
00095 const <a class="codeRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/group__apr__platform.html#ga7">apr_size_t</a> vlen);
00096
00113 APREQ_DECLARE(<a class="codeRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/group__apr__errno.html#ga0">apr_status_t</a>) <a class="code" href="apreq__param_8h.html#a8">apreq_param_decode</a>(<a class="code" href="structapreq__param__t.html">apreq_param_t</a> **param,
00114 <a class="codeRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/group__apr__pools.html#ga0">apr_pool_t</a> *pool,
00115 const <span class="keywordtype">char</span> *word,
00116 <a class="codeRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/group__apr__platform.html#ga7">apr_size_t</a> nlen,
00117 <a class="codeRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/group__apr__platform.html#ga7">apr_size_t</a> vlen);
00118
00125 APREQ_DECLARE(<span class="keywordtype">char</span> *) <a class="code" href="apreq__param_8h.html#a9">apreq_param_encode</a>(<a class="codeRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/group__apr__pools.html#ga0">apr_pool_t</a> *pool,
00126 const <a class="code" href="structapreq__param__t.html">apreq_param_t</a> *param);
00127
00139 APREQ_DECLARE(<a class="codeRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/group__apr__errno.html#ga0">apr_status_t</a>) <a class="code" href="apreq__param_8h.html#a10">apreq_parse_query_string</a>(<a class="codeRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/group__apr__pools.html#ga0">apr_pool_t</a> *pool,
00140 <a class="codeRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/group__apr__tables.html#ga0">apr_table_t</a> *t,
00141 const <span class="keywordtype">char</span> *qs);
00142
00143
00155 APREQ_DECLARE(<a class="codeRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/structapr__array__header__t.html">apr_array_header_t</a> *) <a class="code" href="apreq__param_8h.html#a11">apreq_params_as_array</a>(<a class="codeRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/group__apr__pools.html#ga0">apr_pool_t</a> *p,
00156 const <a class="codeRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/group__apr__tables.html#ga0">apr_table_t</a> *t,
00157 const <span class="keywordtype">char</span> *key);
00158
00173 APREQ_DECLARE(const <span class="keywordtype">char</span> *) <a class="code" href="apreq__param_8h.html#a12">apreq_params_as_string</a>(<a class="codeRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/group__apr__pools.html#ga0">apr_pool_t</a> *p,
00174 const <a class="codeRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/group__apr__tables.html#ga0">apr_table_t</a> *t,
00175 const <span class="keywordtype">char</span> *key,
00176 <a class="code" href="apreq_8h.html#a38">apreq_join_t</a> mode);
00177
00185 APREQ_DECLARE(const <a class="codeRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/group__apr__tables.html#ga0">apr_table_t</a> *) <a class="code" href="apreq__param_8h.html#a13">apreq_uploads</a>(const <a class="codeRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/group__apr__tables.html#ga0">apr_table_t</a> *body,
00186 <a class="codeRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/group__apr__pools.html#ga0">apr_pool_t</a> *pool);
00187
00196 APREQ_DECLARE(const <a class="code" href="structapreq__param__t.html">apreq_param_t</a> *) <a class="code" href="apreq__param_8h.html#a14">apreq_upload</a>(const <a class="codeRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/group__apr__tables.html#ga0">apr_table_t</a> *body,
00197 const <span class="keywordtype">char</span> *name);
00198
00199
00200 #ifdef __cplusplus
00201 }
00202 #endif
00203
00204 #endif <span class="comment">/* APREQ_PARAM_H */</span>
00205
00206
00207
</pre></div><div id="footer">
<p class="apache">
Copyright © 2003-2005 <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.4.2 on 4 May 2005</span>
</p>
</div>
</body>
</html>
|