blob: be95b209409efe3fdbe347a17194a0b9de9ce0b5 (
plain)
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
39
40
|
#ifndef PHP_RPC_H
#define PHP_RPC_H
#include "zend.h"
extern zend_module_entry rpc_module_entry;
#define phpext_rpc_ptr &rpc_module_entry
#ifdef PHP_WIN32
#define PHP_RPC_API __declspec(dllexport)
#else
#define PHP_RPC_API
#endif
#ifdef ZTS
#include "TSRM.h"
#endif
ZEND_MINIT_FUNCTION(rpc);
ZEND_MSHUTDOWN_FUNCTION(rpc);
ZEND_MINFO_FUNCTION(rpc);
ZEND_FUNCTION(rpc_load);
ZEND_FUNCTION(rpc_call);
ZEND_FUNCTION(rpc_set);
ZEND_FUNCTION(rpc_get);
ZEND_BEGIN_MODULE_GLOBALS(rpc)
int dummy;
ZEND_END_MODULE_GLOBALS(rpc)
#ifdef ZTS
#define RPC_G(v) TSRMG(rpc_globals_id, zend_rpc_globals *, v)
#else
#define RPC_G(v) (rpc_globals.v)
#endif
#define phpext_rpc_ptr &rpc_module_entry
#endif /* PHP_RPC_H */
|