--- parser3/src/include/pa_globals.h 2001/03/21 15:53:20 1.18 +++ parser3/src/include/pa_globals.h 2001/03/24 19:12:18 1.26 @@ -5,7 +5,7 @@ Author: Alexander Petrosyan (http://design.ru/paf) - $Id: pa_globals.h,v 1.18 2001/03/21 15:53:20 paf Exp $ + $Id: pa_globals.h,v 1.26 2001/03/24 19:12:18 paf Exp $ */ #ifndef PA_GLOBALS_H @@ -18,6 +18,8 @@ /// constant string. class name, predefined method & co #define AUTO_FILE_NAME "auto.p" +#define HTML_TYPO_NAME "html-typo" + #define CONTENT_TYPE_NAME "content-type" #define BODY_NAME "body" #define VALUE_NAME "value" @@ -50,32 +52,15 @@ #define RESULT_VAR_NAME "result" //@} -/// target-specific service functions -struct Service_funcs { - /// 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); - /// add response header attribute - void (*add_header_attribute)(Pool& pool, const char *key, const char *value); - /// add response header attribute - void (*send_header)(Pool& pool); - /// output body bytes - void (*send_body)(Pool& pool, const char *buf, size_t size); -}; - - /// core func -void globals_init(Pool& pool); +void pa_globals_init(Pool& pool); /// hex_value[c] = hex value of c extern short hex_value[0x100]; -/// target-specific service functions -extern Service_funcs service_funcs; - //@{ /// global string +extern String *html_typo_name; extern String *content_type_name; extern String *body_name; extern String *value_name;