diff options
| author | Andi Gutmans <andi@php.net> | 1999-05-02 18:07:41 +0000 |
|---|---|---|
| committer | Andi Gutmans <andi@php.net> | 1999-05-02 18:07:41 +0000 |
| commit | 5dbe9246609e59439ca0340aed5b2eaac1bed7d8 (patch) | |
| tree | 9b2f8401987eb02e9165c975c954c6f3647ee6d6 /main/SAPI.h | |
| parent | 7e0ee50ed484aae4ebc0601392157c9a79407919 (diff) | |
| download | php-git-5dbe9246609e59439ca0340aed5b2eaac1bed7d8.tar.gz | |
- Make ISAPI hook in as an extension too.
- Some work on moving stuff to SAPI.
Diffstat (limited to 'main/SAPI.h')
| -rw-r--r-- | main/SAPI.h | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/main/SAPI.h b/main/SAPI.h index bd62eaed76..feddbc3bbc 100644 --- a/main/SAPI.h +++ b/main/SAPI.h @@ -13,19 +13,32 @@ #endif -typedef struct { +typedef struct _sapi_module_struct { + char *name; + + int (*startup)(struct _sapi_module_struct *sapi_module); + int (*shutdown)(struct _sapi_module_struct *sapi_module); + int (*ub_write)(const char *str, unsigned int str_length); -} sapi_functions_struct; +} sapi_module_struct; + -extern sapi_functions_struct sapi_functions; /* true global */ +extern sapi_module_struct sapi_module; /* true global */ + + +typedef struct { + char *path_translated; + char *query_string; +} sapi_request_info; typedef struct { void *server_context; + sapi_request_info request_info; } sapi_globals_struct; -void sapi_startup(sapi_functions_struct *sf); +SAPI_API void sapi_startup(sapi_module_struct *sf); #ifdef ZTS # define SLS_D sapi_globals_struct *sapi_globals |
