--- parser3/src/include/pa_globals.h 2001/03/21 14:06:43 1.17 +++ parser3/src/include/pa_globals.h 2001/03/23 10:14:33 1.22 @@ -5,7 +5,7 @@ Author: Alexander Petrosyan (http://design.ru/paf) - $Id: pa_globals.h,v 1.17 2001/03/21 14:06:43 paf Exp $ + $Id: pa_globals.h,v 1.22 2001/03/23 10:14:33 paf Exp $ */ #ifndef PA_GLOBALS_H @@ -51,9 +51,11 @@ //@} /// target-specific service functions -struct Service_funcs { +struct SAPI { + /// get env + const char *(*get_env)(Pool& pool, const char *name); /// read POST request bytes - int (*read_post)(Pool& pool, char *buf, int max_bytes); + uint (*read_post)(Pool& pool, char *buf, uint max_bytes); /// add response header attribute void (*add_header_attribute)(Pool& pool, const char *key, const char *value); /// add response header attribute @@ -70,7 +72,7 @@ void globals_init(Pool& pool); extern short hex_value[0x100]; /// target-specific service functions -extern Service_funcs service_funcs; +extern SAPI sapi; //@{ /// global string