Believe it or not...
Index: include/apr_hash.h
===================================================================
RCS file: /home/cvspublic/apr/include/apr_hash.h,v
retrieving revision 1.17
diff -u -r1.17 apr_hash.h
--- include/apr_hash.h 2000/12/04 05:56:34 1.17
+++ include/apr_hash.h 2001/01/10 09:54:58
@@ -173,6 +173,15 @@
APR_DECLARE(void) apr_hash_this(apr_hash_index_t *hi, const void **key,
apr_size_t *klen, void **val);
+/**
+ * Get the number of keys in the hash table.
+ * @param ht The hash table
+ * @param count Return pointer for the number of keys
+ * @deffunc void apr_hash_count(apr_hash_t *ht, apr_size_t *count);
+ */
+APR_DECLARE(void) apr_hash_count(apr_hash_t *ht, apr_size_t *count);
+
+
#ifdef __cplusplus
}
#endif
Index: tables/apr_hash.c
===================================================================
RCS file: /home/cvspublic/apr/tables/apr_hash.c,v
retrieving revision 1.9
diff -u -r1.9 apr_hash.c
--- tables/apr_hash.c 2000/11/08 00:54:23 1.9
+++ tables/apr_hash.c 2001/01/10 09:54:58
@@ -314,3 +314,8 @@
}
/* else key not present and val==NULL */
}
+
+APR_DECLARE(void) apr_hash_count(apr_hash_t *ht, apr_size_t *count)
+{
+ *count = ht->count;
+}
Index: libapr.def
===================================================================
RCS file: /home/cvspublic/apr/libapr.def,v
retrieving revision 1.57
diff -u -r1.57 libapr.def
--- libapr.def 2000/12/21 01:04:41 1.57
+++ libapr.def 2001/01/10 09:54:59
@@ -246,6 +246,7 @@
apr_hash_first
apr_hash_next
apr_hash_this
+ apr_hash_count
;
; apr_lock.h
apr_create_lock
If someone could take care of this that'd be great.
Thanks,
Bill
Received on Sat Oct 21 14:36:19 2006