1 /*
2    +----------------------------------------------------------------------+
3    | Zend OPcache                                                         |
4    +----------------------------------------------------------------------+
5    | Copyright (c) 1998-2015 The PHP Group                                |
6    +----------------------------------------------------------------------+
7    | This source file is subject to version 3.01 of the PHP license,      |
8    | that is bundled with this package in the file LICENSE, and is        |
9    | available through the world-wide-web at the following url:           |
10    | http://www.php.net/license/3_01.txt                                  |
11    | If you did not receive a copy of the PHP license and are unable to   |
12    | obtain it through the world-wide-web, please send a note to          |
13    | license@php.net so we can mail you a copy immediately.               |
14    +----------------------------------------------------------------------+
15    | Authors: Andi Gutmans <andi@zend.com>                                |
16    |          Zeev Suraski <zeev@zend.com>                                |
17    |          Stanislav Malyshev <stas@zend.com>                          |
18    |          Dmitry Stogov <dmitry@zend.com>                             |
19    +----------------------------------------------------------------------+
20 */
21 
22 #ifndef ZEND_ACCELERATOR_UTIL_FUNCS_H
23 #define ZEND_ACCELERATOR_UTIL_FUNCS_H
24 
25 #include "zend.h"
26 #include "ZendAccelerator.h"
27 
28 void zend_accel_copy_internal_functions(TSRMLS_D);
29 
30 zend_persistent_script* create_persistent_script(void);
31 int compact_persistent_script(zend_persistent_script *script);
32 void free_persistent_script(zend_persistent_script *persistent_script, int destroy_elements);
33 
34 void zend_accel_free_user_functions(HashTable *ht TSRMLS_DC);
35 void zend_accel_move_user_functions(HashTable *str, HashTable *dst TSRMLS_DC);
36 
37 zend_op_array* zend_accel_load_script(zend_persistent_script *persistent_script, int from_shared_memory TSRMLS_DC);
38 
39 #define ADLER32_INIT 1     /* initial Adler-32 value */
40 
41 unsigned int zend_adler32(unsigned int checksum, signed char *buf, uint len);
42 
43 #endif /* ZEND_ACCELERATOR_UTIL_FUNCS_H */
44 
45 /*
46  * Local variables:
47  * tab-width: 4
48  * c-basic-offset: 4
49  * End:
50  */
51