Permalink
Browse files

Add global startup/shutdown functions

  • Loading branch information...
1 parent 3318233 commit 690575e51f1866e00074411aae18f98d76cfdf26 Sascha Schumann committed Sep 3, 1999
Showing with 5 additions and 1 deletion.
  1. +5 −1 Zend/zend_modules.h
View
@@ -27,8 +27,10 @@
#define SHUTDOWN_FUNC_ARGS_PASSTHRU type, module_number
#define ZEND_MODULE_INFO_FUNC_ARGS zend_module_entry *zend_module
-#define STANDARD_MODULE_PROPERTIES 0, 0, 0, NULL, 0
+#define STANDARD_MODULE_PROPERTIES_EX 0, 0, 0, NULL, 0
+#define STANDARD_MODULE_PROPERTIES \
+ NULL, NULL, STANDARD_MODULE_PROPERTIES_EX
#define MODULE_PERSISTENT 1
#define MODULE_TEMPORARY 2
@@ -43,6 +45,8 @@ struct _zend_module_entry {
int (*request_startup_func)(INIT_FUNC_ARGS);
int (*request_shutdown_func)(SHUTDOWN_FUNC_ARGS);
void (*info_func)(ZEND_MODULE_INFO_FUNC_ARGS);
+ int (*global_startup_func)(void);
+ int (*global_shutdown_func)(void);
int request_started, module_started;
unsigned char type;
void *handle;

0 comments on commit 690575e

Please sign in to comment.