Return-Path: Delivered-To: apmail-httpd-cvs-archive@www.apache.org Received: (qmail 23591 invoked from network); 4 May 2005 18:41:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 4 May 2005 18:41:26 -0000 Received: (qmail 31830 invoked by uid 500); 4 May 2005 18:43:04 -0000 Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 31358 invoked by uid 500); 4 May 2005 18:42:58 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 31168 invoked by uid 99); 4 May 2005 18:42:54 -0000 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received: from minotaur.apache.org (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.28) with SMTP; Wed, 04 May 2005 11:42:47 -0700 Received: (qmail 96516 invoked by uid 65534); 4 May 2005 17:40:40 -0000 Message-ID: <20050504174040.96515.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: svn commit: r168155 [17/27] - in /httpd/site/trunk: docs/apreq/docs/libapreq2/ xdocs/apreq/docs/libapreq2/ Date: Wed, 04 May 2005 17:40:16 -0000 To: cvs@httpd.apache.org From: joes@apache.org X-Mailer: svnmailer-1.0.0-dev X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Modified: httpd/site/trunk/xdocs/apreq/docs/libapreq2/apreq__cookie_8h.html URL: http://svn.apache.org/viewcvs/httpd/site/trunk/xdocs/apreq/docs/libapr= eq2/apreq__cookie_8h.html?rev=3D168155&r1=3D168154&r2=3D168155&view=3Ddiff =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D --- httpd/site/trunk/xdocs/apreq/docs/libapreq2/apreq__cookie_8h.html (orig= inal) +++ httpd/site/trunk/xdocs/apreq/docs/libapreq2/apreq__cookie_8h.html Wed M= ay 4 10:40:10 2005 @@ -1,7 +1,7 @@ - libapreq2-2.04-dev: libapreq2: src/apreq_cookie.h File Reference<= /title>=20 + <title>libapreq2-2.05-dev: libapreq2: include/apreq_cookie.h File Refere= nce=20
@@ -10,87 +10,54 @@ Request Library Subproject<= /p>

Apache HTTP Server Request Library

3D""
- - -

src/apreq_cookie.h File Reference

Cookies and Jars. More... + + + +

apreq_cookie.h File Reference

Cookies and Jars. More...

#include "apreq.h"=
-#include "ap= r_tables.h"
+#include "apr_= time.h"
=20

-Go to the source code of this fil= e=2E +Go to the source code of this fil= e=2E
- - + + =20 - - + + =20 - - - - - - - - - - - - - - - - - - - - - - - - + + + =20 - - + =20 - - - + =20 - - + =20 - + =20 - + =20 - + =20 - + =20 - + =20 - + =20 - + =20 - + =20 - + =20 - + =20

Data Structures

struct &nb= sp;apreq_jar_t

Defines

#defin= e APREQ_COOKIE_MAX_LENGTH  &nbs= p;4096
 This is th= e container class for libapreq cookies. More...
struct &nb= sp;apreq_cookie_t

Typedefs

+typedef apreq_cookie_= t apreq_cookie_t
 Cookie typ= e, supporting both Netscape and RFC cookie specifications. More...

Defines

#define&nb= sp;APREQ_COOKIE_VERSION_DEFAULT   = ;APREQ_COOKIE_VERSION_NETSCAPE
#define&nb= sp;APREQ_COOKIE_MAX_LENGTH   4096=
#define&nb= sp;apreq_value_to_cookie= (ptr)
-#define apreq_cook= ie_name(c)   ((c)->v.name)
-#define apreq_cook= ie_value(c)   ((c)->v.data)
-#define apreq_jar_= items(j)   apr_table_elts(j->cookies)->nelts
-#define apreq_jar_= nelts(j)   apr_table_elts(j->cookies)->nelts
-#define apreq_add_= cookie(j, c)   apreq_jar_add(j,c)
-#define apreq_make= _cookie(p, n, nl, v, vl)   apreq_cookie_make(p,n,nl,v,vl= )
-#define apreq_seri= alize_cookie(buf, len, c)   apreq_cookie_serialize(c,buf= ,len)

Typedefs

