mysqlnd_reverse_api.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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 318051 2011-10-12 16:18:02Z andrey $ */
  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 TSRMLS_DC);
  27. } MYSQLND_REVERSE_API;
  28. PHPAPI void mysqlnd_reverse_api_init(TSRMLS_D);
  29. PHPAPI void mysqlnd_reverse_api_end(TSRMLS_D);
  30. PHPAPI HashTable * mysqlnd_reverse_api_get_api_list(TSRMLS_D);
  31. PHPAPI void mysqlnd_reverse_api_register_api(MYSQLND_REVERSE_API * apiext TSRMLS_DC);
  32. PHPAPI MYSQLND * zval_to_mysqlnd(zval * zv, const unsigned int client_api_capabilities, unsigned int * save_client_api_capabilities TSRMLS_DC);
  33. #endif /* MYSQLND_REVERSE_API_H */
  34. /*
  35. * Local variables:
  36. * tab-width: 4
  37. * c-basic-offset: 4
  38. * End:
  39. * vim600: noet sw=4 ts=4 fdm=marker
  40. * vim<600: noet sw=4 ts=4
  41. */