--- parser3/src/include/pa_sapi.h 2003/03/19 16:28:08 1.22.2.8.2.2 +++ parser3/src/include/pa_sapi.h 2004/07/26 10:44:21 1.26 @@ -1,14 +1,14 @@ /** @file Parser: web server api interface object decl. - Copyright (c) 2001-2003 ArtLebedev Group (http://www.artlebedev.com) + Copyright (c) 2001-2004 ArtLebedev Group (http://www.artlebedev.com) Author: Alexandr Petrosian (http://paf.design.ru) */ #ifndef PA_SAPI_H #define PA_SAPI_H -static const char* IDENT_SAPI_H="$Date: 2003/03/19 16:28:08 $"; +static const char * const IDENT_SAPI_H="$Date: 2004/07/26 10:44:21 $"; // includes @@ -18,7 +18,6 @@ static const char* IDENT_SAPI_H="$Date: // forwards class SAPI_Info; -class Pool; /// target web-Server API struct SAPI { @@ -29,7 +28,7 @@ struct SAPI { /// log error message & abort[write core] static void abort(const char* fmt, ...); /// environment strings - static const char* environment(SAPI_Info& info); + static const char* const* environment(SAPI_Info& info); /// get environment string static char* get_env(SAPI_Info& info, const char* name); /// read POST request bytes @@ -40,7 +39,7 @@ struct SAPI { /// send collected header attributes to client static void send_header(SAPI_Info& info); /// output body bytes - static void send_body(SAPI_Info& info, const void *buf, size_t size); + static size_t send_body(SAPI_Info& info, const void *buf, size_t size); }; #endif