-typedef apreq_jar_t&= nbsp;apreq_jar_t
 Cookie typ= e, supporting both Netscape and RFC cookie specifications.

Functions

static= APR_INL= INE apreq_cookie_t= apreq_value_to_cookie (const char = *val)
 This is th= e container class for libapreq cookies.
-typedef apreq_cookie_= t apreq_cookie_t
static= APR_INL= INE unsigned apreq_cookie_version (co= nst apreq_cookie_t= *c)
 Cookie typ= e, supporting both Netscape and RFC cookie specifications.

Enumerations

enum  = ;apreq_cookie_version_t { APREQ_COOKIE_VERSI= ON_NETSCAPE,=20 -APREQ_COOKIE_VERSION_RFC - }
static= APR_INL= INE void apreq_cookie_version_set (apreq_cookie_t *c, u= nsigned v)

Functions

apreq_cookie_tapreq_cookie (const apreq_jar_t *jar, const char *name)
static= APR_INL= INE unsigned apreq_cookie_is_secure (= const apreq_cookie_t *c)
void = apreq_jar_add (apreq_jar_t *jar, const apreq_cookie_t *c)
static= APR_INL= INE void apreq_cookie_secure_on (apreq_cookie_t *c)
apreq_jar_tapreq_jar (void *env, const char *hdr)
static= APR_INL= INE void apreq_cookie_secure_off (apreq_cookie_t *c)
apreq_cookie_tapreq_cookie_make (apr_pool_t *pool, const char *name, const = apr_size_t nlen, co= nst char *value, const = apr_size_t vlen)
static= APR_INL= INE unsigned apreq_cookie_is_tainted = (const apreq_cookie_t<= /a> *c)
apr_status_t apreq_cookie_attr (apr_pool_t *p, apreq_cookie_t *c, const char *attr, apr_size_t alen, const char= *val, apr_size_t v= len)
static= APR_INL= INE void apreq_cookie_tainted_on (apreq_cookie_t *c)
char *&nbs= p;apreq_cookie_as_string (const apreq_cookie_t *c, apr_pool_t *p)
static= APR_INL= INE void apreq_cookie_tainted_off (<= a class=3D"el" href=3D"structapreq__cookie__t.html">apreq_cookie_t *c)<= /td>
int <= /td>apreq_cookie_serialize (const apreq_cookie_t *c, char *buf, apr_size_t len)
apr_status_t&= nbsp;apreq_parse_cookie_header (apr_pool_t *pool, = apr_table_= t *jar, const char *header)
void = apreq_cookie_expires (apreq_cookie_t *c, const char *time_str)
apreq_cookie_tapreq_cookie_make (apr_pool_t *pool, const char *nam= e, const apr_size_t nlen, const char *value, const apr_size_t vlen)
apr_status_t apreq_cookie_bake (const apreq_cookie_t *c, void *env)
char *=  apreq_cookie_as_string (const apreq_cookie_t *c, apr_pool_t *p)=
apr_status_t apreq_cookie_bake2 (const apreq_cookie_t *c, void *env)
int&nb= sp;apreq_cookie_serialize (const apreq_cookie_t *c, char *b= uf, apr_= size_t len)
apreq_cookie_version_t = apreq_ua_cookie_version (void *env)
void&n= bsp;apreq_cookie_expires (apreq_cookie_t *c, const char *time_= str)


Detailed Description

@@ -100,21 +67,21 @@
See also:
http://wp.netscape.com/newsref/std/cookie_sp= ec.html

http://www.ietf.org/rfc/rf= c2109.txt

http://www.ietf.org/rfc/rf= c2964.txt

-http://www.ietf.org/rfc/rf= c2965.txt

+http://www.ietf.org/rfc/rf= c2965.txt

Define Documentation

-

- +

+

- +
#define APREQ_COOKIE_MAX= _LENGTH   4096 #define APREQ_COOKIE_MAX_= LENGTH   4096
- +
+
Todo:
convert this macro to an apreq_module_t method.
+Maximum length of a single Set-Cookie(2) header.
  @@ -122,22 +89,38 @@ =20

-Maximum length of a single Set-Cookie(2) header

-

