diff options
author | Eric Wong <normalperson@yhbt.net> | 2013-03-19 09:33:47 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2013-03-19 09:48:15 +0000 |
commit | 9427f2989eae96106090d77ddff1656f8510957d (patch) | |
tree | 0f9ca86f9db1a8bb67c0e41f04d87f1e1f3121a4 /cmogstored.h | |
parent | cce7f3c33207c534f9e5a6c0cb389a97df21235b (diff) | |
download | cmogstored-9427f2989eae96106090d77ddff1656f8510957d.tar.gz |
This will allow easy use of memset to reset attributes in between requests without clobbering more important data.
Diffstat (limited to 'cmogstored.h')
-rw-r--r-- | cmogstored.h | 36 |
1 files changed, 19 insertions, 17 deletions
diff --git a/cmogstored.h b/cmogstored.h index e72c071..1681e1e 100644 --- a/cmogstored.h +++ b/cmogstored.h @@ -169,24 +169,26 @@ enum mog_chunk_state { struct mog_http { int cs; - enum mog_http_method http_method:8; - unsigned persistent:1; - unsigned chunked:1; - unsigned has_trailer_md5:1; - unsigned has_expect_md5:1; - unsigned has_content_range:1; /* for PUT */ - unsigned has_range:1; /* for GET */ - unsigned skip_rbuf_defer:1; - enum mog_chunk_state chunk_state:2; - uint8_t path_tip; - uint8_t path_end; - uint16_t line_end; - uint16_t tmp_tip; + struct { + enum mog_http_method http_method:8; + unsigned persistent:1; + unsigned chunked:1; + unsigned has_trailer_md5:1; + unsigned has_expect_md5:1; + unsigned has_content_range:1; /* for PUT */ + unsigned has_range:1; /* for GET */ + unsigned skip_rbuf_defer:1; + enum mog_chunk_state chunk_state:2; + uint8_t path_tip; + uint8_t path_end; + uint16_t line_end; + uint16_t tmp_tip; + size_t offset; + off_t range_beg; + off_t range_end; + off_t content_len; + } _p; struct mog_fd *forward; - size_t offset; - off_t range_beg; - off_t range_end; - off_t content_len; struct mog_rbuf *rbuf; struct mog_wbuf *wbuf; /* uncommonly needed */ struct mog_svc *svc; |