diff options
Diffstat (limited to 'ot_http.h')
| -rw-r--r-- | ot_http.h | 14 |
1 files changed, 5 insertions, 9 deletions
| @@ -7,18 +7,14 @@ | |||
| 7 | #define __OT_HTTP_H__ | 7 | #define __OT_HTTP_H__ |
| 8 | 8 | ||
| 9 | typedef enum { | 9 | typedef enum { |
| 10 | STRUCT_HTTP_FLAG_ARRAY_USED = 1, | 10 | STRUCT_HTTP_FLAG_WAITINGFORTASK = 1, |
| 11 | STRUCT_HTTP_FLAG_IOB_USED = 2, | 11 | STRUCT_HTTP_FLAG_GZIP = 2, |
| 12 | STRUCT_HTTP_FLAG_WAITINGFORTASK = 4, | 12 | STRUCT_HTTP_FLAG_BZIP2 = 4 |
| 13 | STRUCT_HTTP_FLAG_GZIP = 8, | ||
| 14 | STRUCT_HTTP_FLAG_BZIP2 = 16 | ||
| 15 | } STRUCT_HTTP_FLAG; | 13 | } STRUCT_HTTP_FLAG; |
| 16 | 14 | ||
| 17 | struct http_data { | 15 | struct http_data { |
| 18 | union { | 16 | array request; |
| 19 | array request; | 17 | io_batch batch; |
| 20 | io_batch batch; | ||
| 21 | } data; | ||
| 22 | ot_ip6 ip; | 18 | ot_ip6 ip; |
| 23 | STRUCT_HTTP_FLAG flag; | 19 | STRUCT_HTTP_FLAG flag; |
| 24 | }; | 20 | }; |
