xref: /PHP-7.0/ext/mysqlnd/mysqlnd_reverse_api.h (revision 478f119a)
1 /*
2   +----------------------------------------------------------------------+
3   | PHP Version 7                                                        |
4   +----------------------------------------------------------------------+
5   | Copyright (c) 2006-2017 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@php.net>                             |
16   |          Ulf Wendel <uw@php.net>                                     |
17   |          Georg Richter <georg@php.net>                               |
18   +----------------------------------------------------------------------+
19 */
20 
21 #ifndef MYSQLND_REVERSE_API_H
22 #define MYSQLND_REVERSE_API_H
23 typedef struct st_mysqlnd_reverse_api
24 {
25 	zend_module_entry * module;
26 	MYSQLND *(*conversion_cb)(zval * zv);
27 } MYSQLND_REVERSE_API;
28 
29 
30 PHPAPI void mysqlnd_reverse_api_init(void);
31 PHPAPI void mysqlnd_reverse_api_end(void);
32 
33 PHPAPI HashTable * mysqlnd_reverse_api_get_api_list(void);
34 
35 PHPAPI void mysqlnd_reverse_api_register_api(MYSQLND_REVERSE_API * apiext);
36 PHPAPI MYSQLND * zval_to_mysqlnd(zval * zv, const unsigned int client_api_capabilities, unsigned int * save_client_api_capabilities);
37 
38 #endif	/* MYSQLND_REVERSE_API_H */
39 
40 /*
41  * Local variables:
42  * tab-width: 4
43  * c-basic-offset: 4
44  * End:
45  * vim600: noet sw=4 ts=4 fdm=marker
46  * vim<600: noet sw=4 ts=4
47  */
48