forked from damz/drupal_extension
-
Notifications
You must be signed in to change notification settings - Fork 1
/
php_drupal_extension.h
39 lines (29 loc) · 982 Bytes
/
php_drupal_extension.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#ifndef PHP_DRUPAL_EXTENSION_H
#define PHP_DRUPAL_EXTENSION_H
extern zend_module_entry drupal_extension_module_entry;
#define phpext_drupal_extension_ptr &drupal_extension_module_entry
#ifdef PHP_WIN32
#define PHP_DRUPAL_EXTENSION_API __declspec(dllexport)
#else
#define PHP_DRUPAL_EXTENSION_API
#endif
#ifdef ZTS
#include "TSRM.h"
#endif
PHP_MINIT_FUNCTION(drupal_extension);
PHP_MSHUTDOWN_FUNCTION(drupal_extension);
PHP_RINIT_FUNCTION(drupal_extension);
PHP_RSHUTDOWN_FUNCTION(drupal_extension);
PHP_MINFO_FUNCTION(drupal_extension);
PHP_FUNCTION(check_plain);
PHP_FUNCTION(drupal_static);
ZEND_BEGIN_MODULE_GLOBALS(drupal_extension)
HashTable *drupal_static_zdata;
HashTable *drupal_static_zdefault;
ZEND_END_MODULE_GLOBALS(drupal_extension)
#ifdef ZTS
#define DRUPAL_EXTENSION_G(v) TSRMG(drupal_extension_globals_id, zend_drupal_extension_globals *, v)
#else
#define DRUPAL_EXTENSION_G(v) (drupal_extension_globals.v)
#endif
#endif /* PHP_DRUPAL_EXTENSION_H */