Skip to content
Newer
Older
100644 65 lines (52 sloc) 2.47 KB
573b460 @andigutmans Zend Library
andigutmans authored Apr 7, 1999
1 /*
2 +----------------------------------------------------------------------+
3 | Zend Engine |
4 +----------------------------------------------------------------------+
5 | Copyright (c) 1998, 1999 Andi Gutmans, Zeev Suraski |
6 +----------------------------------------------------------------------+
8d1de13 @zsuraski 0.91 update
zsuraski authored Jul 19, 1999
7 | This source file is subject to version 0.91 of the Zend license, |
b5b1117 @zsuraski License update
zsuraski authored Jul 16, 1999
8 | that is bundled with this package in the file LICENSE, and is |
9 | available at through the world-wide-web at |
8d1de13 @zsuraski 0.91 update
zsuraski authored Jul 19, 1999
10 | http://www.zend.com/license/0_91.txt. |
b5b1117 @zsuraski License update
zsuraski authored Jul 16, 1999
11 | If you did not receive a copy of the Zend license and are unable to |
12 | obtain it through the world-wide-web, please send a note to |
13 | license@zend.com so we can mail you a copy immediately. |
573b460 @andigutmans Zend Library
andigutmans authored Apr 7, 1999
14 +----------------------------------------------------------------------+
15 | Authors: Andi Gutmans <andi@zend.com> |
16 | Zeev Suraski <zeev@zend.com> |
17 +----------------------------------------------------------------------+
18 */
19
b5b1117 @zsuraski License update
zsuraski authored Jul 16, 1999
20
573b460 @andigutmans Zend Library
andigutmans authored Apr 7, 1999
21 #ifndef _MODULES_H
22 #define _MODULES_H
23
9d8e0db @zsuraski * Add arguments to shutdown functions
zsuraski authored Apr 8, 1999
24 #define INIT_FUNC_ARGS int type, int module_number
5d4579a added INIT_FUNC_ARGS_PASSTHRU and SHUTDOWN_FUNC_ARGS_PASSTHRU
Stig S. Bakken authored Jun 16, 1999
25 #define INIT_FUNC_ARGS_PASSTHRU type, module_number
9d8e0db @zsuraski * Add arguments to shutdown functions
zsuraski authored Apr 8, 1999
26 #define SHUTDOWN_FUNC_ARGS int type, int module_number
5d4579a added INIT_FUNC_ARGS_PASSTHRU and SHUTDOWN_FUNC_ARGS_PASSTHRU
Stig S. Bakken authored Jun 16, 1999
27 #define SHUTDOWN_FUNC_ARGS_PASSTHRU type, module_number
14a8e9b @zsuraski Change argument name
zsuraski authored May 9, 1999
28 #define ZEND_MODULE_INFO_FUNC_ARGS zend_module_entry *zend_module
573b460 @andigutmans Zend Library
andigutmans authored Apr 7, 1999
29
94b5119 @zsuraski Remove request_started, increase thread safety
zsuraski authored Nov 26, 1999
30 #define STANDARD_MODULE_PROPERTIES_EX 0, 0, NULL, 0
573b460 @andigutmans Zend Library
andigutmans authored Apr 7, 1999
31
690575e Add global startup/shutdown functions
Sascha Schumann authored Sep 3, 1999
32 #define STANDARD_MODULE_PROPERTIES \
33 NULL, NULL, STANDARD_MODULE_PROPERTIES_EX
573b460 @andigutmans Zend Library
andigutmans authored Apr 7, 1999
34
35 #define MODULE_PERSISTENT 1
36 #define MODULE_TEMPORARY 2
37
bfbe861 @zsuraski Almost forgot to commit those
zsuraski authored May 9, 1999
38 typedef struct _zend_module_entry zend_module_entry;
39
40 struct _zend_module_entry {
573b460 @andigutmans Zend Library
andigutmans authored Apr 7, 1999
41 char *name;
342c6e0 @zsuraski Whatnot:
zsuraski authored Apr 18, 1999
42 zend_function_entry *functions;
573b460 @andigutmans Zend Library
andigutmans authored Apr 7, 1999
43 int (*module_startup_func)(INIT_FUNC_ARGS);
9d8e0db @zsuraski * Add arguments to shutdown functions
zsuraski authored Apr 8, 1999
44 int (*module_shutdown_func)(SHUTDOWN_FUNC_ARGS);
573b460 @andigutmans Zend Library
andigutmans authored Apr 7, 1999
45 int (*request_startup_func)(INIT_FUNC_ARGS);
9d8e0db @zsuraski * Add arguments to shutdown functions
zsuraski authored Apr 8, 1999
46 int (*request_shutdown_func)(SHUTDOWN_FUNC_ARGS);
bfbe861 @zsuraski Almost forgot to commit those
zsuraski authored May 9, 1999
47 void (*info_func)(ZEND_MODULE_INFO_FUNC_ARGS);
690575e Add global startup/shutdown functions
Sascha Schumann authored Sep 3, 1999
48 int (*global_startup_func)(void);
49 int (*global_shutdown_func)(void);
94b5119 @zsuraski Remove request_started, increase thread safety
zsuraski authored Nov 26, 1999
50 int module_started;
573b460 @andigutmans Zend Library
andigutmans authored Apr 7, 1999
51 unsigned char type;
52 void *handle;
53 int module_number;
bfbe861 @zsuraski Almost forgot to commit those
zsuraski authored May 9, 1999
54 };
573b460 @andigutmans Zend Library
andigutmans authored Apr 7, 1999
55
56
57 extern HashTable module_registry;
58
3feb4b3 @zsuraski Add new API for resources
zsuraski authored Sep 3, 1999
59 void module_destructor(zend_module_entry *module);
60 int module_registry_cleanup(zend_module_entry *module);
61 int module_registry_request_startup(zend_module_entry *module);
573b460 @andigutmans Zend Library
andigutmans authored Apr 7, 1999
62
62114c1 @zsuraski Destructors no longer return ints, the low level problem it was inten…
zsuraski authored Jan 17, 2000
63 #define ZEND_MODULE_DTOR (void (*)(void *)) module_destructor
573b460 @andigutmans Zend Library
andigutmans authored Apr 7, 1999
64 #endif
Something went wrong with that request. Please try again.