mysqlnd_reverse_api.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536
  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. | https://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. #ifndef MYSQLND_REVERSE_API_H
  19. #define MYSQLND_REVERSE_API_H
  20. typedef struct st_mysqlnd_reverse_api
  21. {
  22. zend_module_entry * module;
  23. MYSQLND *(*conversion_cb)(zval * zv);
  24. } MYSQLND_REVERSE_API;
  25. PHPAPI void mysqlnd_reverse_api_init(void);
  26. PHPAPI void mysqlnd_reverse_api_end(void);
  27. PHPAPI HashTable * mysqlnd_reverse_api_get_api_list(void);
  28. PHPAPI void mysqlnd_reverse_api_register_api(const MYSQLND_REVERSE_API * apiext);
  29. PHPAPI MYSQLND * zval_to_mysqlnd(zval * zv, const unsigned int client_api_capabilities, unsigned int * save_client_api_capabilities);
  30. #endif /* MYSQLND_REVERSE_API_H */