diff options
author | William A. Rowe Jr <wrowe@apache.org> | 2010-02-09 06:48:58 +0100 |
---|---|---|
committer | William A. Rowe Jr <wrowe@apache.org> | 2010-02-09 06:48:58 +0100 |
commit | 4444e07d2dc8c62742e5d49a096dd948685ef63b (patch) | |
tree | f6136657cb5d1bb661a33df1c3b50fb01248e4eb /include | |
parent | Fix inadvertent changes and be more verbose and correct in logging (diff) | |
download | apache2-4444e07d2dc8c62742e5d49a096dd948685ef63b.tar.xz apache2-4444e07d2dc8c62742e5d49a096dd948685ef63b.zip |
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')
-rw-r--r-- | include/ap_socache.h | 9 |
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; |