1 /* 2 +----------------------------------------------------------------------+ 3 | PHP Version 5 | 4 +----------------------------------------------------------------------+ 5 | Copyright (c) 2006-2016 The PHP Group | 6 +----------------------------------------------------------------------+ 7 | This source file is subject to version 3.01 of the PHP license, | 8 | that is bundled with this package in the file LICENSE, and is | 9 | available through the world-wide-web at the following url: | 10 | http://www.php.net/license/3_01.txt | 11 | If you did not receive a copy of the PHP license and are unable to | 12 | obtain it through the world-wide-web, please send a note to | 13 | license@php.net so we can mail you a copy immediately. | 14 +----------------------------------------------------------------------+ 15 | Authors: Andrey Hristov <andrey@mysql.com> | 16 | Ulf Wendel <uwendel@mysql.com> | 17 | Georg Richter <georg@mysql.com> | 18 +----------------------------------------------------------------------+ 19 */ 20 /* $Id: mysqlnd.h 318221 2011-10-19 15:04:12Z andrey $ */ 21 22 #ifndef MYSQLND_EXT_PLUGIN_H 23 #define MYSQLND_EXT_PLUGIN_H 24 25 PHPAPI void ** _mysqlnd_plugin_get_plugin_connection_data(const MYSQLND * conn, unsigned int plugin_id TSRMLS_DC); 26 #define mysqlnd_plugin_get_plugin_connection_data(c, p_id) _mysqlnd_plugin_get_plugin_connection_data((c), (p_id) TSRMLS_CC) 27 28 PHPAPI void ** _mysqlnd_plugin_get_plugin_connection_data_data(const MYSQLND_CONN_DATA * conn, unsigned int plugin_id TSRMLS_DC); 29 #define mysqlnd_plugin_get_plugin_connection_data_data(c, p_id) _mysqlnd_plugin_get_plugin_connection_data_data((c), (p_id) TSRMLS_CC) 30 31 PHPAPI void ** _mysqlnd_plugin_get_plugin_result_data(const MYSQLND_RES * result, unsigned int plugin_id TSRMLS_DC); 32 #define mysqlnd_plugin_get_plugin_result_data(r, p_id) _mysqlnd_plugin_get_plugin_result_data((r), (p_id) TSRMLS_CC) 33 34 PHPAPI void ** _mysqlnd_plugin_get_plugin_result_unbuffered_data(const MYSQLND_RES_UNBUFFERED * result, unsigned int plugin_id TSRMLS_DC); 35 #define mysqlnd_plugin_get_plugin_result_unbuffered_data(r, p_id) _mysqlnd_plugin_get_plugin_result_unbuffered_data((r), (p_id) TSRMLS_CC) 36 37 PHPAPI void ** _mysqlnd_plugin_get_plugin_result_buffered_data_zval(const MYSQLND_RES_BUFFERED_ZVAL * result, unsigned int plugin_id TSRMLS_DC); 38 #define mysqlnd_plugin_get_plugin_result_buffered_data_zval(r, p_id) _mysqlnd_plugin_get_plugin_result_buffered_data_zval((r), (p_id) TSRMLS_CC) 39 40 PHPAPI void ** _mysqlnd_plugin_get_plugin_result_buffered_data_c(const MYSQLND_RES_BUFFERED_C * result, unsigned int plugin_id TSRMLS_DC); 41 #define mysqlnd_plugin_get_plugin_result_buffered_data_c(r, p_id) _mysqlnd_plugin_get_plugin_result_buffered_data_c((r), (p_id) TSRMLS_CC) 42 43 PHPAPI void ** _mysqlnd_plugin_get_plugin_stmt_data(const MYSQLND_STMT * stmt, unsigned int plugin_id TSRMLS_DC); 44 #define mysqlnd_plugin_get_plugin_stmt_data(s, p_id) _mysqlnd_plugin_get_plugin_stmt_data((s), (p_id) TSRMLS_CC) 45 46 PHPAPI void ** _mysqlnd_plugin_get_plugin_protocol_data(const MYSQLND_PROTOCOL * protocol, unsigned int plugin_id TSRMLS_DC); 47 #define mysqlnd_plugin_get_plugin_protocol_data(p, p_id) _mysqlnd_plugin_get_plugin_protocol_data((p), (p_id) TSRMLS_CC) 48 49 PHPAPI void ** _mysqlnd_plugin_get_plugin_net_data(const MYSQLND_NET * net, unsigned int plugin_id TSRMLS_DC); 50 #define mysqlnd_plugin_get_plugin_net_data(n, p_id) _mysqlnd_plugin_get_plugin_net_data((n), (p_id) TSRMLS_CC) 51 52 53 PHPAPI struct st_mysqlnd_conn_methods * mysqlnd_conn_get_methods(); 54 PHPAPI void mysqlnd_conn_set_methods(struct st_mysqlnd_conn_methods * methods); 55 56 PHPAPI struct st_mysqlnd_conn_data_methods * mysqlnd_conn_data_get_methods(); 57 PHPAPI void mysqlnd_conn_data_set_methods(struct st_mysqlnd_conn_data_methods * methods); 58 59 PHPAPI struct st_mysqlnd_res_methods * mysqlnd_result_get_methods(); 60 PHPAPI void mysqlnd_result_set_methods(struct st_mysqlnd_res_methods * methods); 61 62 PHPAPI struct st_mysqlnd_result_unbuffered_methods * mysqlnd_result_unbuffered_get_methods(); 63 PHPAPI void mysqlnd_result_unbuffered_set_methods(struct st_mysqlnd_result_unbuffered_methods * methods); 64 65 PHPAPI struct st_mysqlnd_result_buffered_methods * mysqlnd_result_buffered_get_methods(); 66 PHPAPI void mysqlnd_result_buffered_set_methods(struct st_mysqlnd_result_buffered_methods * methods); 67 68 PHPAPI struct st_mysqlnd_stmt_methods * mysqlnd_stmt_get_methods(); 69 PHPAPI void mysqlnd_stmt_set_methods(struct st_mysqlnd_stmt_methods * methods); 70 71 PHPAPI struct st_mysqlnd_protocol_methods * mysqlnd_protocol_get_methods(); 72 PHPAPI void mysqlnd_protocol_set_methods(struct st_mysqlnd_protocol_methods * methods); 73 74 PHPAPI struct st_mysqlnd_net_methods * mysqlnd_net_get_methods(); 75 PHPAPI void mysqlnd_net_set_methods(struct st_mysqlnd_net_methods * methods); 76 77 78 #endif /* MYSQLND_EXT_PLUGIN_H */ 79 80 /* 81 * Local variables: 82 * tab-width: 4 83 * c-basic-offset: 4 84 * End: 85 * vim600: noet sw=4 ts=4 fdm=marker 86 * vim<600: noet sw=4 ts=4 87 */ 88