- +

Function Documentation

+

+

- + + + + + + + + + + + + + + +
#define APREQ_COOKIE_VER= SION_DEFAULT   APREQ_COOKIE_VERSION_NETSCAPE char* apreq_cookie_as_str= ing const apreq_cookie_t c,
apr_pool_t p
- +
+Returns a string that represents the cookie as it would appear in a valid = "Set-Cookie*" header.

+

Parameters:
+
  @@ -145,27 +128,44 @@ =20

-Default version, used when creating a new cookie. See apreq_cookie_make().

+ cookie. + pool which allocates the returned string. +
c 
p 
+ +

Returns:
header string.
+ -

- +

+

- + - - - - + + + + + + + + + + + + +
#define apreq_value_to_c= ookie void apreq_cookie_expires= ptr   ) apreq_cookie_t c,
const char *  time_str
- +
+Set the Cookie's expiration date.

+

Parameters:
+
  @@ -173,25 +173,35 @@ =20

-Value:

apreq_attr_to_type(apreq_cookie_t, \ - v, ptr) -
+ The cookie. + +
c 
time_str = If NULL, the Cookie's expiration date is unset, making it a sessio= n cookie. This means no "expires" or "max-age" attribute will appear in the= cookie's serialized form. If time_str is not NULL, the expiration date wil= l be reset to the offset (from now) represented by time_str. The time_str s= hould be in a format that = apreq_atoi64t() can understand, namely /[+-]?\d+\s*[YMDhms]/.
+ +

Remarks:
Now time_str may also be a fixed d= ate; see apr_date_parse_rfc() for admissible formats.
+ -

Enumeration Type Documentation

-

- +

+

- + + + + + +
enum apreq_cookie_version_t static APR_INLINE unsigned ap= req_cookie_is_secure const apreq_cookie_t c =  )  [static]
- +
+
Returns:
1 if the secure flag is set, 0 oth= erwise.
+
  @@ -199,37 +209,28 @@ =20

-Cookie Version. libapreq does not distinguish between rfc2109 and its succ= essor rfc2965; both are referred to as APREQ_COOKIE_VERSION_RFC. Users can = distinguish between them in their outgoing cookies by using apreq_cookie_bake() for sending rfc= 2109 cookies, or apreq_c= ookie_bake2() for rfc2965. The original Netscape cookie spec is still p= referred for its greater portability, it is named APREQ_COOKIE_VERSION_NETS= CAPE.

-


Function Documentation

-

- +

+

- - - - - - - - - - - - - - + + + +
apreq_cookie_t* apreq_cookie + static APR_INLINE unsigned ap= req_cookie_is_tainted const apreq_jar_t jar,
const char *  name
const apreq_cookie_t c =  )  [static]
- +
  @@ -237,35 +238,47 @@ =20

-Fetches a cookie from the jar

-

Parameters:
- - - -
jar The cookie ja= r=2E
name The name of = the desired cookie.
-
+
Returns:
1 if the taint flag is set, 0 othe= rwise.
-

- +

+

- + - - + + - - - + + + + + + + + + + + + + + + - + + + + + + + @@ -273,7 +286,7 @@
char* apreq_cookie_as_st= ring apreq_cookie_t* apreq_cookie_make = const apreq_cookie_t c, apr_pool_t pool,
apr_pool_t pconst char *  name,
const apr_size_t  nlen,
const char *  value,
const apr_size_t  vlen
- +
  @@ -281,67 +294,38 @@ =20

-Returns a string that represents the cookie as it would appear in a valid = "Set-Cookie*" header.

+Returns a new cookie, made from the argument list.

Parameters:
- - = + + + + +
c The cookie.
p The pool.
pool Pool which allocates the cookie.
name The cookie's name.
nlen Length of name.
value The cookie's value.
vlen Length of value.
+
Returns:
the new cookie
-

- +

+

- + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + +
apr_status_t apreq_cookie_attr = static APR_INLINE void apreq_= cookie_secure_off apr_pool_t p,
apreq_cookie_t c,
const char *  attr,
apr_size_t  alen,
const char *  val,
apr_size_t  vlen
apreq_cookie_t c =  )  [static]
- +
+Turns off the cookie's secure flag.
  @@ -349,47 +333,27 @@ =20

