diff options
author | Andrey Hristov <andrey@php.net> | 2011-10-31 14:33:56 +0000 |
---|---|---|
committer | Andrey Hristov <andrey@php.net> | 2011-10-31 14:33:56 +0000 |
commit | 92ec40d8e4a5fbeb9fdc3d3edf8991a55e1389db (patch) | |
tree | 0051f6b32b38bfdb0b4b2469f263d205cdafa2e7 /ext/mysqlnd/mysqlnd_ext_plugin.c | |
parent | 8fb6bdd5b82fbfeb295f9a3d181a29606f7f670d (diff) | |
download | php-git-92ec40d8e4a5fbeb9fdc3d3edf8991a55e1389db.tar.gz |
Now really split the method tables and have different
methods for the handle and the data object.
Add auxiliary functions to work with the new methods.
Add possibility to clone a connection object - shadow copy.
Diffstat (limited to 'ext/mysqlnd/mysqlnd_ext_plugin.c')
-rw-r--r-- | ext/mysqlnd/mysqlnd_ext_plugin.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/ext/mysqlnd/mysqlnd_ext_plugin.c b/ext/mysqlnd/mysqlnd_ext_plugin.c index b5d5f420b4..d9f9f755cc 100644 --- a/ext/mysqlnd/mysqlnd_ext_plugin.c +++ b/ext/mysqlnd/mysqlnd_ext_plugin.c @@ -26,6 +26,7 @@ #include "mysqlnd_debug.h" static struct st_mysqlnd_conn_methods * mysqlnd_conn_methods; +static struct st_mysqlnd_conn_data_methods * mysqlnd_conn_data_methods; static struct st_mysqlnd_stmt_methods * mysqlnd_stmt_methods; /* {{{ _mysqlnd_plugin_get_plugin_connection_data */ @@ -126,6 +127,22 @@ PHPAPI void mysqlnd_conn_set_methods(struct st_mysqlnd_conn_methods *methods) /* }}} */ +/* {{{ mysqlnd_conn_get_methods */ +PHPAPI struct st_mysqlnd_conn_data_methods * +mysqlnd_conn_data_get_methods() +{ + return mysqlnd_conn_data_methods; +} +/* }}} */ + +/* {{{ mysqlnd_conn_set_methods */ +PHPAPI void mysqlnd_conn_data_set_methods(struct st_mysqlnd_conn_data_methods * methods) +{ + mysqlnd_conn_data_methods = methods; +} +/* }}} */ + + /* {{{ mysqlnd_result_get_methods */ PHPAPI struct st_mysqlnd_res_methods * mysqlnd_result_get_methods() |