diff options
author | rbb <rbb@13f79535-47bb-0310-9956-ffa450edef68> | 2000-08-05 04:26:46 +0000 |
---|---|---|
committer | rbb <rbb@13f79535-47bb-0310-9956-ffa450edef68> | 2000-08-05 04:26:46 +0000 |
commit | deff2505e6d47cb9a8f5efff5b68d6b72aaf5af3 (patch) | |
tree | 8df284708b70144d95cef34d196871b6a67a93f5 /include/apr_tables.h | |
parent | 60236214372ff1c1c58f14bcf1d3c9f1ace68dcc (diff) | |
download | libapr-deff2505e6d47cb9a8f5efff5b68d6b72aaf5af3.tar.gz |
Document all of the public APR structures with DocBook.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60477 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/apr_tables.h')
-rw-r--r-- | include/apr_tables.h | 28 |
1 files changed, 24 insertions, 4 deletions
diff --git a/include/apr_tables.h b/include/apr_tables.h index 837f4bcad..43607d5e8 100644 --- a/include/apr_tables.h +++ b/include/apr_tables.h @@ -74,38 +74,58 @@ extern "C" { * Define the structures used by the APR general-purpose library. */ +/** + * @package APR Table library + */ + /* * Memory allocation stuff, like pools, arrays, and tables. Pools * and tables are opaque structures to applications, but arrays are * published. */ typedef struct apr_table_t apr_table_t; -typedef struct apr_array_header_t { +typedef struct apr_array_header_t apr_array_header_t; + +/** An opaque array type */ +struct apr_array_header_t { + /** The pool the array is allocated out of */ apr_pool_t *cont; + /** The amount of memory allocated for each element of the array */ int elt_size; + /** The number of active elements in the array */ int nelts; + /** The number of elements allocated in the array */ int nalloc; + /** The elements in the array */ char *elts; -} apr_array_header_t; +}; +/** The opaque table type */ struct apr_table_t { /* This has to be first to promote backwards compatibility with * older modules which cast a apr_table_t * to an apr_array_header_t *... * they should use the table_elts() function for most of the * cases they do this for. */ + /** The underlying array for the table */ apr_array_header_t a; #ifdef MAKE_TABLE_PROFILE + /** Who created the array. */ void *creator; #endif }; -typedef struct apr_table_entry_t { +typedef struct apr_table_entry_t apr_table_entry_t; + +/** The type for each entry in a table */ +struct apr_table_entry_t { + /** The key for the current table entry */ char *key; /* maybe NULL in future; * check when iterating thru table_elts */ + /** The value for the current table entry */ char *val; -} apr_table_entry_t; +}; /* XXX: these know about the definition of struct apr_table_t in alloc.c. That * definition is not here because it is supposed to be private, and by not |