-Sets the associated cookie attribute.

Parameters:
- - - - - - - -
p Pool for alloca= ting the new attribute.
c Cookie.
attr Name of attr= ibute- leading '-' or '$' characters are ignored.
alen Length of at= tr.
val Value of new = attribute.
vlen Length of ne= w attribute.
-
-
Remarks:
Ensures cookie version & time = are kept in sync.
-
-

- +

+

- + - - - - - - - - - - - - - + + + +
apr_status_t apreq_cookie_bake = static APR_INLINE void apreq_= cookie_secure_on const apreq_cookie_t c,
void *  env
apreq_cookie_t c =  )  [static]
- +
+Sets the cookie's secure flag, meaning it only comes back over an SSL-encr= ypted connction.
  @@ -397,35 +361,34 @@ =20

-Add the cookie to the outgoing "Set-Cookie" headers.

-

Parameters:
- - - -
c The cookie.
env Environment. =
-
-
-

- +

+

- + - - - + + + + + + + + + - + @@ -433,7 +396,7 @@
apr_status_t apreq_cookie_bake2 = int apreq_cookie_serializ= e const apreq_cookie_t c,
void *  envchar *  buf,
apr_size_t  len
- +
  @@ -441,43 +404,36 @@ =20

-Add the cookie to the outgoing "Set-Cookie2" headers.

+Same functionality as apreq_cookie_as_string. Stores the string representa= tion in buf, using up to len bytes in buf as storage. The return value has = the same semantics as that of apr_snprintf, including the special behavior = for a "len =3D 0" argument.

Parameters:
- - + cookie. + = + =
c The cookie.
env Environment. =
c 
buf storage location for the result.
len size of buf's storage area.
+
Returns:
size of resulting header string. <= /dd>
-

- +

+

- + - - - - - - - - - - - - + + +
void apreq_cookie_expire= s static APR_INLINE void apreq_= cookie_tainted_off apreq_cookie_t c,
const char *  time_str
c =  )  [static]
- +
+Turns off the cookie's tainted flag.
  @@ -485,61 +441,27 @@ =20

-Set the Cookie's expiration date.

-

Parameters:
- - - -
c The cookie.
time_str If NULL,= the Cookie's expiration date is unset, making it a session cookie. This me= ans no "expires" or "max-age" attribute will appear in the cookie's seriali= zed form. If time_str is not NULL, the expiration date will be reset to the= offset (from now) represented by time_str. The time_str should be in a for= mat that apreq_atoi64t() can= understand, namely /[+-]?+*[YMDhms]/.
-
-
-

- +

+

- + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + +
apreq_cookie_t* apreq_cookie_make = static APR_INLINE void apreq_= cookie_tainted_on apr_pool_t pool,
const char *  name,
const apr_size_t  nlen,
const char *  value,
const apr_size_t  vlen
apreq_cookie_t c =  )  [static]
- +
+Sets the cookie's tainted flag.
  @@ -547,52 +469,27 @@ =20

-Returns a new cookie, made from the argument list.

-

Parameters:
- - - - - - -
pool Pool which a= llocates the cookie.
name The cookie's= name.
nlen Length of na= me.
value The cookie'= s value.
vlen Length of va= lue.
-
-
-

- +

+

- + - - - - - - - - - - - - - - - - - - + + +
int apreq_cookie_seriali= ze static APR_INLINE unsigned ap= req_cookie_version const apreq_cookie_t c,
char *  buf,
apr_size_t  len
c =  )  [static]
- +
  @@ -600,44 +497,37 @@ =20

-Same functionality as apreq_cookie_as_string. Stores the string representa= tion in buf, using up to len bytes in buf as storage. The return value has = the same semantics as that of apr_snprintf, including the special behavior = for a "len =3D 0" argument.

-

Parameters:
- - - - -
c The cookie.
buf Storage locat= ion for the result.
len Size of buf's= storage area.
-
+
Returns:
1 if this is an RFC cookie, 0 if i= ts a Netscape cookie.
-

