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 | ba1f65faa1e8671b217ad3e2ec18ce7cb42c2a43 (patch) | |
tree | 9106c603f6397ccf36d7bfa0f935d285533b87ea /ext/mysqlnd/mysqlnd_ext_plugin.c | |
parent | 6a9feb730f0024da06c455ed58fbc633b0a167ea (diff) | |
download | php-git-ba1f65faa1e8671b217ad3e2ec18ce7cb42c2a43.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 97d92e8c49..42d47679a4 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() |