source: trunk/xcache/xc_sandbox.h @ 992

Last change on this file since 992 was 992, checked in by moo, 2 years ago

refactor mshutdown minit

  • Property svn:eol-style set to native
File size: 965 bytes
Line 
1#ifndef XC_SANDBOX_H_3AFE4094B1D005188B909F9B6538599C
2#define XC_SANDBOX_H_3AFE4094B1D005188B909F9B6538599C
3
4#if _MSC_VER > 1000
5#pragma once
6#endif // _MSC_VER > 1000
7
8/* Purpose: run specified function in compiler sandbox, restore everything to previous state after it returns
9 */
10
11int xc_sandbox_module_init(int module_number TSRMLS_DC);
12void xc_sandbox_module_shutdown();
13
14/* return op_array to install */
15typedef zend_op_array *(*xc_sandboxed_func_t)(void *data TSRMLS_DC);
16zend_op_array *xc_sandbox(xc_sandboxed_func_t sandboxed_func, void *data, ZEND_24(NOTHING, const) char *filename TSRMLS_DC);
17const Bucket *xc_sandbox_user_function_begin(TSRMLS_D);
18const Bucket *xc_sandbox_user_class_begin(TSRMLS_D);
19zend_uint xc_sandbox_compilererror_cnt(TSRMLS_D);
20#ifdef XCACHE_ERROR_CACHING
21xc_compilererror_t *xc_sandbox_compilererrors(TSRMLS_D);
22zend_uint xc_sandbox_compilererror_cnt(TSRMLS_D);
23#endif
24
25#endif /* XC_SANDBOX_H_3AFE4094B1D005188B909F9B6538599C */
Note: See TracBrowser for help on using the repository browser.