--- parser3/src/include/pa_sapi.h 2001/04/09 08:55:28 1.5 +++ parser3/src/include/pa_sapi.h 2001/04/09 15:48:56 1.7 @@ -5,7 +5,7 @@ Author: Alexander Petrosyan (http://design.ru/paf) - $Id: pa_sapi.h,v 1.5 2001/04/09 08:55:28 paf Exp $ + $Id: pa_sapi.h,v 1.7 2001/04/09 15:48:56 paf Exp $ */ #ifndef PA_SAPI_H @@ -25,7 +25,7 @@ struct SAPI { /// static const char *get_env(Pool& pool, const char *name); /// read POST request bytes - static uint read_post(Pool& pool, char *buf, uint max_bytes); + static size_t read_post(Pool& pool, char *buf, size_t max_bytes); /// add response header attribute static void add_header_attribute(Pool& pool, const char *key, const char *value); /// add response header attribute @@ -33,7 +33,8 @@ struct SAPI { /// output body bytes static void send_body(Pool& pool, const void *buf, size_t size); /// @return exit_status - static int execute(const String& file_spec, + static int execute(Pool& pool, + const String& file_spec, const Hash *env, const Array *argv, const String& in, String& out, String& err);