1 /*
2   +----------------------------------------------------------------------+
3   | Copyright (c) The PHP Group                                          |
4   +----------------------------------------------------------------------+
5   | This source file is subject to version 3.01 of the PHP license,      |
6   | that is bundled with this package in the file LICENSE, and is        |
7   | available through the world-wide-web at the following url:           |
8   | http://www.php.net/license/3_01.txt                                  |
9   | If you did not receive a copy of the PHP license and are unable to   |
10   | obtain it through the world-wide-web, please send a note to          |
11   | license@php.net so we can mail you a copy immediately.               |
12   +----------------------------------------------------------------------+
13   | Authors: Andrey Hristov <andrey@php.net>                             |
14   |          Ulf Wendel <uw@php.net>                                     |
15   |          Georg Richter <georg@php.net>                               |
16   +----------------------------------------------------------------------+
17 */
18 
19 #ifndef MYSQLND_REVERSE_API_H
20 #define MYSQLND_REVERSE_API_H
21 typedef struct st_mysqlnd_reverse_api
22 {
23 	zend_module_entry * module;
24 	MYSQLND *(*conversion_cb)(zval * zv);
25 } MYSQLND_REVERSE_API;
26 
27 
28 PHPAPI void mysqlnd_reverse_api_init(void);
29 PHPAPI void mysqlnd_reverse_api_end(void);
30 
31 PHPAPI HashTable * mysqlnd_reverse_api_get_api_list(void);
32 
33 PHPAPI void mysqlnd_reverse_api_register_api(const MYSQLND_REVERSE_API * apiext);
34 PHPAPI MYSQLND * zval_to_mysqlnd(zval * zv, const unsigned int client_api_capabilities, unsigned int * save_client_api_capabilities);
35 
36 #endif	/* MYSQLND_REVERSE_API_H */
37