diff options
author | Harald Radi <phanto@php.net> | 2002-03-15 00:00:34 +0000 |
---|---|---|
committer | Harald Radi <phanto@php.net> | 2002-03-15 00:00:34 +0000 |
commit | ff62e746d2883eae4a41b17ca58c12609ef94e60 (patch) | |
tree | e298b30c06ed354fda889a9fbdc03594fbf608ad /ext/rpc/php_rpc.h | |
parent | 7935e737499718eeaa7e1e6b6114e9fc15c45c61 (diff) | |
download | php-git-ff62e746d2883eae4a41b17ca58c12609ef94e60.tar.gz |
rpc apstraction module
does only work with ZendEngine2
Diffstat (limited to 'ext/rpc/php_rpc.h')
-rw-r--r-- | ext/rpc/php_rpc.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/ext/rpc/php_rpc.h b/ext/rpc/php_rpc.h new file mode 100644 index 0000000000..a989772a4b --- /dev/null +++ b/ext/rpc/php_rpc.h @@ -0,0 +1,34 @@ +#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 + +PHP_MINIT_FUNCTION(rpc); +PHP_MSHUTDOWN_FUNCTION(rpc); +PHP_MINFO_FUNCTION(rpc); + +ZEND_BEGIN_MODULE_GLOBALS(rpc) + zend_object_handle handle; + HashTable *instance; +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 + +#endif /* PHP_RPC_H */
\ No newline at end of file |