1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 #ifndef PHP_ENCHANT_H
22 #define PHP_ENCHANT_H
23
24 extern zend_module_entry enchant_module_entry;
25 #define phpext_enchant_ptr &enchant_module_entry
26
27 #define PHP_ENCHANT_VERSION "1.1.0"
28
29 #ifdef PHP_WIN32
30 #define PHP_ENCHANT_API __declspec(dllexport)
31 #else
32 #define PHP_ENCHANT_API
33 #endif
34
35 #ifdef ZTS
36 #include "TSRM.h"
37 #endif
38
39 PHP_MINIT_FUNCTION(enchant);
40 PHP_MSHUTDOWN_FUNCTION(enchant);
41 PHP_MINFO_FUNCTION(enchant);
42
43 PHP_FUNCTION(enchant_broker_init);
44 PHP_FUNCTION(enchant_broker_free);
45 PHP_FUNCTION(enchant_broker_get_error);
46 PHP_FUNCTION(enchant_broker_set_dict_path);
47 PHP_FUNCTION(enchant_broker_get_dict_path);
48 PHP_FUNCTION(enchant_broker_list_dicts);
49 PHP_FUNCTION(enchant_broker_request_dict);
50 PHP_FUNCTION(enchant_broker_request_pwl_dict);
51 PHP_FUNCTION(enchant_broker_free_dict);
52 PHP_FUNCTION(enchant_broker_dict_exists);
53 PHP_FUNCTION(enchant_broker_set_ordering);
54 PHP_FUNCTION(enchant_broker_describe);
55
56 PHP_FUNCTION(enchant_dict_check);
57 PHP_FUNCTION(enchant_dict_suggest);
58 PHP_FUNCTION(enchant_dict_add_to_personal);
59 PHP_FUNCTION(enchant_dict_add_to_session);
60 PHP_FUNCTION(enchant_dict_is_in_session);
61 PHP_FUNCTION(enchant_dict_store_replacement);
62 PHP_FUNCTION(enchant_dict_get_error);
63 PHP_FUNCTION(enchant_dict_describe);
64 PHP_FUNCTION(enchant_dict_quick_check);
65
66 #ifdef ZTS
67 #define ENCHANT_G(v) TSRMG(enchant_globals_id, zend_enchant_globals *, v)
68 #else
69 #define ENCHANT_G(v) (enchant_globals.v)
70 #endif
71
72 #endif
73
74
75
76
77
78
79
80
81
82