about summary refs log tree commit homepage
path: root/ext/http11/http11_parser.h
diff options
context:
space:
mode:
authorzedshaw <zedshaw@19e92222-5c0b-0410-8929-a290d50e31e9>2006-05-14 23:41:22 +0000
committerzedshaw <zedshaw@19e92222-5c0b-0410-8929-a290d50e31e9>2006-05-14 23:41:22 +0000
commitbe6f59478e1545f63ac7a265b7cb02e8df66f5ba (patch)
tree5ea41b03a5e1204ad7a6a6e0fb0a440a77a23830 /ext/http11/http11_parser.h
parent91a3aa427a239d1e9eb864bf1af5eafc853d9528 (diff)
downloadunicorn-be6f59478e1545f63ac7a265b7cb02e8df66f5ba.tar.gz
git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/trunk@179 19e92222-5c0b-0410-8929-a290d50e31e9
Diffstat (limited to 'ext/http11/http11_parser.h')
-rw-r--r--ext/http11/http11_parser.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/http11/http11_parser.h b/ext/http11/http11_parser.h
index 2927459..bcf759e 100644
--- a/ext/http11/http11_parser.h
+++ b/ext/http11/http11_parser.h
@@ -12,11 +12,11 @@ typedef void (*field_cb)(void *data, const char *field, size_t flen, const char
 
 typedef struct http_parser {
   int cs;
-  const char *body_start;
+  size_t body_start;
   int content_len;
   size_t nread;
-  const char *mark;
-  const char *field_start;
+  size_t mark;
+  size_t field_start;
   size_t field_len;
 
   void *data;
@@ -32,7 +32,7 @@ typedef struct http_parser {
 
 int http_parser_init(http_parser *parser);
 int http_parser_finish(http_parser *parser);
-size_t http_parser_execute(http_parser *parser, const char *data, size_t len );
+size_t http_parser_execute(http_parser *parser, const char *data, size_t len, size_t off);
 int http_parser_has_error(http_parser *parser);
 int http_parser_is_finished(http_parser *parser);