diff options
author | Andrey Hristov <andrey@php.net> | 2015-11-09 14:56:16 +0100 |
---|---|---|
committer | Andrey Hristov <andrey@php.net> | 2015-11-12 16:19:16 +0100 |
commit | e9f3139f438ef712d82b69984a65da4230fdfeb2 (patch) | |
tree | b3031ab3ed85de79ea91eb018740ca4d4104b7f1 /ext/mysqlnd/mysqlnd_ext_plugin.c | |
parent | a990573752af7e0743ed4233ae38cd47b3c94fd5 (diff) | |
download | php-git-e9f3139f438ef712d82b69984a65da4230fdfeb2.tar.gz |
MNDR:
- split MYSQLND_NET into MYSQLND_NET and MYSQLND_VIO
MYSQLND_NET is above MYSQLND_VIO. _NET takes care of protocol packet
counting (even with compressed), while VIO is just about the network
(or in case of windows, non-network, but PIPE) transport.
Diffstat (limited to 'ext/mysqlnd/mysqlnd_ext_plugin.c')
-rw-r--r-- | ext/mysqlnd/mysqlnd_ext_plugin.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/ext/mysqlnd/mysqlnd_ext_plugin.c b/ext/mysqlnd/mysqlnd_ext_plugin.c index 8048a2a67e..76d51bcc18 100644 --- a/ext/mysqlnd/mysqlnd_ext_plugin.c +++ b/ext/mysqlnd/mysqlnd_ext_plugin.c @@ -327,6 +327,24 @@ _mysqlnd_net_set_methods(MYSQLND_CLASS_METHODS_TYPE(mysqlnd_net) * methods) /* }}} */ +/* {{{ _mysqlnd_vio_get_methods */ +static MYSQLND_CLASS_METHODS_TYPE(mysqlnd_vio) * +_mysqlnd_vio_get_methods() +{ + return &MYSQLND_CLASS_METHOD_TABLE_NAME(mysqlnd_vio); +} +/* }}} */ + + +/* {{{ _mysqlnd_vio_set_methods */ +static void +_mysqlnd_vio_set_methods(MYSQLND_CLASS_METHODS_TYPE(mysqlnd_vio) * methods) +{ + MYSQLND_CLASS_METHOD_TABLE_NAME(mysqlnd_vio) = *methods; +} +/* }}} */ + + /* {{{ mysqlnd_command_factory_get */ static func_mysqlnd__command_factory _mysqlnd_command_factory_get() @@ -402,6 +420,10 @@ struct st_mysqlnd_plugin_methods_xetters mysqlnd_plugin_methods_xetters = _mysqlnd_net_set_methods, }, { + _mysqlnd_vio_get_methods, + _mysqlnd_vio_set_methods, + }, + { _mysqlnd_error_info_get_methods, _mysqlnd_error_info_set_methods, }, |