- +

+

- + - - + + - - - + + + - + - +
apreq_jar_t* apreq_jar static APR_INLINE void apreq_= cookie_version_set void *  env, apreq_cookie_t c,
const char *  hdrunsigned  v
[static]
- +
+Sets the cookie's protocol version.
  @@ -645,36 +535,34 @@ =20

-Parse the incoming "Cookie:" headers into a cookie jar.

-

Parameters:
- - - -
env The current e= nvironment.
hdr String to par= se as a HTTP-merged "Cookie" header.
-
-
Remarks:
"data =3D NULL" has special behavi= or. In this case, apreq_jar(env,NULL) will attempt to fetch a cached object= from the environment via apreq_env_jar. Failing that, it will replace "hdr= " with the result of apreq_= env_cookie(env), parse that, and store the resulting object back within= the environment. This maneuver is designed to mimimize parsing work, since= generating the cookie jar is relatively expensive.
-
-

- +

+

- + - + + + + + + + - - - + + + - + @@ -682,7 +570,7 @@
void apreq_jar_add = apr_status_t apreq_parse_cookie_= header apreq_jar_tapr_pool_t pool,
apr_table_t jar,
const apreq_cookie_t cconst char *  header
- +
  @@ -690,34 +578,41 @@ =20

-Adds a cookie by pushing it to the bottom of the jar.

+Parse a cookie header and store the cookies in an apr_table_t.

Parameters:
- - + + = +
jar The cookie ja= r=2E
c The cookie to a= dd.
pool pool which allocates the cookies
jar table where parsed cookies are stored
header the header value
+
Returns:
APR_SUCCESS.

+APREQ_ERROR_BADSEQ if= an unparseable character sequence appears.

+APREQ_ERROR_MISMATCH= if an rfc-cookie attribute appears in a netscape cookie header.

+APR_EN= OTIMPL if an unrecognized rfc-cookie attribute appears.

+APREQ_ERROR_NOTOKEN = if a required token was not present.

+APREQ_ERROR_BADCHAR i= f an unexpected token was present.

-

- +

+

- + - - + + - +
apreq_cookie_version_t apreq_ua_cookie_versi= on static APR_INLINE apreq_cookie_t* apreq_value_t= o_cookie void *  env = const char *  val =  )  [static]
- +
+Upgrades a jar's table values to apreq_cookie_t structs.
  @@ -725,22 +620,16 @@ =20

-Looks for the presence of a "Cookie2" header to determine whether or not t= he current User-Agent supports rfc2965.

Parameters:<= /dt>
- - -
env The current e= nvironment.
-
-
Returns:
APREQ_COOKIE_VERSION_RFC if rfc296= 5 is supported, APREQ_COOKIE_VERSION_NETSCAPE otherwise.
-

-Copyright © 2003-2004 The Apache So= ftware Foundation.
-See LICENSE.

+Copyright © 2003-2005 The Apache So= ftware Foundation.
+See LICENSE.

page generated by doxygen -version 1.3.8 on 30 Aug 2004 +version 1.4.2 on 4 May 2005

