summaryrefslogtreecommitdiff
path: root/tables
diff options
context:
space:
mode:
authorbrianp <brianp@13f79535-47bb-0310-9956-ffa450edef68>2002-07-05 05:39:01 +0000
committerbrianp <brianp@13f79535-47bb-0310-9956-ffa450edef68>2002-07-05 05:39:01 +0000
commitdbfa71e8341eca485b9665290a6c74e52777eec7 (patch)
treefae5acd32215f8f9a168c1c31046398b9590193e /tables
parent770e5a7531d59d0cc639b647e46691e04fd9620f (diff)
downloadlibapr-dbfa71e8341eca485b9665290a6c74e52777eec7.tar.gz
Moved the definition of apr_table_t's internals from apr_tables.h
to apr_tables.c to strengthen its encapsulation git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63570 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'tables')
-rw-r--r--tables/apr_tables.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/tables/apr_tables.c b/tables/apr_tables.c
index f23f8630b..a6c1602c2 100644
--- a/tables/apr_tables.c
+++ b/tables/apr_tables.c
@@ -337,6 +337,21 @@ APR_DECLARE(char *) apr_array_pstrcat(apr_pool_t *p,
checksum &= CASE_MASK; \
}
+/** The opaque string-content 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
+};
+
/*
* XXX: if you tweak this you should look at is_empty_table() and table_elts()
* in alloc.h