Author: joes
Date: Sun Feb 20 11:13:59 2005
New Revision: 154558
URL: http://svn.apache.org/viewcvs?view=rev&rev=154558
Log:
Make apreq_cookie_attr() static. It doesn't
belong in our API, since we don't have to
coordinate the version and expires attributes
anymore (they're flags now).
Modified:
httpd/apreq/branches/multi-env-unstable/CHANGES
httpd/apreq/branches/multi-env-unstable/include/apreq_cookie.h
httpd/apreq/branches/multi-env-unstable/library/cookie.c
Modified: httpd/apreq/branches/multi-env-unstable/CHANGES
URL:
http://svn.apache.org/viewcvs/httpd/apreq/branches/multi-env-unstable/CHANGES?view=diff&r1=154557&r2=154558
==============================================================================
--- httpd/apreq/branches/multi-env-unstable/CHANGES (original)
+++ httpd/apreq/branches/multi-env-unstable/CHANGES Sun Feb 20 11:13:59 2005
@@ -6,6 +6,9 @@
- C API [joes]
+ Remove apreq_cookie_attr().
+
+- C API [joes]
- Add apreq_error.h, apreq_module.h.
- Rename apreq_run* and apreq_make* funcs to conform with
apreq_$obj_$meth scheme.
Modified: httpd/apreq/branches/multi-env-unstable/include/apreq_cookie.h
URL:
http://svn.apache.org/viewcvs/httpd/apreq/branches/multi-env-unstable/include/apreq_cookie.h?view=diff&r1=154557&r2=154558
==============================================================================
--- httpd/apreq/branches/multi-env-unstable/include/apreq_cookie.h (original)
+++ httpd/apreq/branches/multi-env-unstable/include/apreq_cookie.h Sun Feb 20
11:13:59 2005
@@ -144,25 +144,6 @@
const apr_size_t vlen);
/**
- * Sets the associated cookie attribute.
- * @param p Pool for allocating the new attribute.
- * @param c Cookie.
- * @param attr Name of attribute- leading '-' or '$' characters
- * are ignored.
- * @param alen Length of attr.
- * @param val Value of new attribute.
- * @param vlen Length of new attribute.
- * @remarks Ensures cookie version & time are kept in sync.
- */
-APREQ_DECLARE(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 vlen);
-
-
-/**
* Returns a string that represents the cookie as it would appear
* in a valid "Set-Cookie*" header.
*
Modified: httpd/apreq/branches/multi-env-unstable/library/cookie.c
URL:
http://svn.apache.org/viewcvs/httpd/apreq/branches/multi-env-unstable/library/cookie.c?view=diff&r1=154557&r2=154558
==============================================================================
--- httpd/apreq/branches/multi-env-unstable/library/cookie.c (original)
+++ httpd/apreq/branches/multi-env-unstable/library/cookie.c Sun Feb 20
11:13:59 2005
@@ -46,12 +46,12 @@
}
}
-APREQ_DECLARE(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 vlen)
+static 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 vlen)
{
if (alen < 2)
return APR_EBADARG;