Added: httpd/site/trunk/xdocs/apreq/docs/libapreq2/apreq__error_8h-source.h= tml URL: http://svn.apache.org/viewcvs/httpd/site/trunk/xdocs/apreq/docs/libapr= eq2/apreq__error_8h-source.html?rev=3D168155&view=3Dauto =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D --- httpd/site/trunk/xdocs/apreq/docs/libapreq2/apreq__error_8h-source.html= (added) +++ httpd/site/trunk/xdocs/apreq/docs/libapreq2/apreq__error_8h-source.html= Wed May 4 10:40:10 2005 @@ -0,0 +1,89 @@ + + + + libapreq2-2.05-dev: libapreq2: include/apreq_error.h Source File<= /title>=20 +</head> +<body> +<div id=3D"page-header"> +<p class=3D"menu"> + <a href=3D"http://www.apache.org/">Apache Software Foundation</a> > = <a href=3D"http://httpd.apache.org">HTTP Server Project</a> > +<a href=3D"http://httpd.apache.org/apreq/">Request Library Subproject</a><= /p> +<p class=3D"apache">Apache HTTP Server Request Library</p> +<img alt=3D"" src=3D"feather.gif" /></div> +<!-- Generated by Doxygen 1.4.2 --> +<div class=3D"qindex"><a class=3D"qindex" href=3D"index.html">Main Pa= ge</a> | <a class=3D"qindex" href=3D"modules.html">Modules</a> | <a class= =3D"qindex" href=3D"annotated.html">Data Structures</a> | <a class=3D"= qindex" href=3D"dirs.html">Directories</a> | <a class=3D"qindex" href=3D"fi= les.html">File List</a> | <a class=3D"qindex" href=3D"functions.html">= Data Fields</a> | <a class=3D"qindex" href=3D"globals.html">Globals</a= > | <a class=3D"qindex" href=3D"pages.html">Related Pages</a></div> +<div class=3D"nav"> +<a class=3D"el" href=3D"dir_000000.html">include</a></div> +<h1>apreq_error.h</h1><a href=3D"apreq__error_8h.html">Go to the documenta= tion of this file.</a><div class=3D"fragment"><pre class=3D"fragment">00001= <span class=3D"comment">/*</span> +00002 <span class=3D"comment">** Copyright 2003-2005 The Apache Software= Foundation</span> +00003 <span class=3D"comment">**</span> +00004 <span class=3D"comment">** Licensed under the Apache License, Versi= on 2.0 (the "License");</span> +00005 <span class=3D"comment">** you may not use this file except in comp= liance with the License.</span> +00006 <span class=3D"comment">** You may obtain a copy of the License at<= /span> +00007 <span class=3D"comment">**</span> +00008 <span class=3D"comment">** http://www.apache.org/licenses/LICEN= SE-2.0</span> +00009 <span class=3D"comment">**</span> +00010 <span class=3D"comment">** Unless required by applicable law or agr= eed to in writing, software</span> +00011 <span class=3D"comment">** distributed under the License is distrib= uted on an "AS IS" BASIS,</span> +00012 <span class=3D"comment">** WITHOUT WARRANTIES OR CONDITIONS OF ANY = KIND, either express or implied.</span> +00013 <span class=3D"comment">** See the License for the specific languag= e governing permissions and</span> +00014 <span class=3D"comment">** limitations under the License.</span> +00015 <span class=3D"comment">*/</span> +00016=20 +00017 <span class=3D"preprocessor">#ifndef APREQ_ERROR_H</span> +00018 <span class=3D"preprocessor"></span><span class=3D"preprocessor">#de= fine APREQ_ERROR_H</span> +00019 <span class=3D"preprocessor"></span> +00020 <span class=3D"preprocessor">#include "<a class=3D"codeRef" doxygen= =3D"apr.tag:http://apr.apache.org/docs/apr/" href=3D"http://apr.apache.org/= docs/apr/apr__errno_8h.html">apr_errno.h</a>"</span> +00021 <span class=3D"preprocessor">#include "<a class=3D"code" href=3D"apr= eq_8h.html">apreq.h</a>"</span> +00022=20 +00023 <span class=3D"preprocessor">#ifdef __cplusplus</span> +00024 <span class=3D"preprocessor"></span> <span class=3D"keyword">extern<= /span> <span class=3D"stringliteral">"C"</span> { +00025 <span class=3D"preprocessor">#endif </span> +00026 <span class=3D"preprocessor"></span> +00031 APREQ_DECLARE(<span class=3D"keywordtype">char</span> *) +00032 <a class=3D"code" href=3D"apreq__error_8h.html#a19">apreq_strerror</= a>(<a class=3D"codeRef" doxygen=3D"apr.tag:http://apr.apache.org/docs/apr/"= href=3D"http://apr.apache.org/docs/apr/group__apr__errno.html#ga0">apr_sta= tus_t</a> s, <span class=3D"keywordtype">char</span> *buf, <a class=3D"code= Ref" doxygen=3D"apr.tag:http://apr.apache.org/docs/apr/" href=3D"http://apr= .apache.org/docs/apr/group__apr__platform.html#ga7">apr_size_t</a> bufsize); +00033=20 +00042 #ifndef APR_EBADARG +00043 #define APR_EBADARG <a class=3D"codeRef" doxygen=3D"a= pr.tag:http://apr.apache.org/docs/apr/" href=3D"http://apr.apache.org/docs/= apr/group___a_p_r___error.html#ga35">APR_BADARG</a> <span class=3D"commen= t">/* XXX: don't use APR_BADARG */</span> +00044 #endif +00045=20 +<a name=3D"l00047"></a><a class=3D"code" href=3D"apreq__error_8h.html#a1">= 00047</a> #define <a class=3D"code" href=3D"apreq__error_8h.html#a1">APREQ_= ERROR_GENERAL</a> <a class=3D"codeRef" doxygen=3D"apr.tag:http://apr= .apache.org/docs/apr/" href=3D"http://apr.apache.org/docs/apr/group__apr__e= rrno.html#ga13">APR_OS_START_USERERR</a> +<a name=3D"l00049"></a><a class=3D"code" href=3D"apreq__error_8h.html#a2">= 00049</a> #define <a class=3D"code" href=3D"apreq__error_8h.html#a2">APREQ_= ERROR_TAINTED</a> (<a class=3D"code" href=3D"apreq__error_8h.html#a1= ">APREQ_ERROR_GENERAL</a> + 1) +<a name=3D"l00051"></a><a class=3D"code" href=3D"apreq__error_8h.html#a3">= 00051</a> #define <a class=3D"code" href=3D"apreq__error_8h.html#a3">APREQ_= ERROR_INTERRUPT</a> (<a class=3D"code" href=3D"apreq__error_8h.html#a1= ">APREQ_ERROR_GENERAL</a> + 2) +00052=20 +<a name=3D"l00054"></a><a class=3D"code" href=3D"apreq__error_8h.html#a4">= 00054</a> #define <a class=3D"code" href=3D"apreq__error_8h.html#a4">APREQ_= ERROR_BADDATA</a> (<a class=3D"code" href=3D"apreq__error_8h.html#a1= ">APREQ_ERROR_GENERAL</a> + 10) +<a name=3D"l00056"></a><a class=3D"code" href=3D"apreq__error_8h.html#a5">= 00056</a> #define <a class=3D"code" href=3D"apreq__error_8h.html#a5">APREQ_= ERROR_BADCHAR</a> (<a class=3D"code" href=3D"apreq__error_8h.html#a4= ">APREQ_ERROR_BADDATA</a> + 1) +<a name=3D"l00058"></a><a class=3D"code" href=3D"apreq__error_8h.html#a6">= 00058</a> #define <a class=3D"code" href=3D"apreq__error_8h.html#a6">APREQ_= ERROR_BADSEQ</a> (<a class=3D"code" href=3D"apreq__error_8h.html#a4= ">APREQ_ERROR_BADDATA</a> + 2) +<a name=3D"l00060"></a><a class=3D"code" href=3D"apreq__error_8h.html#a7">= 00060</a> #define <a class=3D"code" href=3D"apreq__error_8h.html#a7">APREQ_= ERROR_BADATTR</a> (<a class=3D"code" href=3D"apreq__error_8h.html#a4= ">APREQ_ERROR_BADDATA</a> + 3) +<a name=3D"l00062"></a><a class=3D"code" href=3D"apreq__error_8h.html#a8">= 00062</a> #define <a class=3D"code" href=3D"apreq__error_8h.html#a8">APREQ_= ERROR_BADHEADER</a> (<a class=3D"code" href=3D"apreq__error_8h.html#a4= ">APREQ_ERROR_BADDATA</a> + 4) +<a name=3D"l00064"></a><a class=3D"code" href=3D"apreq__error_8h.html#a9">= 00064</a> #define <a class=3D"code" href=3D"apreq__error_8h.html#a9">APREQ_= ERROR_BADUTF8</a> (<a class=3D"code" href=3D"apreq__error_8h.html#a4= ">APREQ_ERROR_BADDATA</a> + 5) +00065=20 +<a name=3D"l00067"></a><a class=3D"code" href=3D"apreq__error_8h.html#a10"= >00067</a> #define <a class=3D"code" href=3D"apreq__error_8h.html#a10">APRE= Q_ERROR_NODATA</a> (<a class=3D"code" href=3D"apreq__error_8h.html#= a1">APREQ_ERROR_GENERAL</a> + 20) +<a name=3D"l00069"></a><a class=3D"code" href=3D"apreq__error_8h.html#a11"= >00069</a> #define <a class=3D"code" href=3D"apreq__error_8h.html#a11">APRE= Q_ERROR_NOTOKEN</a> (<a class=3D"code" href=3D"apreq__error_8h.html#= a10">APREQ_ERROR_NODATA</a> + 1) +<a name=3D"l00071"></a><a class=3D"code" href=3D"apreq__error_8h.html#a12"= >00071</a> #define <a class=3D"code" href=3D"apreq__error_8h.html#a12">APRE= Q_ERROR_NOATTR</a> (<a class=3D"code" href=3D"apreq__error_8h.html#= a10">APREQ_ERROR_NODATA</a> + 2) +<a name=3D"l00073"></a><a class=3D"code" href=3D"apreq__error_8h.html#a13"= >00073</a> #define <a class=3D"code" href=3D"apreq__error_8h.html#a13">APRE= Q_ERROR_NOHEADER</a> (<a class=3D"code" href=3D"apreq__error_8h.html#= a10">APREQ_ERROR_NODATA</a> + 3) +<a name=3D"l00075"></a><a class=3D"code" href=3D"apreq__error_8h.html#a14"= >00075</a> #define <a class=3D"code" href=3D"apreq__error_8h.html#a14">APRE= Q_ERROR_NOPARSER</a> (<a class=3D"code" href=3D"apreq__error_8h.html#= a10">APREQ_ERROR_NODATA</a> + 4) +00076=20 +00077=20 +<a name=3D"l00079"></a><a class=3D"code" href=3D"apreq__error_8h.html#a15"= >00079</a> #define <a class=3D"code" href=3D"apreq__error_8h.html#a15">APRE= Q_ERROR_MISMATCH</a> (<a class=3D"code" href=3D"apreq__error_8h.html#= a1">APREQ_ERROR_GENERAL</a> + 30) +<a name=3D"l00081"></a><a class=3D"code" href=3D"apreq__error_8h.html#a16"= >00081</a> #define <a class=3D"code" href=3D"apreq__error_8h.html#a16">APRE= Q_ERROR_OVERLIMIT</a> (<a class=3D"code" href=3D"apreq__error_8h.html#= a15">APREQ_ERROR_MISMATCH</a> + 1) +<a name=3D"l00083"></a><a class=3D"code" href=3D"apreq__error_8h.html#a17"= >00083</a> #define <a class=3D"code" href=3D"apreq__error_8h.html#a17">APRE= Q_ERROR_UNDERLIMIT</a> (<a class=3D"code" href=3D"apreq__error_8h.html#= a15">APREQ_ERROR_MISMATCH</a> + 2) +<a name=3D"l00085"></a><a class=3D"code" href=3D"apreq__error_8h.html#a18"= >00085</a> #define <a class=3D"code" href=3D"apreq__error_8h.html#a18">APRE= Q_ERROR_NOTEMPTY</a> (<a class=3D"code" href=3D"apreq__error_8h.html#= a15">APREQ_ERROR_MISMATCH</a> + 3) +00086=20 +00087=20 +00088 #ifdef __cplusplus +00089 } +00090 #endif +00091=20 +00092 #endif <span class=3D"comment">/* APREQ_ERROR_H */</span> +</pre></div><div id=3D"footer"> +<p class=3D"apache"> +Copyright © 2003-2005 <a href=3D"http://www.apache.org">The Apache So= ftware Foundation</a>.<br/> +See <a href=3D"apreq_license.html">LICENSE</a>.</p> +<p class=3D"menu"> +<span style=3D"color:#aaa">page generated by <a href=3D"http://www.doxygen= .org/"><code>doxygen</code></a> +version 1.4.2 on 4 May 2005</span> +</p> +</div> +</body> +</html>