1 /* 2 +----------------------------------------------------------------------+ 3 | PHP Version 7 | 4 +----------------------------------------------------------------------+ 5 | Copyright (c) 1997-2018 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 */ 18 19 #ifndef PHP_ENCHANT_H 20 #define PHP_ENCHANT_H 21 22 extern zend_module_entry enchant_module_entry; 23 #define phpext_enchant_ptr &enchant_module_entry 24 25 #define PHP_ENCHANT_VERSION PHP_VERSION 26 27 #ifdef PHP_WIN32 28 #define PHP_ENCHANT_API __declspec(dllexport) 29 #else 30 #define PHP_ENCHANT_API 31 #endif 32 33 #ifdef ZTS 34 #include "TSRM.h" 35 #endif 36 37 PHP_MINIT_FUNCTION(enchant); 38 PHP_MSHUTDOWN_FUNCTION(enchant); 39 PHP_MINFO_FUNCTION(enchant); 40 41 PHP_FUNCTION(enchant_broker_init); 42 PHP_FUNCTION(enchant_broker_free); 43 PHP_FUNCTION(enchant_broker_get_error); 44 PHP_FUNCTION(enchant_broker_set_dict_path); 45 PHP_FUNCTION(enchant_broker_get_dict_path); 46 PHP_FUNCTION(enchant_broker_list_dicts); 47 PHP_FUNCTION(enchant_broker_request_dict); 48 PHP_FUNCTION(enchant_broker_request_pwl_dict); 49 PHP_FUNCTION(enchant_broker_free_dict); 50 PHP_FUNCTION(enchant_broker_dict_exists); 51 PHP_FUNCTION(enchant_broker_set_ordering); 52 PHP_FUNCTION(enchant_broker_describe); 53 54 PHP_FUNCTION(enchant_dict_check); 55 PHP_FUNCTION(enchant_dict_suggest); 56 PHP_FUNCTION(enchant_dict_add_to_personal); 57 PHP_FUNCTION(enchant_dict_add_to_session); 58 PHP_FUNCTION(enchant_dict_is_in_session); 59 PHP_FUNCTION(enchant_dict_store_replacement); 60 PHP_FUNCTION(enchant_dict_get_error); 61 PHP_FUNCTION(enchant_dict_describe); 62 PHP_FUNCTION(enchant_dict_quick_check); 63 64 #ifdef ZTS 65 #define ENCHANT_G(v) TSRMG(enchant_globals_id, zend_enchant_globals *, v) 66 #else 67 #define ENCHANT_G(v) (enchant_globals.v) 68 #endif 69 70 #endif /* PHP_ENCHANT_H */ 71 72 73 /* 74 * Local variables: 75 * tab-width: 4 76 * c-basic-offset: 4 77 * indent-tabs-mode: t 78 * End: 79 */ 80