From 9b8d026d86341829e1f18cfdc581ab1ab8655ce2 Mon Sep 17 00:00:00 2001 From: Andrey Hristov Date: Mon, 11 Jan 2010 14:27:35 +0000 Subject: Rework the statistics macros to be reusable by external entities. Rename handlers to triggers. Dynamically allocate space for the statistics thus allow reusability. --- ext/mysqlnd/mysqlnd_structs.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ext/mysqlnd/mysqlnd_structs.h') diff --git a/ext/mysqlnd/mysqlnd_structs.h b/ext/mysqlnd/mysqlnd_structs.h index 963a87dfd3..65611cce58 100644 --- a/ext/mysqlnd/mysqlnd_structs.h +++ b/ext/mysqlnd/mysqlnd_structs.h @@ -214,8 +214,9 @@ typedef void (*mysqlnd_stat_trigger)(MYSQLND_STATS * stats, enum_mysqlnd_collect struct st_mysqlnd_stats { - uint64_t values[STAT_LAST]; + uint64_t *values; mysqlnd_stat_trigger *triggers; + size_t count; zend_bool in_trigger; #ifdef ZTS MUTEX_T LOCK_access; -- cgit v1.2.1