summaryrefslogtreecommitdiff
path: root/include/ap_socache.h
diff options
context:
space:
mode:
authorWilliam A. Rowe Jr <wrowe@apache.org>2010-02-09 05:48:58 +0000
committerWilliam A. Rowe Jr <wrowe@apache.org>2010-02-09 05:48:58 +0000
commit4444e07d2dc8c62742e5d49a096dd948685ef63b (patch)
treef6136657cb5d1bb661a33df1c3b50fb01248e4eb /include/ap_socache.h
parent3d0fbbfd065c5e61b5d86530e2467fad9e670879 (diff)
downloadhttpd-4444e07d2dc8c62742e5d49a096dd948685ef63b.tar.gz
Illustrate an ->iterator() implementation for mod_socache_shmcb.
Clarify that the iterator aught will make the users' life easier by appending trailing \0 null chars. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@907937 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/ap_socache.h')
-rw-r--r--include/ap_socache.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/include/ap_socache.h b/include/ap_socache.h
index 984d919b54..3f1901d013 100644
--- a/include/ap_socache.h
+++ b/include/ap_socache.h
@@ -39,7 +39,8 @@ extern "C" {
* of the provider are NOT safe to be called concurrently from
* multiple processes or threads, and an external global mutex must be
* used to serialize access to the provider.
- * XXX: Even if store/retrieve/remove is atomic, isn't it useful to note
+ */
+/* XXX: Even if store/retrieve/remove is atomic, isn't it useful to note
* independently that status and iterate may or may not be?
*/
#define AP_SOCACHE_FLAG_NOTMPSAFE (0x0001)
@@ -62,9 +63,11 @@ struct ap_socache_hints {
* Iterator callback prototype for the ap_socache_provider_t->iterate() method
* @param instance The cache instance (passed through)
* @param s Associated server structure (passed through)
- * @param id Unique ID for the object; binary blob
+ * @param id Unique ID for the object (binary blob)
+ * with a trailing null char for convenience
* @param idlen Length of id blob
- * @param data Output buffer to place retrievd data (binary blob)
+ * @param data Output buffer to place retrieved data (binary blob)
+ * with a trailing null char for convenience
* @param datalen Length of data buffer
* @param pool Pool for temporary allocations (passed through)
* @return APR status value; return APR_SUCCESS or the iteration will halt;