php_enchant.h 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. /*
  2. +----------------------------------------------------------------------+
  3. | PHP Version 4 |
  4. +----------------------------------------------------------------------+
  5. | Copyright (c) 1997-2016 The PHP Group |
  6. +----------------------------------------------------------------------+
  7. | This source file is subject to version 3.0 of the PHP license, |
  8. | that is bundled with this package in the file LICENSE, and is |
  9. | available at through the world-wide-web at |
  10. | http://www.php.net/license/3_0.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. | Author: Pierre-Alain Joye <paj@pearfr.org> |
  16. +----------------------------------------------------------------------+
  17. $Id$
  18. */
  19. #ifndef PHP_ENCHANT_H
  20. #define PHP_ENCHANT_H
  21. extern zend_module_entry enchant_module_entry;
  22. #define phpext_enchant_ptr &enchant_module_entry
  23. #define PHP_ENCHANT_VERSION "1.1.0"
  24. #ifdef PHP_WIN32
  25. #define PHP_ENCHANT_API __declspec(dllexport)
  26. #else
  27. #define PHP_ENCHANT_API
  28. #endif
  29. #ifdef ZTS
  30. #include "TSRM.h"
  31. #endif
  32. PHP_MINIT_FUNCTION(enchant);
  33. PHP_MSHUTDOWN_FUNCTION(enchant);
  34. PHP_MINFO_FUNCTION(enchant);
  35. PHP_FUNCTION(enchant_broker_init);
  36. PHP_FUNCTION(enchant_broker_free);
  37. PHP_FUNCTION(enchant_broker_get_error);
  38. PHP_FUNCTION(enchant_broker_set_dict_path);
  39. PHP_FUNCTION(enchant_broker_get_dict_path);
  40. PHP_FUNCTION(enchant_broker_list_dicts);
  41. PHP_FUNCTION(enchant_broker_request_dict);
  42. PHP_FUNCTION(enchant_broker_request_pwl_dict);
  43. PHP_FUNCTION(enchant_broker_free_dict);
  44. PHP_FUNCTION(enchant_broker_dict_exists);
  45. PHP_FUNCTION(enchant_broker_set_ordering);
  46. PHP_FUNCTION(enchant_broker_describe);
  47. PHP_FUNCTION(enchant_dict_check);
  48. PHP_FUNCTION(enchant_dict_suggest);
  49. PHP_FUNCTION(enchant_dict_add_to_personal);
  50. PHP_FUNCTION(enchant_dict_add_to_session);
  51. PHP_FUNCTION(enchant_dict_is_in_session);
  52. PHP_FUNCTION(enchant_dict_store_replacement);
  53. PHP_FUNCTION(enchant_dict_get_error);
  54. PHP_FUNCTION(enchant_dict_describe);
  55. PHP_FUNCTION(enchant_dict_quick_check);
  56. #ifdef ZTS
  57. #define ENCHANT_G(v) TSRMG(enchant_globals_id, zend_enchant_globals *, v)
  58. #else
  59. #define ENCHANT_G(v) (enchant_globals.v)
  60. #endif
  61. #endif /* PHP_ENCHANT_H */
  62. /*
  63. * Local variables:
  64. * tab-width: 4
  65. * c-basic-offset: 4
  66. * indent-tabs-mode: t
  67. * End:
  68. */