diff options
author | Andrey Hristov <andrey@php.net> | 2010-01-08 13:47:03 +0000 |
---|---|---|
committer | Andrey Hristov <andrey@php.net> | 2010-01-08 13:47:03 +0000 |
commit | 3264e51983b46ee4951a14b591e8d80a542551b5 (patch) | |
tree | bb3d3cfb5c1dcb93a20e82e80fa96115d50a6221 /ext/mysqlnd/mysqlnd_wireprotocol.c | |
parent | c18d4364ed0c16ff784418d9f0c54af9701c9d5a (diff) | |
download | php-git-3264e51983b46ee4951a14b591e8d80a542551b5.tar.gz |
add restart_psession and end_psession hooks
Diffstat (limited to 'ext/mysqlnd/mysqlnd_wireprotocol.c')
-rw-r--r-- | ext/mysqlnd/mysqlnd_wireprotocol.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ext/mysqlnd/mysqlnd_wireprotocol.c b/ext/mysqlnd/mysqlnd_wireprotocol.c index 277ad00ab4..7ec96dc866 100644 --- a/ext/mysqlnd/mysqlnd_wireprotocol.c +++ b/ext/mysqlnd/mysqlnd_wireprotocol.c @@ -1974,6 +1974,19 @@ mysqlnd_protocol_free(MYSQLND_PROTOCOL * const protocol TSRMLS_DC) /* }}} */ +/* {{{ _mysqlnd_plugin_get_plugin_protocol_data */ +PHPAPI void ** _mysqlnd_plugin_get_plugin_protocol_data(const MYSQLND_PROTOCOL * protocol, unsigned int plugin_id TSRMLS_DC) +{ + DBG_ENTER("_mysqlnd_plugin_get_plugin_protocol_data"); + DBG_INF_FMT("plugin_id=%u", plugin_id); + if (!protocol || plugin_id >= mysqlnd_plugin_count()) { + return NULL; + } + DBG_RETURN((void *)((char *)protocol + sizeof(MYSQLND_PROTOCOL) + plugin_id * sizeof(void *))); +} +/* }}} */ + + /* * Local variables: * tab-width: 4 |