diff options
| author | Andrey Hristov <andrey@php.net> | 2014-03-05 16:22:23 +0200 |
|---|---|---|
| committer | Andrey Hristov <andrey@php.net> | 2014-03-05 16:22:23 +0200 |
| commit | 6b804b96b8c454954d30ed8f0cf1a05d91801c4f (patch) | |
| tree | e75808939815dd5766c886fed715a63a81b9f8d2 /ext/mysqlnd/mysqlnd_ext_plugin.h | |
| parent | 1b922895fc4ea22b9f1e6679faf1a3d7b801a64e (diff) | |
| download | php-git-6b804b96b8c454954d30ed8f0cf1a05d91801c4f.tar.gz | |
Refactor the result set data structures. Move more to the buffered and unbuffered
substructures. Add methods to these too. Preparing for pluggable interface for
returning data to the engine (zvals, c-style, something else)
Diffstat (limited to 'ext/mysqlnd/mysqlnd_ext_plugin.h')
| -rw-r--r-- | ext/mysqlnd/mysqlnd_ext_plugin.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ext/mysqlnd/mysqlnd_ext_plugin.h b/ext/mysqlnd/mysqlnd_ext_plugin.h index 2a2416a042..6f15eee8ce 100644 --- a/ext/mysqlnd/mysqlnd_ext_plugin.h +++ b/ext/mysqlnd/mysqlnd_ext_plugin.h @@ -31,6 +31,13 @@ PHPAPI void ** _mysqlnd_plugin_get_plugin_connection_data_data(const MYSQLND_CON PHPAPI void ** _mysqlnd_plugin_get_plugin_result_data(const MYSQLND_RES * result, unsigned int plugin_id TSRMLS_DC); #define mysqlnd_plugin_get_plugin_result_data(r, p_id) _mysqlnd_plugin_get_plugin_result_data((r), (p_id) TSRMLS_CC) +PHPAPI void ** _mysqlnd_plugin_get_plugin_result_unbuffered_data(const MYSQLND_RES_UNBUFFERED * result, unsigned int plugin_id TSRMLS_DC); +#define mysqlnd_plugin_get_plugin_result_unbuffered_data(r, p_id) _mysqlnd_plugin_get_plugin_result_unbuffered_data((r), (p_id) TSRMLS_CC) + +PHPAPI void ** _mysqlnd_plugin_get_plugin_result_buffered_data(const MYSQLND_RES_BUFFERED * result, unsigned int plugin_id TSRMLS_DC); +#define mysqlnd_plugin_get_plugin_result_buffered_data(r, p_id) _mysqlnd_plugin_get_plugin_result_buffered_data((r), (p_id) TSRMLS_CC) + + PHPAPI void ** _mysqlnd_plugin_get_plugin_stmt_data(const MYSQLND_STMT * stmt, unsigned int plugin_id TSRMLS_DC); #define mysqlnd_plugin_get_plugin_stmt_data(s, p_id) _mysqlnd_plugin_get_plugin_stmt_data((s), (p_id) TSRMLS_CC) @@ -50,6 +57,12 @@ PHPAPI void mysqlnd_conn_data_set_methods(struct st_mysqlnd_conn_data_methods * PHPAPI struct st_mysqlnd_res_methods * mysqlnd_result_get_methods(); PHPAPI void mysqlnd_result_set_methods(struct st_mysqlnd_res_methods * methods); +PHPAPI struct st_mysqlnd_result_unbuffered_methods * mysqlnd_result_unbuffered_get_methods(); +PHPAPI void mysqlnd_result_unbuffered_set_methods(struct st_mysqlnd_result_unbuffered_methods * methods); + +PHPAPI struct st_mysqlnd_result_buffered_methods * mysqlnd_result_buffered_get_methods(); +PHPAPI void mysqlnd_result_buffered_set_methods(struct st_mysqlnd_result_buffered_methods * methods); + PHPAPI struct st_mysqlnd_stmt_methods * mysqlnd_stmt_get_methods(); PHPAPI void mysqlnd_stmt_set_methods(struct st_mysqlnd_stmt_methods * methods); |
