--- embedaddon/php/ext/sqlite3/php_sqlite3_structs.h 2012/02/21 23:48:02 1.1.1.1 +++ embedaddon/php/ext/sqlite3/php_sqlite3_structs.h 2012/05/29 12:34:43 1.1.1.2 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: php_sqlite3_structs.h,v 1.1.1.1 2012/02/21 23:48:02 misho Exp $ */ +/* $Id: php_sqlite3_structs.h,v 1.1.1.2 2012/05/29 12:34:43 misho Exp $ */ #ifndef PHP_SQLITE_STRUCTS_H #define PHP_SQLITE_STRUCTS_H @@ -62,12 +62,23 @@ typedef struct _php_sqlite3_func { struct php_sqlite3_fci afunc, astep, afini; } php_sqlite3_func; +/* Structure for SQLite collation function */ +typedef struct _php_sqlite3_collation { + struct _php_sqlite3_collation *next; + + const char *collation_name; + zval *cmp_func; + struct php_sqlite3_fci fci; +} php_sqlite3_collation; + /* Structure for SQLite Database object. */ typedef struct _php_sqlite3_db_object { zend_object zo; int initialised; sqlite3 *db; php_sqlite3_func *funcs; + php_sqlite3_collation *collations; + zend_bool exception; zend_llist free_list;